PageSourceSearch

https://statamic.com/js/app.js?id=61b99496f979738b542c36ce9b77c764

js statamic.com collected 2026-09-24 17:14:34 UTC 1,683,893 bytes, 2 lines download raw bytes

1/*! For license information please see app.js.LICENSE.txt */
2(()=>{var e,t={1781:(e,t,n)=>{"use strict";var r;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,x(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=k(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(e){var t=p();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return o(e)}(this,n)}}function d(e,t,n){return(t=x(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||k(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 b(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(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 x(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function w(e){return w="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},w(e)}function k(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}var C=function(){function e(){a(this,e)}return l(e,[{key:"shadeRGBColor",value:function(e,t){var n=t.split(","),r=e<0?0:255,i=e<0?-1*e:e,o=parseInt(n[0].slice(4),10),a=parseInt(n[1],10),s=parseInt(n[2],10);
vendor: 4,838 bytes, line 2
2return"rgb("+(Math.round((r-o)*i)+o)+","+(Math.round((r-a)*i)+a)+","+(Math.round((r-s)*i)+s)+")"}},{key:"shadeHexColor",value:function(e,t){var n=parseInt(t.slice(1),16),r=e<0?0:255,i=e<0?-1*e:e,o=n>>16,a=n>>8&255,s=255&n;return"#"+(16777216+65536*(Math.round((r-o)*i)+o)+256*(Math.round((r-a)*i)+a)+(Math.round((r-s)*i)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,n){return e.isColorHex(n)?this.shadeHexColor(t,n):this.shadeRGBColor(t,n)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===w(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,n=[];for(t=0;t<e.length;t++)n[t]=e[t];return n}},{key:"extend",value:function(e,t){var n=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t});var r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach((function(i){n.isObject(t[i])&&i in e?r[i]=n.extend(e[i],t[i]):Object.assign(r,d({},i,t[i]))})),r}},{key:"extendArray",value:function(t,n){var r=[];return t.map((function(t){r.push(e.extend(n,t))})),r}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var n=[],r=0;r<t.length;r++)n[r]=this.clone(t[r]);return n}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===w(t)){var i={};for(var o in t)t.hasOwnProperty(o)&&(i[o]=this.clone(t[o]));return i}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var n="",r=e<0?"-":"",i=t[0].replace(".",""),o=Number(t[1])+1;if(o<0){for(n=r+"0.";o++;)n+="0";return n+i.replace(/^-/,"")}for(o-=i.length;o--;)n+="0";return i+n}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),n]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce((function(e,t){return Array.isArray(t)&&(t=t.reduce((function(e,t){return e.length>t.length?e:t}))),e.length>t.length?e:t}),0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var n=e.replace("#","");n=n.match(new RegExp("(.{"+n.length/3+"})","g"));for(var r=0;r<n.length;r++)n[r]=parseInt(1===n[r].length?n[r]+n[r]:n[r],16);return void 0!==t&&n.push(t),"rgba("+n.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var n=[],r=2*Math.PI/t,i=0;i<t;i++){var o={};o.x=e*Math.sin(i*r),o.y=-e*Math.cos(i*r),n.push(o)}return n}},{key:"polarToCartesian",value:function(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=e.toString().slice();return n.replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,n){if(n>=e.length)for(var r=n-e.length+1;r--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}}
2,{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e.style.key=t[n])}},{key:"preciseAddition",value:function(e,t){var n=(String(e).split(".")[1]||"").length,r=(String(t).split(".")[1]||"").length,i=Math.pow(10,Math.max(n,r));return(Math.round(e*i)+Math.round(t*i))/i}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var i=t;t=e%t,e=i}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],n=2;e>=2;)e%n==0?(t.push(n),e/=n):n++;return t}},{key:"mod",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,n-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),e}(),S=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return l(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return e===!!e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,n,r){e.attr(t).animate(r).attr(n)}},{key:"animateMarker",value:function(e,t,n,r){e.attr({opacity:0}).animate(t,n).attr({opacity:1}).afterAll((function(){r()}))}},{key:"animateRect",value:function(e,t,n,r,i){e.attr(t).animate(r).attr(n).afterAll((function(){return i()}))}},{key:"animatePathsGradually",value:function(e){var t=e.el,n=e.realIndex,r=e.j,i=e.fill,o=e.pathFrom,a=e.pathTo,s=e.speed,l=e.delay,c=this.w,u=0;c.config.chart.animations.animateGradually.enabled&&(u=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(u=0),this.morphSVG(t,n,r,"line"!==c.config.chart.type||c.globals.comboCharts?i:"stroke",o,a,s,l*u)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach((function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")}))}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,n,r,i,o,a,s){var l=this,c=this.w;i||(i=e.attr("pathFrom")),o||(o=e.attr("pathTo"));var u=function(e){return"radar"===c.config.chart.type&&(a=1),"M 0 ".concat(c.globals.gridHeight)};(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=u()),(!o||o.indexOf("undefined")>-1||o.indexOf("NaN")>-1)&&(o=u()),c.globals.shouldAnimate||(a=1),e.plot(i).animate(1,c.globals.easing,s).plot(i).animate(a,c.globals.easing,s).plot(o).afterAll((function(){C.isNumber(n)?n===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==r&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()}))}}]),e}(),_=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getDefaultFilter",value:function(e,t){var n=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==n.config.states.normal.filter?this.applyFilter(e,t,n.config.states.normal.filter.type,n.config.states.normal.filter.value):n.config.chart.dropShadow.enabled&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var n=this.w;n.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,n.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,n){var r=this,i=this.w,o=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:o}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,n){var r=this,i=this.w,o=n.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter((function(e){var n=i.config.chart.dropShadow;(n.enabled?r.addShadow(e,t,n):e).componentTransfer({rgb:{type:"linear",slope:o}})})),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(n){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:r});break;case"darken":this.addDarkenFilter(e,t,{intensity:r})}}},{key:"addShadow",value:function(e,t,n){var r,i=this.w,o=n.blur,a=n.top,s=n.left,l=n.color,c=n.opacity;if((null===(r=i.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.length)>0&&-1===i.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var u=e.flood(Array.isArray(l)?l[t]:l,c).composite(e.sourceAlpha,"in").offset(s,a).gaussianBlur(o).merge(e.source);return e.blend(e.source,u)}},{key:"dropShadow",value:function(e,t){var n,r,i=arguments.length>
22&&void 0!==arguments[2]?arguments[2]:0,o=t.top,a=t.left,s=t.blur,l=t.color,c=t.opacity,u=t.noUserSpaceOnUse,d=this.w;return e.unfilter(!0),C.isMsEdge()&&"radialBar"===d.config.chart.type||(null===(n=d.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===(null===(r=d.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.indexOf(i))||(l=Array.isArray(l)?l[i]:l,e.filter((function(e){var t;t=C.isSafari()||C.isFirefox()||C.isMsEdge()?e.flood(l,c).composite(e.sourceAlpha,"in").offset(a,o).gaussianBlur(s):e.flood(l,c).composite(e.sourceAlpha,"in").offset(a,o).gaussianBlur(s).merge(e.source),e.blend(e.source,t)})),u||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,n){var r=this.w;if(void 0!==r.globals.selectedDataPoints[t]&&r.globals.selectedDataPoints[t].indexOf(n)>-1){e.node.setAttribute("selected",!0);var i=r.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type,i.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),A=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"roundPathCorners",value:function(e,t){function n(e,t,n){var i=t.x-e.x,o=t.y-e.y,a=Math.sqrt(i*i+o*o);return r(e,t,Math.min(1,n/a))}function r(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function o(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var a=e.split(/[,\s]/).reduce((function(e,t){var n=t.match("([a-zA-Z])(.+)");return n?(e.push(n[1]),e.push(n[2])):e.push(t),e}),[]).reduce((function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e}),[]),s=[];if(a.length>1){var l=o(a[0]),c=null;"Z"==a[a.length-1][0]&&a[0].length>2&&(c=["L",l.x,l.y],a[a.length-1]=c),s.push(a[0]);for(var u=1;u<a.length;u++){var d=s[s.length-1],h=a[u],f=h==c?a[1]:a[u+1];if(f&&d&&d.length>2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,g,m=o(d),v=o(h),y=o(f);p=n(v,m,t),g=n(v,y,t),i(h,p),h.origPoint=v,s.push(h);var b=r(p,v,.5),x=r(v,g,.5),w=["C",b.x,b.y,x.x,x.y,g.x,g.y];w.origPoint=v,s.push(w)}else s.push(h)}if(c){var k=o(s[s.length-1]);s.push(["Z"]),i(s[0],k)}}else s=a;return s.reduce((function(e,t){return e+t.join(" ")+" "}),"")}},{key:"drawLine",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:n,y2:r,stroke:i,"stroke-dasharray":o,"stroke-width":a,"stroke-linecap":s})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,u=this.w.globals.dom.Paper.rect();return u.attr({x:e,y:t,width:n>0?n:0,height:r>0?r:0,rx:i,ry:i,opacity:a,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":c}),u.node.setAttribute("fill",o),u}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":n})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var n=this.w.globals.dom.Paper.circle(2*e);return null!==t&&n.attr(t),n}},{key:"drawPath",value:function(e){var t=e.d,n=void 0===t?"":t,r=e.stroke,i=void 0===r?"#a8a8a8":r,o=e.strokeWidth,a=void 0===o?1:o,s=e.fill,l=e.fillOpacity,c=void 0===l?1:l,u=e.strokeOpacity,d=void 0===u?1:u,h=e.classes,f=e.strokeLinecap,p=void 0===f?null:f,g=e.strokeDashArray,m=void 0===g?0:g,v=this.w;return null===p&&(p=v.config.stroke.lineCap),(n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n="M 0 ".concat(v.globals.gridHeight)),v.globals.dom.Paper.path(n).attr({fill:s,"fill-opacity":c,stroke:i,"stroke-opacity":d,"stroke-linecap":p,"stroke-width":a,"stroke-dasharray":m,class:h})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return null===n?r=[" L",e,t].join(" "):"H"===n?r=[" H",e].join(" "):"V"===n&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,n,r,i,o){return["C",e,t,n,r,i,o].join(" ")}},{key:"quadraticCurve",value:function(e,t,n,r){return["Q",e,t,n,r].join(" ")}},{key:"arc",value:function(e,t,n,r,i,o,a){var s="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a"),[s,e,t,n,r,i,o,a].join(" ")}},{key:"renderPaths",value:function(e){var t,n=e.j,r=e.realIndex,i=e.pathFrom,o=e.pathTo,a=e.stroke,s=e.strokeWidth,l=e.strokeLinecap,c=e.f
2ill,u=e.animationDelay,d=e.initialSpeed,h=e.dataChangeSpeed,f=e.className,p=e.chartType,g=e.shouldClipToGrid,v=void 0===g||g,y=e.bindEventsOnPaths,b=void 0===y||y,x=e.drawShadow,w=void 0===x||x,k=this.w,C=new _(this.ctx),A=new S(this.ctx),L=this.w.config.chart.animations.enabled,T=L&&this.w.config.chart.animations.dynamicAnimation.enabled,E=!!(L&&!k.globals.resized||T&&k.globals.dataChanged&&k.globals.shouldAnimate);E?t=i:(t=o,k.globals.animationEnded=!0);var O,M=k.config.stroke.dashArray;O=Array.isArray(M)?M[r]:k.config.stroke.dashArray;var P=this.drawPath({d:t,stroke:a,strokeWidth:s,fill:c,fillOpacity:1,classes:f,strokeLinecap:l,strokeDashArray:O});if(P.attr("index",r),v&&("bar"===p&&!k.globals.isHorizontal||k.globals.comboCharts?P.attr({"clip-path":"url(#gridRectBarMask".concat(k.globals.cuid,")")}):P.attr({"clip-path":"url(#gridRectMask".concat(k.globals.cuid,")")})),"none"!==k.config.states.normal.filter.type)C.getDefaultFilter(P,r);else if(k.config.chart.dropShadow.enabled&&w){var D=k.config.chart.dropShadow;C.dropShadow(P,D,r)}b&&(P.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,P)),P.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,P)),P.node.addEventListener("mousedown",this.pathMouseDown.bind(this,P))),P.attr({pathTo:o,pathFrom:i});var N={el:P,j:n,realIndex:r,pathFrom:i,pathTo:o,fill:c,strokeWidth:s,delay:u};return!L||k.globals.resized||k.globals.dataChanged?!k.globals.resized&&k.globals.dataChanged||A.showDelayedElements():A.animatePathsGradually(m(m({},N),{},{speed:d})),k.globals.dataChanged&&T&&E&&A.animatePathsGradually(m(m({},N),{},{speed:h})),P}},{key:"drawPattern",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,n,(function(o){"horizontalLines"===e?o.line(0,0,n,0).stroke({color:r,width:i+1}):"verticalLines"===e?o.line(0,0,0,t).stroke({color:r,width:i+1}):"slantedLines"===e?o.line(0,0,t,n).stroke({color:r,width:i}):"squares"===e?o.rect(t,n).fill("none").stroke({color:r,width:i}):"circles"===e&&o.circle(t).fill("none").stroke({color:r,width:i})}))}},{key:"drawGradient",value:function(e,t,n,r,i){var o,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,u=this.w;t.length<9&&0===t.indexOf("#")&&(t=C.hexToRgba(t,r)),n.length<9&&0===n.indexOf("#")&&(n=C.hexToRgba(n,i));var d=0,h=1,f=1,p=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null);var g=!("donut"!==u.config.chart.type&&"pie"!==u.config.chart.type&&"polarArea"!==u.config.chart.type&&"bubble"!==u.config.chart.type);if(o=null===l||0===l.length?u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){e.at(d,t,r),e.at(h,n,i),e.at(f,n,i),null!==p&&e.at(p,t,r)})):u.globals.dom.Paper.gradient(g?"radial":"linear",(function(e){(Array.isArray(l[c])?l[c]:l).forEach((function(t){e.at(t.offset/100,t.color,t.opacity)}))})),g){var m=u.globals.gridWidth/2,v=u.globals.gridHeight/2;"bubble"!==u.config.chart.type?o.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:v,r:a}):o.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?o.from(0,0).to(0,1):"diagonal"===e?o.from(0,0).to(1,1):"horizontal"===e?o.from(0,1).to(1,1):"diagonal2"===e&&o.from(1,0).to(0,1);return o}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,n=e.maxWidth,r=e.fontSize,i=e.fontFamily,o=this.getTextRects(t,r,i),a=o.width/t.length,s=Math.floor(n/a);return n<o.width?t.slice(0,s-3)+"...":t}},{key:"drawText",value:function(e){var t=this,n=e.x,r=e.y,i=e.text,o=e.textAnchor,a=e.fontSize,s=e.fontFamily,l=e.fontWeight,c=e.foreColor,u=e.opacity,d=e.maxWidth,h=e.cssClass,f=void 0===h?"":h,p=e.isPlainText,g=void 0===p||p,v=e.dominantBaseline,y=void 0===v?"auto":v,b=this.w;void 0===i&&(i="");var x=i;o||(o="start"),c&&c.length||(c=b.config.chart.foreColor),s=s||b.config.chart.fontFamily,l=l||"regular";var w,k={maxWidth:d,fontSize:a=a||"11px",fontFamily:s};return Array.isArray(i)?w=b.globals.dom.Paper.text((function(e){for(var n=0;n<i.length;n++)x=i[n],d&&(x=t.getTextBasedOnMaxWidth(m({text:i[n]},k))),0===n?e.tspan(x):e.tspan(x).newLine()})):(d&&(x=this.getTextBasedOnMaxWidth(m({text:i},k))),w=g?b.globals.dom.Paper.plain(i):b.globals.dom.Paper.text((function(e){return e.tspan(x)}))),w.attr({x:n,y:r,"text-anchor":o,"dominant-baseline":y,"font-size":a,"font-family":s,"font-weight":l,fill:c,class:"apexcharts-text "+f}),w.node.style.fontFamily=s,w.node.style.opacity=u,w}},{key:"getMarkerPath",value:function(e,t,n,r){var i="";switch(n){case"cross":i="M ".concat(e-(r/=1.4)," ").concat(t-r," L ").concat(e+r," ").concat(t+r,"  M ").concat(e-r," ").concat(t+r," L ").concat(e+r," ").concat(t-r);break;case"plus":i="M ".concat(e-(r/=1.12)," ").concat(t," L ").concat(e+r," ").concat(t,"  M ").concat(e," ").concat(t-r," L ").concat(e," ").concat(t+r);break;case"star":case"sparkle":var o=5;r*=1.15,"sparkle"===n&&(r/=1.1,o=4);for(var a=Math.PI/o,s=0;s<=2*o;s++){var l=s*a,c=s%2==0?r:r/2;i+=(0===s?"M":"L")+(e+c*Math.sin(l))+","+(t-c*Math.cos(l))}i+="Z";break;case"triangle":i="M ".concat(e," ").concat(t-r," \n             L ").concat(e+r," ").concat(t+r," \n             L ").concat(e-r," ").concat(t+r," \n             Z");break;case"square":case"rect":i="M ".concat(e-(r/=1.125)," ").concat(t-r," \n           L ").concat(e+r," ").concat(t-r," \n           L ").concat(e+r," ").concat(t+r," \n           L ").concat(e-r," ").concat(t+r," \n           Z");break;case"diamond":r*=1.05,i="M ".concat(e," ").concat(t-r," \n             L ").concat(e+r," ").concat(t," \n             L ").concat(e," ").concat(t+r," \n             L ").concat(e-r," ").concat(t," \n            Z");break;case"line":i="M ".concat(e-(r/=1.1)," ").concat(t," \n           L ").concat(e+r," ").concat(t);break;default:r*=2,i="M ".concat(e,", ").concat(t," \n           m -").concat(r/2,", 0 \n           a ").concat(r/2,",").concat(r/2," 0 1,0 ").concat(r,",0 \n           a ").concat(r/2,",").concat(r/2," 0 1,0 -").concat(r,",0")}return i}},{key:"drawMarkerShape",value:function(e,t,n,r,i){var o=this.drawPath({d:this.getMarkerPath(e,t,n,r,i),stroke:i.pointStrokeColor,strokeDashArray:i.pointStrokeDashArray,strokeWidth:i.pointStrokeWidth,fill:i.pointFillColor,fillOpacity:i.pointFillOpacity,strokeOpacity:i.pointStrokeOpacity});return o.attr({cx:e,cy:t,shape:i.shape,class:i.class?i.class:""}),o}},{key:"drawMarker",value:function(e,t,n){e=e||0;var r=n.pSize||0;return C.isNumber(t)||(r=0,t=0),this.drawMarkerShape(e,t,null==n?void 0:n.shape,r,m(m({},n),"line"===n.shape||"plus"===n.shape||"cross"===n.shape?{pointStrokeColor:n.pointFillColor,pointStrokeOpacity:n.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var n=this.w,r=new _(this.ctx),i=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);if("function"==typeof n.config.chart.events.dataPointMouseEnter&&n.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:i,dataPointIndex:o,w:n}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:i,dataPointIndex:o,w:n}]),("none"===n.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==n.config.states.hover.f
2ilter.type&&!n.globals.isTouchDevice){var a=n.config.states.hover.filter;r.applyFilter(e,i,a.type,a.value)}}},{key:"pathMouseLeave",value:function(e,t){var n=this.w,r=new _(this.ctx),i=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10);"function"==typeof n.config.chart.events.dataPointMouseLeave&&n.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:i,dataPointIndex:o,w:n}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:i,dataPointIndex:o,w:n}]),"none"!==n.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==n.config.states.hover.filter.type&&r.getDefaultFilter(e,i)}},{key:"pathMouseDown",value:function(e,t){var n=this.w,r=new _(this.ctx),i=parseInt(e.node.getAttribute("index"),10),o=parseInt(e.node.getAttribute("j"),10),a="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),n.globals.selectedDataPoints[i].indexOf(o)>-1){var s=n.globals.selectedDataPoints[i].indexOf(o);n.globals.selectedDataPoints[i].splice(s,1)}}else{if(!n.config.states.active.allowMultipleDataPointsSelection&&n.globals.selectedDataPoints.length>0){n.globals.selectedDataPoints=[];var l=n.globals.dom.Paper.select(".apexcharts-series path").members,c=n.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,u=function(e){Array.prototype.forEach.call(e,(function(e){e.node.setAttribute("selected","false"),r.getDefaultFilter(e,i)}))};u(l),u(c)}e.node.setAttribute("selected","true"),a="true",void 0===n.globals.selectedDataPoints[i]&&(n.globals.selectedDataPoints[i]=[]),n.globals.selectedDataPoints[i].push(o)}if("true"===a){var d=n.config.states.active.filter;if("none"!==d)r.applyFilter(e,i,d.type,d.value);else if("none"!==n.config.states.hover.filter&&!n.globals.isTouchDevice){var h=n.config.states.hover.filter;r.applyFilter(e,i,h.type,h.value)}}else"none"!==n.config.states.active.filter.type&&("none"===n.config.states.hover.filter.type||n.globals.isTouchDevice?r.getDefaultFilter(e,i):(h=n.config.states.hover.filter,r.applyFilter(e,i,h.type,h.value)));"function"==typeof n.config.chart.events.dataPointSelection&&n.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:o,w:n}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:n.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:o,w:n}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,n,r){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w,a=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:n,foreColor:"#fff",opacity:0});r&&a.attr("transform",r),o.globals.dom.Paper.add(a);var s=a.bbox();return i||(s=a.node.getBoundingClientRect()),a.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,n){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=n/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=n/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}}]),e}(),L=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,n=[];if(0===t.globals.series.length)return n;for(var r=0;r<t.globals.series[t.globals.maxValsInArrayIndex].length;r++){for(var i=0,o=0;o<t.globals.series.length;o++)void 0!==t.globals.series[o][r]&&-1===e.indexOf(o)&&(i+=t.globals.series[o][r]);n.push(i)}return n}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce((function(e,t){return e+t}),0):this.w.globals.series[e].reduce((function(e,t){return e+t}),0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,n=[];return t.globals.seriesGroups.forEach((function(r){var i=[];
vendor: 4,675 bytes, line 2
2t.config.series.forEach((function(e,n){r.indexOf(t.globals.seriesNames[n])>-1&&i.push(n)}));var o=t.globals.series.map((function(e,t){return-1===i.indexOf(t)?t:-1})).filter((function(e){return-1!==e}));n.push(e.getStackedSeriesTotals(o))})),n}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,n=[],r=[],i=[],o=e.series.length>t.yaxis.length||t.yaxis.some((function(e){return Array.isArray(e.seriesName)}));t.series.forEach((function(e,t){i.push(t),r.push(null)})),t.yaxis.forEach((function(e,t){n[t]=[]}));var a=[];t.yaxis.forEach((function(e,r){var s=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach((function(e){t.series.forEach((function(t,a){if(t.name===e){var l=a;r===a||o?!o||i.indexOf(a)>-1?n[r].push([r,a]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(n[a].push([a,r]),l=r),s=!0,-1!==(l=i.indexOf(l))&&i.splice(l,1)}}))}))}s||a.push(r)})),n=n.map((function(e,t){var n=[];return e.forEach((function(e){r[e[1]]=e[0],n.push(e[1])})),n}));for(var s=t.yaxis.length-1,l=0;l<a.length&&(s=a[l],n[s]=[],i);l++){var c=i[0];i.shift(),n[s].push(c),r[c]=s}i.forEach((function(e){n[s].push(e),r[e]=s})),e.seriesYAxisMap=n.map((function(e){return e})),e.seriesYAxisReverseMap=r.map((function(e){return e})),e.seriesYAxisMap.forEach((function(e,n){e.forEach((function(e){t.series[e]&&void 0===t.series[e].group&&(t.series[e].group="apexcharts-axis-".concat(n.toString()))}))}))}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter((function(e){return null!==e})):this.w.config.series[e].data.filter((function(e){return null!==e}))).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every((function(e,t,n){return e===n[0]}))}},{key:"getCategoryLabels",value:function(e){var t=this.w,n=e.slice();return t.config.xaxis.convertedCatToNumeric&&(n=e.map((function(e,n){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)}))),n}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map((function(e){return e.length})).indexOf(Math.max.apply(Math,e.globals.series.map((function(e){return e.length}))))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach((function(e){t=Math.max(t,e)})),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach((function(e){t=Math.max(t,e.size)})),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map((function(e,t){var n=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)n+=e[r];else n+=e;return n}))}},{key:"getSeriesTotalsXRange",value:function(e,t){var n=this.w;return n.globals.series.map((function(r,i){for(var o=0,a=0;a<r.length;a++)n.globals.seriesX[i][a]>e&&n.globals.seriesX[i][a]<t&&(o+=r[a]);return o}))}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map((function(t,n){var r=[];if(Array.isArray(t))for(var i=0;i<t.length;i++){var o=e.globals.stackedSeriesTotals[i],a=0;o&&(a=100*t[i]/o),r.push(a)}else{var s=100*t/e.globals.seriesTotals.reduce((function(e,t){return e+t}),0);r.push(s)}return r}))}},{key:"getCalculatedRatios",value:function(){var e,t,n,r=this,i=this.w,o=i.globals,a=[],s=0,l=[],c=.1,u=0;if(o.yRange=[],o.isMultipleYAxis)for(var d=0;d<o.minYArr.length;d++)o.yRange.push(Math.abs(o.minYArr[d]-o.maxYArr[d])),l.push(0);else o.yRange.push(Math.abs(o.minY-o.maxY));o.xRange=Math.abs(o.maxX-o.minX),o.zRange=Math.abs(o.maxZ-o.minZ);for(var h=0;h<o.yRange.length;h++)a.push(o.yRange[h]/o.gridHeight);if(t=o.xRange/o.gridWidth,e=o.yRange/o.gridWidth,n=o.xRange/o.gridHeight,(s=o.zRange/o.gridHeight*16)||(s=1),o.minY!==Number.MIN_VALUE&&0!==Math.abs(o.minY)&&(o.hasNegs=!0),i.globals.seriesYAxisReverseMap.length>0){var f=function(e,t){var n=i.config.yaxis[i.globals.seriesYAxisReverseMap[t]],o=e<0?-1:1;return e=Math.abs(e),n.logarithmic&&(e=r.getBaseLog(n.logBase,e)),-o*e/a[t]};if(o.isMultipleYAxis){l=[];for(var p=0;p<a.length;p++)l.push(f(o.minYArr[p],p))}else(l=[]).push(f(o.minY,0)),o.minY!==Number.MIN_VALUE&&0!==Math.abs(o.minY)&&(c=-o.minY/e,u=o.minX/t)}else(l=[]).push(0),c=0,u=0;return{yRatio:a,invertedYRatio:e,zRatio:s,xRatio:t,invertedXRatio:n,baseLineInvertedY:c,baseLineY:l,base
2LineX:u}}},{key:"getLogSeries",value:function(e){var t=this,n=this.w;return n.globals.seriesLog=e.map((function(e,r){var i=n.globals.seriesYAxisReverseMap[r];return n.config.yaxis[i]&&n.config.yaxis[i].logarithmic?e.map((function(e){return null===e?null:t.getLogVal(n.config.yaxis[i].logBase,e,r)})):e})),n.globals.invalidLogScale?e:n.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,n){if(t<=0)return 0;var r=this.w,i=0===r.globals.minYArr[n]?-1:this.getBaseLog(e,r.globals.minYArr[n]),o=(0===r.globals.maxYArr[n]?0:this.getBaseLog(e,r.globals.maxYArr[n]))-i;return t<1?t/o:(this.getBaseLog(e,t)-i)/o}},{key:"getLogYRatios",value:function(e){var t=this,n=this.w,r=this.w.globals;return r.yLogRatio=e.slice(),r.logYRange=r.yRange.map((function(e,i){var o=n.globals.seriesYAxisReverseMap[i];if(n.config.yaxis[o]&&t.w.config.yaxis[o].logarithmic){var a,s=-Number.MAX_VALUE,l=Number.MIN_VALUE;return r.seriesLog.forEach((function(e,t){e.forEach((function(e){n.config.yaxis[t]&&n.config.yaxis[t].logarithmic&&(s=Math.max(e,s),l=Math.min(e,l))}))})),a=Math.pow(r.yRange[i],Math.abs(l-s)/r.yRange[i]),r.yLogRatio[i]=a/r.gridHeight,a}})),r.invalidLogScale?e.slice():r.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,n,r){var i=this.w,o=[];return e.series.length>0&&t.forEach((function(t){var a=[],s=[];e.i.forEach((function(n,r){i.config.series[n].group===t&&(a.push(e.series[r]),s.push(n))})),a.length>0&&o.push(r.draw(a,n,s))})),o}}],[{key:"checkComboSeries",value:function(e,t){var n=!1,r=0,i=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach((function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||r++,void 0!==e.type&&e.type!==t&&i++})),i>0&&(n=!0),{comboBarCount:r,comboCharts:n}}},{key:"extendArrayProps",value:function(e,t,n){var r,i,o,a,s,l;return null!==(r=t)&&void 0!==r&&r.yaxis&&(t=e.extendYAxis(t,n)),null!==(i=t)&&void 0!==i&&i.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(o=t)&&void 0!==o&&null!==(a=o.annotations)&&void 0!==a&&a.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(l=s.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),T=function(){function e(t){a(this,e),this.w=t.w,this.annoCtx=t}return l(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.w;if("vertical"===e.label.orientation){var r=null!==t?t:0,i=n.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(null!==i){var o=i.getBoundingClientRect();i.setAttribute("x",parseFloat(i.getAttribute("x"))-o.height+4);var a="top"===e.label.position?o.width:-o.width;i.setAttribute("y",parseFloat(i.getAttribute("y"))+a);var s=this.annoCtx.graphics.rotateAroundCenter(i),l=s.x,c=s.y;i.setAttribute("transform","rotate(-90 ".concat(l," ").concat(c,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var n=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var r=n.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=e.getBoundingClientRect(),o=t.label.style.padding,a=o.left,s=o.right,l=o.top,c=o.bottom;if("vertical"===t.label.orientation){var u=[a,s,l,c];l=u[0],c=u[1],a=u[2],s=u[3]}var d=i.left-r.left-a,h=i.top-r.top-l,f=this.annoCtx.graphics.drawRect(d-n.globals.barPadForNumericAxis,h,i.width+a+s,i.height+l+c,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&f.node.classList.add(t.id),f}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,n=function(n,r,i){var o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(r,"']"));if(o){var a=o.parentNode,s=e.addBackgroundToAnno(o,n);s&&(a.insertBefore(s.node,o),n.label.mouseEnter&&s.node.addEventListener("mouseenter",n.label.mouseEnter.bind(e,n)),n.label.mouseLeave&&s.node.addEventListener("mouseleave",n.label.mouseLeave.bind(e,n)),n.label.click&&s.node.addEventListener("click",n.label.click.bind(e,n)))}};t.config.annotations.xaxis.forEach((function(e,t){return n(e,t,"xaxis")})),t.config.annotations.yaxis.forEach((function(e,t){return n(e,t,"yaxis")}
2)),t.config.annotations.points.forEach((function(e,t){return n(e,t,"point")}))}},{key:"getY1Y2",value:function(e,t){var n,r=this.w,i="y1"===e?t.y:t.y2,o=!1;if(this.annoCtx.invertAxis){var a=r.config.xaxis.convertedCatToNumeric?r.globals.categoryLabels:r.globals.labels,s=a.indexOf(i),l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(s+1,")"));n=l?parseFloat(l.getAttribute("y")):(r.globals.gridHeight/a.length-1)*(s+1)-r.globals.barHeight,void 0!==t.seriesIndex&&r.globals.barHeight&&(n-=r.globals.barHeight/2*(r.globals.series.length-1)-r.globals.barHeight*t.seriesIndex)}else{var c,u=r.globals.seriesYAxisMap[t.yAxisIndex][0],d=r.config.yaxis[t.yAxisIndex].logarithmic?new L(this.annoCtx.ctx).getLogVal(r.config.yaxis[t.yAxisIndex].logBase,i,u)/r.globals.yLogRatio[u]:(i-r.globals.minYArr[u])/(r.globals.yRange[u]/r.globals.gridHeight);n=r.globals.gridHeight-Math.min(Math.max(d,0),r.globals.gridHeight),o=d>r.globals.gridHeight||d<0,!t.marker||void 0!==t.y&&null!==t.y||(n=0),null!==(c=r.config.yaxis[t.yAxisIndex])&&void 0!==c&&c.reversed&&(n=d)}return"string"==typeof i&&i.includes("px")&&(n=parseFloat(i)),{yP:n,clipped:o}}},{key:"getX1X2",value:function(e,t){var n=this.w,r="x1"===e?t.x:t.x2,i=this.annoCtx.invertAxis?n.globals.minY:n.globals.minX,o=this.annoCtx.invertAxis?n.globals.maxY:n.globals.maxX,a=this.annoCtx.invertAxis?n.globals.yRange[0]:n.globals.xRange,s=!1,l=this.annoCtx.inversedReversedAxis?(o-r)/(a/n.globals.gridWidth):(r-i)/(a/n.globals.gridWidth);return"category"!==n.config.xaxis.type&&!n.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||n.globals.dataFormatXNumeric||n.config.chart.sparkline.enabled||(l=this.getStringX(r)),"string"==typeof r&&r.includes("px")&&(l=parseFloat(r)),null==r&&t.marker&&(l=n.globals.gridWidth),void 0!==t.seriesIndex&&n.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=n.globals.barWidth/2*(n.globals.series.length-1)-n.globals.barWidth*t.seriesIndex),l>n.globals.gridWidth?(l=n.globals.gridWidth,s=!0):l<0&&(l=0,s=!0),{x:l,clipped:s}}},{key:"getStringX",value:function(e){var t=this.w,n=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(e),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(r+1,")"));return i&&(n=parseFloat(i.getAttribute("x"))),n}}]),e}(),E=function(){function e(t){a(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new T(this.annoCtx)}return l(e,[{key:"addXaxisAnnotation",value:function(e,t,n){var r,i=this.w,o=this.helpers.getX1X2("x1",e),a=o.x,s=o.clipped,l=!0,c=e.label.text,u=e.strokeDashArray;if(C.isNumber(a)){if(null===e.x2||void 0===e.x2){if(!s){var d=this.annoCtx.graphics.drawLine(a+e.offsetX,0+e.offsetY,a+e.offsetX,i.globals.gridHeight+e.offsetY,e.borderColor,u,e.borderWidth);t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}}else{var h=this.helpers.getX1X2("x2",e);if(r=h.x,l=h.clipped,!s||!l){if(r<a){var f=a;a=r,r=f}var p=this.annoCtx.graphics.drawRect(a+e.offsetX,0+e.offsetY,r-a,i.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,u);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(!s||!l){var g=this.annoCtx.graphics.getTextRects(c,parseFloat(e.label.style.fontSize)),m="top"===e.label.position?4:"center"===e.label.position?i.globals.gridHeight/2+("vertical"===e.label.orientation?g.width/2:0):i.globals.gridHeight,v=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:m+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?g.width/2-12:-g.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 ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});v.attr({rel:n}),t.appendChild(v.node),this.annoCtx.helpers.setOrientations(e,n)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map((function(t,r){e.addXaxisAnnotation(t,n.node,r)})),n}}]),e}(),O=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return l(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var n=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(n)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var n=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,i=["\0"].concat(b(n.months)),o=["�"].concat(b(n.shortMonths)),a=["�"].concat(b(n.days)),s=["�"].concat(b(n.shortDays));function l(e,t){var n=e+"";for(t=t||2;n.length<t;)n="0"+n;return n}var c=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var u=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+i[0])).replace(/(^|[^\\])MMM/g,"$1"+
vendor: 2,102 bytes, line 2
2o[0])).replace(/(^|[^\\])MM/g,"$1"+l(u))).replace(/(^|[^\\])M/g,"$1"+u);var d=r?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+a[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var h=r?e.getUTCHours():e.getHours(),f=h>12?h-12:0===h?12:h;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);var p=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var g=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var m=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var v=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+v)).replace(/(^|[^\\])T/g,"$1"+v.charAt(0));var y=v.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var x=-e.getTimezoneOffset(),w=r||!x?"Z":x>0?"+":"-";if(!r){var k=(x=Math.abs(x))%60;w+=l(Math.floor(x/60))+":"+l(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var C=(r?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(a[0],"g"),a[C])).replace(new RegExp(s[0],"g"),s[C])).replace(new RegExp(i[0],"g"),i[u])).replace(new RegExp(o[0],"g"),o[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,n){var r=this.w;void 0!==r.config.xaxis.min&&(e=r.config.xaxis.min),void 0!==r.config.xaxis.max&&(t=r.config.xaxis.max);var i=this.getDate(e),o=this.getDate(t),a=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(o,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(a[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(a[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(a[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(a[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(a[2],10),maxDate:parseInt(s[2],10),minMonth:
2parseInt(a[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(a[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,n){return this.determineDaysOfMonths(e,t)-n}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,n){var r=this.daysCntOfYear[t]+n;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var n=30;switch(e=C.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(n=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:n=31}return n}}]),e}(),M=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return l(e,[{key:"xLabelFormat",value:function(e,t,n,r){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.xaxis.labels.formatter&&void 0===i.config.tooltip.x.formatter){var o=new O(this.ctx);return o.formatDate(o.getDate(t),i.config.tooltip.x.format)}return e(t,n,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map((function(e){return e})):e}},{key:"defaultYFormatter",value:function(e,t,n){var r=this.w;if(C.isNumber(e))if(0!==r.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:r.globals.yValueDecimal);else{var i=e.toFixed(0);e=e==i?i:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(C.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(C.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var n=t.globals.maxX-t.globals.minX;return n>0&&n<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach((function(n,r){void 0!==n.labels.formatter?t.globals.yLabelFormatters[r]=n.labels.formatter:t.globals.yLabelFormatters[r]=function(i){return t.globals.xyCharts?Array.isArray(i)?i.map((function(t){return e.defaultYFormatter(t,n,r)})):e.defaultYFormatter(i,n,r):i}})),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce((function(e,t){return e.length>t.length?e:t}),0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),P=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"getLabel",value:function(e,t,n,r){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,u=void 0===e[r]?"":e[r],d=u,h=c.globals.xLabelFormatter,f=c.config.xaxis.labels.formatter,p=!1,g=new M(this.ctx),m=u;l&&(d=g.xLabelFormat(h,u,m,{i:r,dateFormatter:new O(this.ctx).formatDate,w:c}),void 0!==f&&(d=f(u,e[r],{i:r,dateFormatter:new O(this.ctx).formatDate,w:c}))),t.length>0?(i=t[r].unit,o=null,t.forEach((function(e){"month"===e.unit?o="year":"day"===e.unit?o="month":"hour"===e.unit?o="day":"minute"===e.unit&&(o="hour")})),p=o===i,n=t[r].position,d=t[r].value):"datetime"===c.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var v,y=new A(this.ctx);v=c.globals.rotateXLabels&&l?y.getTextRects(d,parseInt(s,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):y.getTextRects(d,parseInt(s,10));var b=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||a.indexOf(d)>=0&&b)&&(d=""),{x:n,text:d,textRect:v,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,n){var r=this.w,i=r.config.xaxis.tickAmount;return"dataPoints"===i&&(i=Math.round(r.globals.gridWidth/120)),i>n||e%Math.round(n/(i+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,n,r,i){var o=this.w;if(0===e&&o.globals.skipFirstTimelinelabel&&(t.text=""),e===n-1&&o.globals.skipLastTimelinelabel&&(t.text=""),o.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var a=i[i.length-1];t.x<a.textRect.width/(o.globals.rotateXLabels?Math.abs(o.config.xaxis.labels.rotate)/12:1.01)+a.x&&(t.text="")}return t}}
vendor: 5,913 bytes, line 2
2,{key:"checkForReversedLabels",value:function(e,t){var n=this.w;return n.config.yaxis[e]&&n.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some((function(e){return-1===t.collapsedSeriesIndices.indexOf(e)}))}},{key:"translateYAxisIndex",value:function(e){var t=this.w,n=t.globals,r=t.config.yaxis;return n.series.length>r.length||r.some((function(e){return Array.isArray(e.seriesName)}))?e:n.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,n=t.config.yaxis[e];if(!n.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!n.showForNullSeries){var r=t.globals.seriesYAxisMap[e],i=new L(this.ctx);return r.every((function(e){return i.isSeriesNull(e)}))}return!1}},{key:"getYAxisForeColor",value:function(e,t){var n=this.w;return Array.isArray(e)&&n.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,n.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,n,r,i,o,a){var s=this.w,l=new A(this.ctx),c=s.globals.translateY+s.config.yaxis[i].labels.offsetY;if(s.globals.isBarHorizontal?c=0:"heatmap"===s.config.chart.type&&(c+=o/2),r.show&&t>0){!0===s.config.yaxis[i].opposite&&(e+=r.width);for(var u=t;u>=0;u--){var d=l.drawLine(e+n.offsetX-r.width+r.offsetX,c+r.offsetY,e+n.offsetX+r.offsetX,c+r.offsetY,r.color);a.add(d),c+=o}}}}]),e}(),D=function(){function e(t){a(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new T(this.annoCtx),this.axesUtils=new P(this.annoCtx)}return l(e,[{key:"addYaxisAnnotation",value:function(e,t,n){var r,i=this.w,o=e.strokeDashArray,a=this.helpers.getY1Y2("y1",e),s=a.yP,l=a.clipped,c=!0,u=!1,d=e.label.text;if(null===e.y2||void 0===e.y2){if(!l){u=!0;var h=this.annoCtx.graphics.drawLine(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),s+e.offsetY,e.borderColor,o,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{if(r=(a=this.helpers.getY1Y2("y2",e)).yP,c=a.clipped,r>s){var f=s;s=r,r=f}if(!l||!c){u=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),s-r,0,e.fillColor,e.opacity,1,e.borderColor,o);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(u){var g="right"===e.label.position?i.globals.gridWidth:"center"===e.label.position?i.globals.gridWidth/2:0,m=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(null!=r?r:s)+e.label.offsetY-3,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:n}),t.appendChild(m.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach((function(t,r){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,n.node,r)})),n}}]),e}(),N=function(){function e(t){a(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new T(this.annoCtx)}return l(e,[{key:"addPointAnnotation",value:function(e,t,n){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),i=r.x,o=r.clipped,a=(r=this.helpers.getY1Y2("y1",e)).yP,s=r.clipped;if(C.isNumber(i)&&!s&&!o){var l={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},c=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,a+e.marker.offsetY,l);t.appendChild(c.node);var u=e.label.text?e.label.text:"",d=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:a+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,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-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(d.attr({rel:n}),t.appendChild(d.node),e.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});h.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(a+e.customSVG.offsetY,")")}),h.node.innerHTML=e.customSVG.SVG,t.appendChild(h.node)}if(e.image.path){var f=e.image.width?e.image.width:20,p=e.image.height?e.image.height:20;c=this.annoCtx.addImage({x:i+e.image.offsetX-f/2,y:a+e.image.offsetY-p/2,width:f,height:p,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&c.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&c.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&c.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,n=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map((function(t,r){e.addPointAnnotation(t,n.node,r)})),n}}]),e}(),I={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","Frid
2ay","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"}}},F=function(){function e(){a(this,e),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,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}}return l(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[I],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,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}}}},plotOptions:{line:{isSlopeChart:!1},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"}}
vendor: 4,285 bytes, line 2
2,heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return 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:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce((function(e,t){return e+t}),0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{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}}
vendor: 5,226 bytes, line 2
2,noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},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:.4}},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}}}}}]),e}(),R=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.graphics=new A(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new T(this),this.xAxisAnnotations=new E(this),this.yAxisAnnotations=new D(this),this.pointsAnnotations=new N(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return l(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),n=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,o=[t,n,r],a=[n.node,t.node,r.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(o[s]),!i||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&a[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:a[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map((function(t,n){e.addImage(t,n)}))}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map((function(t,n){e.addText(t,n)}))}},{key:"addXaxisAnnotation",value:function(e,t,n){this.xAxisAnnotations.addXaxisAnnotation(e,t,n)}},{key:"addYaxisAnnotation",value:function(e,t,n){this.yAxisAnnotations.addYaxisAnnotation(e,t,n)}},{key:"addPointAnnotation",value:function(e,t,n){this.pointsAnnotations.addPointAnnotation(e,t,n)}},{key:"addText",value:function(e,t){var n=e.x,r=e.y,i=e.text,o=e.textAnchor,a=e.foreColor,s=e.fontSize,l=e.fontFamily,c=e.fontWeight,u=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,g=e.borderColor,m=e.appendTo,v=void 0===m?".apexcharts-svg":m,y=e.paddingLeft,b=void 0===y?4:y,x=e.paddingRight,w=void 0===x?4:x,k=e.paddingBottom,C=void 0===k?2:k,S=e.paddingTop,_=void 0===S?2:S,A=this.w,L=this.graphics.drawText({x:n,y:r,text:i,textAnchor:o||"start",fontSize:s||"12px",fontWeight:c||"regular",fontFamily:l||A.config.chart.fontFamily,foreColor:a||A.config.chart.foreColor,cssClass:u}),T=A.globals.dom.baseEl.querySelector(v);
2T&&T.appendChild(L.node);var E=L.bbox();if(i){var O=this.graphics.drawRect(E.x-b,E.y-_,E.width+b+w,E.height+C+_,p,d||"transparent",1,h,g,f);T.insertBefore(O.node,L.node)}}},{key:"addImage",value:function(e,t){var n=this.w,r=e.path,i=e.x,o=void 0===i?0:i,a=e.y,s=void 0===a?0:a,l=e.width,c=void 0===l?20:l,u=e.height,d=void 0===u?20:u,h=e.appendTo,f=void 0===h?".apexcharts-svg":h,p=n.globals.dom.Paper.image(r);p.size(c,d).move(o,s);var g=n.globals.dom.baseEl.querySelector(f);return g&&g.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"xaxis",contextMethod:n.addXaxisAnnotation}),n}},{key:"addYaxisAnnotationExternal",value:function(e,t,n){return this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"yaxis",contextMethod:n.addYaxisAnnotation}),n}},{key:"addPointAnnotationExternal",value:function(e,t,n){return void 0===this.invertAxis&&(this.invertAxis=n.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:n,type:"point",contextMethod:n.addPointAnnotation}),n}},{key:"addAnnotationExternal",value:function(e){var t=e.params,n=e.pushToMemory,r=e.context,i=e.type,o=e.contextMethod,a=r,s=a.w,l=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),c=l.childNodes.length+1,u=new F,d=Object.assign({},"xaxis"===i?u.xAxisAnnotation:"yaxis"===i?u.yAxisAnnotation:u.pointAnnotation),h=C.extend(d,t);switch(i){case"xaxis":this.addXaxisAnnotation(h,l,c);break;case"yaxis":this.addYaxisAnnotation(h,l,c);break;case"point":this.addPointAnnotation(h,l,c)}var f=s.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(f,h);return p&&l.insertBefore(p.node,f),n&&s.globals.memory.methodsToExec.push({context:a,id:h.id?h.id:C.randomId(),method:o,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){for(var t=e.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),r=t.globals.memory.methodsToExec.length-1;r>=0;r--)"addText"!==t.globals.memory.methodsToExec[r].label&&"addAnnotation"!==t.globals.memory.methodsToExec[r].label||t.globals.memory.methodsToExec.splice(r,1);n=C.listToArray(n),Array.prototype.forEach.call(n,(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}))}},{key:"removeAnnotation",value:function(e,t){var n=e.w,r=n.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(n.globals.memory.methodsToExec.map((function(e,r){e.id===t&&n.globals.memory.methodsToExec.splice(r,1)})),Array.prototype.forEach.call(r,(function(e){e.parentElement.removeChild(e)})))}}]),e}(),z=function(e){var t,n=e.isTimeline,r=e.ctx,i=e.seriesIndex,o=e.dataPointIndex,a=e.y1,s=e.y2,l=e.w,c=l.globals.seriesRangeStart[i][o],u=l.globals.seriesRangeEnd[i][o],d=l.globals.labels[o],h=l.config.series[i].name?l.config.series[i].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:i,dataPointIndex:o,start:c,end:u};"function"==typeof p&&(h=p(h,g)),null!==(t=l.config.series[i].data[o])&&void 0!==t&&t.x&&(d=l.config.series[i].data[o].x),n||"datetime"===l.config.xaxis.type&&(d=new M(r).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new O(r).formatDate,w:l})),"function"==typeof f&&(d=f(d,g)),Number.isFinite(a)&&Number.isFinite(s)&&(c=a,u=s);var m="",v="",y=l.globals.colors[i];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var b=new O(r);m=b.formatDate(b.getDate(c),l.config.tooltip.x.format),v=b.formatDate(b.getDate(u),l.config.tooltip.x.format)}else m=c,v=u;else m=l.config.tooltip.x.formatter(c),v=l.config.tooltip.x.formatter(u);return{start:c,end:u,startVal:m,endVal:v,ylabel:d,color:y,seriesName:h}},H=function(e){var t=e.color,n=e.seriesName,r=e.ylabel,i=e.start,o=e.end,a=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(a);i=l.yLbFormatter(i),o=l.yLbFormatter(o);var c=l.yLbFormatter(e.w.globals.series[a][s]),u='<span class="value start-value">\n  '.concat(i,'\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ').concat(o,"\n  </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(n||"")+'</span></div><div> <span class="category">'+r+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[a].type||"rangeBar"===e.w.config.series[a].type?u:"<span>
2".concat(c,"</span>"):u)+" </div></div>"},Y=function(){function e(t){a(this,e),this.opts=t}return l(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),C.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var n=t.w.config.series[t.seriesIndex].name;return null!==e?n+": "+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"}}}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),m(m({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var n=t.seriesIndex,r=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,n,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var n=t.seriesIndex,r=t.dataPointIndex,i=t.w,o=function(){var e=i.globals.seriesRangeStart[n][r];return i.globals.seriesRangeEnd[n][r]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[n].type||"rangeArea"===i.config.series[n].type?o():e:o()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=z(m(m({},e),{},{isTimeline:!0})),n=t.color,r=t.seriesName,i=t.ylabel,o=t.startVal,a=t.endVal;return H(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:a}))}(e):function(e){var t=z(e),n=t.color,r=t.seriesName,i=t.ylabel,o=t.start,a=t.end;return H(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:a}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,n;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(n=e.plotOptions.bar)&&void 0!==n&&n.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=z(e),n=t.color,r=t.seriesName,i=t.ylabel,o=t.start,a=t.end;return H(m(m({},e),{},{color:n,seriesName:r,ylabel:i,start:o,end:a}))}(e)}}}}},{key:"brush",value:function(e){return C.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return m(m({},e),{},{plotOptions:m(m({},e.plotOptions),{},{bar:m(m({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}}
2,{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,n){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return C.isNumber(e)?Math.floor(e):e};var r=e.xaxis.labels.formatter,i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return n&&n.length&&(i=n.map((function(e){return Array.isArray(e)?e:String(e)}))),i&&i.length&&(e.xaxis.labels.formatter=function(e){return C.isNumber(e)?r(i[Math.floor(e)-1]):r(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{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}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size: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:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,n,r,i){var o=e.globals.seriesCandleO[t][n],a=e.globals.seriesCandleH[t][n],s=e.globals.seriesCandleM[t][n],l=e.globals.seriesCandleL[t][n],c=e.globals.seriesCandleC[t][n];return e.config.series[t].type&&e.config.series[t].type!==i?'<div class="apexcharts-custom-tooltip">\n          '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][n],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+o+"</span></div>"+"<div>".concat(r[1],': <span class="value">')+a+"</span></div>"+(s?"<div>".concat(r[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(r[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(r[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),B=function(){function e(t){a(this,e),this.opts=t}return l(e,[{key:"init",value:function(e){var t=e.responsiveOverride,n=this.opts,r=new F,i=new Y(n);this.chartType=n.chart.type,n=this.extendYAxis(n),n=this.extendAnnotations(n);var o=r.init(),a={};if(n&&"object"===w(n)){var s,l,c,u,d,h,f,p,g,m,v={};v=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(n.chart.type)?i[n.chart.type]():i.line(),null!==(s=n.plotOptions)&&void 0!==s&&null!==(l=s.bar)&&void 0!==l&&l.isFunnel&&(v=i.funnel()),n.chart.stacked&&"bar"===n.chart.type&&(v=i.stackedBars()),null!==(c=n.chart.brush)&&void 0!==c&&c.enabled&&(v=i.brush(v)),null!==(u=n.plotOptions)&&void 0!==u&&null!==(d=u.line)&&void 0!==d&&d.isSlopeChart&&(v=i.slope()),n.chart.stacked&&"100%"===n.chart.stackType&&(n=i.stacked100(n)),null!==(h=n.plotOptions)&&void 0!==h&&null!==(f=h.bar)&&void 0!==f&&f.isDumbbell&&(n=i.dumbbell(n)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(n),n.xaxis=n.xaxis||window.Apex.xaxis||{},t||(n.xaxis.convertedCatToNumeric=!1),(null!==(p=(n=this.checkForCatToNumericXAxis(this.chartType,v,n)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(g=window.Apex.chart)&&void 0!==g&&null!==(m=g.sparkline)&&void 0!==m&&m.enabled)&&(v=i.sparkline(v)),a=C.extend(o,v)}var y=C.extend(a,window.Apex);return o=C.extend(y,n),this.handleUserInputErrors(o)}},{key:"checkForCatToNumericXAxis",value:function(e,t,n){var r,i,o=new Y(n),a=("bar"===e||"boxPlot"===e)&&(null===(r=n.plotOptions)||void 0===r||null===(i=r.bar)||void 0===i?void 0:i.horizontal),s="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==n.xaxis.type&&"numeric"!==n.xaxis.type,c=n.xaxis.tickPlacement?n.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return a||s||!l||"between"===c||(n=o.convertCatToNumeric(n)),n}},{key:"extendYAxis",value:function(e,t){var n=new F;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=C.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[C.extend(n.yAxis,e.yaxis)]:e.yaxis=C.extendArray(e.yaxis,n.yAxis);var r=!1;e.yaxis.forEach((function(e){e.logarithmic&&(r=!0)}));var i=e.series;return t&&!i&&(i=t.config.series),r&&i.length!==e.yaxis.length&&i.length&&(e.yaxis=i.map((function(t,r){if(t.name||(i[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=i[r].name,e.yaxis[r];var o=C.extend(n.yAxis,e.yaxis[0]);return o.show=!1,o}))),r&&i.length>1&&i.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new F;return e.annotations.yaxis=C.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new F;return e.annotations.xaxis=C.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new F;return e.annotations.points=C.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),W=function(){function e(){a(this,e)}return l(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvi
2ded=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[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],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=C.extend({},e),t.initialSeries=C.clone(e.series),t.lastXAxis=C.clone(t.initialConfig.xaxis),t.lastYAxis=C.clone(t.initialConfig.yaxis),t}}]),e}(),X=function(){function e(t){a(this,e),this.opts=t}return l(e,[{key:"init",value:function(){var e=new B(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new W).init(e)}}}]),e}(),$=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return l(e,[{key:"clippedImgArea",value:function(e){var t=this.w,n=t.config,r=parseInt(t.globals.gridWidth,10),i=parseInt(t.globals.gridHeight,10),o=r>i?r:i,a=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==n.fill.image.width&&void 0!==n.fill.image.height?(s=n.fill.image.width+1,l=n.fill.image.height):(s=o+1,l=o):(s=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");A.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var u=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(u),u.setAttributeNS(window.SVG.xlink,"href",a),A.setAttrs(u,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),u.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,n=t.config.chart.type;return("bar"===n||"rangeBar"===n)&&t.config.plotOptions.bar.distributed||"heatmap"===n||"treemap"===n?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var n,r,i,o=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var a=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(a=t.globals.seriesColors[this.seriesIndex]),"function"==typeof a&&(a=a({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;e.color&&(a=e.color),a||(a="#fff",console.warn("undefined color - ApexCharts"));var c=a;if(-1===a.indexOf("rgb")?a.length<9&&(c=C.hexToRgba(a,l)):a.indexOf("rgba")>-1&&(l=C.getOpacityFromRGBA(a)),e.opacity&&(l=e.opacity),"pattern"===s&&(r=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:r,fillColor:a,fillOpacity:l,defaultColor:c})),"gradient"===s&&(i=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:a,fillOpacity:l,i:this.seriesIndex})),"image"===s){var u=o.fill.image.src,d=e.patternID?e.patternID:"",h="pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d);-1===this.patternIDs.indexOf(h)&&(this.clippedImgArea({opacity:l,image:Array.isArray(u)?e.seriesNumber<u.length?u[e.seriesNumber]:u[0]:u,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:h}),this.patternIDs.push(h)),n="url(#".concat(h,")")}else n="gradient"===s?i:"pattern"===s?r:c;return e.solid&&(n=c),n}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,n=this.opts,r=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),void 0!==n.fillColors&&(r=[],Array.isArray(n.fillColors)?r=n.fillColors.slice():r.push(n.fillColors)),r}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,n=(e.patternFill,e.fillColor),r=e.fillOpacity,i=e.defaultColor,o=this.w.config.fill;t&&(o=t);var a=this.opts,s=new A(this.ctx),l=Array.isArray(o.pattern.strokeWidth)?o.pattern.strokeWidth[this.seriesIndex]:o.pattern.strokeWidth,c=n;return Array.isArray(o.pattern.style)?void 0!==o.pattern.style[a.seriesNumber]?s.drawPattern(o.pattern.style[a.seriesNumber],o.pattern.width,o.pattern.height,c,l,r):i:s.drawPattern(o.pattern.style,o.pattern.width,o.pattern.height,c,l,r)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,n=e.fillOpacity,r=e.fillConfig,i=e.i,o=this.w.config.fill;r&&(o=m(m({},o),r));var a,s=this.opts,l=new A(this.ctx),c=new C,u=o.gradient.type,d=t,h=void 0===o.gradient.opacityFrom?n:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[i]:o.gradient.opacityFrom;d.indexOf("rgba")>-1&&(h=C.getOpacityFromRGBA(d));var f=void 0===o.gradient.opacityTo?n:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[i]:o.gradient.opacityTo;
2if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)a="dark"===o.gradient.shade?c.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?C.rgb2hex(t):t):c.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?C.rgb2hex(t):t);else if(o.gradient.gradientToColors[s.seriesNumber]){var p=o.gradient.gradientToColors[s.seriesNumber];a=p,p.indexOf("rgba")>-1&&(f=C.getOpacityFromRGBA(p))}else a=t;if(o.gradient.gradientFrom&&(d=o.gradient.gradientFrom),o.gradient.gradientTo&&(a=o.gradient.gradientTo),o.gradient.inverseColors){var g=d;d=a,a=g}return d.indexOf("rgb")>-1&&(d=C.rgb2hex(d)),a.indexOf("rgb")>-1&&(a=C.rgb2hex(a)),l.drawGradient(u,d,a,h,f,s.size,o.gradient.stops,o.gradient.colorStops,i)}}]),e}(),G=function(){function e(t,n){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map((function(t){return e.config.markers.size}))}},{key:"plotChartMarkers",value:function(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=this.w,s=t,l=e,c=null,u=new A(this.ctx),d=a.config.markers.discrete&&a.config.markers.discrete.length;if((a.globals.markers.size[t]>0||o||d)&&(c=u.group({class:o||d?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(a.globals.cuid,")")),Array.isArray(l.x))for(var h=0;h<l.x.length;h++){var f=n;1===n&&0===h&&(f=0),1===n&&1===h&&(f=1);var p="apexcharts-marker";if("line"!==a.config.chart.type&&"area"!==a.config.chart.type||a.globals.comboCharts||a.config.tooltip.intersect||(p+=" no-pointer-events"),(Array.isArray(a.config.markers.size)?a.globals.markers.size[t]>0:a.config.markers.size>0)||o||d){C.isNumber(l.y[h])?p+=" w".concat(C.randomId()):p="apexcharts-nullpoint";var g=this.getMarkerConfig({cssClass:p,seriesIndex:t,dataPointIndex:f});a.config.series[s].data[f]&&(a.config.series[s].data[f].fillColor&&(g.pointFillColor=a.config.series[s].data[f].fillColor),a.config.series[s].data[f].strokeColor&&(g.pointStrokeColor=a.config.series[s].data[f].strokeColor)),void 0!==r&&(g.pSize=r),(l.x[h]<-a.globals.markers.largestSize||l.x[h]>a.globals.gridWidth+a.globals.markers.largestSize||l.y[h]<-a.globals.markers.largestSize||l.y[h]>a.globals.gridHeight+a.globals.markers.largestSize)&&(g.pSize=0),(i=u.drawMarker(l.x[h],l.y[h],g)).attr("rel",f),i.attr("j",f),i.attr("index",t),i.node.setAttribute("default-marker-size",g.pSize),new _(this.ctx).setSelectionFilter(i,t,f),this.addEvents(i),c&&c.add(i)}else void 0===a.globals.pointsArray[t]&&(a.globals.pointsArray[t]=[]),a.globals.pointsArray[t].push([l.x[h],l.y[h]])}return c}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,n=e.seriesIndex,r=e.dataPointIndex,i=void 0===r?null:r,o=e.radius,a=void 0===o?null:o,s=e.size,l=void 0===s?null:s,c=e.strokeWidth,u=void 0===c?null:c,d=this.w,h=this.getMarkerStyle(n),f=null===l?d.globals.markers.size[n]:l,p=d.config.markers;return null!==i&&p.discrete.length&&p.discrete.map((function(e){e.seriesIndex===n&&e.dataPointIndex===i&&(h.pointStrokeColor=e.strokeColor,h.pointFillColor=e.fillColor,f=e.size,h.pointShape=e.shape)})),{pSize:null===a?f:a,pRadius:null!==a?a:p.radius,pointStrokeWidth:null!==u?u:Array.isArray(p.strokeWidth)?p.strokeWidth[n]:p.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(p.shape)?p.shape[n]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[n]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[n]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[n]:p.fillOpacity,seriesIndex:n}}},{key:"addEvents",value:function(e){var t=this.w,n=new A(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",n.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,n=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(n)?n[e]:n}}}]),e}(),V=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return l(e,[{key:"draw",value:function(e,t,n){var r=this.w,i=new A(this.ctx),o=n.realIndex,a=n.pointsPos,s=n.zRatio,l=n.elParent,c=i.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(a.x))for(var u=0;u<a.x.length;u++){var d=t+1,h=!0;0===t&&0===u&&(d=0),0===t&&1===u&&(d=1);var f=r.globals.markers.size[o];if(s!==1/0){var p=r.config.plotOptions.bubble;f=r.globals.seriesZ[o][d],p.zScaling&&(f/=s),p.minBubbleRadius&&f<p.minBubbleRadius&&(f=p.minBubbleRadius),p.maxBubbleRadius&&f>p.maxBubbleRadius&&(f=p.maxBubbleRadius)}var g=a.x[u],m=a.y[u];if(f=f||0,null!==m&&void 0!==r.globals.series[o][d]||(h=!1),h){var v=this.drawPoint(g,m,f,o,d,t);c.add(v)}l.add(c)}}},{key:"drawPoint",value:function(e,t,n,r,i,o){var a=this.w,s=r,l=ne
2w S(this.ctx),c=new _(this.ctx),u=new $(this.ctx),d=new G(this.ctx),h=new A(this.ctx),f=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:s,dataPointIndex:i,radius:"bubble"===a.config.chart.type||a.globals.comboCharts&&a.config.series[r]&&"bubble"===a.config.series[r].type?n:null}),p=u.fillPath({seriesNumber:r,dataPointIndex:i,color:f.pointFillColor,patternUnits:"objectBoundingBox",value:a.globals.series[r][o]}),g=h.drawMarker(e,t,f);if(a.config.series[s].data[i]&&a.config.series[s].data[i].fillColor&&(p=a.config.series[s].data[i].fillColor),g.attr({fill:p}),a.config.chart.dropShadow.enabled){var m=a.config.chart.dropShadow;c.dropShadow(g,m,r)}if(!this.initialAnim||a.globals.dataChanged||a.globals.resized)a.globals.animationEnded=!0;else{var v=a.config.chart.animations.speed;l.animateMarker(g,v,a.globals.easing,(function(){window.setTimeout((function(){l.animationCompleted(g)}),100)}))}return g.attr({rel:i,j:i,index:r,"default-marker-size":f.pSize}),c.setSelectionFilter(g,r,i),d.addEvents(g),g.node.classList.add("apexcharts-marker"),g}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),U=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"dataLabelsCorrection",value:function(e,t,n,r,i,o,a){var s=this.w,l=!1,c=new A(this.ctx).getTextRects(n,a),u=c.width,d=c.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[r]&&(s.globals.dataLabelsRects[r]=[]),s.globals.dataLabelsRects[r].push({x:e,y:t,width:u,height:d});var h=s.globals.dataLabelsRects[r].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[r]?s.globals.lastDrawnDataLabelsIndexes[r][s.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(void 0!==s.globals.dataLabelsRects[r][h]){var p=s.globals.dataLabelsRects[r][f];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+u<p.x)&&(l=!0)}return(0===i||o)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,n=e.type,r=e.pos,i=e.i,o=e.j,a=e.isRangeStart,s=e.strokeWidth,l=void 0===s?2:s,c=this.w,u=new A(this.ctx),d=c.config.dataLabels,h=0,f=0,p=o,g=null;if(-1!==c.globals.collapsedSeriesIndices.indexOf(i)||!d.enabled||!Array.isArray(r.x))return g;g=u.group({class:"apexcharts-data-labels"});for(var m=0;m<r.x.length;m++)if(h=r.x[m]+d.offsetX,f=r.y[m]+d.offsetY+l,!isNaN(h)){1===o&&0===m&&(p=0),1===o&&1===m&&(p=1);var v=c.globals.series[i][p];"rangeArea"===n&&(v=a?c.globals.seriesRangeStart[i][p]:c.globals.seriesRangeEnd[i][p]);var y="",b=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:i,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(y=b(v=c.globals.seriesZ[i][p]),f=r.y[m],f=new V(this.ctx).centerTextInBubble(f,i,p).y):void 0!==v&&(y=b(v));var x=c.config.dataLabels.textAnchor;c.globals.isSlopeChart&&(x=0===p?"end":p===c.config.series[i].data.length-1?"start":"middle"),this.plotDataLabelsText({x:h,y:f,text:y,i,j:p,parent:g,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels,textAnchor:x})}return g}},{key:"plotDataLabelsText",value:function(e){var t=this.w,n=new A(this.ctx),r=e.x,i=e.y,o=e.i,a=e.j,s=e.text,l=e.textAnchor,c=e.fontSize,u=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection,g=e.className,m=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(o)<0)return m;var v={x:r,y:i,drawnextLabel:!0,textRects:null};p&&(v=this.dataLabelsCorrection(r,i,s,o,a,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(r=v.x,i=v.y),v.textRects&&(r<-20-v.textRects.width||r>t.globals.gridWidth+v.textRects.width+30)&&(s="");var y=t.globals.dataLabels.style.colors[o];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(y=t.globals.dataLabels.style.colors[a]),"function"==typeof y&&(y=y({series:t.globals.series,seriesIndex:o,dataPointIndex:a,w:t})),h&&(y=h);var b=d.offsetX,x=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(b=0,x=0),t.globals.isSlopeChart&&(0!==a&&(b=-2*d.offsetX+5),0!==a&&a!==t.config.series[o].data.length-1&&(b=0)),v.drawnextLabel){if((m=n.drawText({width:100,height:parseInt(d.style.fontSize,10),x:r+b,y:i+x,foreColor:y,textAnchor:l||d.textAnchor,text:s,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:g||"apexcharts-datalabel",cx:r,cy:i}),d.dropShadow.enabled){var w=d.dropShadow;new _(this.ctx).dropShadow(m,w)}u.add(m),void 0===t.globals.lastDrawnDataLabelsIndexes[o]&&(t.globals.lastDrawnDataLabelsIndexes[o]=[]),t.globals.lastDrawnDataLabelsIndexes[o].push(a)}return m}}
vendor: 4,777 bytes, line 2
2,{key:"addBackgroundToDataLabel",value:function(e,t){var n=this.w,r=n.config.dataLabels.background,i=r.padding,o=r.padding/2,a=t.width,s=t.height,l=new A(this.ctx).drawRect(t.x-i,t.y-o/2,a+2*i,s+o,r.borderRadius,"transparent"!==n.config.chart.background&&n.config.chart.background?n.config.chart.background:"#fff",r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new _(this.ctx).dropShadow(l,r.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),n=0;n<t.length;n++){var r=t[n],i=r.getBBox(),o=null;if(i.width&&i.height&&(o=this.addBackgroundToDataLabel(r,i)),o){r.parentNode.insertBefore(o.node,r);var a=r.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?o.attr({fill:a}):o.animate().attr({fill:a}),r.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),n=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),r=0;r<t.length;r++)n&&n.insertBefore(t[r],n.nextSibling)}}]),e}(),q=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return l(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(C.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),n=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:n}}},{key:"addCollapsedClassToSeries",value:function(e,t){var n=this.w;function r(n){for(var r=0;r<n.length;r++)n[r].index===t&&e.node.classList.add("apexcharts-series-collapsed")}r(n.globals.collapsedSeries),r(n.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w,i=C.clone(r.globals.initialSeries);r.globals.previousPaths=[],n?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i),r.config.series=i,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,n=0;n<e.length;n++)t.globals.collapsedSeriesIndices.indexOf(n)>-1&&(e[n].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,n=this.getSeriesByName(e),r=parseInt(null==n?void 0:n.getAttribute("data:realIndex"),10),i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),o=null,a=null,s=null;if(t.globals.axisCharts||"radialBar"===t.config.chart.type)if(t.globals.axisCharts){o=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),a=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"));var l=t.globals.seriesYAxisReverseMap[r];s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else o=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']"));else o=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var c=0;c<i.length;c++)i[c].classList.add(this.legendInactiveClass);if(o)t.globals.axisCharts||o.parentNode.classList.remove(this.legendInactiveClass),o.classList.remove(this.legendInactiveClass),null!==a&&a.classList.remove(this.legendInactiveClass),null!==s&&s.classList.remove(this.legendInactiveClass);else for(var u=0;u<i.length;u++)i[u].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var n=this.w;t||(t=e.target);var r=n.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");
2if("mousemove"===e.type){var i=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(n.globals.seriesNames[i])}else if("mouseout"===e.type)for(var o=0;o<r.length;o++)r[o].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var n=this,r=this.w,i=r.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),o=function(e){for(var t=0;t<i.length;t++)i[t].classList[e](n.legendInactiveClass)};if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1;o("add");var s=r.config.plotOptions.heatmap.colorScale.ranges;!function(e,t){for(var r=0;r<i.length;r++){var o=Number(i[r].getAttribute("val"));o>=e.from&&(o<e.to||e.to===t&&o===t)&&i[r].classList.remove(n.legendInactiveClass)}}(s[a],s.reduce((function(e,t){return Math.max(e,t.to)}),0))}else"mouseout"===e.type&&o("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.w,r=0;if(n.config.series.length>1)for(var i=n.config.series.map((function(e,r){return e.data&&e.data.length>0&&-1===n.globals.collapsedSeriesIndices.indexOf(r)&&(!n.globals.comboCharts||0===t.length||t.length&&t.indexOf(n.config.series[r].type)>-1)?r:-1})),o="asc"===e?0:i.length-1;"asc"===e?o<i.length:o>=0;"asc"===e?o++:o--)if(-1!==i[o]){r=i[o];break}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map((function(e,t){return"bar"===e.type||"column"===e.type?t:-1})).filter((function(e){return-1!==e})):this.w.config.series.map((function(e,t){return t}))}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,n,r){for(var i=t[n].childNodes,o={type:r,paths:[],realIndex:t[n].getAttribute("data:realIndex")},a=0;a<i.length;a++)if(i[a].hasAttribute("pathTo")){var s=i[a].getAttribute("pathTo");o.paths.push({d:s})}e.globals.previousPaths.push(o)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach((function(n){for(var r,i=(r=n,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(r,"-series .apexcharts-series"))),o=0;o<i.length;o++)t(i,o,n)})),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(n.length>0)for(var r=function(t){for(var n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],i=function(e){var t=function(t){return n[e].getAttribute(t)},i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:i,color:n[e].getAttribute("color")})},o=0;o<n.length;o++)i(o);e.globals.previousPaths.push(r)},i=0;i<n.length;i++)r(i);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(n.length>0)for(var r=0;r<n.length;r++){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(r,"'] circle")),o=[],a=0;a<i.length;a++)o.push({x:i[a].getAttribute("cx"),y:i[a].getAttribute("cy"),r:i[a].getAttribute("r")});t.globals.previousPaths.push(o)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,n=new A(this.ctx),r=e.globals.svgWidth/2,i=e.globals.svgHeight/2,o="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(r=10,o="start"):"right"===t.align&&(r=e.globals.svgWidth-10,o="end"),"top"===t.verticalAlign?i=50:"bottom"===t.verticalAlign&&(i=e.globals.svgHeight-50),r+=t.offsetX,i=i+p
2arseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var a=n.drawText({x:r,y:i,text:t.text,textAnchor:o,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(a)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,n=0;n<e.length;n++)if(0===e[n].length)for(var r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[n].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,n=this.filteredSeriesX(),r=0;r<n.length-1;r++)if(n[r][0]!==n[r+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map((function(e){return e.length>0?e:[]}))}}]),e}(),Z=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new L(this.ctx)}return l(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new q(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new q(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var n=this.w.config,r=this.w.globals,i="boxPlot"===n.chart.type||"boxPlot"===n.series[t].type,o=0;o<e[t].data.length;o++)if(void 0!==e[t].data[o][1]&&(Array.isArray(e[t].data[o][1])&&4===e[t].data[o][1].length&&!i?this.twoDSeries.push(C.parseNumber(e[t].data[o][1][3])):e[t].data[o].length>=5?this.twoDSeries.push(C.parseNumber(e[t].data[o][4])):this.twoDSeries.push(C.parseNumber(e[t].data[o][1])),r.dataFormatXNumeric=!0),"datetime"===n.xaxis.type){var a=new Date(e[t].data[o][0]);a=new Date(a).getTime(),this.twoDSeriesX.push(a)}else this.twoDSeriesX.push(e[t].data[o][0]);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s][2]&&(this.threeDSeries.push(e[t].data[s][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var n=this.w.config,r=this.w.globals,i=new O(this.ctx),o=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);for(var a=0;a<e[t].data.length;a++)void 0!==e[t].data[a].y&&(Array.isArray(e[t].data[a].y)?this.twoDSeries.push(C.parseNumber(e[t].data[a].y[e[t].data[a].y.length-1])):this.twoDSeries.push(C.parseNumber(e[t].data[a].y))),void 0!==e[t].data[a].goals&&Array.isArray(e[t].data[a].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[a].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var s=0;s<e[o].data.length;s++){var l="string"==typeof e[o].data[s].x,c=Array.isArray(e[o].data[s].x),u=!c&&!!i.isValidDate(e[o].data[s].x);if(l||u)if(l||n.xaxis.convertedCatToNumeric){var d=r.isBarHorizontal&&r.isRangeData;"datetime"!==n.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[s].x),isNaN(e[o].data[s].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[o].data[s].x||(r.isXNumeric=!0)):this.twoDSeriesX.push(i.parseDate(e[o].data[s].x))}else"datetime"===n.xaxis.type?this.twoDSeriesX.push(i.parseDate(e[o].data[s].x.toString())):(r.dataFormatXNumeric=!0,r.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[o].data[s].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[o].data[s].x)):(r.isXNumeric=!0,r.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[o].data[s].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);r.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),n.seriesRangeStart.push(void 0===r.start?[]:r.start),n.seriesRangeEnd.push(void 0===r.end?[]:r.end
2),n.seriesRange.push(r.rangeUniques),n.seriesRange.forEach((function(e,t){e&&e.forEach((function(e,t){e.y.forEach((function(t,n){for(var r=0;r<e.y.length;r++)if(n!==r){var i=t.y1,o=t.y2,a=e.y[r].y1;i<=e.y[r].y2&&a<=o&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[r].rangeName)<0&&e.overlaps.push(e.y[r].rangeName))}}))}))})),r}},{key:"handleCandleStickBoxData",value:function(e,t){var n=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),n.seriesCandleO[t]=r.o,n.seriesCandleH[t]=r.h,n.seriesCandleM[t]=r.m,n.seriesCandleL[t]=r.l,n.seriesCandleC[t]=r.c,r}},{key:"handleRangeDataFormat",value:function(e,t,n){var r=[],i=[],o=t[n].data.filter((function(e,t,n){return t===n.findIndex((function(t){return t.x===e.x}))})).map((function(e,t){return{x:e.x,overlaps:[],y:[]}}));if("array"===e)for(var a=0;a<t[n].data.length;a++)Array.isArray(t[n].data[a])?(r.push(t[n].data[a][1][0]),i.push(t[n].data[a][1][1])):(r.push(t[n].data[a]),i.push(t[n].data[a]));else if("xy"===e)for(var s=function(e){var a=Array.isArray(t[n].data[e].y),s=C.randomId(),l=t[n].data[e].x,c={y1:a?t[n].data[e].y[0]:t[n].data[e].y,y2:a?t[n].data[e].y[1]:t[n].data[e].y,rangeName:s};t[n].data[e].rangeName=s;var u=o.findIndex((function(e){return e.x===l}));o[u].y.push(c),r.push(c.y1),i.push(c.y2)},l=0;l<t[n].data.length;l++)s(l);return{start:r,end:i,rangeUniques:o}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,n){var r=this.w,i="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[n].type,o=[],a=[],s=[],l=[],c=[];if("array"===e)if(i&&6===t[n].data[0].length||!i&&5===t[n].data[0].length)for(var u=0;u<t[n].data.length;u++)o.push(t[n].data[u][1]),a.push(t[n].data[u][2]),i?(s.push(t[n].data[u][3]),l.push(t[n].data[u][4]),c.push(t[n].data[u][5])):(l.push(t[n].data[u][3]),c.push(t[n].data[u][4]));else for(var d=0;d<t[n].data.length;d++)Array.isArray(t[n].data[d][1])&&(o.push(t[n].data[d][1][0]),a.push(t[n].data[d][1][1]),i?(s.push(t[n].data[d][1][2]),l.push(t[n].data[d][1][3]),c.push(t[n].data[d][1][4])):(l.push(t[n].data[d][1][2]),c.push(t[n].data[d][1][3])));else if("xy"===e)for(var h=0;h<t[n].data.length;h++)Array.isArray(t[n].data[h].y)&&(o.push(t[n].data[h].y[0]),a.push(t[n].data[h].y[1]),i?(s.push(t[n].data[h].y[2]),l.push(t[n].data[h].y[3]),c.push(t[n].data[h].y[4])):(l.push(t[n].data[h].y[2]),c.push(t[n].data[h].y[3])));return{o,h:a,m:s,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,i=this.w.globals,o=new O(n),a=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();i.isRangeBar="rangeBar"===r.chart.type&&i.isBarHorizontal,i.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,i.hasXaxisGroups&&(i.groups=r.xaxis.group.groups),e.forEach((function(e,t){void 0!==e.name?i.seriesNames.push(e.name):i.seriesNames.push("series-"+parseInt(t+1,10))})),this.coreUtils.setSeriesYAxisMappings();var s=[],l=b(new Set(r.series.map((function(e){return e.group}))));r.series.forEach((function(e,t){var n=l.indexOf(e.group);s[n]||(s[n]=[]),s[n].push(i.seriesNames[t])})),i.seriesGroups=s;for(var c=function(){for(var e=0;e<a.length;e++)if("string"==typeof a[e]){if(!o.isValidDate(a[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(o.parseDate(a[e]))}else t.twoDSeriesX.push(a[e])},u=0;u<e.length;u++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[u].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type&&"rangeBar"!==e[u].type&&"rangeArea"!==e[u].type||(i.isRangeData=!0,"rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type||this.handleRangeData(e,u)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,u):this.isFormatXY()&&this.handleFormatXY(e,u),"candlestick"!==r.chart.type&&"candlestick"!==e[u].type&&"boxPlot"!==r.chart.type&&"boxPlot"!==e[u].type||this.handleCandleStickBoxData(e,u),i.series.push(this.twoDSeries),i.labels.push(this.twoDSeriesX),i.seriesX.push(this.twoDSeriesX),i.seriesGoals=this.seriesGoals,u!==this.activeSeriesIndex||this.fallbackToCategory||(i.isXNumeric=!0);else{"datetime"===r.xaxis.type?(i.isXNumeric=!0,c(),i.seriesX.push(this.twoDSeriesX)):"numeric"===r.xaxis.type&&(i.isXNumeric=!0,a.length>0&&(this.twoDSeriesX=a,i.seriesX.push(this.twoDSeriesX))),i.labels.push(this.twoDSeriesX);var d=e[u].data.map((function(e){return C.parseNumber(e)}));i.series.push(d)}
vendor: 6,108 bytes, line 2
2i.seriesZ.push(this.threeDSeries),void 0!==e[u].color?i.seriesColors.push(e[u].color):i.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,n=this.w.config;t.series=e.slice(),t.seriesNames=n.labels.slice();for(var r=0;r<t.series.length;r++)void 0===t.seriesNames[r]&&t.seriesNames.push("series-"+(r+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,n=this.w.globals;t.xaxis.categories.length>0?n.labels=t.xaxis.categories:t.labels.length>0?n.labels=t.labels.slice():this.fallbackToCategory?(n.labels=n.labels[0],n.seriesRange.length&&(n.seriesRange.map((function(e){e.forEach((function(e){n.labels.indexOf(e.x)<0&&e.x&&n.labels.push(e.x)}))})),n.labels=Array.from(new Set(n.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new Y(t).convertCatToNumericXaxis(t,this.ctx,n.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,n=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var i=n.series.map((function(e,t){return e.data.filter((function(e,t,n){return n.findIndex((function(t){return t.x===e.x}))===t}))})),o=i.reduce((function(e,t,n,r){return r[e].length>t.length?e:n}),0),a=0;a<i[o].length;a++)r.push(a+1);else for(var s=0;s<t.series[t.maxValsInArrayIndex].length;s++)r.push(s+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(r);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===r.length){r=t.axisCharts?[]:t.series.map((function(e,t){return t+1}));for(var c=0;c<e.length;c++)t.seriesX.push(r)}t.labels=r,n.xaxis.convertedCatToNumeric&&(t.categoryLabels=r.map((function(e){return n.xaxis.labels.formatter(e)}))),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,n=t.config,r=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),r.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),n.chart.stacked){var i=new q(this.ctx);r.series=i.setNullSeriesToZeroValues(r.series)}this.coreUtils.getSeriesTotals(),r.axisCharts&&(r.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),r.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),r.dataFormatXNumeric||r.isXNumeric&&("numeric"!==n.xaxis.type||0!==n.labels.length||0!==n.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var o=this.coreUtils.getCategoryLabels(r.labels),a=0;a<o.length;a++)if(Array.isArray(o[a])){r.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach((function(n,r){var i=0;n.forEach((function(t){-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&i++})),i>0&&i==n.length&&t.push(r)})),e.globals.ignoreYAxisIndexes=t.map((function(e){return e}))}}]),e}(),K=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"scaleSvgNode",value:function(e,t){var n=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",n*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+n+" "+r)}},{key:"getSvgString",value:function(){var e=this;return new Promise((function(t){var n=e.w,r=n.config.chart.toolbar.export.width,i=n.config.chart.toolbar.export.scale||r/n.globals.svgWidth;i||(i=1);var o=e.w.globals.dom.Paper.svg(),a=e.w.globals.dom.Paper.node.cloneNode(!0);1!==i&&e.scaleSvgNode(a,i),e.convertImagesToBase64(a).then((function(){o=(new XMLSerializer).serializeToString(a),t(o.replace(/&nbsp;/g,"&#160;"))}))}))}},{key:"convertImagesToBase64",value:function(e){var t=this,n=e.getElementsByTagName("image"),r=Array.from(n).map((function(e){var n=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return n&&!n.startsWith("data:")?t.getBase64FromUrl(n).then((function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)})).catch((function(e){console.error("Error converting image to base64:",e)})):Promise.resolve()}));return Promise.all(r)}},{key:"getBase64FromUrl",value:function(e){return new Promise((function(t,n){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var e=document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),t(e.toDataURL())},r.onerror=n,r.src=e}))}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),n=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(r,(function(e){e.setAttribute("width",0)})),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),n&&n[0]&&(n[0].setAttribute("y",-100),n[0].setAttribute("y1",-100),n[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){var e=this;return new Promise((function(t){e.cleanup(),e.getSvgString().then((function(e){var n=new Blob([e],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(n))}))}))}},{key:"dataURI",value:function(e){var t=this;return new Promise((function(n){var r=t.w,i=e?e.scale||e.width/r.globals.svgWidth:1;t.cleanup();var o=document.createElement("canvas");o.width=r.globals.svgWidth*i,o.height=parseInt(r.globals.dom.elWrap.style.height,10)*i;var a="transparent"!==r.config.chart.background&&r.config.chart.background?r.config.chart.background:"#fff",s=o.getContext("2d");s.fillStyle=a,s.fillRect(0,0,o.width*i,o.height*i),t.getSvgString().then((function(e){var t="data:image/svg+xml,"+encodeURIComponent(e),r=new Image;r.crossOrigin="anonymous",r.onload=function(){if(s.drawImage(r,0,0),o.msToBlob){var e=o.msToBlob();n({blob:e})}else{var t=o.toDataURL("image/png");n({imgURI:t})}},r.src=t}))}))}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then((function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.f
2ilename,".svg")}))}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,n=this.w.config.chart.toolbar.export.width,r=t?{scale:t}:n?{width:n}:void 0;this.dataURI(r).then((function(t){var n=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(n,e.w.config.chart.toolbar.export.png.filename,".png")}))}},{key:"exportToCSV",value:function(e){var t=this,n=e.series,r=e.fileName,i=e.columnDelimiter,o=void 0===i?",":i,a=e.lineDelimiter,s=void 0===a?"\n":a,l=this.w;n||(n=l.config.series);var c,u,d=[],h=[],f="",p=l.globals.series.map((function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]})),g=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.categoryFormatter?l.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===l.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():C.isNumber(e)?e:e.split(o).join("")},m=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(e):e},v=Math.max.apply(Math,b(n.map((function(e){return e.data?e.data.length:0})))),y=new Z(this.ctx),x=new P(this.ctx),w=function(e){var n="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var r=l.globals.yLabelFormatters[0],i=new q(t.ctx).getActiveConfigSeriesIndex();n=r(l.globals.labels[e],{seriesIndex:i,dataPointIndex:e,w:l})}else n=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?n=l.config.xaxis.categories[e]:l.config.labels.length&&(n=l.config.labels[e]))}else n=l.config.labels[e];return null===n?"nullvalue":(Array.isArray(n)&&(n=n.join(" ")),C.isNumber(n)?n:n.split(o).join(""))};d.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(d.push("minimum"),d.push("q1"),d.push("median"),d.push("q3"),d.push("maximum")):"candlestick"===l.config.chart.type?(d.push("open"),d.push("high"),d.push("low"),d.push("close")):"rangeBar"===l.config.chart.type?(d.push("minimum"),d.push("maximum")):n.map((function(e,t){var n=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&d.push(n.split(o).join("")?n.split(o).join(""):"series-".concat(t))})),l.globals.axisCharts||(d.push(l.config.chart.toolbar.export.csv.headerValue),h.push(d.join(o))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?n.map((function(e,t){l.globals.axisCharts?function(e,t){if(d.length&&0===t&&h.push(d.join(o)),e.data){e.data=e.data.length&&e.data||b(Array(v)).map((function(){return""}));for(var r=0;r<e.data.length;r++){d=[];var i=w(r);if("nullvalue"!==i){if(i||(y.isFormatXY()?i=n[t].data[r].x:y.isFormat2DArray()&&(i=n[t].data[r]?n[t].data[r][0]:"")),0===t){d.push(g(i));for(var a=0;a<l.globals.series.length;a++){var s,c=y.isFormatXY()?null===(s=n[a].data[r])||void 0===s?void 0:s.y:p[a][r];d.push(m(c))}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][r]),d.push(l.globals.seriesCandleH[t][r]),d.push(l.globals.seriesCandleL[t][r]),d.push(l.globals.seriesCandleC[t][r])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(d.pop(),d.push(l.globals.seriesCandleO[t][r]),d.push(l.globals.seriesCandleH[t][r]),d.push(l.globals.seriesCandleM[t][r]),d.push(l.globals.seriesCandleL[t][r]),d.push(l.globals.seriesCandleC[t][r])),"rangeBar"===l.config.chart.type&&(d.pop(),d.push(l.globals.seriesRangeStart[t][r]),d.push(l.globals.seriesRangeEnd[t][r])),d.length&&h.push(d.join(o))}}}}(e,t):((d=[]).push(g(l.globals.labels[t])),d.push(m(p[t])),h.push(d.join(o)))})):(c=new Set,u={},n.forEach((function(e,t){null==e||e.data.forEach((function(e){var r,i;if(y.isFormatXY())r=e.x,i=e.y;else{if(!y.isFormat2DArray())return;r=e[0],i=e[1]}u[r]||(u[r]=Array(n.length).fill("")),u[r][t]=m(i),c.add(r)}))})),d.length&&h.push(d.join(o)),Array.from(c).sort().forEach((function(e){h.push([g(e),u[e].join(o)])}))),f+=h.join(s),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+f),r||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,n){var r=document.createElement("a");r.href=e,r.download=(t||this.w.globals.chartID)+n,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}]),e}(),J=function(){function e(t,n){a(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var r=this.w;this.axesUtils=new P(t),this.xaxisLabels=r.globals.labels.slice(),r.globals.timescaleLabels.length>0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice()),r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===r.config.xaxis.position?this.offY=0:this.offY=r.globals.gridHeight,this.offY=this.offY+r.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.xaxisBorderWidth=r.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=r.config.xaxis.axisBorder.height,this.yaxis=r.config.yaxis[0]}return l(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new A(this.ctx),n=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});n.add(r);for(var i=[],o=0;o<this.xaxisLabels.length;o++)i.push(this.xaxisLabels[o]);if(this.drawXAxisLabelAndGroup(!0,t,r,i,e.globals.isXNumeric,(function(e,t){return t})),e.globals.hasXaxisGroups){var a=e.globals.groups;i=[];for(var s=0;s<a.length;s++)i.push(a[s].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,i,!1,(function(e,t){return a[e].cols*t}),l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),u=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(u),n.add(c)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,h=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(h):n.add(h)}return n}},{key:"drawXAxisLabelAndGroup",value:function(e,t,n,r,i,o){var a,s=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],u=[],d=this.w,h=l.xaxisFontSize||this.xaxisFontSize,f=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,v=d.globals.padHorizontal,y=r.length,b="category"===d.config.xaxis.type?d.globals.dataPoints:y;if(0===b&&y>b&&(b=y),i){var x=b>1?b-1:b;a=d.globals.gridWidth/Math.min(x,y-1),v=v+o(0,a)/2+d.config.xaxis.labels.offsetX}else a=d.globals.gridWidth/b,v=v+o(0,a)+d.config.xaxis.labels.offsetX;for(var w=function(i){var l=v-o(i,a)/2+d.config.xaxis.labels.offsetX;0===i&&1===y&&a/2===v&&1===b&&(l=d.globals.gridWidth/2);var x=s.axesUtils.getLabel(r,d.globals.timescaleLabels,l,i,c,h,e),w=28;if(d.globals.rotateXLabels&&e&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(w=w+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),x=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(i,x,y):s.axesUtils.checkForOverflowingLabels(i,x,y,c,u),d.config.xaxis.labels.show){var k=t.drawText({x:x.x,y:s.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:x.text,textAnchor:"middle",fontWeight:x.isBold?600:g,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+i-1]:p[i]:p,isPlainText:!1,
vendor: 4,827 bytes, line 2
2cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(n.add(k),k.on("click",(function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}})),e){var C=document.createElementNS(d.globals.SVGNS,"title");C.textContent=Array.isArray(x.text)?x.text.join(" "):x.text,k.node.appendChild(C),""!==x.text&&(c.push(x.text),u.push(x))}}i<y-1&&(v+=o(i+1,a))},k=0;k<=y-1;k++)w(k)}},{key:"drawXaxisInversed",value:function(e){var t,n,r=this,i=this.w,o=new A(this.ctx),a=i.config.yaxis[0].opposite?i.globals.translateYAxisX[e]:0,s=o.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=o.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});s.add(l);var c=[];if(i.config.yaxis[e].show)for(var u=0;u<this.xaxisLabels.length;u++)c.push(this.xaxisLabels[u]);t=i.globals.gridHeight/c.length,n=-t/2.2;var d=i.globals.yLabelFormatters[0],h=i.config.yaxis[0].labels;if(h.show)for(var f=function(a){var s=void 0===c[a]?"":c[a];s=d(s,{seriesIndex:e,dataPointIndex:a,w:i});var u=r.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(h.style.fontSize,10));var p=h.offsetX-15,g="end";r.yaxis.opposite&&(g="start"),"left"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="start"):"center"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="middle"):"right"===i.config.yaxis[0].labels.align&&(g="end");var m=o.drawText({x:p,y:n+t+h.offsetY-f,text:s,textAnchor:g,foreColor:Array.isArray(u)?u[a]:u,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});l.add(m),m.on("click",(function(e){if("function"==typeof i.config.chart.events.xAxisLabelClick){var t=Object.assign({},i,{labelIndex:a});i.config.chart.events.xAxisLabelClick(e,r.ctx,t)}}));var v=document.createElementNS(i.globals.SVGNS,"title");if(v.textContent=Array.isArray(s)?s.join(" "):s,m.node.appendChild(v),0!==i.config.yaxis[e].labels.rotate){var y=o.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," 0 ").concat(y.y,")"))}n+=t},p=0;p<=c.length-1;p++)f(p);if(void 0!==i.config.yaxis[0].title.text){var g=o.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),m=o.drawText({x:i.config.yaxis[0].title.offsetX,y:i.globals.gridHeight/2+i.config.yaxis[0].title.offsetY,text:i.config.yaxis[0].title.text,textAnchor:"middle",foreColor:i.config.yaxis[0].title.style.color,fontSize:i.config.yaxis[0].title.style.fontSize,fontWeight:i.config.yaxis[0].title.style.fontWeight,fontFamily:i.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[0].title.style.cssClass});g.add(m),s.add(g)}var v=0;this.isCategoryBarHorizontal&&i.config.yaxis[0].opposite&&(v=i.globals.gridWidth);var y=i.config.xaxis.axisBorder;if(y.show){var b=o.drawLine(i.globals.padHorizontal+y.offsetX+v,1+y.offsetY,i.globals.padHorizontal+y.offsetX+v,i.globals.gridHeight+y.offsetY,y.color,0);this.elgrid&&this.elgrid.elGridBorders&&i.config.grid.show?this.elgrid.elGridBorders.add(b):s.add(b)}return i.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(v,c.length,i.config.yaxis[0].axisBorder,i.config.yaxis[0].axisTicks,0,t,s),s}},{key:"drawXaxisTicks",value:function(e,t,n){var r=this.w,i=e;if(!(e<0||e-2>r.globals.gridWidth)){var o=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+o+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(t=o-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var a=new A(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,o+r.config.xaxis.offsetY,i+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);n.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],n=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var i=0;i<n;i++)r=this.xaxisLabels[i].position,t.push(r);else for(var o=n,a=0;a<o;a++){var s=o;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(s-=1),r+=e.globals.gridWidth/s,t.push(r)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new A(this.ctx),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var a=0;a<r.length;
vendor: 6,851 bytes, line 2
2a++){var s=t.rotateAroundCenter(r[a]);s.y=s.y-1,s.x=s.x+1,r[a].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),r[a].setAttribute("text-anchor","end"),n.setAttribute("transform","translate(0, ".concat(-10,")"));var l=r[a].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,(function(n){t.placeTextWithEllipsis(n,n.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))}))}else!function(){for(var n=e.globals.gridWidth/(e.globals.labels.length+1),i=0;i<r.length;i++){var o=r[i].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(o,(function(e){t.placeTextWithEllipsis(e,e.textContent,n)}))}}();if(i.length>0){var c=i[i.length-1].getBBox(),u=i[0].getBBox();c.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),u.x+u.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]);for(var d=0;d<o.length;d++)t.placeTextWithEllipsis(o[d],o[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),Q=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.xaxisLabels=n.globals.labels.slice(),this.axesUtils=new P(t),this.isRangeBar=n.globals.seriesRange.length&&n.globals.isBarHorizontal,n.globals.timescaleLabels.length>0&&(this.xaxisLabels=n.globals.timescaleLabels.slice())}return l(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,n=new A(this.ctx);e||(e=n.group({class:"apexcharts-grid"}));var r=n.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),i=n.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(i),e.add(r),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,n=new A(this.ctx),r=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,b(e.config.stroke.width)):e.config.stroke.width,i=function(e){var n=document.createElementNS(t.SVGNS,"clipPath");return n.setAttribute("id",e),n};t.dom.elGridRectMask=i("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=i("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=i("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=i("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=i("nonForecastMask".concat(t.cuid));var o=0,a=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(o=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),a=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=n.drawRect(0,0,t.gridWidth,t.gridHeight,0,"#fff"),t.dom.elGridRectBar=n.drawRect(-r/2-o-2,-r/2-2,t.gridWidth+r+a+o+4,t.gridHeight+r+4,0,"#fff");var s=e.globals.markers.largestSize;t.dom.elGridRectMarker=n.drawRect(-s,-s,t.gridWidth+2*s,t.gridHeight+2*s,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var l=t.dom.baseEl.querySelector("defs");l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===a-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:n,y1:r,x2:i,y2:o,xCount:a,parent:s});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var u=l.globals.groups;if(u){for(var d=0,h=0;d<t&&h<u.length;h++)d+=u[h].cols;d===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new J(this.ctx).drawXaxisTicks(n,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.xCount,s=e.parent,l=this.w,c=s.node.classList.contains("apexcharts-gridlines-horizontal"),u=l.globals.barPadForNumericAxis,d=0===r&&0===o||0===n&&0===i||r===l.globals.gridHeight&&o===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===t||t===a-1),h=new A(this).drawLine(n-(c?u:0),r,i+(c?u:0),o,l.config.grid.borderColor,l.config.grid.strokeDashArray);h.node.classList.add("apexcharts-gridline"),d&&l.config.grid.show?this.elGridBorders.add(h):s.add(h)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.type,s=this.w,l=new A(this.ctx),c=s.globals.barPadForNumericAxis,u=s.config.grid[a].colors[t],d=l.drawRect(n-("row"===a?c:0),r,i+("row"===a?2*c:0),o,0,u,s.config.grid[a].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(a))}},{key:"_drawXYLines",value:function(e){var t=this,n=e.xCount,r=e.tickAmount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){var o,a=i.globals.padHorizontal,s=i.globals.gridHeight;i.globals.timescaleLabels.length?function(e){for(var r=e.xC,i=e.x1,o=e.y1,a=e.x2,s=e.y2,l=0;l<r;l++)i=t.xaxisLabels[l].position,a=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:i,y1:o,x2:a,y2:s,xCount:n,parent:t.elgridLinesV})}({xC:n,x1:a,y1:0,x2:o,y2:s}):(i.globals.isXNumeric&&(n=i.globals.xAxisScale.result.length),function(e){for(var r=e.xC,o=e.x1,a=e.y1,s=e.x2,l=e.y2,c=0;c<r+(i.globals.isXNumeric?0:1);c++)0===c&&1===r&&1===i.globals.dataPoints&&(s=o=i.globals.gridWidth/2),t._drawGridLines({i:c,x1:o,y1:a,x2:s,y2:l,xCount:n,parent:t.elgridLinesV}),s=o+=i.globals.gridWidth/(i.globals.isXNumeric?r-1:r)}({xC:n,x1:a,y1:0,x2:o,y2:s}))}if(i.config.grid.yaxis.lines.show){var l=0,c=0,u=i.globals.gridWidth,d=r+1;this.isRangeBar&&(d=i.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:u,y2:c,parent:this.elgridLinesH}),c=l+=i.globals.gridHeight/(this.isRangeBar?d:r)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show)for(var r,i=n.globals.padHorizontal,o=n.globals.gridHeight,a=0;a<t+1;a++)n.config.grid.xaxis.lines.show&&this._drawGridLine({i:a,xCount:t+1,x1:i,y1:0,x2:r,y2:o,parent:this.elgridLinesV}),new J(this.ctx).drawXaxisTicks(i,0,n.globals.dom.elGraphical),r=i+=n.globals.gridWidth/t;if(n.config.grid.yaxis.lines.show)for(var s=0,l=0,c=n.globals.gridWidth,u=0;u<n.globals.dataPoints+1;
2u++)this._drawGridLine({i:u,xCount:n.globals.dataPoints+1,x1:0,y1:s,x2:c,y2:l,parent:this.elgridLinesH}),l=s+=n.globals.gridHeight/n.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,n=new A(this.ctx);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),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r=0;r<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(r);)r++;r===t.seriesYAxisMap.length&&(r=0);var i,o,a,s,l=t.yAxisScale[r].result.length-1;!t.isBarHorizontal||this.isRangeBar?(i=this.xaxisLabels.length,this.isRangeBar&&(l=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(i=e.config.xaxis.tickAmount),(null===(o=t.yAxisScale)||void 0===o||null===(a=o[r])||void 0===a||null===(s=a.result)||void 0===s?void 0:s.length)>0&&"datetime"!==e.config.xaxis.type&&(i=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:i,tickAmount:l})):(i=l,l=t.xTickAmount,this._drawInvertedXYLines({xCount:i,tickAmount:l}));return this.drawGridBands(i,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/i}}},{key:"drawGridBands",value:function(e,t){var n,r,i=this,o=this.w;if((null===(n=o.config.grid.row.colors)||void 0===n?void 0:n.length)>0&&function(e,n,r,a,s,l){for(var c=0,u=0;c<n;c++,u++)u>=o.config.grid.row.colors.length&&(u=0),i._drawGridBandRect({c:u,x1:0,y1:a,x2:s,y2:l,type:"row"}),a+=o.globals.gridHeight/t}(0,t,0,0,o.globals.gridWidth,o.globals.gridHeight/t),(null===(r=o.config.grid.column.colors)||void 0===r?void 0:r.length)>0){var a=o.globals.isBarHorizontal||"on"!==o.config.xaxis.tickPlacement||"category"!==o.config.xaxis.type&&!o.config.xaxis.convertedCatToNumeric?e:e-1;o.globals.isXNumeric&&(a=o.globals.xAxisScale.result.length-1);for(var s=o.globals.padHorizontal,l=o.globals.padHorizontal+o.globals.gridWidth/a,c=o.globals.gridHeight,u=0,d=0;u<e;u++,d++){var h;d>=o.config.grid.column.colors.length&&(d=0),"datetime"===o.config.xaxis.type&&(s=this.xaxisLabels[u].position,l=((null===(h=this.xaxisLabels[u+1])||void 0===h?void 0:h.position)||o.globals.gridWidth)-this.xaxisLabels[u].position),this._drawGridBandRect({c:d,x1:s,y1:0,x2:l,y2:c,type:"column"}),s+=o.globals.gridWidth/a}}}}]),e}(),ee=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.coreUtils=new L(this.ctx)}return l(e,[{key:"niceScale",value:function(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(n=l.config.xaxis,r=Math.max((c.svgWidth-100)/25,2)):(n=l.config.yaxis[a],r=Math.max((c.svgHeight-100)/15,2)),C.isNumber(r)||(r=10),i=void 0!==n.min&&null!==n.min,o=void 0!==n.max&&null!==n.min;var u=void 0!==n.stepSize&&null!==n.stepSize,d=void 0!==n.tickAmount&&null!==n.tickAmount,h=d?n.tickAmount:c.niceScaleDefaultTicks[Math.min(Math.round(r/2),c.niceScaleDefaultTicks.length-1)];if(c.isMultipleYAxis&&!d&&c.multiAxisTickAmount>0&&(h=c.multiAxisTickAmount,d=!0),h="dataPoints"===h?c.dataPoints-1:Math.abs(Math.round(h)),(e===Number.MIN_VALUE&&0===t||!C.isNumber(e)&&!C.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=C.isNumber(n.min)?n.min:0,t=C.isNumber(n.max)?n.max:e+h,c.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var f=t;t=e,e=f}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var p=[];h<1&&(h=1);var g=h,m=Math.abs(t-e);!i&&e>0&&e/m<.15&&(e=0,i=!0),!o&&t<0&&-t/m<.15&&(t=0,o=!0);var v=(m=Math.abs(t-e))/g,y=v,b=Math.floor(Math.log10(y)),x=Math.pow(10,b),w=Math.ceil(y/x);if(v=y=(w=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][w])*x,c.isBarHorizontal&&n.stepSize&&"datetime"!==n.type?(v=n.stepSize,u=!0):u&&(v=n.stepSize),u&&n.forceNiceScale){var k=Math.floor(Math.log10(v));v*=Math.pow(10,b-k)}if(i&&o){var S=m/g;if(d)if(u)if(0!=C.mod(m,v)){var _=C.getGCD(v,S);v=S/_<10?_:S}else 0==C.mod(v,S)?v=S:(S=v,d=!1);else v=S;else if(u)0==C.mod(m,v)?S=v:v=S;else if(0==C.mod(m,v))S=v;else{S=m/(g=Math.ceil(m/v));var A=C.getGCD(m,v);m/A<r&&(S=A),v=S}g=Math.round(m/v)}else{if(i||o){if(o)if(d)e=t-v*g;else{var L=e;e=v*Math.floor(e/v),Math.abs(t-e)/C.getGCD(m,v)>r&&(e=t-v*h,e+=v*Math.floor((L-e)/v))}else if(i)if(d)t=e+v*g;else{var T=t;t=v*Math.ceil(t/v),Math.abs(t-e)/C.getGCD(m,v)>r&&(t=e+v*h,t+=v*Math.ceil((T-t)/v))}}else if(c.isMultipleYAxis&&d){var E=v*Math.floor(e/v),O=E+v*g;O<t&&(v*=2),O=t,t=(e=E)+v*g,m=Math.abs(t-e),e>0&&e<Math.abs(O-t)&&(e=0,t=v*g),t<0&&-t<Math.abs(E-e)&&(t=0,e=-v*g)}else e=v*Math.floor(e/v),t=v*Math.ceil(t/v);m=Math.abs(t-e),v=C.getGCD(m,v),g=Math.round(m/v)}if(d||i||o||(g=Math.ceil((m-s)/(v+s)))>16&&C.getPrimeFactors(g).length<2&&g++,!d&&n.forceNiceScale&&0===c.yValueDecimal&&g>m&&(g=m,v=Math.round(m/g)),g>r&&(!d&&!u||n.forceNiceScale)){var M=C.getPrimeFactors(g),P=M.length-1,D=g;e:for(var N=0;N<P;N++)for(var I=0;I<=P-N;I++){for(var F=Math.min(I+N,P),R=D,z=1,j=I;j<=F;j++)z*=M[j];if((R/=z)<r){D=R;break e}}v=D===g?m:m/D,g=Math.round(m/v)}c.isMultipleYAxis&&0==c.multiAxisTickAmount&&c.ignoreYAxisIndexes.indexOf(a)<0&&(c.multiAxisTickAmount=g);var H=e-v,Y=v*s;do{H+=v,p.push(C.stripNumber(H,7))}while(t-H>Y);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"linearScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,o=Math.abs(t-e),a=[];if(e===t)return{result:a=[e],niceMin:a[0],niceMax:a[a.length-1]};"dataPoints"===(n=this._adjustTicksForSmallRange(n,r,o))&&(n=this.w.globals.dataPoints-1),i||(i=o/n),i=Math.round(10*(i+Number.EPSILON))/10,n===Number.MAX_VALUE&&(n=5,i=1);for(var s=e;n>=0;)a.push(s),s=C.preciseAddition(s,i),n-=1;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.ceil(Math.log(t)/Math.log(n)+1),o=Math.floor(Math.log(e)/Math.log(n));o<i;o++)r.push(Math.pow(n,o));return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(e,t,n){t<=0&&(t=Math.max(e,n)),e<=0&&(e=Math.min(t,n));for(var r=[],i=Math.log(t)/Math.log(n),o=Math.log(e)/Math.log(n),a=i-o,s=Math.round(a),l=a/s,c=0,u=o;c<s;c++,u+=l)r.push(Math.pow(n,u));return r.push(Math.pow(n,i)),{result:r,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,n){var r=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var i=Number(this.w.config.yaxis[t].labels.formatter(1));
2C.isNumber(i)&&0===this.w.globals.yValueDecimal&&(r=Math.ceil(n))}return r<e?r:e}},{key:"setYScaleForIndex",value:function(e,t,n){var r=this.w.globals,i=this.w.config,o=r.isBarHorizontal?i.xaxis:i.yaxis[e];void 0===r.yAxisScale[e]&&(r.yAxisScale[e]=[]);var a=Math.abs(n-t);o.logarithmic&&a<=5&&(r.invalidLogScale=!0),o.logarithmic&&a>5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=o.forceNiceScale?this.logarithmicScaleNice(t,n,o.logBase):this.logarithmicScale(t,n,o.logBase)):n!==-Number.MAX_VALUE&&C.isNumber(n)&&t!==Number.MAX_VALUE&&C.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,n,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var n=this.w,r=n.globals,i=Math.abs(t-e);if(t!==-Number.MAX_VALUE&&C.isNumber(t)){var o=r.xTickAmount+1;i<10&&i>1&&(o=i),r.xAxisScale=this.linearScale(e,t,o,0,n.config.xaxis.stepSize)}else r.xAxisScale=this.linearScale(0,10,10);return r.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,n=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var r=n.seriesYAxisMap,i=n.minYArr,o=n.maxYArr;n.allSeriesCollapsed=!0,n.barGroups=[],r.forEach((function(r,a){var s=[];r.forEach((function(e){var n=t.series[e].group;s.indexOf(n)<0&&s.push(n)})),r.length>0?function(){var l,c,u=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=u,f=d;if(t.chart.stacked)!function(){var e=new Array(n.dataPoints).fill(0),i=[],o=[],p=[];s.forEach((function(){i.push(e.map((function(){return Number.MIN_VALUE}))),o.push(e.map((function(){return Number.MIN_VALUE}))),p.push(e.map((function(){return Number.MIN_VALUE})))}));for(var g=function(e){!l&&t.series[r[e]].type&&(l=t.series[r[e]].type);var u=r[e];c=t.series[u].group?t.series[u].group:"axis-".concat(a),!(n.collapsedSeriesIndices.indexOf(u)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(u)<0)||(n.allSeriesCollapsed=!1,s.forEach((function(e,r){if(t.series[u].group===e)for(var a=0;a<n.series[u].length;a++){var s=n.series[u][a];s>=0?o[r][a]+=s:p[r][a]+=s,i[r][a]+=s,h=Math.min(h,s),f=Math.max(f,s)}}))),"bar"!==l&&"column"!==l||n.barGroups.push(c)},m=0;m<r.length;m++)g(m);l||(l=t.chart.type),"bar"===l||"column"===l?s.forEach((function(e,t){u=Math.min(u,Math.min.apply(null,p[t])),d=Math.max(d,Math.max.apply(null,o[t]))})):(s.forEach((function(e,t){h=Math.min(h,Math.min.apply(null,i[t])),f=Math.max(f,Math.max.apply(null,i[t]))})),u=h,d=f),u===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}();else for(var p=0;p<r.length;p++){var g=r[p];u=Math.min(u,i[g]),d=Math.max(d,o[g]),!(n.collapsedSeriesIndices.indexOf(g)<0&&n.ancillaryCollapsedSeriesIndices.indexOf(g)<0)||(n.allSeriesCollapsed=!1)}void 0!==t.yaxis[a].min&&(u="function"==typeof t.yaxis[a].min?t.yaxis[a].min(u):t.yaxis[a].min),void 0!==t.yaxis[a].max&&(d="function"==typeof t.yaxis[a].max?t.yaxis[a].max(d):t.yaxis[a].max),n.barGroups=n.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.setYScaleForIndex(a,u,d),r.forEach((function(e){i[e]=n.yAxisScale[a].niceMin,o[e]=n.yAxisScale[a].niceMax}))}():e.setYScaleForIndex(a,0,-Number.MAX_VALUE)}))}}]),e}(),te=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.scales=new ee(t)}return l(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w.config,o=this.w.globals,a=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===r&&(r=e+1);var l=o.series,c=l,u=l;"candlestick"===i.chart.type?(c=o.seriesCandleL,u=o.seriesCandleH):"boxPlot"===i.chart.type?(c=o.seriesCandleO,u=o.seriesCandleC):o.isRangeData&&(c=o.seriesRangeStart,u=o.seriesRangeEnd);var d=!1;if(o.seriesX.length>=r){var h,f=null===(h=o.brushSource)||void 0===h?void 0:h.w.config.chart.brush;(i.chart.zoom.enabled&&i.chart.zoom.autoScaleYaxis||null!=f&&f.enabled&&null!=f&&f.autoScaleYaxis)&&(d=!0)}for(var p=e;p<r;p++){o.dataPoints=Math.max(o.dataPoints,l[p].length);var g=i.series[p].type;o.categoryLabels.length&&(o.dataPoints=o.categoryLabels.filter((function(e){return void 0!==e})).length),o.labels.length&&"datetime"!==i.xaxis.type&&0!==o.series.reduce((function(e,t){return e+t.length}),0)&&(o.dataPoints=Math.max(o.dataPoints,o.labels.length));var m=0,v=l[p].length-1;if(d){if(i.xaxis.min)for(;m<v&&o.seriesX[p][m]<i.xaxis.min;m++);if(i.xaxis.max)for(;v>m&&o.seriesX[p][v]>i.xaxis.max;v--);}for(var y=m;y<=v&&y<o.series[p].length;y++){var b=l[p][y];if(null!==b&&C.isNumber(b)){switch(void 0!==u[p][y]&&(a=Math.max(a,u[p][y]),t=Math.min(t,u[p][y])),void 0!==c[p][y]&&(t=Math.min(t,c[p][y]),n=Math.max(n,c[p][y])),g){case"candlestick":void 0!==o.seriesCandleC[p][y]&&(a=Math.max(a,o.seriesCandleH[p][y]),t=Math.min(t,o.seriesCandleL[p][y]));break;case"boxPlot":void 0!==o.seriesCandleC[p][y]&&(a=Math.max(a,o.seriesCandleC[p][y]),t=Math.min(t,o.seriesCandleO[p][y]))}g&&"candlestick"!==g&&"boxPlot"!==g&&"rangeArea"!==g&&"rangeBar"!==g&&(a=Math.max(a,o.series[p][y]),t=Math.min(t,o.series[p][y])),n=a,o.seriesGoals[p]&&o.seriesGoals[p][y]&&Array.isArray(o.seriesGoals[p][y])&&o.seriesGoals[p][y].forEac
2h((function(e){s!==Number.MIN_VALUE&&(s=Math.min(s,e.value),t=s),a=Math.max(a,e.value),n=a})),C.isFloat(b)&&(b=C.noExponents(b),o.yValueDecimal=Math.max(o.yValueDecimal,b.toString().split(".")[1].length)),s>c[p][y]&&c[p][y]<0&&(s=c[p][y])}else o.hasNullValues=!0}"bar"!==g&&"column"!==g||(s<0&&a<0&&(a=0,n=Math.max(n,0)),s===Number.MIN_VALUE&&(s=0,t=Math.min(t,0)))}return"rangeBar"===i.chart.type&&o.seriesRangeStart.length&&o.isBarHorizontal&&(s=t),"bar"===i.chart.type&&(s<0&&a<0&&(a=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:a,lowestY:t,highestY:n}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var n,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var i=0;i<e.series.length;i++)n=this.getMinYMaxY(i),e.minYArr[i]=n.lowestY,e.maxYArr[i]=n.highestY,r=Math.min(r,n.lowestY)}return n=this.getMinYMaxY(0,r,null,e.series.length),"bar"===t.chart.type?(e.minY=n.minY,e.maxY=n.maxY):(e.minY=n.lowestY,e.maxY=n.highestY),r=n.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&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY!==Number.MIN_VALUE?Math.min(n.minY,e.minY):n.minY,t.yaxis.forEach((function(t,n){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[n]=t.max:"function"==typeof t.max&&(e.maxYArr[n]=t.max(e.isMultipleYAxis?e.maxYArr[n]:e.maxY)),e.maxY=e.maxYArr[n]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[n]=t.min:"function"==typeof t.min&&(e.minYArr[n]=t.min(e.isMultipleYAxis?e.minYArr[n]===Number.MIN_VALUE?0:e.minYArr[n]:e.minY)),e.minY=e.minYArr[n])})),e.isBarHorizontal&&["min","max"].forEach((function(n){void 0!==t.xaxis[n]&&"number"==typeof t.xaxis[n]&&("min"===n?e.minY=t.xaxis[n]:e.maxY=t.xaxis[n])})),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(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((function(n){switch(n.type||t.chart.type){case"bar":case"column":e.barGroups.push(n.group);break;case"line":e.lineGroups.push(n.group);break;case"area":e.areaGroups.push(n.group)}})),e.barGroups=e.barGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.lineGroups=e.lineGroups.filter((function(e,t,n){return n.indexOf(e)===t})),e.areaGroups=e.areaGroups.filter((function(e,t,n){return n.indexOf(e)===t})),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,n="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var n=0;n<e.labels[t].length;n++)null!==e.labels[t][n]&&C.isNumber(e.labels[t][n])&&(e.maxX=Math.max(e.maxX,e.labels[t][n]),e.initialMaxX=Math.max(e.maxX,e.labels[t][n]),e.minX=Math.min(e.minX,e.labels[t][n]),e.initialMinX=Math.min(e.minX,e.labels[t][n]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var r=10;if(void 0===t.xaxis.tickAmount)r=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&0!==e.dataPoints&&(r=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var i=e.maxX-e.minX;i<30&&(r=i-1)}}else r=t.xaxis.tickAmount;if(e.xTickAmount=r,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var o=[],a=e.minX-1;a<e.maxX;a++)o.push(a+1);e.xAxisScale={result:o,niceMin:o[0],niceMax:o[o.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),e.noLabelsProvi
2ded&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());n&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var n=0;n<e.seriesZ[t].length;n++)null!==e.seriesZ[t][n]&&C.isNumber(e.seriesZ[t][n])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][n]),e.minZ=Math.min(e.minZ,e.seriesZ[t][n]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var n=new O(this.ctx);if("datetime"===t.xaxis.type){var r=n.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();var i=n.getDate(e.maxX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()+2):i.setDate(i.getDate()+2),e.maxX=new Date(i).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach((function(t,n){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var r=t.slice();r.sort((function(e,t){return e-t})),r.forEach((function(t,n){if(n>0){var i=t-r[n-1];i>0&&(e.minXDiff=Math.min(i,e.minXDiff))}})),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}))}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var n=t.seriesGroups;n.length||(n=[this.w.globals.seriesNames.map((function(e){return e}))]);var r={},i={};n.forEach((function(n){r[n]=[],i[n]=[],e.w.config.series.map((function(e,r){return n.indexOf(t.seriesNames[r])>-1?r:null})).filter((function(e){return null!==e})).forEach((function(o){for(var a=0;a<t.series[t.maxValsInArrayIndex].length;a++){var s,l,c,u;void 0===r[n][a]&&(r[n][a]=0,i[n][a]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(s=e.w.config.series)||void 0===s||null===(l=s[o])||void 0===l?void 0:l.type)||"column"===(null===(c=e.w.config.series)||void 0===c||null===(u=c[o])||void 0===u?void 0:u.type)))&&null!==t.series[o][a]&&C.isNumber(t.series[o][a])&&(t.series[o][a]>0?r[n][a]+=parseFloat(t.series[o][a])+1e-4:i[n][a]+=parseFloat(t.series[o][a]))}}))})),Object.entries(r).forEach((function(e){var n=y(e,1)[0];r[n].forEach((function(e,o){t.maxY=Math.max(t.maxY,r[n][o]),t.minY=Math.min(t.minY,i[n][o])}))}))}}}]),e}(),ne=function(){function e(t,n){a(this,e),this.ctx=t,this.elgrid=n,this.w=t.w;var r=this.w;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.axisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===r.config.xaxis.position?r.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new P(t)}return l(e,[{key:"drawYaxis",value:function(e){var t=this.w,n=new A(this.ctx),r=t.config.yaxis[e].labels.style,i=r.fontSize,o=r.fontFamily,a=r.fontWeight,s=n.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return s;var l=n.group({class:"apexcharts-yaxis-texts-g"});s.add(l);var c=t.globals.yAxisScale[e].result.length-1,u=t.globals.gridHeight/c,d=t.globals.yLabelFormatters[e],h=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var f=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?f=0:"heatmap"===t.config.chart.type&&(f-=u/2),f+=parseInt(i,10)/3;for(var p=c;p>=0;p--){var g=d(h[p],p,t),m=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(m*=-1);var v=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),y=this.axesUtils.getYAxisForeColor(r.colors,e),b=Array.isArray(y)?y[p]:y,x=C.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map((function(e){return e.textContent})),w=n.drawText({x:m,y:f,text:x.includes(g)&&!t.config.yaxis[e].labels.showDuplicates?"":g,textAnchor:v,fontSize:i,fontFamily:o,fontWeight:a,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:b,isPlainText:!1,
vendor: 14,720 bytes, line 2
2cssClass:"apexcharts-yaxis-label ".concat(r.cssClass)});l.add(w),this.addTooltip(w,g),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(n,w,firstLabel,t.config.yaxis[e].labels.rotate),f+=u}}return this.addYAxisTitle(n,s,e),this.addAxisBorder(n,s,e,c,u),s}},{key:"getTextAnchor",value:function(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var n=document.createElementNS(this.w.globals.SVGNS,"title");n.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(n)}},{key:"rotateLabel",value:function(e,t,n,r){var i=e.rotateAroundCenter(n.node),o=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(r," ").concat(i.x," ").concat(o.y,")"))}},{key:"addYAxisTitle",value:function(e,t,n){var r=this.w;if(void 0!==r.config.yaxis[n].title.text){var i=e.group({class:"apexcharts-yaxis-title"}),o=r.config.yaxis[n].opposite?r.globals.translateYAxisX[n]:0,a=e.drawText({x:o,y:r.globals.gridHeight/2+r.globals.translateY+r.config.yaxis[n].title.offsetY,text:r.config.yaxis[n].title.text,textAnchor:"end",foreColor:r.config.yaxis[n].title.style.color,fontSize:r.config.yaxis[n].title.style.fontSize,fontWeight:r.config.yaxis[n].title.style.fontWeight,fontFamily:r.config.yaxis[n].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(r.config.yaxis[n].title.style.cssClass)});i.add(a),t.add(i)}}},{key:"addAxisBorder",value:function(e,t,n,r,i){var o=this.w,a=o.config.yaxis[n].axisBorder,s=31+a.offsetX;if(o.config.yaxis[n].opposite&&(s=-31-a.offsetX),a.show){var l=e.drawLine(s,o.globals.translateY+a.offsetY-2,s,o.globals.gridHeight+o.globals.translateY+a.offsetY+2,a.color,0,a.width);t.add(l)}o.config.yaxis[n].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,r,a,o.config.yaxis[n].axisTicks,n,i,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=n.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(i);var o=t.globals.yAxisScale[e].result.length-1,a=t.globals.gridWidth/o+.1,s=a+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),u=t.globals.timescaleLabels;if(u.length>0&&(this.xaxisLabels=u.slice(),o=(c=u.slice()).length),t.config.xaxis.labels.show)for(var d=u.length?0:o;u.length?d<u.length:d>=0;u.length?d++:d--){var h=l(c[d],d,t),f=t.globals.gridWidth+t.globals.padHorizontal-(s-a+t.config.xaxis.labels.offsetX);if(u.length){var p=this.axesUtils.getLabel(c,u,f,d,this.drawnLabels,this.xaxisFontSize);f=p.x,h=p.text,this.drawnLabels.push(p.text),0===d&&t.globals.skipFirstTimelinelabel&&(h=""),d===c.length-1&&t.globals.skipLastTimelinelabel&&(h="")}var g=n.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:h,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(t.config.xaxis.labels.style.cssClass)});i.add(g),g.tspan(h),this.addTooltip(g,h),s+=a}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,n=new A(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var i=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(i-=15);var o=n.drawLine(t.globals.padHorizontal+i+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(o):e.add(o)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,n=new A(this.ctx);if(void 0!==t.config.xaxis.title.text){var r=n.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=n.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(t.config.xaxis.title.style.cssClass)});r.add(i),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var n=this.w,r=new A(this.ctx),i=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),o=i?i.getBoundingClientRect():{width:0,height:0},a=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),s=a?a.getBoundingClientRect():{width:0,height:0};if(a){var l=this.xPaddingForYAxisTitle(e,o,s,t);a.setAttribute("x",l.xPos-(t?10:0));var c=r.rotateAroundCenter(a);a.setAttribute("transform","rotate(".concat(t?-1*n.config.yaxis[e].title.rotate:n.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,n,r){var i=this.w,o=0,a=10;return void 0===i.config.yaxis[e].title.text||e<0?{xPos:o,padd:0}:(r?o=t.width+i.config.yaxis[e].title.offsetX+n.width/2+a/2:(o=-1*t.width+i.config.yaxis[e].title.offsetX+a/2+n.width/2,i.globals.isBarHorizontal&&(a=25,o=-1*t.width-i.config.yaxis[e].title.offsetX-a)),{xPos:o,padd:a})}},{key:"setYAxisXPosition",value:function(e,t){var n=this.w,r=0,i=0,o=18,a=1;n.config.yaxis.length>1&&(this.multipleYs=!0),n.config.yaxis.forEach((function(s,l){var c=n.globals.ignoreYAxisIndexes.includes(l)||!s.show||s.floating||0===e[l].width,u=e[l].width+t[l].width;s.opposite?n.globals.isBarHorizontal?(i=n.globals.gridWidth+n.globals.translateX-1,n.globals.translateYAxisX[l]=i-s.labels.offsetX):(i=n.globals.gridWidth+n.globals.translateX+a,c||(a+=u+20),n.globals.translateYAxisX[l]=i-s.labels.offsetX+20):(r=n.globals.translateX-o,c||(o+=u+20),n.globals.translateYAxisX[l]=r+s.labels.offsetX)}))}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;C.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((function(t,n){var r=e.config.yaxis[n];if(r&&!r.floating&&void 0!==r.labels.align){var i=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-texts-g")),o=C.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(n,"'] .apexcharts-yaxis-label"))),a=i.getBoundingClientRect();o.forEach((function(e){e.setAttribute("text-anchor",r.labels.align)})),"left"!==r.labels.align||r.opposite?"center"===r.labels.align?i.setAttribute("transform","translate(".concat(a.width/2*(r.opposite?1:-1),", 0)")):"right"===r.labels.align&&r.opposite&&i.setAttribute("transform","translate(".concat(a.width,", 0)")):i.setAttribute("transform","translate(-".concat(a.width,", 0)"))}}))}}]),e}(),re=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.documentEvent=C.bind(this.documentEvent,this)}return l(e,[{key:"addEventListener",value:function(e,t){var n=this.w;n.globals.events.hasOwnProperty(e)?n.globals.events[e].push(t):n.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){var r=n.globals.events[e].indexOf(t);-1!==r&&n.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var n=this.w;if(n.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=n.globals.events[e],i=r.length,o=0;o<i;o++)r[o].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,n=this.ctx,r=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach((function(e){r.addEventListener(e,(function(e){var r=Object.assign({},t,{seriesIndex:t.globals.axisCharts?t.globals.capturedSeriesIndex:0,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,n,r):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,n,r):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,n,r),n.ctx.events.fireEvent("click",[e,n,r]))}),{capture:!1,passive:!0})})),this.ctx.eventList.forEach((function(n){t.globals.dom.baseEl.addEventListener(n,e.documentEvent,{passive:!0})})),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,n=e.target.className;if("click"===e.type){var r=t.globals.dom.baseEl.querySelector(".apexcharts-menu");r&&r.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==n&&r.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),ie=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var n=t.filter((function(t){return t.name===e}))[0];if(!n)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=C.extend(I,n);this.w.globals.locale=r.options}}]),e}(),oe=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawAxis",value:function(e,t){var n,r,i=this,o=this.w.globals,a=this.w.config,s=new J(this.ctx,t),l=new ne(this.ctx,t);o.axisCharts&&"radar"!==e&&(o.isBarHorizontal?(r=l.drawYaxisInversed(0),n=s.drawXaxisInversed(0),o.dom.elGraphical.add(n),o.dom.elGraphical.add(r)):(n=s.drawXaxis(),o.dom.elGraphical.add(n),a.yaxis.map((function(e,t){if(-1===o.ignoreYAxisIndexes.indexOf(t)&&(r=l.drawYaxis(t),o.dom.Paper.add(r),"back"===i.w.config.grid.position)){var n=o.dom.Paper.children()[1];n.remove(),o.dom.Paper.add(n)}}))))}}]),e}(),ae=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=new _(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,o=e.config.xaxis.crosshairs.fill.type,a=r.colorFrom,s=r.colorTo,l=r.opacityFrom,c=r.opacityTo,u=r.stops,d=i.enabled,h=i.left,f=i.top,p=i.blur,g=i.color,m=i.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===o&&(v=t.drawGradient("vertical",a,s,l,c,null,u,null));var y=t.drawRect();1===e.config.xaxis.crosshairs.width&&(y=t.drawLine());var b=e.globals.gridHeight;(!C.isNumber(b)||b<0)&&(b=0);var x=e.config.xaxis.crosshairs.width;(!C.isNumber(x)||x<0)&&(x=0),y.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:b,width:x,height:b,fill:v,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(y=n.dropShadow(y,{left:h,top:f,blur:p,color:g,opacity:m})),e.globals.dom.elGraphical.add(y)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new A(this.ctx),n=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var i=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,n.stroke.dashArray,n.stroke.width);i.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(i)}var o=t.drawLine(-r,0,e.globals.gridWidth+r,0,n.stroke.color,0,0);o.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(o)}}]),e}(),se=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,n=this.w,r=n.config;if(0!==r.responsive.length){var i=r.responsive.slice();i.sort((function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0})).reverse();var o=new B({}),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i[0].breakpoint,a=window.innerWidth>0?window.innerWidth:screen.width;if(a>r){var s=C.clone(n.globals.initialConfig);s.series=C.clone(n.config.series);var l=L.extendArrayProps(o,s,n);e=C.extend(l,e),e=C.extend(n.config,e),t.overrideResponsiveOptions(e)}else for(var c=0;c<i.length;c++)a<i[c].breakpoint&&(e=L.extendArrayProps(o,i[c].options,n),e=C.extend(n.config,e),t.overrideResponsiveOptions(e))};if(e){var s=L.extendArrayProps(o,e,n);s=C.extend(n.config,s),a(s=C.extend(s,e))}else a({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new B(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),le=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return l(e,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return"treemap"===t.type&&n.treemap&&n.treemap.distributed||"heatmap"===t.type&&n.heatmap&&n.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,n=e.plotOptions;return n.bar&&n.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new C;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode));var n=b(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(n),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r)}},{key:"getColors",value:function(e){var t=this,n=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,n.config.series.map((function(r,i){var o=e[i]||e[0];return"function"==typeof o?o({value:n.globals.axisCharts?n.globals.series[i][0]||0:n.globals.series[i],seriesIndex:i,dataPointIndex:i,w:t.w}):o}))):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach((function(e,n){e&&(t[n]=e)}))}},{key:"getMonochromeColors",value:function(e,t,n){var r=e.color,
2i=e.shadeIntensity,o=e.shadeTo,a=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,s=1/(a/i),l=0;return Array.from({length:a},(function(){var e="dark"===o?n.shadeColor(-1*l,r):n.shadeColor(l,r);return l+=s,e}))}},{key:"applyColorTypes",value:function(e,t){var n=this,r=this.w;e.forEach((function(e){r.globals[e].colors=void 0===r.config[e].colors?n.isColorFn?r.config.colors:t:r.config[e].colors.slice(),n.pushExtraColors(r.globals[e].colors)}))}},{key:"applyDataLabelsColors",value:function(e){var 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)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#424242":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var 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)}},{key:"pushExtraColors",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=t||r.globals.series.length;if(null===n&&(n=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap&&r.config.plotOptions.heatmap.colorScale.inverse),n&&r.globals.series.length&&(i=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.length<i)for(var o=i-e.length,a=0;a<o;a++)e.push(e[a])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,n="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",r="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=r,e.theme.palette=n,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),e}(),ce=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,n="title"===e?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,i=n.offsetY,o="middle";if("left"===n.align?(r=10,o="start"):"right"===n.align&&(r=t.globals.svgWidth-10,o="end"),r+=n.offsetX,i=i+p
2arseInt(n.style.fontSize,10)+n.margin/2,void 0!==n.text){var a=new A(this.ctx).drawText({x:r,y:i,text:n.text,textAnchor:o,fontSize:n.style.fontSize,fontFamily:n.style.fontFamily,fontWeight:n.style.fontWeight,foreColor:n.style.color,opacity:1});a.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(a)}}}]),e}(),ue=function(){function e(t){a(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,n=0,r=0,i="title"===e?t.config.title.floating:t.config.subtitle.floating,o=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==o&&!i){var a=o.getBoundingClientRect();n=a.width,r=t.globals.axisCharts?a.height+5:a.height}return{width:n,height:r}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var n=Object.assign({},C.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:n.x,y:n.y,height:n.height,width:0===n.height?0:n.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,n=[];t.config.series.forEach((function(i,o){i.data.forEach((function(i,a){var s;s=t.globals.series[o][a],r=t.config.dataLabels.formatter(s,{ctx:e.dCtx.ctx,seriesIndex:o,dataPointIndex:a,w:t}),n.push(r)}))}));var r=C.getLargestStringFromArr(n),i=new A(this.dCtx.ctx),o=t.config.dataLabels.style,a=i.getTextRects(r,parseInt(o.fontSize),o.fontFamily);return{width:1.05*a.width,height:a.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var n=e;if(this.w.globals.isMultiLineX){var r=t.map((function(e,t){return Array.isArray(e)?e.length:1})),i=Math.max.apply(Math,b(r));n=t[r.indexOf(i)]}return n}}]),e}(),de=function(){function e(t){a(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,n=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===n.length&&(n=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var i=t.globals.xLabelFormatter,o=C.getLargestStringFromArr(n),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,n);t.globals.isBarHorizontal&&(a=o=t.globals.yAxisScale[0].result.reduce((function(e,t){return e.length>t.length?e:t}),0));var s=new M(this.dCtx.ctx),l=o;o=s.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new O(this.dCtx.ctx).formatDate,w:t}),a=s.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new O(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===o||""===String(o).trim())&&(a=o="1");var c=new A(this.dCtx.ctx),u=c.getTextRects(o,t.config.xaxis.labels.style.fontSize),d=u;if(o!==a&&(d=c.getTextRects(a,t.config.xaxis.labels.style.fontSize)),(e={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height}).width*n.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};u=h(o),o!==a&&(d=h(a)),e.height=(u.height>d.height?u.height:d.height)/1.5,e.width=u.width>d.width?u.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var n,r=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.globals.groups.map((function(e){return e.title})),o=C.getLargestStringFromArr(i),a=this.dCtx.dimHelpers.getLargestStringFromMultiArr(o,i),s=new A(this.dCtx.ctx),l=s.getTextRects(o,r),c=l;return o!==a&&(c=s.getTextRects(a,r)),n={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(n={width:0,height:0}),{width:n.width,height:n.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,n=0;if(void 0!==e.config.xaxis.title.text){var r=new A(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,n=r.height}return{width:t,height:n}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var n=this.dCtx.timescaleLabels.map((function(e){return e.value})),r=n.reduce((function(e,t){return void 0===e?(console.error("You have possibly supplied invali
2d Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t}),0);return 1.05*(e=new A(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*n.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,n=this.w,r=n.globals,i=n.config,o=i.xaxis.type,a=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var s=n.config.yaxis[0].opposite&&n.globals.isBarHorizontal,l=function(e,s){i.yaxis.length>1&&function(e){return-1!==r.collapsedSeriesIndices.indexOf(e)}(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+a/1.75-t.dCtx.yAxisWidthRight,c=s.position-a/1.75+t.dCtx.yAxisWidthLeft,u="right"===n.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>r.svgWidth-r.translateX-u&&(r.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:a/1.75)&&(r.skipFirstTimelinelabel=!0)}else"datetime"===o?t.dCtx.gridPad.right<a&&!r.rotateXLabels&&(r.skipLastTimelinelabel=!0):"datetime"!==o&&t.dCtx.gridPad.right<a/2-t.dCtx.yAxisWidthRight&&!r.rotateXLabels&&!n.config.xaxis.labels.trim&&(t.dCtx.xPadRight=a/2+1)}(e)};i.yaxis.forEach((function(e,n){s?(t.dCtx.gridPad.left<a&&(t.dCtx.xPadLeft=a/2+1),t.dCtx.xPadRight=a/2+1):l(e,n)}))}}]),e}(),he=function(){function e(t){a(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,n=[],r=10,i=new P(this.dCtx.ctx);return t.config.yaxis.map((function(o,a){var s={seriesIndex:a,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[a],c=0;if(!i.isYAxisHidden(a)&&o.labels.show&&void 0!==o.labels.minWidth&&(c=o.labels.minWidth),!i.isYAxisHidden(a)&&o.labels.show&&l.result.length){var u=t.globals.yLabelFormatters[a],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,h=l.result.reduce((function(e,t){var n,r;return(null===(n=String(u(e,s)))||void 0===n?void 0:n.length)>(null===(r=String(u(t,s)))||void 0===r?void 0:r.length)?e:t}),d),f=h=u(h,s);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){r=0;var p=t.globals.labels.slice();h=C.getLargestStringFromArr(p),h=u(h,{seriesIndex:a,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var g=new A(e.dCtx.ctx),m="rotate(".concat(o.labels.rotate," 0 0)"),v=g.getTextRects(h,o.labels.style.fontSize,o.labels.style.fontFamily,m,!1),y=v;h!==f&&(y=g.getTextRects(f,o.labels.style.fontSize,o.labels.style.fontFamily,m,!1)),n.push({width:(c>y.width||c>v.width?c:y.width>v.width?y.width:v.width)+r,height:y.height>v.height?y.height:v.height})}else n.push({width:0,height:0})})),n}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,n=[];return t.config.yaxis.map((function(t,r){if(t.show&&void 0!==t.title.text){var i=new A(e.dCtx.ctx),o="rotate(".concat(t.title.rotate," 0 0)"),a=i.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,o,!1);n.push({width:a.width,height:a.height})}else n.push({width:0,height:0})})),n}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,n=0,r=0,i=e.globals.yAxisScale.length>1?10:0,o=new P(this.dCtx.ctx),a=function(a,s){var l=e.config.yaxis[s].floating,c=0;a.width>0&&!l?(c=a.width+i,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(s)&&(c=c-a.width-i)):c=l||o.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?r+=c:n+=c,t+=c};return e.globals.yLabelsCoords.map((function(e,t){a(e,t)})),e.globals.yTitleCoords.map((function(e,t){a(e,t)})),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=n,this.dCtx.yAxisWidthRight=r,t}}]),e}(),fe=function(){function e(t){a(this,e),this.w=t.w,this.dCtx=t}return l(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,n=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.series.length)return 0;var i=function(e){return["bar","rangeBar","candlestick","boxPlot"].includes(e)},o=n.chart.type,a=0,s=i(o)?n.series.length:1;r.comboBarCount>
vendor: 15,966 bytes, line 2
20&&(s=r.comboBarCount),r.collapsedSeries.forEach((function(e){i(e.type)&&(s-=1)})),n.chart.stacked&&(s=1);var l=i(o)||r.comboBarCount>0,c=Math.abs(r.initialMaxX-r.initialMinX);if(l&&r.isXNumeric&&!r.isBarHorizontal&&s>0&&0!==c){c<=3&&(c=r.dataPoints);var u=c/e,d=r.minXDiff&&r.minXDiff/u>0?r.minXDiff/u:0;d>e/2&&(d/=2),(a=d*parseInt(n.plotOptions.bar.columnWidth,10)/100)<1&&(a=1),r.barPadForNumericAxis=a}return a}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,n=t.globals,r=this.dCtx.isSparkline||!n.axisCharts?0:10;["title","subtitle"].forEach((function(i){void 0!==t.config[i].text?r+=t.config[i].margin:r+=e.dCtx.isSparkline||!n.axisCharts?0:5})),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||n.axisCharts||(r+=10);var i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),o=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");n.gridHeight-=i.height+o.height+r,n.translateY+=i.height+o.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var n=this.w,r=new P(this.dCtx.ctx);n.config.yaxis.forEach((function(i,o){-1!==n.globals.ignoreYAxisIndexes.indexOf(o)||i.floating||r.isYAxisHidden(o)||(i.opposite&&(n.globals.translateX-=t[o].width+e[o].width+parseInt(i.labels.style.fontSize,10)/1.2+12),n.globals.translateX<2&&(n.globals.translateX=2))}))}}]),e}(),pe=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new ue(this),this.dimYAxis=new he(this),this.dimXAxis=new de(this),this.dimGrid=new fe(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return l(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,n=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var r=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,b(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach((function(t){var n=y(t,2),r=n[0],i=n[1];e.gridPad[r]=Math.max(i,e.w.globals.markers.largestSize/1.5)})),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),n.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),n.gridHeight=n.gridHeight-this.gridPad.top-this.gridPad.bottom,n.gridWidth=n.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(n.gridWidth);n.gridWidth=n.gridWidth-2*i,n.translateX=n.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),n.translateY=n.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,n=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();n.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map((function(e,n){t.globals.yLabelsCoords.push({width:r[n].width,index:n}),t.globals.yTitleCoords.push({width:i[n].width,index:n})})),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var o=this.dimXAxis.getxAxisLabelsCoords(),a=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(o,s,a),n.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,n.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(n.rotateXLabels=!1,n.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),n.translateXAxisY=n.translateXAxisY+t.config.xaxis.labels.offsetY,n.translateXAxisX=n.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;n.xAxisLabelsHeight=this.xAxisHeight-s.height,n.xAxisGroupLabelsHeight=n.xAxisLabelsHeight-o.height,n.xAxisLabelsWidth=this.xAxisWidth,n.xAxisHeight=this.xAxisHeight;var u=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,u=0),this.isSparkline||"treemap"===t.config.chart.type||this.dimXAxis.additionalPaddingXLabels(o);var d=function(){n.translateX=l+e.datalabelsCoords.width,n.gridHeight=n.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),n.gridWidth=n.svgWidth-l-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(u=n.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":n.translateY=u,d();break;case"top":n.translateY=this.lgRect.height+u,d();break;case"left":n.translateY=u,n.translateX=this.lgRect.width+l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":n.translateY=u,n.translateX=l+this.datalabelsCoords.width,n.gridHeight=n.svgHeight-c-12,n.gridWidth=n.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,r),new ne(this.ctx).setYAxisXPosition(r,i)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var i="pie"===n.chart.type||"polarArea"===n.chart.type||"donut"===n.chart.type?"pie":"radialBar",o=n.plotOptions[i].offsetY,a=n.plotOptions[i].offsetX;if(!n.legend.show||n.legend.floating){t.gridHeight=t.svgHeight;var s=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(s,t.gridHeight),t.translateY=o,void(t.translateX=a+(t.svgWidth-t.gridWidth)/2)}switch(n.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=o-10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+o+10,t.translateX=a+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=a+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight="auto"!==n.chart.height?t.svgHeight:t.gridWidth,t.translateY=o,t.translateX=a+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,n){var r=this.w,i=r.globals.hasXaxisGroups?2:1,o=n.height+e.height+t.height,a=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,s=r.globals.rotateXLabels?22:10,l=r.globals.rotateXLabels&&"bottom"===r.config.legend.position?10:0;this.xAxisHeight=o*a+i*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,u=0;r.config.yaxis.forEach((function(e){c+=e.labels.minWidth,u+=e.labels.maxWidth})),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>u&&(this.yAxisWidth=u)}}]),e}(),ge=function(){function e(t){a(this,e),this.w=t.w,this.lgCtx=t}return l(e,[{key:"getLegendStyles",value:function(){var e,t,n,r=document.createElement("style");r.setAttribute("type","text/css");var i=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(n=t.chart)||void 0===n?void 0:n.nonce)||this.w.config.chart.nonce;i&&r.setAttribute("nonce",i);var o=document.createTextNode("\n      .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.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      }\n      .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n        justify-content: 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      }\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      }");return r.appendChild(o),r}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var n=this,r=this.w;if(r.globals.axisCharts||"radialBar"===r.config.chart.type){r.globals.resized=!0;var i=null,o=null;r.globals.risingSeries=[],r.globals.axisCharts?(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),o=parseInt(i.getAttribute("data:realIndex"),10)):(i=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),o=parseInt(i.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach((function(e){n.riseCollapsedSeries(e.cs,e.csi,o)})):this.hideSeries({seriesEl:i,realIndex:o})}else{var a=r.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=r.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=r.config.plotOptions.pie.donut.labels;new A(this.lgCtx.ctx).pathMouseDown(a.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(a.members[0].node,l)}a.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,n=this.w,r=n.globals,i=C.clone(n.config.series);if(r.axisCharts){var o=n.config.yaxis[r.seriesYAxisReverseMap[t]],a={index:t,data:i[t].data.slice(),type:i[t].type||n.config.chart.type};if(o&&o.show&&o.showAlways)r.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(r.ancillaryCollapsedSeries.push(a),r.ancillaryCollapsedSeriesIndices.push(t));else if(r.collapsedSeriesIndices.indexOf(t)<0){r.collapsedSeries.push(a),r.collapsedSeriesIndices.push(t);var s=r.risingSeries.indexOf(t);r.risingSeries.splice(s,1)}}else r.collapsedSeries.push({index:t,data:i[t]}),r.collapsedSeriesIndices.push(t);return r.allSeriesCollapsed=r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===n.config.series.length,this._getSeriesBasedOnCollapsedState(i)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,n=e.realIndex,r=this.w,i=this.getSeriesAfterCollapsing({realIndex:n}),o=t.childNodes,a=0;a<o.length;a++)o[a].classList.contains("apexcharts-series-markers-wrap")&&(o[a].classList.contains("apexcharts-hide")?o[a].classList.remove("apexcharts-hide"):o[a].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,n){var r=this.w,i=C.clone(r.config.series);if(e.length>0){for(var o=0;o<e.length;o++)e[o].index===n&&(r.globals.axisCharts?i[n].data=e[o].data.slice():i[n]=e[o].data,i[n].hidden=!1,e.splice(o,1),t.splice(o,1),r.globals.risingSeries.push(n));i=this._getSeriesBasedOnCollapsedState(i),this.lgCtx.ctx.updateHelpers._updateSeries(i,r.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,n=0;return t.globals.axisCharts?e.forEach((function(r,i){t.globals.collapsedSeriesIndices.indexOf(i)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0||(e[i].data=[],n++)})):e.forEach((function(r,i){!t.globals.collapsedSeriesIndices.indexOf(i)<0&&(e[i]=0,n++)})),t.globals.allSeriesCollapsed=n===e.length,e}}]),e}(),me=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ge(this)}return l(e,[{key:"init",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(r||!t.axisCharts)&&n.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===n.legend.position||"top"===n.legend.position?this.legendAlignHorizontal():"right"!==n.legend.position&&"left"!==n.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,n=e.fillcolor,r=this.w,i=document.createElement("span");i.classList.add("apexcharts-legend-marker");var o=r.config.legend.markers.shape||r.config.markers.shape,a=o;Array.isArray(o)&&(a=o[t]);var s=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[t]):parseFloat(r.config.legend.markers.size),l=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[t]):parseFloat(r.config.legend.markers.offsetX),c=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[t]):parseFloat(r.config.legend.markers.offsetY),u=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[t]):parseFloat(r.config.legend.markers.strokeWidth),d=i.style;if(d.height=2*(s+u)+"px",d.width=2*(s+u)+"px",d.left=l+"px",d.top=c+"px",r.config.legend.markers.customHTML)d.background="transparent",d.color=n[t],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[t]&&(i.innerHTML=r.config.legend.markers.customHTML[t]()):i.innerHTML=r.config.legend.markers.customHTML();else{var h=new G(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(a),seriesIndex:t,strokeWidth:u,size:s}),f=SVG(i).size("100%","100%"),p=new A(this.ctx).drawMarker(0,0,m(m({},h),{},{pointFillColor:Array.isArray(n)?n[t]:h.pointFillColor,shape:a}));SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEac
2h((function(e){e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"})),f.add(p)}return i}},{key:"drawLegends",value:function(){var e=this,t=this.w,n=t.config.legend.fontFamily,r=t.globals.seriesNames,i=t.config.legend.markers.fillColors?t.config.legend.markers.fillColors.slice():t.globals.colors.slice();if("heatmap"===t.config.chart.type){var o=t.config.plotOptions.heatmap.colorScale.ranges;r=o.map((function(e){return e.name?e.name:e.from+" - "+e.to})),i=o.map((function(e){return e.color}))}else this.isBarsDistributed&&(r=t.globals.labels.slice());t.config.legend.customLegendItems.length&&(r=t.config.legend.customLegendItems);for(var a=t.globals.legendFormatter,s=t.config.legend.inverseOrder,l=s?r.length-1:0;s?l>=0:l<=r.length-1;s?l--:l++){var c,u=a(r[l],{seriesIndex:l,w:t}),d=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var f=0;f<t.globals.collapsedSeries.length;f++)t.globals.collapsedSeries[f].index===l&&(d=!0);if(t.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<t.globals.ancillaryCollapsedSeriesIndices.length;p++)t.globals.ancillaryCollapsedSeriesIndices[p]===l&&(h=!0);var g=this.createLegendMarker({i:l,fillcolor:i});A.setAttrs(g,{rel:l+1,"data:collapsed":d||h}),(d||h)&&g.classList.add("apexcharts-inactive-legend");var m=document.createElement("div"),v=document.createElement("span");v.classList.add("apexcharts-legend-text"),v.innerHTML=Array.isArray(u)?u.join(" "):u;var y=t.config.legend.labels.useSeriesColors?t.globals.colors[l]:Array.isArray(t.config.legend.labels.colors)?null===(c=t.config.legend.labels.colors)||void 0===c?void 0:c[l]:t.config.legend.labels.colors;y||(y=t.config.chart.foreColor),v.style.color=y,v.style.fontSize=parseFloat(t.config.legend.fontSize)+"px",v.
2style.fontWeight=t.config.legend.fontWeight,v.style.fontFamily=n||t.config.chart.fontFamily,A.setAttrs(v,{rel:l+1,i:l,"data:default-text":encodeURIComponent(u),"data:collapsed":d||h}),m.appendChild(g),m.appendChild(v);var b=new L(this.ctx);t.config.legend.showForZeroSeries||0===b.getSeriesTotalByIndex(l)&&b.seriesHaveSameValues(l)&&!b.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&m.classList.add("apexcharts-hidden-zero-series"),t.config.legend.showForNullSeries||b.isSeriesNull(l)&&-1===t.globals.collapsedSeriesIndices.indexOf(l)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(l)&&m.classList.add("apexcharts-hidden-null-series"),t.globals.dom.elLegendWrap.appendChild(m),t.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(t.config.legend.horizontalAlign)),t.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+t.config.legend.position),m.classList.add("apexcharts-legend-series"),m.style.margin="".concat(t.config.legend.itemMargin.vertical,"px ").concat(t.config.legend.itemMargin.horizontal,"px"),t.globals.dom.elLegendWrap.style.width=t.config.legend.width?t.config.legend.width+"px":"",t.globals.dom.elLegendWrap.style.height=t.config.legend.height?t.config.legend.height+"px":"",A.setAttrs(m,{rel:l+1,seriesName:C.escapeString(r[l]),"data:collapsed":d||h}),(d||h)&&m.classList.add("apexcharts-inactive-legend"),t.config.legend.onItemClick.toggleDataSeries||m.classList.add("apexcharts-no-click")}t.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),t.config.legend.onItemHover.highlightDataSeries&&0===t.config.legend.customLegendItems.length&&(t.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),t.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var n=this.w,r=n.globals.dom.elLegendWrap,i=r.clientHeight,o=0,a=0;if("bottom"===n.config.legend.position)a=n.globals.svgHeight-Math.min(i,n.globals.svgHeight/2)-5;else if("top"===n.config.legend.position){var s=new pe(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,c=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;a=(l>0?l-10:0)+(c>0?c-10:0)}r.style.position="absolute",o=o+e+n.config.legend.offsetX,a=a+t+n.config.legend.offsetY,r.style.left=o+"px",r.style.top=a+"px","right"===n.config.legend.position&&(r.style.left="auto",r.style.right=25+n.config.legend.offsetX+"px"),["width","height"].forEach((function(e){r.style[e]&&(r.style[e]=parseInt(n.config.legend[e],10)+"px")}))}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=new pe(this.ctx),n=t.dimHelpers.getTitleSubtitleCoords("title"),r=t.dimHelpers.getTitleSubtitleCoords("subtitle"),i=0;"top"===e.config.legend.position&&(i=n.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,i)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),n=0;"left"===e.config.legend.position&&(n=20),"right"===e.config.legend.position&&(n=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(n,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,n=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(n){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new q(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&n&&new q(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var n=parseInt(e.target.getAttribute("rel"),10)-1,r="true"===e.target.getAttribute("data:collapsed"),i=this.w.config.chart.events.legendClick;"function"==typeof i&&i(this.ctx,n,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,n,this.w]);var o=this.w.config.legend.markers.onClick;"function"==typeof o&&e.target.classList.contains("apexcharts-legend-marker")&&(o(this.ctx,n,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,n,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(n,r)}}}]),e}(),ve=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=n.globals.minX,this.maxX=n.globals.maxX}return l(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,n=function(){return document.createElement("div")},r=n();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=n(),this.elZoomIn=n(),this.elZoomOut=n(),this.elPan=n(),this.elSelection=n(),this.elZoomReset=n(),this.elMenuIcon=n(),this.elMenu=n(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(n());var o=[],a=function(n,r,i){var a=n.toLowerCase();e.t[a]&&t.config.chart.zoom.enabled&&o.push({el:r,icon:"string"==typeof e.t[a]?e.t[a]:i,title:e.localeValues[n],class:"apexcharts-".concat(a,"-icon")})};a("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),a("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var s=function(n){e.t[n]&&t.config.chart[n].enabled&&o.push({el:"zoom"===n?e.elZoom:e.elSelection,icon:"string"==typeof e.t[n]?e.t[n]:"zoom"===n?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===n?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(n,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&o.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 
20-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),a("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&o.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)o.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});o.forEach((function(e,t){e.index&&C.moveIndexInArray(o,t,e.index)}));for(var c=0;c<o.length;c++)A.setAttrs(o[c].el,{class:o[c].class,title:o[c].title}),o[c].el.innerHTML=o[c].icon,r.appendChild(o[c].el);this._createHamburgerMenu(r),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),A.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],n=0;n<t.length;n++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[n].innerHTML=t[n].title,A.setAttrs(this.elMenuItems[n],{class:"apexcharts-menu-item ".concat(t[n].name),title:t[n].title}),this.elMenu.appendChild(this.elMenuItems[n])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach((function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))}));for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach((function(t){t.ctx.toolbar.toggleOtherControls();var n="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r],n.classList.contains(t.ctx.toolbar.selectedClass)?n.classList.remove(t.ctx.toolbar.selectedClass):n.classList.add(t.ctx.toolbar.selectedClass)}))}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,n="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),n&&n.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEac
vendor: 5,289 bytes, line 2
2h((function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)}))}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach((function(t){t&&t.classList.remove(e.selectedClass)}))}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,n=(this.minX+t)/2,r=(this.maxX+t)/2,i=this._getNewMinXMaxX(n,r);e.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,n=this.minX-(t-this.minX),r=this.maxX-(t-this.maxX),i=this._getNewMinXMaxX(n,r);e.globals.disableZoomOut||this.zoomUpdateOptions(i.minX,i.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var n=this.w.config.xaxis.convertedCatToNumeric;return{minX:n?Math.floor(e):e,maxX:n?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var n=this.w;if(void 0!==e||void 0!==t){if(!(n.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=n.globals.dataPoints),t-e<2))){var r={min:e,max:t},i=this.getBeforeZoomRange(r);i&&(r=i.xaxis);var o={xaxis:r},a=C.clone(n.globals.initialConfig.yaxis);n.config.chart.group||(o.yaxis=a),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(o,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,a)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var n=null;return"function"==typeof this.ev.beforeZoom&&(n=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),n}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout((function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")}),0)}},{key:"handleDownload",value:function(e){var t=this.w,n=new K(this.ctx);switch(e){case"svg":n.exportToSVG(this.ctx);break;case"png":n.exportToPng(this.ctx);break;case"csv":n.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach((function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var n=t.config.chart.events.beforeResetZoom(e,t);n&&e.updateHelpers.revertDefaultAxisMinMax(n)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var r=e.ctx.series.emptyCollapsedSeries(C.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(r,t.config.chart.animations.dynamicAnimation.enabled)}))}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),ye=function(){f(t,ve);var e=u(t);function t(n){var r;return a(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.dragged=!1,r.graphics=new A(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r.debounceTimer=null,r.debounceDelay=100,r.wheelDelay=400,r}return l(t,[{key:"init",value:function(e){var t=this,n=e.xyRatios,r=this.w,i=this;this.xyRatios=n,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=r.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),r.globals.dom.elGraphical.add(this.zoomRect),r.globals.dom.elGraphical.add(this.selectionRect),"x"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:r.globals.gridWidth,maxY:r.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:r.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=r.globals.dom.baseEl.querySelector("".concat(r.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach((function(e){t.hoverArea.addEventListener(e,i.svgMouseEvents.bind(i,n),{capture:!1,passive:!0})}
2)),r.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",i.mouseWheelEvent.bind(i),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var n=this.w,r=this,i=this.ctx.toolbar,o=n.globals.zoomEnabled?n.config.chart.zoom.type:n.config.chart.selection.type,a=n.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,i.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(i.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1),t.target){var s,l=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(s=t.target.parentNode.classList),!(l.contains("apexcharts-selection-rect")||l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||s&&s.contains("apexcharts-toolbar"))){if(r.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,r.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var c=r.gridRect.getBoundingClientRect();r.startX=r.clientX-c.left,r.startY=r.clientY-c.top,r.dragged=!1,r.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(r.dragged=!0,n.globals.panEnabled?(n.globals.selection=null,r.w.globals.mousedown&&r.panDragging({context:r,zoomtype:o,xyRatios:e})):(r.w.globals.mousedown&&n.globals.zoomEnabled||r.w.globals.mousedown&&n.globals.selectionEnabled)&&(r.selection=r.selectionDrawing({context:r,zoomtype:o}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var u,d=null===(u=r.gridRect)||void 0===u?void 0:u.getBoundingClientRect();d&&r.w.globals.mousedown&&(r.endX=r.clientX-d.left,r.endY=r.clientY-d.top,r.dragX=Math.abs(r.endX-r.startX),r.dragY=Math.abs(r.endY-r.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&r.selectionDrawn({context:r,zoomtype:o}),n.globals.panEnabled&&n.config.xaxis.convertedCatToNumeric&&r.delayedPanScrolled()),n.globals.zoomEnabled&&r.hideSelectionRect(this.selectionRect),r.dragged=!1,r.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"mouseWheelEvent",value:function(e){var t=this,n=this.w;e.preventDefault();var r=Date.now();r-n.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),n.globals.lastWheelExecution=r),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){r-n.globals.lastWheelExecution>t.wheelDelay&&(t.executeMouseWheelZoom(e),n.globals.lastWheelExecution=r)}),this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(e){var t,n=this.w;this.minX=n.globals.isRangeBar?n.globals.minY:n.globals.minX,this.maxX=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;var r=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();if(r){var i,o,a,s=(e.clientX-r.left)/r.width,l=this.minX,c=this.maxX,u=c-l;if(e.deltaY<0){var d=l+s*u;o=d-(i=.5*u)/2,a=d+i/2}else o=l-(i=1.5*u)/2,a=c+i/2;if(!n.globals.isRangeBar){o=Math.max(o,n.globals.initialMinX),a=Math.min(a,n.globals.initialMaxX);var h=.01*(n.globals.initialMaxX-n.globals.initialMinX);if(a-o<h){var f=(o+a)/2;o=f-h/2,a=f+h/2}}var p=this._getNewMinXMaxX(o,a);isNaN(p.minX)||isNaN(p.maxX)||this.zoomUpdateOptions(p.minX,p.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var n=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,r=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-n;e.globals.isRangeBar&&(n=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,r=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var i={x:n,y:0,width:r,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,n=e.y,r=e.width,i=e.he
2ight,o=e.translateX,a=void 0===o?0:o,s=e.translateY,l=void 0===s?0:s,c=this.w,u=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var h={transform:"translate("+a+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),u.attr({x:t,y:n,width:r,height:i,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),A.setAttrs(u.node,h)),c.globals.selectionEnabled&&(d.attr({x:t,y:n,width:r>0?r:0,height:i>0?i:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),A.setAttrs(d.node,h))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t,n=e.context,r=e.zoomtype,i=this.w,o=n,a=this.gridRect.getBoundingClientRect(),s=o.startX-1,l=o.startY,c=!1,u=!1,d=o.clientX-a.left-s,h=o.clientY-a.top-l;return Math.abs(d+s)>i.globals.gridWidth?d=i.globals.gridWidth-s:o.clientX-a.left<0&&(d=s),s>o.clientX-a.left&&(c=!0,d=Math.abs(d)),l>o.clientY-a.top&&(u=!0,h=Math.abs(h)),t="x"===r?{x:c?s-d:s,y:0,width:d,height:i.globals.gridHeight}:"y"===r?{x:0,y:u?l-h:l,width:i.globals.gridWidth,height:h}:{x:c?s-d:s,y:u?l-h:l,width:d,height:h},o.drawSelectionRect(t),o.selectionDragging("resizing"),t}},{key:"selectionDragging",value:function(e,t){var n=this,r=this.w,i=this.xyRatios,o=this.selectionRect,a=0;"resizing"===e&&(a=30);var s=function(e){return parseFloat(o.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};r.globals.selection=l,"function"==typeof r.config.chart.events.selection&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout((function(){var e,t,a,s,l=n.gridRect.getBoundingClientRect(),c=o.node.getBoundingClientRect();r.globals.isRangeBar?(e=r.globals.yAxisScale[0].niceMin+(c.left-l.left)*i.invertedYRatio,t=r.globals.yAxisScale[0].niceMin+(c.right-l.left)*i.invertedYRatio,a=0,s=1):(e=r.globals.xAxisScale.niceMin+(c.left-l.left)*i.xRatio,t=r.globals.xAxisScale.niceMin+(c.right-l.left)*i.xRatio,a=r.globals.yAxisScale[0].niceMin+(l.bottom-c.bottom)*i.yRatio[0],s=r.globals.yAxisScale[0].niceMax-(c.top-l.top)*i.yRatio[0]);var u={xaxis:{min:e,max:t},yaxis:{min:a,max:s}};r.config.chart.events.selection(n.ctx,u),r.config.chart.brush.enabled&&void 0!==r.config.chart.events.brushScrolled&&r.config.chart.events.brushScrolled(n.ctx,u)}),a))}},{key:"selectionDrawn",value:function(e){var t=e.context,n=e.zoomtype,r=this.w,i=t,o=this.xyRatios,a=this.ctx.toolbar;if(i.startX>i.endX){var s=i.startX;i.startX=i.endX,i.endX=s}if(i.startY>i.endY){var l=i.startY;i.startY=i.endY,i.endY=l}var c=void 0,u=void 0;r.globals.isRangeBar?(c=r.globals.yAxisScale[0].niceMin+i.startX*o.invertedYRatio,u=r.globals.yAxisScale[0].niceMin+i.endX*o.invertedYRatio):(c=r.globals.xAxisScale.niceMin+i.startX*o.xRatio,u=r.globals.xAxisScale.niceMin+i.endX*o.xRatio);var d=[],h=[];if(r.config.yaxis.forEach((function(e,t){var n=r.globals.seriesYAxisMap[t][0];d.push(r.globals.yAxisScale[t].niceMax-o.yRatio[n]*i.startY),h.push(r.globals.yAxisScale[t].niceMax-o.yRatio[n]*i.endY)})),i.dragged&&(i.dragX>10||i.dragY>10)&&c!==u)if(r.globals.zoomEnabled){var f=C.clone(r.globals.initialConfig.yaxis),p=C.clone(r.globals.initialConfig.xaxis);if(r.globals.zoomed=!0,r.config.xaxis.convertedCatToNumeric&&(c=Math.floor(c),u=Math.floor(u),c<1&&(c=1,u=r.globals.dataPoints),u-c<2&&(u=c+1)),"xy"!==n&&"x"!==n||(p={min:c,max:u}),"xy"!==n&&"y"!==n||f.forEach((function(e,t){f[t].min=h[t],f[t].max=d[t]})),a){var g=a.getBeforeZoomRange(p,f);g&&(p=g.xaxis?g.xaxis:p,f=g.yaxis?g.yaxis:f)}var m={xaxis:p};r.config.chart.group||(m.yaxis=f),i.ctx.updateHelpers._updateOptions(m,!1,i.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof r.config.chart.events.zoomed&&a.zoomCallback(p,f)}else if(r.globals.selectionEnabled){var v,y=null;v={min:c,max:u}
2,"xy"!==n&&"y"!==n||(y=C.clone(r.config.yaxis)).forEach((function(e,t){y[t].min=h[t],y[t].max=d[t]})),r.globals.selection=i.selection,"function"==typeof r.config.chart.events.selection&&r.config.chart.events.selection(i.ctx,{xaxis:v,yaxis:y})}}},{key:"panDragging",value:function(e){var t=e.context,n=this.w,r=t;if(void 0!==n.globals.lastClientPosition.x){var i=n.globals.lastClientPosition.x-r.clientX,o=n.globals.lastClientPosition.y-r.clientY;Math.abs(i)>Math.abs(o)&&i>0?this.moveDirection="left":Math.abs(i)>Math.abs(o)&&i<0?this.moveDirection="right":Math.abs(o)>Math.abs(i)&&o>0?this.moveDirection="up":Math.abs(o)>Math.abs(i)&&o<0&&(this.moveDirection="down")}n.globals.lastClientPosition={x:r.clientX,y:r.clientY};var a=n.globals.isRangeBar?n.globals.minY:n.globals.minX,s=n.globals.isRangeBar?n.globals.maxY:n.globals.maxX;n.config.xaxis.convertedCatToNumeric||r.panScrolled(a,s)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,n=e.globals.maxX,r=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+r,n=e.globals.maxX+r):"right"===this.moveDirection&&(t=e.globals.minX-r,n=e.globals.maxX-r),t=Math.floor(t),n=Math.floor(n),this.updateScrolledChart({xaxis:{min:t,max:n}},t,n)}},{key:"panScrolled",value:function(e,t){var n=this.w,r=this.xyRatios,i=C.clone(n.globals.initialConfig.yaxis),o=r.xRatio,a=n.globals.minX,s=n.globals.maxX;n.globals.isRangeBar&&(o=r.invertedYRatio,a=n.globals.minY,s=n.globals.maxY),"left"===this.moveDirection?(e=a+n.globals.gridWidth/15*o,t=s+n.globals.gridWidth/15*o):"right"===this.moveDirection&&(e=a-n.globals.gridWidth/15*o,t=s-n.globals.gridWidth/15*o),n.globals.isRangeBar||(e<n.globals.initialMinX||t>n.globals.initialMaxX)&&(e=a,t=s);var l={xaxis:{min:e,max:t}};n.config.chart.group||(l.yaxis=i),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,n){var r=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof r.config.chart.events.scrolled&&r.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:n}})}}]),t}(),be=function(){function e(t){a(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return l(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,n=e.elGrid,r=e.clientX,i=e.clientY,o=this.w,a=n.getBoundingClientRect(),s=a.width,l=a.height,c=s/(o.globals.dataPoints-1),u=l/o.globals.dataPoints,d=this.hasBars();!o.globals.comboCharts&&!d||o.config.xaxis.convertedCatToNumeric||(c=s/o.globals.dataPoints);var h=r-a.left-o.globals.barPadForNumericAxis,f=i-a.top;h<0||f<0||h>s||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):o.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):o.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/c),g=Math.floor(f/u);d&&!o.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/c),p-=1);var m=null,v=null,y=o.globals.seriesXvalues.map((function(e){return e.filter((function(e){return C.isNumber(e)}))})),b=o.globals.seriesYvalues.map((function(e){return e.filter((function(e){return C.isNumber(e)}))}));if(o.globals.isXNumeric){var x=this.ttCtx.getElGrid().getBoundingClientRect(),w=h*(x.width/s),k=f*(x.height/l);m=(v=this.closestInMultiArray(w,k,y,b)).index,p=v.j,null!==m&&(y=o.globals.seriesXvalues[m],p=(v=this.closestInArray(w,y)).index)}return o.globals.capturedSeriesIndex=null===m?-1:m,(!p||p<1)&&(p=0),o.globals.isBarHorizontal?o.globals.capturedDataPointIndex=g:o.globals.capturedDataPointIndex=p,{capturedSeries:m,j:o.globals.isBarHorizontal?g:p,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,n,r){var i=this.w,o=0,a=null,s=-1;i.globals.series.length>1?o=this.getFirstActiveXArray(n):a=0;var l=n[o][0],c=Math.abs(e-l);if(n.forEach((function(t){t.forEach((function(t,n){var r=Math.abs(e-t);r<=c&&(c=r,s=n)}))})),-1!==s){var u=r[o][s],d=Math.abs(t-u);a=o,r.forEach((function(e,n){var r=Math.abs(t-e[s]);r<=d&&(d=r,a=n)}))}return{index:a,j:s}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,n=0,r=e.map((function(e,t){return e.length>0?t:-1})),i=0;i<r.length;i++)if(-1!==r[i]&&-1===t.globals.collapsedSeriesIndices.indexOf(i)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)){n=r[i];break}return n}},{key:"closestInArray",value:function(e,t){for(var n=t[0],r=null,i=Math.abs(e-n),o=0;o<t.length;o++){var a=Math.abs(e-t[o]);a<i&&(i=a,r=o)}return{index:r}}},{key:"isXoverlap",value:function(e){var t=[],n=this.w.globals.seriesX.filter((function(e){return void 0!==e[0]}));if(n.length>0)for(var r=0;r<n.length-1;r++)void 0!==n[r][e]&&void 0!==n[r+1][e]&&n[r][e]!==n[r+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,n=0;n<t.length-1;n++)if(t[n].data.length!==t[n+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return b(e).reduce((function(e,t){return e+t.getBBox().height}),0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=b(e)).sort((function(e,t){var n=Number(e.getAttribute("data:realIndex")),r=Number(t.getAttribute("data:realIndex"));return r<n?1:r>n?-1:0}));var t=[];return e.forEach((function(e){t.push(e.querySelector(".apexcharts-marker"))})),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var n=Number(e.getAttribute("cx")),r=Number(e.getAttribute("cy")),i=e.getAttribute("shape");return new A(this.ctx).getMarkerPath(n,r,i,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,n=t.config.markers.hover.size;return void 0===n&&(n=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),n}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,n=this.ttCtx;0===n.allTooltipSeriesGroups.length&&(n.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=n.allTooltipSeriesGroups,i=0;i<r.length;i++)"enable"===e?(r[i].classList.add("apexcharts-active"),r[i].style.display=t.config.tooltip.items.display):(r[i].classList.remove("apexcharts-active"),r[i].style.display="none")}}]),e}(),xe=function(){function e(t){a(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new be(t)}return l(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,n=void 0===t||t,r=e.ttItems,i=e.i,o=void 0===i?0:i,a=e.j,s=void 0===a?null:a,l=e.y1,c=e.y2,u=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:o,j:s,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(n,o);var h=this.getValuesToPrint({i:o,j:s});this.printLabels({i:o,j:s,values:h,ttItems:r,shared:n,e:u});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,n=this,r=e.i,i=e.j,o=e.values,a=e.ttItems,s=e.shared,l=e.e,c=this.w,u=[],d=function(e){return c.globals.seriesGoals[e]&&c.globals.seriesGoals[e][i]&&Array.isArray(c.globals.seriesGoals[e][i])},h=o.xVal,f=o.zVal,p=o.xAxisTTVal,g="",v=c.globals.colors[r];null!==i&&c.config.plotOptions.bar.distributed&&(v=c.globals.colors[i]);for(var y=function(e,o){var y=n.getFormatters(r);
2g=n.getSeriesName({fn:y.yLbTitleFormatter,index:r,seriesIndex:r,j:i}),"treemap"===c.config.chart.type&&(g=y.yLbTitleFormatter(String(c.config.series[r].data[i].x),{series:c.globals.series,seriesIndex:r,dataPointIndex:i,w:c}));var b=c.config.tooltip.inverseOrder?o:e;if(c.globals.axisCharts){var x=function(e){var t,n,r,o;return c.globals.isRangeData?y.yLbFormatter(null===(t=c.globals.seriesRangeStart)||void 0===t||null===(n=t[e])||void 0===n?void 0:n[i],{series:c.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:i,w:c})+" - "+y.yLbFormatter(null===(r=c.globals.seriesRangeEnd)||void 0===r||null===(o=r[e])||void 0===o?void 0:o[i],{series:c.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:i,w:c}):y.yLbFormatter(c.globals.series[e][i],{series:c.globals.series,seriesIndex:e,dataPointIndex:i,w:c})};if(s)y=n.getFormatters(b),g=n.getSeriesName({fn:y.yLbTitleFormatter,index:b,seriesIndex:r,j:i}),v=c.globals.colors[b],t=x(b),d(b)&&(u=c.globals.seriesGoals[b][i].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:b,dataPointIndex:i,w:c})}})));else{var w,k=null==l||null===(w=l.target)||void 0===w?void 0:w.getAttribute("fill");k&&(-1!==k.indexOf("url")?-1!==k.indexOf("Pattern")&&(v=c.globals.dom.baseEl.querySelector(k.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):v=k),t=x(r),d(r)&&Array.isArray(c.globals.seriesGoals[r][i])&&(u=c.globals.seriesGoals[r][i].map((function(e){return{attrs:e,val:y.yLbFormatter(e.value,{seriesIndex:r,dataPointIndex:i,w:c})}})))}}null===i&&(t=y.yLbFormatter(c.globals.series[r],m(m({},c),{},{seriesIndex:r,dataPointIndex:r}))),n.DOMHandling({i:r,t:b,j:i,ttItems:a,values:{val:t,goalVals:u,xVal:h,xAxisTTVal:p,zVal:f},seriesName:g,shared:s,pColor:v})},b=0,x=c.globals.series.length-1;b<c.globals.series.length;b++,x--)y(b,x)}},{key:"getFormatters",value:function(e){var t,n=this.w,r=n.globals.yLabelFormatters[e];return void 0!==n.globals.ttVal?Array.isArray(n.globals.ttVal)?(r=n.globals.ttVal[e]&&n.globals.ttVal[e].formatter,t=n.globals.ttVal[e]&&n.globals.ttVal[e].title&&n.globals.ttVal[e].title.formatter):(r=n.globals.ttVal.formatter,"function"==typeof n.globals.ttVal.title.formatter&&(t=n.globals.ttVal.title.formatter)):t=n.config.tooltip.y.title.formatter,"function"!=typeof r&&(r=n.globals.yLabelFormatters[0]?n.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:r,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,n=e.index,r=e.seriesIndex,i=e.j,o=this.w;return t(String(o.globals.seriesNames[n]),{series:o.globals.series,seriesIndex:r,dataPointIndex:i,w:o})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,n=e.j,r=e.ttItems,i=e.values,o=e.seriesName,a=e.shared,s=e.pColor,l=this.w,c=this.ttCtx,u=i.val,d=i.goalVals,h=i.xVal,f=i.xAxisTTVal,p=i.zVal,g=null;g=r[t].children,l.config.tooltip.fillSeriesColor&&(r[t].style.backgroundColor=s,g[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=h),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==f?f:h);var m=r[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=o||"");var v=r[t].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==u?u:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(s=l.config.tooltip.marker.fillColors[t]),g[0].style.backgroundColor=s),l.config.tooltip.marker.show||(g[0].style.display="none");var y=r[t].querySelector(".apexcharts-tooltip-text-goals-label"),b=r[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var x=function(){var e="<div >",t="<div>";d.forEach((function(n,r){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(n.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(n.attrs.name,"</div>"),t+="<div>".concat(n.val,"</div>")})),y.innerHTML=e+"</div>",b.innerHTML=t+"</div>"};a?l.globals.seriesGoals[t][n]&&Array.isArray(l.globals.seriesGoals[t][n])?x():(y.innerHTML="",b.innerHTML=""):x()}else y.innerHTML="",b.innerHTML="";if(null!==p&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),a&&g[0]){if(l.config.tooltip.hideEmptySeries){var w=r[t].querySelector(".apexcharts-tooltip-marker"),k=r[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(u)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==u||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)?g[0].parentNode.style.display="none":g[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)&&(g[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var n=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var r=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));r&&(r.classList.add("apexcharts-active"),r.style.display=n.config.tooltip.items.display)}}}
2,{key:"getValuesToPrint",value:function(e){var t=e.i,n=e.j,r=this.w,i=this.ctx.series.filteredSeriesX(),o="",a="",s=null,l=null,c={series:r.globals.series,seriesIndex:t,dataPointIndex:n,w:r},u=r.globals.ttZFormatter;null===n?l=r.globals.series[t]:r.globals.isXNumeric&&"treemap"!==r.config.chart.type?(o=i[t][n],0===i[t].length&&(o=i[this.tooltipUtil.getFirstActiveXArray(i)][n])):o=new Z(this.ctx).isFormatXY()?void 0!==r.config.series[t].data[n]?r.config.series[t].data[n].x:"":void 0!==r.globals.labels[n]?r.globals.labels[n]:"";var d=o;return o=r.globals.isXNumeric&&"datetime"===r.config.xaxis.type?new M(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new O(this.ctx).formatDate,w:this.w}):r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](d,c):r.globals.xLabelFormatter(d,c),void 0!==r.config.tooltip.x.formatter&&(o=r.globals.ttKeyFormatter(d,c)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(s=u(r.globals.seriesZ[t][n],r)),a="function"==typeof r.config.xaxis.tooltip.formatter?r.globals.xaxisTooltipFormatter(d,c):o,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(o)?o.join(" "):o,xAxisTTVal:Array.isArray(a)?a.join(" "):a,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,n=e.j,r=e.y1,i=e.y2,o=e.w,a=this.ttCtx.getElTooltip(),s=o.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),a.innerHTML=s({ctx:this.ctx,series:o.globals.series,seriesIndex:t,dataPointIndex:n,y1:r,y2:i,w:o})}}]),e}(),we=function(){function e(t){a(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return l(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.ttCtx,r=this.w,i=n.getElXCrosshairs(),o=e-n.xcrosshairsWidth/2,a=r.globals.labels.slice().length;if(null!==t&&(o=r.globals.gridWidth/a*t),null===i||r.globals.isBarHorizontal||(i.setAttribute("x",o),i.setAttribute("x1",o),i.setAttribute("x2",o),i.setAttribute("y2",r.globals.gridHeight),i.classList.add("apexcharts-active")),o<0&&(o=0),o>r.globals.gridWidth&&(o=r.globals.gridWidth),n.isXAxisTooltipEnabled){var s=o;"tickWidth"!==r.config.xaxis.crosshairs.width&&"barWidth"!==r.config.xaxis.crosshairs.width||(s=o+n.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&A.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&A.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;if(null!==n.xaxisTooltip&&0!==n.xcrosshairsWidth){n.xaxisTooltip.classList.add("apexcharts-active");var r,i=n.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;if(e-=n.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(e))e+=t.globals.translateX,r=new A(this.ctx).getTextRects(n.xaxisTooltipText.innerHTML),n.xaxisTooltipText.style.minWidth=r.width+"px",n.xaxisTooltip.style.left=e+"px",n.xaxisTooltip.style.top=i+"px"}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,n=this.ttCtx;null===n.yaxisTTEls&&(n.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(n.ycrosshairsHidden.getAttribute("y1"),10),i=t.globals.translateY+r,o=n.yaxisTTEls[e].getBoundingClientRect().height,a=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(a-=26),i-=o/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(n.yaxisTTEls[e].classList.add("apexcharts-active"),n.yaxisTTEls[e].style.top=i+"px",n.yaxisTTEls[e].style.left=a+t.config.yaxis[e].tooltip.offsetX+"px"):n.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,i=this.ttCtx,o=i.getElTooltip(),a=i.tooltipRect,s=null!==n?parseFloat(n):1,l=parseFloat(e)+s+5,c=parseFloat(t)+s/2;if(l>r.globals.gridWidth/2&&(l=l-a.ttWidth-s-10),l>r.globals.gridWidth-a.ttWidth-10&&(l=r.globals.gridWidth-a.ttWidth),l<-20&&(l=-20),r.config.tooltip.followCursor){var u=i.getElGrid().getBoundingClientRect();(l=i.e.clientX-u.left)>r.globals.gridWidth/2&&(l-=i.tooltipRect.ttWidth),(c=i.e.clientY+r.globals.translateY-u.top)>r.globals.gridHeight/2&&(c-=i.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||a.ttHeight/2+c>r.globals.gridHeight&&(c=r.globals.gridHeight-a.ttHeight+r.globals.translateY);isNaN(l)||(l+=r.globals.translateX,o.style.left=l+"px",o.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var n=this.w,r=this.ttCtx;if(n.globals.markers.size[e]>0)for(var i=n.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),o=0;o<i.length;o++)parseInt(i[o].getAttribute("rel"),10)===t&&(r.marker.resetPointsSize(),r.marker.enlargeCurrentPoint(t,i[o]));else r.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var n,r,i,o,a=this.w,s=this.ttCtx,l=new A(this.ctx),c=a.globals.pointsArray,u=s.tooltipUtil.getHoverMarkerSize(t),d=a.config.series[t].type;if(!d||"column"!==d&&"candlestick"!==d&&"boxPlot"!==d){i=null===(n=c[t][e])||void 0===n?void 0:n[0],o=(null===(r=c[t][e])||void 0===r?void 0:r[1])||0;var h=a.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(h&&o<a.globals.gridHeight&&o>0){var f=h.getAttribute("shape"),p=l.getMarkerPath(i,o,f,1.5*u);h.setAttribute("d",p)}this.moveXCrosshairs(i),s.fixedTooltip||this.moveTooltip(i,o,u)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,n=this.ttCtx,r=n.w,i=0,o=0,a=r.globals.pointsArray,s=new q(this.ctx),l=new A(this.ctx);t=s.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=n.tooltipUtil.getHoverMarkerSize(t);a[t]&&(i=a[t][e][0],o=a[t][e][1]);var u=n.tooltipUtil.getAllMarkers();if(null!==u)for(var d=0;d<r.globals.series.length;d++){var h=a[d];if(r.globals.comboCharts&&void 0===h&&u.splice(d,0,null),h&&h.length){var f=a[d][e][1],p=void 0;u[d].setAttribute("cx",i);var g=u[d].getAttribute("shape");if("rangeArea"===r.config.chart.type&&!r.globals.comboCharts){var m=e+r.globals.series[d].length;p=a[d][m][1],f-=Math.abs(f-p)/2}if(null!==f&&!isNaN(f)&&f<r.globals.gridHeight+c&&f+c>0){var v=l.getMarkerPath(i,f,g,c);u[d].setAttribute("d",v)}else u[d].setAttribute("d","")}}this.moveXCrosshairs(i),n.fixedTooltip||this.moveTooltip(i,o||r.globals.gridHeight,c)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var n=this.w,r=this.ttCtx,i=n.globals.columnSeries?n.globals.columnSeries.length:n.globals.series.length,o=i>=2&&i%2==0?Math.floor(i/2):Math.floor(i/2)+1;
vendor: 13,795 bytes, line 2
2n.globals.isBarHorizontal&&(o=new q(this.ctx).getActiveConfigSeriesIndex("desc")+1);var a=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(o,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(o,"'] path[j='").concat(e,"']"));a||"number"!=typeof t||(a=n.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var s=a?parseFloat(a.getAttribute("cx")):0,l=a?parseFloat(a.getAttribute("cy")):0,c=a?parseFloat(a.getAttribute("barWidth")):0,u=r.getElGrid().getBoundingClientRect(),d=a&&(a.classList.contains("apexcharts-candlestick-area")||a.classList.contains("apexcharts-boxPlot-area"));n.globals.isXNumeric?(a&&!d&&(s-=i%2!=0?c/2:0),a&&d&&n.globals.comboCharts&&(s-=c/2)):n.globals.isBarHorizontal||(s=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(s)&&(s=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),n.globals.isBarHorizontal?l-=r.tooltipRect.ttHeight:n.config.tooltip.followCursor?l=r.e.clientY-u.top-r.tooltipRect.ttHeight/2:l+r.tooltipRect.ttHeight+15>n.globals.gridHeight&&(l=n.globals.gridHeight),n.globals.isBarHorizontal||this.moveXCrosshairs(s),r.fixedTooltip||this.moveTooltip(s,l||n.globals.gridHeight)}}]),e}(),ke=function(){function e(t){a(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new we(t)}return l(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new A(this.ctx),n=new G(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=b(r),e.config.chart.stacked&&r.sort((function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))}));for(var i=0;i<r.length;i++){var o=r[i].querySelector(".apexcharts-series-markers-wrap");if(null!==o){var a=void 0,s="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(s+=" no-pointer-events");var l=n.getMarkerConfig({cssClass:s,seriesIndex:Number(o.getAttribute("data:realIndex"))});(a=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(a.node),o.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(e,t);var o=t.getAttribute("cx"),a=t.getAttribute("cy");if(null!==n&&null!==r&&(o=n,a=r),this.tooltipPosition.moveXCrosshairs(o),!this.fixedTooltip){if("radar"===i.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();o=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(o,a,i.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,n=this,r=this.ttCtx,i=e,o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),a=t.config.markers.hover.size,s=0;s<o.length;s++){var l=o[s].getAttribute("rel"),c=o[s].getAttribute("index");if(void 0===a&&(a=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),i===parseInt(l,10)){n.newPointSize(i,o[s]);var u=o[s].getAttribute("cx"),d=o[s].getAttribute("cy");n.tooltipPosition.moveXCrosshairs(u),r.fixedTooltip||n.tooltipPosition.moveTooltip(u,d,a)}else n.oldPointSize(o[s])}}},{key:"newPointSize",value:function(e,t){var n=this.w,r=n.config.markers.hover.size,i=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==i.getAttribute("default-marker-size")){var o=parseInt(i.getAttribute("index"),10);void 0===r&&(r=n.globals.markers.size[o]+n.config.markers.hover.sizeOffset),r<0&&(r=0);var a=this.ttCtx.tooltipUtil.getPathFromPoint(t,r);t.setAttribute("d",a)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),n=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",n)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var n=parseFloat(e[t].getAttribute("default-marker-size"));if(C.isNumber(n)&&n>=0){var r=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],n);e[t].setAttribute("d",r)}else e[t].setAttribute("d","M0,0")}}}]),e}(),Ce=function(){function e(t){a(this,e),this.w=t.w;var n=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&"rangeBar"===n.config.chart.type&&n.config.plotOptions.bar.rangeBarGroupRows}return l(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,n=e.opt,r=e.x,i=e.y,o=e.type,a=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(o,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),u=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(a.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:l,j:c,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=c,r=u+a.tooltipRect.ttWidth/2+h,i=d+a.tooltipRect.ttHeight/2-f/2,a.tooltipPosition.moveXCrosshairs(u+h/2),r>s.globals.gridWidth/2&&(r=u-a.tooltipRect.ttWidth/2+h),a.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();r=s.globals.clientX-p.left-(r>s.globals.gridWidth/2?a.tooltipRect.ttWidth:0),i=s.globals.clientY-p.top-(i>s.globals.gridHeight/2?a.tooltipRect.ttHeight:0)}}return{x:r,y:i}}},{key:"handleMarkerTooltip",value:function(e){var t,n,r=e.e,i=e.opt,o=e.x,a=e.y,s=this.w,l=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var c=parseInt(i.paths.getAttribute("cx"),10),u=parseInt(i.paths.getAttribute("cy"),10),d=parseFloat(i.paths.getAttribute("val"));if(n=parseInt(i.paths.getAttribute("rel"),10),t=parseInt(i.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=C.findAncestor(i.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,j:n,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:r}),"mouseup"===r.type&&l.markerClick(r,t,n),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=n,o=c,a=u+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();a=l.e.clientY+s.globals.translateY-f.top}d<0&&(a=u),l.marker.enlargeCurrentPoint(n,i.paths,o,a)}return{x:o,y:a}}},{key:"handleBarTooltip",value:function(e){var t,n,r=e.e,i=e.opt,o=this.w,a=this.ttCtx,s=a.getElTooltip(),l=0,c=0,u=0,d=this.getBarTooltipXY({e:r,opt:i});t=d.i;var h=d.j;o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=h,o.globals.isBarHorizontal&&a.tooltipUtil.hasBars()||!o.config.tooltip.shared?(c=d.x,u=d.y,n=Array.isArray(o.config.stroke.width)?o.config.stroke.width[t]:o.config.stroke.width,l=c):o.globals.comboCharts||o.config.tooltip.shared||(l/=2),isNaN(u)&&(u=o.globals.svgHeight-a.tooltipRect.ttHeight);var f=parseInt(i.paths.parentNode.getAttribute("data:realIndex"),10);if(o.globals.isMultipleYAxis?o.config.yaxis[f]&&o.config.yaxis[f].reversed:o.config.yaxis[0].reversed,c+a.tooltipRect.ttWidth>o.globals.gridWidth?c-=a.tooltipRect.ttWidth:c<0&&(c=0),a.w.config.tooltip.followCursor){var p=a.getElGrid().getBoundingClientRect();u=a.e.clientY-p.top}null===a.tooltip&&(a.tooltip=o.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),o.config.tooltip.shared||(o.globals.comboBarCount>0?a.tooltipPosition.moveXCrosshairs(l+n/2):a.tooltipPosition.moveXCrosshairs(l)),!a.fixedTooltip&&(!o.config.tooltip.shared||o.globals.isBarHorizontal&&a.tooltipUtil.hasBars())&&(u=u+o.globals.translateY-a.tooltipRect.ttHeight/2,s.style.left=c+o.globals.translateX+"px",s.style.top=u+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,n=e.e,r=e.opt,i=this.w,o=null,a=this.ttCtx,s=0,l=0,c=0,u=0,d=0,h=n.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var f=n.target,p=f.getBoundingClientRect(),g=r.elGrid.getBoundingClientRect(),m=p.height;d=p.height;var v=p.width,y=parseInt(f.getAttribute("cx"),10),b=parseInt(f.getAttribute("cy"),10);u=parseFloat(f.getAttribute("barWidth"));var x="touchmove"===n.type?n.touches[0].clientX:n.clientX;o=parseInt(f.getAttribute("j"),10),s=parseInt(f.parentNode.getAttribute("rel"),10)-1;var w=f.getAttribute("data-range-y1"),k=f.getAttribute("data-range-y2");i.globals.comboCharts&&(s=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var C=function(e){return i.globals.isXNumeric?y-v/2:t.isVerticalGroupedRangeBar?y+v/2:y-a.dataPointsDividedWidth+v/2},S=function(){return b-a.dataPointsDividedHeight+m/2-a.tooltipRect.ttHeight/2};a.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:s,j:o,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!a.showOnIntersect&&i.config.tooltip.shared,e:n}),i.config.tooltip.followCursor?i.globals.isBarHorizontal?(l=x-g.left+15,c=S()):(l=C(),c=n.clientY-g.top-a.tooltipRect.ttHeight/2-15):i.globals.isBarHorizontal?((l=y)<a.xyRatios.baseLineInvertedY&&(l=y-a.tooltipRect.ttWidth),c=S()):(l=C(),c=b)}return{x:l,y:c,barHeight:d,barWidth:u,i:s,j:o}}}]),e}(),Se=function(){function e(t){a(this,e),this.w=t.w,this.ttCtx=t}return l(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,n="bottom"===e.config.xaxis.position;t.xaxisOffY=n?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var r=n?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",i=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),i.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,n=0;n<e.config.yaxis.length;n++){var r=e.config.yaxis[n].opposite||e.config.yaxis[n].crosshairs.opposite;t.yaxisOffX=r?e.globals.gridWidth+1:1;var i="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n,r?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),o=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(n))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),o.appendChild(t.yaxisTooltip),0===n&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[n]=document.createElement("div"),t.yaxisTooltipText[n].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[n]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,n=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var r=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==r&&"barWidth"===e.config.xaxis.crosshairs.width){var i=parseFloat(r.getAttribute("barWidth"));t.xcrosshairsWidth=i}else if("tickWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}else if("barWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==n&&t.xcrosshairsWidth>0&&n.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,n){var r=this.ttCtx,i=this.w,o=i.globals,a=o.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&a.length>0){var s=o.yLabelFormatters[e],l=r.getElGrid().getBoundingClientRect(),c=a[0],u=0;n.yRatio.length>1&&(u=c);var d=(t-l.top)*n.yRatio[u],h=o.maxYArr[c]-o.minYArr[c],f=o.minYArr[c]+(h-d);i.config.yaxis[e].reversed&&(f=o.maxYArr[c]-(h-d)),r.tooltipPosition.moveYCrosshairs(t-l.top),r.yaxisTooltipText[e].innerHTML=s(f),r.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),_e=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.tConfig=n.config.tooltip,this.tooltipUtil=new be(this),this.tooltipLabels=new xe(this),this.tooltipPosition=new we(this),this.marker=new ke(this),this.intersect=ne
vendor: 10,977 bytes, line 2
2w Ce(this),this.axesTooltip=new Se(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!n.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return l(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map((function(e,n){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)})),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var n=document.createElement("div");if(n.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&n.classList.add(t.config.tooltip.cssClass),n.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(n),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new J(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,n.appendChild(this.tooltipTitle));var i=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(i=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(i),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,n=this.w,r=[],i=this.getElTooltip(),o=function(o){var a=document.createElement("div");a.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(o)),a.style.order=n.config.tooltip.inverseOrder?e-o:o+1;var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=n.globals.colors[o],a.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||n.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach((function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(n);var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(r),l.appendChild(t)})),a.appendChild(l),i.appendChild(a),r.push(a)},a=0;a<e;a++)o(a);return r}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,n=this.getElTooltip(),r=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),i="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,o=e.globals.dom.Paper.node,a=this.getElGrid();a&&(this.seriesBound=a.getBoundingClientRect());var s,l=[],c=[],u={hoverArea:o,elGrid:a,tooltipEl:n,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(i?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):r?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),c.push(s[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([o],u);else if(r&&!e.globals.comboCharts||i&&this.showOnIntersect)this.addDatapointEventsListeners(u);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,u)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,u),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(u)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),n=t.getBoundingClientRect(),r=n.width+10,i=n.height+10,o=this.tConfig.fixed.offsetX,a=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(o=o+e.globals.svgWidth-r+10),s.indexOf("bottom")>-1&&(a=a+e.globals.svgHeight-i-10),t.style.left=o+"px",t.style.top=a+"px",{x:o,y:a,ttWidth:r,ttHeight:i}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var n=this,r=function(r){var i={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map((function(t){return e[r].addEventListener(t,n.onSeriesHover.bind(n,i),{capture:!1,passive:!0})}))},i=0;i<e.length;i++)r(i)}},{key:"onSeriesHover",value:function(e,t){var n=this,r=Date.now()-this.lastHoverTime;r>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout((function(){n.seriesHover(e,t)}),100-r))}},{key:"seriesHover",value:function(e,t){var n=this;this.lastHoverTime=Date.now();var r=[],i=this.w;i.config.chart.group&&(r=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(r.length?r.forEach((function(r){var i=n.getElTooltip(r),o={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===n.w.globals.minX&&r.w.globals.maxX===n.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:o,e:t})})):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,n=e.ttCtx,r=e.opt,i=e.e,o=t.w,a=this.getElTooltip(t);a&&(n.tooltipRect={x:0,y:0,ttWidth:a.getBoundingClientRect().width,ttHeight:a.getBoundingClientRect().height},n.e=i,!n.tooltipUtil.hasBars()||o.globals.comboCharts||n.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new q(t).toggleSeriesOnHover(i,i.target.parentNode),n.fixedTooltip&&n.drawFixedTooltipRect(),o.globals.axisCharts?n.axisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}):n.nonAxisChartsTooltips({e:i,opt:r,tooltipRect:n.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,n,r=e.e,i=e.opt,o=this.w,a=i.elGrid.getBoundingClientRect(),s="touchmove"===r.type?r.touches[0].clientX:r.clientX,l="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=l,this.clientX=s,o.globals.capturedSeriesIndex=-1,o.globals.capturedDataPointIndex=-1,l<a.top||l>a.top+a.height)this.handleMouseOut(i);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!o.config.tooltip.shared){var c=parseInt(i.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(i)}var u=this.getElTooltip(),d=this.getElXCrosshairs(),h=[];o.config.chart.group&&(h=this.ctx.getSyncedCharts());var f=o.globals.xyCharts||"bar"===o.config.chart.type&&!o.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||o.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(o.globals.collapsedSeries.length+o.globals.ancillaryCollapsedSeries.length===o.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter((function(e){return!0===e}));if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),f&&!this.showOnIntersect||h.length>1)this.handleStickyTooltip(r,s,l,i);else if("heatmap"===o.config.chart.type||"treemap"===o.config.chart.type){var g=this.intersect.handleHeatTreeTooltip({e:r,opt:i,x:t,y:n,type:o.config.chart.type});t=g.x,n=g.y,u.style.left=t+"px",u.style.top=n+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:i}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:i,x:t,y:n});if(this.yaxisTooltips.length)for(var m=0;m<o.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);o.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),i.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==r.type&&"touchend"!==r.type||this.handleMouseOut(i)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,n=e.opt,r=e.tooltipRect,i=this.w,o=n.paths.getAttribute("rel"),a=this.getElTooltip(),s=i.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){i.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:parseInt(o,10)-1,shared:!1});var l=i.globals.clientX-s.left-r.ttWidth/2,c=i.globals.clientY-s.top-r.ttHeight-10;if(a.style.left=l+"px",a.style.top=c+"px",i.config.legend.tooltipHoverFormatter){var u=o-1,d=(0,i.config.legend.tooltipHoverFormatter)(this.legendLabels[u].getAttribute("data:default-text"),{seriesIndex:u,dataPointIndex:u,w:i});this.legendLabels[u].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(a.classList.remove("apexcharts-active"),i.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),i.c
2onfig.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})))}},{key:"handleStickyTooltip",value:function(e,t,n,r){var i=this.w,o=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:n}),a=o.j,s=o.capturedSeries;i.globals.collapsedSeriesIndices.includes(s)&&(s=null);var l=r.elGrid.getBoundingClientRect();if(o.hoverX<0||o.hoverX>l.width)this.handleMouseOut(r);else if(null!==s)this.handleStickyCapturedSeries(e,s,r,a);else if(this.tooltipUtil.isXoverlap(a)||i.globals.isBarHorizontal){var c=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,c,a,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,n,r){var i=this.w;if(this.tConfig.shared||null!==i.globals.series[t][r]){if(void 0!==i.globals.series[t][r])this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,n.ttItems):this.create(e,this,t,r,n.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var o=i.globals.series.findIndex((function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)}));this.create(e,this,o,r,n.ttItems)}}else this.handleMouseOut(n)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new A(this.ctx),n=e.globals.dom.Paper.select(".apexcharts-bar-area"),r=0;r<n.length;r++)t.pathMouseLeave(n[r])}},{key:"handleMouseOut",value:function(e){var t=this.w,n=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==n&&n.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}
2t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"markerClick",value:function(e,t,n){var r=this.w;"function"==typeof r.config.chart.events.markerClick&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:n,w:r}])}},{key:"create",value:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,v,y,b,x,w,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,C=this.w,S=t;"mouseup"===e.type&&this.markerClick(e,n,r),null===k&&(k=this.tConfig.shared);var _=this.tooltipUtil.hasMarkers(n),L=this.tooltipUtil.getElBars();if(C.config.legend.tooltipHoverFormatter){var T=C.config.legend.tooltipHoverFormatter,E=Array.from(this.legendLabels);E.forEach((function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}));for(var O=0;O<E.length;O++){var M=E[O],P=parseInt(M.getAttribute("i"),10),D=decodeURIComponent(M.getAttribute("data:default-text")),N=T(D,{seriesIndex:k?P:n,dataPointIndex:r,w:C});if(k)M.innerHTML=C.globals.collapsedSeriesIndices.indexOf(P)<0?N:D;else if(M.innerHTML=P===n?N:D,n===P)break}}var I=m(m({ttItems:i,i:n,j:r},void 0!==(null===(o=C.globals.seriesRange)||void 0===o||null===(a=o[n])||void 0===a||null===(s=a[r])||void 0===s||null===(l=s.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(c=C.globals.seriesRange)||void 0===c||null===(u=c[n])||void 0===u||null===(d=u[r])||void 0===d||null===(h=d.y[0])||void 0===h?void 0:h.y1}),void 0!==(null===(f=C.globals.seriesRange)||void 0===f||null===(p=f[n])||void 0===p||null===(g=p[r])||void 0===g||null===(v=g.y[0])||void 0===v?void 0:v.y2)&&{y2:null===(y=C.globals.seriesRange)||void 0===y||null===(b=y[n])||void 0===b||null===(x=b[r])||void 0===x||null===(w=x.y[0])||void 0===w?void 0:w.y2});if(k){if(S.tooltipLabels.drawSeriesTexts(m(m({},I),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),_)C.globals.markers.largestSize>0?S.marker.enlargePoints(r):S.tooltipPosition.moveDynamicPointsOnHover(r);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(L),this.barSeriesHeight>0)){var F=new A(this.ctx),R=C.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(r,n);for(var z=0;z<R.length;z++)F.pathMouseEnter(R[z])}}else S.tooltipLabels.drawSeriesTexts(m({shared:!1},I)),this.tooltipUtil.hasBars()&&S.tooltipPosition.moveStickyTooltipOverBars(r,n),_&&S.tooltipPosition.moveMarkers(n,r)}}]),e}(),Ae=function(){function e(t){a(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return l(e,[{key:"handleBarDataLabels",value:function(e){var t,n,r=e.x,i=e.y,o=e.y1,a=e.y2,s=e.i,l=e.j,c=e.realIndex,u=e.columnGroupIndex,d=e.series,h=e.barHeight,f=e.barWidth,p=e.barXPosition,g=e.barYPosition,v=e.visibleSeries,y=e.renderedPath,b=this.w,x=new A(this.barCtx.ctx),w=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[c]:this.barCtx.strokeWidth;b.globals.isXNumeric&&!b.globals.isBarHorizontal?(t=r+parseFloat(f*(v+1)),n=i+parseFloat(h*(v+1))-w):(t=r+parseFloat(f*v),n=i+parseFloat(h*v));var k,C,S=null,_=r,L=i,T=b.config.dataLabels,E=this.barCtx.barOptions.dataLabels,O=this.barCtx.barOptions.dataLabels.total;void 0!==g&&this.barCtx.isRangeBar&&(n=g,L=g),void 0!==p&&this.barCtx.isVerticalGroupedRangeBar&&(t=p,_=p);var M=T.offsetX,P=T.offsetY,D={width:0,height:0};if(b.config.dataLabels.enabled){var N=b.globals.series[s][l];D=x.getTextRects(b.config.dataLabels.formatter?b.config.dataLabels.formatter(N,m(m({},b),{},{seriesIndex:s,dataPointIndex:l,w:b})):b.globals.yLabelFormatters[0](N),parseFloat(T.style.fontSize))}var I={x:r,y:i,i:s,j:l,realIndex:c,columnGroupIndex:u,renderedPath:y,bcx:t,bcy:n,barHeight:h,barWidth:f,textRects:D,strokeWidth:w,dataLabelsX:_,dataLabelsY:L,dataLabelsConfig:T,barDataLabelsConfig:E,barTotalDataLabelsConfig:O,offX:M,offY:P};return C=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(I):this.calculateColumnsDataLabelsPosition(I),y.attr({cy:C.bcy,cx:C.bcx,j:l,val:b.globals.series[s][l],barHeight:h,barWidth:f}),k=this.drawCalculatedDataLabels({x:C.dataLabelsX,y:C.dataLabelsY,val:this.barCtx.isRangeBar?[o,a]:"100%"===b.config.chart.stackType?d[c][l]:b.globals.series[c][l],i:c,j:l,barWidth:f,barHeight:h,textRects:D,dataLabelsConfig:T}),b.config.chart.stacked&&O.enabled&&(S=this.drawTotalDataLabels({x:C.totalDataLabelsX,y:C.totalDataLabelsY,barWidth:f,barHeight:h,realIndex:c,textAnchor:C.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:c,j:l}),dataLabelsConfig:T,barTotalDataLabelsConfig:O})),{dataLabels:k,totalDataLabels:S}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,n=e.j,r
vendor: 4,609 bytes, line 2
2=this.w,i=this.barCtx.stackedSeriesTotals[n];return this.totalFormatter&&(i=this.totalFormatter(i,m(m({},r),{},{seriesIndex:t,dataPointIndex:n,w:r}))),i}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this.w,n=e.i,r=e.j,i=e.realIndex;e.columnGroupIndex;var o,a,s=e.y,l=e.bcx,c=e.barWidth,u=e.barHeight,d=e.textRects,h=e.dataLabelsX,f=e.dataLabelsY,p=e.dataLabelsConfig,g=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,v=e.strokeWidth,y=e.offX,b=e.offY,x=l;u=Math.abs(u);var w="vertical"===t.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:r}).zeroEncounters;l-=v/2;var C=t.globals.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?h+=c/2:(h=t.globals.isXNumeric?l-c/2+y:l-C+c/2+y,k>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(h-=c*k)),w&&(h=h+d.height/2-v/2-2);var S=t.globals.series[n][r]<0,_=s;switch(this.barCtx.isReversed&&(_=s+(S?u:-u)),g.position){case"center":f=w?S?_-u/2+b:_+u/2-b:S?_-u/2+d.height/2+b:_+u/2+d.height/2-b;break;case"bottom":f=w?S?_-u+b:_+u-b:S?_-u+d.height+v+b:_+u-d.height/2+v-b;break;case"top":f=w?S?_+b:_-b:S?_-d.height/2-b:_+d.height+b}if(this.barCtx.lastActiveBarSerieIndex===i&&m.enabled){var L=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:i,j:r}),p.fontSize);o=S?_-L.height/2-b-m.offsetY+18:_+L.height+b+m.offsetY-18;var T=C;a=x+(t.globals.isXNumeric?-c*t.globals.barGroups.length/2:t.globals.barGroups.length*c/2-(t.globals.barGroups.length-1)*c-T)+m.offsetX}return t.config.chart.stacked||(f<0?f=0+v:f+d.height/3>t.globals.gridHeight&&(f=t.globals.gridHeight-v)),{bcx:l,bcy:s,dataLabelsX:h,dataLabelsY:f,totalDataLabelsX:a,totalDataLabelsY:o,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,n=e.x,r=e.i,i=e.j,o=e.realIndex,a=e.bcy,s=e.barHeight,l=e.barWidth,c=e.textRects,u=e.dataLabelsX,d=e.strokeWidth,h=e.dataLabelsConfig,f=e.barDataLabelsConfig,p=e.barTotalDataLabelsConfig,g=e.offX,m=e.offY,v=t.globals.gridHeight/t.globals.dataPoints;l=Math.abs(l);var y,b,x=a-(this.barCtx.isRangeBar?0:v)+s/2+c.height/2+m-3,w="start",k=t.globals.series[r][i]<0,C=n;switch(this.barCtx.isReversed&&(C=n+(k?-l:l),w=k?"start":"end"),f.position){case"center":u=k?C+l/2-g:Math.max(c.width/2,C-l/2)+g;break;case"bottom":u=k?C+l-d-g:C-l+d+g;break;case"top":u=k?C-d-g:C-d+g}if(this.barCtx.lastActiveBarSerieIndex===o&&p.enabled){var S=new A(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:i}),h.fontSize);k?(y=C-d-g-p.offsetX,w="end"):y=C+g+p.offsetX+(this.barCtx.isReversed?-(l+d):d),b=x-c.height/2+S.height/2+p.offsetY+d}return t.config.chart.stacked||("start"===h.textAnchor?u-c.width<0?u=k?c.width+d:d:u+c.width>t.globals.gridWidth&&(u=k?t.globals.gridWidth-d:t.globals.gridWidth-c.width-d):"middle"===h.textAnchor?u-c.width/2<0?u=c.width/2+d:u+c.width/2>t.globals.gridWidth&&(u=t.globals.gridWidth-c.width/2-d):"end"===h.textAnchor&&(u<1?u=c.width+d:u+1>t.globals.gridWidth&&(u=t.globals.gridWidth-c.width-d))),{bcx:n,bcy:a,dataLabelsX:u,dataLabelsY:x,totalDataLabelsX:y,totalDataLabelsY:b,totalDataLabelsAnchor:w}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.i,o=e.j,a=e.textRects,s=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,u=this.w,d="rotate(0)";"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(t,", ").concat(n,")"));var h=new U(this.barCtx.ctx),f=new A(this.barCtx.ctx),p=c.formatter,g=null,v=u.globals.collapsedSeriesIndices.indexOf(i)>-1;if(c.enabled&&!v){g=f.group({class:"apexcharts-data-labels",transform:d});var y="";void 0!==r&&(y=p(r,m(m({},u),{},{seriesIndex:i,dataPointIndex:o,w:u}))),!r&&u.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(y="");var b=u.globals.series[i][o]<0,x=u.config.plotOptions.bar.dataLabels.position;"vertical"===u.config.plotOptions.bar.dataLabels.orientation&&("top"===x&&(c.textAnchor=b?"end":"start"),"center"===x&&(c.textAnchor="middle"),"bottom"===x&&(c.textAnchor=b?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<f.getTextRects(y,parseFloat(c.style.fontSize)).width&&(y=""),u.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?a.width/1.6>Math.abs(l)&&(y=""):a.height/1.6>Math.abs(s)&&(y=""));var w=m({},c);this.barCtx.isHorizontal&&r<0&&("start"===c.textAnchor?w.textAnchor="end":"end"===c.textAnchor&&(w.textAnchor="start")),h.plotDataLabelsText({x:t,y:n,text:y,i,j:o,parent:g,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0}
2)}return g}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,n=e.y,r=e.val,i=e.realIndex,o=e.textAnchor,a=e.barTotalDataLabelsConfig;this.w;var s,l=new A(this.barCtx.ctx);return a.enabled&&void 0!==t&&void 0!==n&&this.barCtx.lastActiveBarSerieIndex===i&&(s=l.drawText({x:t,y:n,foreColor:a.style.color,text:r,textAnchor:o,fontFamily:a.style.fontFamily,fontSize:a.style.fontSize,fontWeight:a.style.fontWeight})),s}}]),e}(),Le=function(){function e(t){a(this,e),this.w=t.w,this.barCtx=t}return l(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var n=0;n<e.length;n++)if(e[n].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[n].length),t.globals.isXNumeric)for(var r=0;r<e[n].length;r++)t.globals.seriesX[n][r]>t.globals.minX&&t.globals.seriesX[n][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,n,r,i,o,a,s,l=this.w,c=l.globals.dataPoints;this.barCtx.isRangeBar&&(c=l.globals.labels.length);var u=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(u=1),this.barCtx.isHorizontal)i=(n=l.globals.gridHeight/c)/u,l.globals.isXNumeric&&(i=(n=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),i=i*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(i=parseInt(this.barCtx.barOptions.barHeight,10)),s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(s=l.globals.gridWidth/2),t=(n-i*this.barCtx.seriesLen)/2;else{if(r=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(r=l.globals.gridWidth/l.globals.dataPoints),o=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(r=l.globals.minXDiff/d),(o=r/u*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(o=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(o=parseInt(this.barCtx.barOptions.columnWidth,10)),a=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=l.globals.padHorizontal+(r-o*this.barCtx.seriesLen)/2}return l.globals.barHeight=i,l.globals.barWidth=o,{x:e,y:t,yDivision:n,xDivision:r,barHeight:i,barWidth:o,zeroH:a,zeroW:s}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]}))}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach((function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]}))}},{key:"getPathFillColor",value:function(e,t,n,r){var i,o,a,s,l,c=this.w,u=this.barCtx.ctx.fill,d=null,h=this.barCtx.barOptions.distributed?n:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map((function(r){e[t][n]>=r.from&&e[t][n]<=r.to&&(d=r.color)})),null!==(i=c.config.series[t].data[n])&&void 0!==i&&i.fillColor&&(d=c.config.series[t].data[n].fillColor),u.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:r,dataPointIndex:n,color:d,value:e[t][n],fillConfig:null===(o=c.config.series[t].data[n])||void 0===o?void 0:o.fill,fillType:null!==(a=c.config.series[t].data[n])&&void 0!==a&&null!==(s=a.fill)&&void 0!==s&&s.type?null===(l=c.config.series[t].data[n])||void 0===l?void 0:l.fill.type:Array.isArray(c.config.fill.type)?c.config.fill.type[r]:c.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,n){var r=0,i=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,i.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[n]:this.barCtx.strokeWidth)),r}},{key:"createBorderRadiusArr",value:function(e){var t=this.w,n=!this.w.config.chart.stacked||"last"!==t.config.plotOptions.bar.borderRadiusWhenStacked||t.config.plotOptions.bar.borderRadius<=0,r=e.length,i=e[0].length,o=Array.from({length:r},(function(){return Array(i).fill(n?"top":"none")}));if(n)return o;for(var a=0;a<i;a++){for(var s=[],l=[],u=0,d=0;d<r;d++){var h=e[d][a];h>0?(s.push(d),u++):h<0&&(l.push(d),u++)}if(s.length>0&&0===l.length)if(1===s.length)o[s[0]][a]="both";else{var f,p=s[0],g=s[s.length-1],m=c(s);try{for(m.s();!(f=m.n()).done;){var v=f.value;o[v][a]=v===p?"bottom":v===g?"top":"none"}}catch(e){m.e(e)}finally{m.f()}}else if(l.length>0&&0===s.length)if(1===l.length)o[l[0]][a]="both";else{var y,b=l[0],x=l[l.length-1],w=c(l);try{for(w.s();!(y=w.n()).done;){var k=y.value;o[k][a]=k===b?"bottom":k===x?"top":"none"}}catch(e){w.e(e)}finally{w.f()}}else if(s.length>0&&l.length>0){var C,S=s[s.length-1],_=c(s);try{for(_.s();!(C=_.n()).done;){var A=C.value;o[A][a]=A===S?"top":"none"}}catch(e){_.e(e)}finally{_.f()}var L,T=l[l.length-1],E=c(l);try{for(E.s();!(L=E.n()).done;){var O=L.value;o[O][a]=O===T?"bottom":"none"}}catch(e){E.e(e)}finally{E.f()}}else 1===u&&(o[s[0]||l[0]][a]="both")}return o}}
2,{key:"barBackground",value:function(e){var t=e.j,n=e.i,r=e.x1,i=e.x2,o=e.y1,a=e.y2,s=e.elSeries,l=this.w,c=new A(this.barCtx.ctx),u=new q(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&u===n){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=c.drawRect(void 0!==r?r:0,void 0!==o?o:0,void 0!==i?i:l.globals.gridWidth,void 0!==a?a:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,n=e.barWidth,r=e.barXPosition,i=e.y1,o=e.y2,a=e.strokeWidth,s=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new A(this.barCtx.ctx);(a=Array.isArray(a)?a[u]:a)||(a=0);var g=n,m=r;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.columnWidthOffset&&(m=r-f.config.series[u].data[h].columnWidthOffset/2,g=n+f.config.series[u].data[h].columnWidthOffset);var v=a/2,y=m+v,b=m+g-v,x=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001-v*x,o+=.001+v*x;var w=p.move(y,i),k=p.move(y,i),C=p.line(b,i);if(f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(u,h,!1)),w=w+p.line(y,o)+p.line(b,o)+C+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),k=k+p.line(y,i)+C+C+C+C+C+p.line(y,i)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var S=this.barCtx;(S=this.barCtx[c]).yArrj.push(o-v*x),S.yArrjF.push(Math.abs(i-o+a*x)),S.yArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"getBarpaths",value:function(e){var t,n=e.barYPosition,r=e.barHeight,i=e.x1,o=e.x2,a=e.strokeWidth,s=e.isReversed,l=e.series,c=e.seriesGroup,u=e.realIndex,d=e.i,h=e.j,f=e.w,p=new A(this.barCtx.ctx);(a=Array.isArray(a)?a[u]:a)||(a=0);var g=n,m=r;null!==(t=f.config.series[u].data[h])&&void 0!==t&&t.barHeightOffset&&(g=n-f.config.series[u].data[h].barHeightOffset/2,m=r+f.config.series[u].data[h].barHeightOffset);var v=a/2,y=g+v,b=g+m-v,x=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001+v*x,o+=.001-v*x;var w=p.move(i,y),k=p.move(i,y);f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(u,h,!1));var C=p.line(i,b);if(w=w+p.line(o,y)+p.line(o,b)+C+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),k=k+p.line(i,y)+C+C+C+C+C+p.line(i,y)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[u][h]?" Z":" z"),"none"!==this.arrBorderRadius[u][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var S=this.barCtx;(S=this.barCtx[c]).xArrj.push(o+v*x),S.xArrjF.push(Math.abs(i-o-a*x)),S.xArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,n=this.w,r=0;r<t.length;r++){for(var i=0,o=0;o<t[n.globals.maxValsInArrayIndex].length;o++)i+=t[r][o];0===i&&this.barCtx.zeroSerieses.push(r)}}},{key:"getXForValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(n=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),n}},{key:"getYForValue",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(r=t-e/this.barCtx.yRatio[n]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[n]:0)),r}},{key:"getGoalValues",value:function(e,t,n,r,i,o){var a=this,s=this.w,l=[],c=function(r,i){var s;l.push((d(s={},e,"x"===e?a.getXForValue(r,t,!1):a.getYForValue(r,n,o,!1)),d(s,"attrs",i),s))};if(s.globals.seriesGoals[r]&&s.globals.seriesGoals[r][i]&&Array.isArray(s.globals.seriesGoals[r][i])&&s.globals.seriesGoals[r][i].forEach((function(e){c(e.value,e)})),this.barCtx.barOptions.isDumbbell&&s.globals.seriesRange.length){var u=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:s.globals.colors,h={strokeHeight:"x"===e?0:s.globals.markers.size[r],strokeWidth:"x"===e?s.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(u[r])?u[r][0]:u[r]};c(s.globals.seriesRangeStart[r][i],h),c(s.globals.seriesRangeEnd[r][i],m(m({},h),{},{strokeColor:Array.isArray(u[r])?u[r][1]:u[r]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,n=e.barYPosition,r=e.goalX,i=e.goalY,o=e.barWidth,a=e.barHeight,s=new A(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach((function(e){if(e.x>=-1&&e.x<=s.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:a/2,r=n+t
vendor: 4,662 bytes, line 2
2+a/2;c=s.drawLine(e.x,r-2*t,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)}})):Array.isArray(i)&&i.forEach((function(e){if(e.y>=-1&&e.y<=s.w.globals.gridHeight+1){var n=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:o/2,r=t+n+o/2;c=s.drawLine(r-2*n,e.y,r,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)}})),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,n=e.currPaths,r=e.color,i=this.w,o=t.x,a=t.x1,s=t.barYPosition,l=n.x,c=n.x1,u=n.barYPosition,d=s+n.barHeight,h=new A(this.barCtx.ctx),f=new C,p=h.move(a,d)+h.line(o,d)+h.line(l,u)+h.line(c,u)+h.line(a,d)+("around"===i.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,C.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t,n=e.i,r=e.j,i=this.w,o=0,a=0;return(i.config.plotOptions.bar.horizontal?i.globals.series.map((function(e,t){return t})):(null===(t=i.globals.columnSeries)||void 0===t?void 0:t.i.map((function(e){return e})))||[]).forEach((function(e){var t=i.globals.seriesPercent[e][r];t&&o++,e<n&&0===t&&a++})),{nonZeroColumns:o,zeroEncounters:a}}},{key:"getGroupIndex",value:function(e){var t=this.w,n=t.globals.seriesGroups.findIndex((function(n){return n.indexOf(t.globals.seriesNames[e])>-1})),r=this.barCtx.columnGroupIndices,i=r.indexOf(n);return i<0&&(r.push(n),i=r.length-1),{groupIndex:n,columnGroupIndex:i}}}]),e}(),Te=function(){function e(t,n){a(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.globals.seriesRange.length&&r.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=n,null!==this.xyRatios&&(this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.invertedXRatio=n.invertedXRatio,this.invertedYRatio=n.invertedYRatio,this.baseLineY=n.baseLineY,this.baseLineInvertedY=n.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var i=new q(this.ctx);this.lastActiveBarSerieIndex=i.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var o=i.getBarSeriesIndices(),s=new L(this.ctx);this.stackedSeriesTotals=s.getStackedSeriesTotals(this.w.config.series.map((function(e,t){return-1===o.indexOf(t)?t:-1})).filter((function(e){return-1!==e}))),this.barHelpers=new Le(this)}return l(e,[{key:"draw",value:function(e,t){var n=this.w,r=new A(this.ctx),i=new L(this.ctx,n);e=i.getLogSeries(e),this.series=e,this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var o=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});n.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var a=0,s=0;a<e.length;a++,s++){var l,c,u,d,h=void 0,f=void 0,p=[],g=[],v=n.globals.comboCharts?t[a]:a,y=this.barHelpers.getGroupIndex(v).columnGroupIndex,b=r.group({class:"apexcharts-series",rel:a+1,seriesName:C.escapeString(n.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(b,v),e[a].length>0&&(this.visibleI=this.visibleI+1);var x=0,w=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[v],this.translationsIndex=v);var k=this.translationsIndex;this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed;var S=this.barHelpers.initialPositions();f=S.y,x=S.barHeight,c=S.yDivision,d=S.zeroW,h=S.x,w=S.barWidth,l=S.xDivision,u=S.zeroH,this.horizontal||g.push(h+w/2);var _=r.group({class:"apexcharts-datalabels","data:realIndex":v});n.globals.delayedElements.push({el:_.node}),_.node.classList.add("apexcharts-element-hidden");var T=r.group({class:"apexcharts-bar-goals-markers"}),E=r.group({class:"apexcharts-bar-shadows"});n.globals.delayedElements.push({el:E.node}),E.node.classList.add("apexcharts-element-hidden");for(var O=0;O<e[a].length;O++){var M=this.barHelpers.getStrokeWidth(a,O,v),P=null,D={indexes:{i:a,j:O,realIndex:v,translationsIndex:k,bc:s},x:h,y:f,strokeWidth:M,elSeries:b};this.isHorizontal?(P=this.drawBarPaths(m(m({},D),{}
2,{barHeight:x,zeroW:d,yDivision:c})),w=this.series[a][O]/this.invertedYRatio):(P=this.drawColumnPaths(m(m({},D),{},{xDivision:l,barWidth:w,zeroH:u})),x=this.series[a][O]/this.yRatio[k]);var N=this.barHelpers.getPathFillColor(e,a,O,v);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&O>0){var I=this.barHelpers.drawBarShadow({color:"string"==typeof N&&-1===(null==N?void 0:N.indexOf("url"))?N:C.hexToRgba(n.globals.colors[a]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:P});I&&E.add(I)}this.pathArr.push(P);var F=this.barHelpers.drawGoalLine({barXPosition:P.barXPosition,barYPosition:P.barYPosition,goalX:P.goalX,goalY:P.goalY,barHeight:x,barWidth:w});F&&T.add(F),f=P.y,h=P.x,O>0&&g.push(h+w/2),p.push(f),this.renderSeries({realIndex:v,pathFill:N,j:O,i:a,columnGroupIndex:y,pathFrom:P.pathFrom,pathTo:P.pathTo,strokeWidth:M,elSeries:b,x:h,y:f,series:e,barHeight:Math.abs(P.barHeight?P.barHeight:x),barWidth:Math.abs(P.barWidth?P.barWidth:w),elDataLabelsWrap:_,elGoalsMarkers:T,elBarShadows:E,visibleSeries:this.visibleI,type:"bar"})}n.globals.seriesXvalues[v]=g,n.globals.seriesYvalues[v]=p,o.add(b)}return o}},{key:"renderSeries",value:function(e){var t=e.realIndex,n=e.pathFill,r=e.lineFill,i=e.j,o=e.i,a=e.columnGroupIndex,s=e.pathFrom,l=e.pathTo,c=e.strokeWidth,u=e.elSeries,d=e.x,h=e.y,f=e.y1,p=e.y2,g=e.series,m=e.barHeight,v=e.barWidth,y=e.barXPosition,b=e.barYPosition,x=e.elDataLabelsWrap,w=e.elGoalsMarkers,k=e.elBarShadows,C=e.visibleSeries,S=e.type,L=e.classes,T=this.w,E=new A(this.ctx);if(!r){var O="function"==typeof T.globals.stroke.colors[t]?function(e){var t,n=T.config.stroke.colors;return Array.isArray(n)&&n.length>0&&((t=n[e])||(t=""),"function"==typeof t)?t({value:T.globals.series[e][i],dataPointIndex:i,w:T}):t}(t):T.globals.stroke.colors[t];r=this.barOptions.distributed?T.globals.stroke.colors[i]:O}T.config.series[o].data[i]&&T.config.series[o].data[i].strokeColor&&(r=T.config.series[o].data[i].strokeColor),this.isNullValue&&(n="none");var M=i/T.config.chart.animations.animateGradually.delay*(T.config.chart.animations.speed/T.globals.dataPoints)/2.4,P=E.renderPaths({i:o,j:i,realIndex:t,pathFrom:s,pathTo:l,stroke:r,strokeWidth:c,strokeLineCap:T.config.stroke.lineCap,fill:n,animationDelay:M,initialSpeed:T.config.chart.animations.speed,dataChangeSpeed:T.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(S,"-area ").concat(L),chartType:S});P.attr("clip-path","url(#gridRectBarMask".concat(T.globals.cuid,")"));var D=T.config.forecastDataPoints;D.count>0&&i>=T.globals.dataPoints-D.count&&(P.node.setAttribute("stroke-dasharray",D.dashArray),P.node.setAttribute("stroke-width",D.strokeWidth),P.node.setAttribute("fill-opacity",D.fillOpacity)),void 0!==f&&void 0!==p&&(P.attr("data-range-y1",f),P.attr("data-range-y2",p)),new _(this.ctx).setSelectionFilter(P,t,i),u.add(P);var N=new Ae(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:o,j:i,series:g,realIndex:t,columnGroupIndex:a,barHeight:m,barWidth:v,barXPosition:y,barYPosition:b,renderedPath:P,visibleSeries:C});return null!==N.dataLabels&&x.add(N.dataLabels),N.totalDataLabels&&x.add(N.totalDataLabels),u.add(x),w&&u.add(w),k&&u.add(k),u}},{key:"drawBarPaths",value:function(e){var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,o=e.zeroW,a=e.x,s=e.y,l=e.yDivision,c=e.elSeries,u=this.w,d=n.i,h=n.j;if(u.globals.isXNumeric)t=(s=(u.globals.seriesX[d][h]-u.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,p=0;u.globals.seriesPercent.forEach((function(e,t){e[h]&&f++,t<d&&0===e[h]&&p++})),f>0&&(r=this.seriesLen*r/f),t=s+r*this.visibleI,t-=r*p}else t=s+r*this.visibleI;this.isFunnel&&(o-=(this.barHelpers.getXForValue(this.series[d][h],o)-o)/2),a=this.barHelpers.getXForValue(this.series[d][h],o);var g=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:o,x2:a,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,i:d,j:h,w:u});return u.globals.isXNumeric||(s+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:c}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:o,x:a,y:s,goalX:this.barHelpers.getGoalValues("x",o,null,d,h),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,n=e.indexes,r=e.x,i=e.y,o=e.xDivision,a=e.barWidth,s=e.zeroH,l=e.strokeWidth,c=e.elSeries,u=this.w,d=n.realIndex,h=n.translationsIndex,f=n.i,p=n.j,g=n.bc;if(u.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:r,j:p,realIndex:d,barWidth:a});r=m.x,t=m.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){var v=this.barHelpers.getZeroValueEncounters({i:f,j:p}),y=v.nonZeroColumns,b=v.zeroEncounters;y>0&&(a=this.seriesLen*a/y),t=r+a*this.visibleI,t-=a*b}else t=r+a*this.visibleI;i=this.barHelpers.getYForValue(this.series[f][p],s,h);var x=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:a,y1:s,y2:i,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:d,i:f,j:p,w:u});return u.globals.isXNumeric||(r+=o),this.barHelpers.barBackgroun
vendor: 22,241 bytes, line 2
2d({bc:g,j:p,i:f,x1:t-l/2-a*this.visibleI,x2:a*this.seriesLen+l/2,elSeries:c}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:r,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,f,p,h),barXPosition:t,barWidth:a}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,n=e.barWidth,r=e.realIndex,i=e.j,o=this.w,a=r;return o.globals.seriesX[r].length||(a=o.globals.maxValsInArrayIndex),o.globals.seriesX[a][i]&&(t=(o.globals.seriesX[a][i]-o.globals.minX)/this.xRatio-n*this.seriesLen/2),{barXPosition:t+n*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var n,r=this.w,i=0;i<r.globals.previousPaths.length;i++){var o=r.globals.previousPaths[i];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(e,10)&&void 0!==r.globals.previousPaths[i].paths[t]&&(n=r.globals.previousPaths[i].paths[t].d)}return n}}]),e}(),Ee=function(){f(t,Te);var e=u(t);function t(){return a(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t){var n=this,r=this.w;this.graphics=new A(this.ctx),this.bar=new Te(this.ctx,this.xyRatios);var i=new L(this.ctx,r);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===r.config.chart.stackType&&(e=r.globals.comboCharts?t.map((function(e){return r.globals.seriesPercent[e]})):r.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var o=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),a=0,s=0,l=function(i,l){var c=void 0,u=void 0,d=void 0,h=void 0,f=r.globals.comboCharts?t[i]:i,p=n.barHelpers.getGroupIndex(f),g=p.groupIndex,v=p.columnGroupIndex;n.groupCtx=n[r.globals.seriesGroups[g]];var y=[],b=[],x=0;n.yRatio.length>1&&(n.yaxisIndex=r.globals.seriesYAxisReverseMap[f][0],x=f),n.isReversed=r.config.yaxis[n.yaxisIndex]&&r.config.yaxis[n.yaxisIndex].reversed;var w=n.graphics.group({class:"apexcharts-series",seriesName:C.escapeString(r.globals.seriesNames[f]),rel:i+1,"data:realIndex":f});n.ctx.series.addCollapsedClassToSeries(w,f);var k=n.graphics.group({class:"apexcharts-datalabels","data:realIndex":f}),S=n.graphics.group({class:"apexcharts-bar-goals-markers"}),_=0,A=0,L=n.initialPositions(a,s,c,u,d,h,x);s=L.y,_=L.barHeight,u=L.yDivision,h=L.zeroW,a=L.x,A=L.barWidth,c=L.xDivision,d=L.zeroH,r.globals.barHeight=_,r.globals.barWidth=A,n.barHelpers.initializeStackedXYVars(n),1===n.groupCtx.prevY.length&&n.groupCtx.prevY[0].every((function(e){return isNaN(e)}))&&(n.groupCtx.prevY[0]=n.groupCtx.prevY[0].map((function(){return d})),n.groupCtx.prevYF[0]=n.groupCtx.prevYF[0].map((function(){return 0})));for(var T=0;T<r.globals.dataPoints;T++){var E=n.barHelpers.getStrokeWidth(i,T,f),O={indexes:{i,j:T,realIndex:f,translationsIndex:x,bc:l},strokeWidth:E,x:a,y:s,elSeries:w,columnGroupIndex:v,seriesGroup:r.globals.seriesGroups[g]},M=null;n.isHorizontal?(M=n.drawStackedBarPaths(m(m({},O),{},{zeroW:h,barHeight:_,yDivision:u})),A=n.series[i][T]/n.invertedYRatio):(M=n.drawStackedColumnPaths(m(m({},O),{},{xDivision:c,barWidth:A,zeroH:d})),_=n.series[i][T]/n.yRatio[x]);var P=n.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:_,barWidth:A});P&&S.add(P),s=M.y,a=M.x,y.push(a),b.push(s);var D=n.barHelpers.getPathFillColor(e,i,T,f),N="";r.globals.isBarHorizontal?"bottom"===n.barHelpers.arrBorderRadius[f][T]&&r.globals.series[f][T]>0&&(N="apexcharts-flip-x"):"bottom"===n.barHelpers.arrBorderRadius[f][T]&&r.globals.series[f][T]>0&&(N="apexcharts-flip-y"),w=n.renderSeries({realIndex:f,pathFill:D,j:T,i,columnGroupIndex:v,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:E,elSeries:w,x:a,y:s,series:e,barHeight:_,barWidth:A,elDataLabelsWrap:k,elGoalsMarkers:S,type:"bar",visibleSeries:v,classes:N})}r.globals.seriesXvalues[f]=y,r.globals.seriesYvalues[f]=b,n.groupCtx.prevY.push(n.groupCtx.yArrj),n.groupCtx.prevYF.push(n.groupCtx.yArrjF),n.groupCtx.prevYVal.push(n.groupCtx.yArrjVal),n.groupCtx.prevX.push(n.groupCtx.xArrj),n.groupCtx.prevXF.push(n.groupCtx.xArrjF),n.groupCtx.prevXVal.push(n.groupCtx.xArrjVal),o.add(w)},c=0,u=0;c<e.length;c++,u++)l(c,u);return o}},{key:"initialPositions",value:function(e,t,n,r,i,o,a){var s,l,c=this.w;if(this.isHorizontal){r=c.globals.gridHeight/c.globals.dataPoints;var u=c.config.plotOptions.bar.barHeight;s=-1===String(u).indexOf("%")?parseInt(u,10):r*parseInt(u,10)/100,o=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(r-s)/2}else{l=n=c.globals.gridWidth/c.globals.dataPoints;var d=c.config.plotOptions.bar.columnWidth;c.globals.isXNumeric&&c.globals.dataPoints>1?l=(n=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(d).indexOf("%")?l=parseInt(d,10):l*=parseInt(d,10)/100,i=this.isReversed?this.baseLineY[a]:c.globals.gridHeight-this.baseLineY[a],e=c.globals.padHorizontal+(n-l)/2}var h=c.globals.barGroups.length||1;return{x:e,y:t,yDivision:r,xDivision:n,barHeight:s/h,barWidth:l/h,zeroH:i,zeroW:o}}},{key:"drawStackedBarPaths",value:function(e){for(var t,n=e.indexes,r=e.barHeight,i=e.strokeWidth,o=e.zeroW,a=e.x,s=e.y,l=e.columnGroupIndex,c=e.seriesGroup,u=e.yDivision,d=e.elSeries,h=this.w,f=s+l*r,p=n.i,g=n.j,m=n.realIndex,v=n.translationsIndex,y=0,b=0;b<this.groupCtx.prevXF.length;b++)y+=this.groupCtx.prevXF[b][g];var x;if((x=c.indexOf(h.config.series[m].name))>0){var w=o;this.groupCtx.prevXVal[x-1][g]<0?w=this.series[p][g]>=0?this.groupCtx.prevX[x-1][g]+y-2*(this.isReversed?y:0):this.groupCtx.prevX[x-1][g]:this.groupCtx.prevXVal[x-1][g]>=0&&(w=this.series[p][g]>=0?this.groupCtx.prevX[x-1][g]:this.groupCtx.prevX[x-1][g]-y+2*(this.isReversed?y:0)),t=w}else t=o;a=null===this.series[p][g]?t:t+this.series[p][g]/this.invertedYRatio-2*(this.isReversed?this.series[p][g]/this.invertedYRatio:0);var k=this.barHelpers.getBarpaths({barYPosition:f,barHeight:r,x1:t,x2:a,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:p,j:g,w:h});return this.barHelpers.barBackground({j:g,i:p,y1:f,y2:r,elSeries:d}),s+=u,{pathTo:k.pathTo,pathFrom:k.pathFrom,goalX:this.barHelpers.getGoalValues("x",o,null,p,g,v),barXPosition:t,barYPosition:f,x:a,y:s}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.y,i=e.xDivision,o=e.barWidth,a=e.zeroH,s=e.columnGroupIndex,l=e.seriesGroup,c=e.elSeries,u=this.w,d=t.i,h=t.j,f=t.bc,p=t.realIndex,g=t.translationsIndex;if(u.globals.isXNumeric){var m=u.globals.seriesX[p][h];m||(m=0),n=(m-u.globals.minX)/this.xRatio-o/2*u.globals.barGroups.length}for(var v,y=n+s*o,b=0,x=0;x<this.groupCtx.prevYF.length;x++)b+=isNaN(this.groupCtx.prevYF[x][h])?0:this.groupCtx.prevYF[x][h];var w=d;if(l&&(w=l.indexOf(u.globals.seriesNames[p])),w>0&&!u.globals.isXNumeric||w>0&&u.globals.isXNumeric&&u.globals.seriesX[p-1][h]===u.globals.seriesX[p][h]){var k,C,S,_=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[w-1]&&this.groupCtx.prevY[w-1].length)for(var A=1;A<_;A++){var L;if(!isNaN(null===(L=this.groupCtx.prevY[w-A])||void 0===L?void 0:L[h])){S=this.groupCtx.prevY[w-A][h];break}}for(var T=1;T<_;T++){var E,O;if((null===(E=this.groupCtx.prevYVal[w-T])||void 0===E?void 0:E[h])<0){C=this.series[d][h]>=0?S-b+2*(this.isReversed?b:0):S;break}if((null===(O=this.groupCtx.prevYVal[w-T])||void 0===O?void 0:O[h])>=0){C=this.series[d][h]>=0?S:S+b-2*(this.isReversed?b:0);break}}void 0===C&&(C=u.globals.gridHeight),v=null!==(k=this.groupCtx.prevYF[0])&&void 0!==k&&k.every((function(e){return 0===e}))&&this.groupCtx.prevYF.slice(1,w).every((function(e){return e.every((function(e){return isNaN(e)}))}))?a:C}else v=a;r=this.series[d][h]?v-this.series[d][h]/this.yRatio[g]+2*(this.isReversed?this.series[d][h]/this.yRatio[g]:0):v;var M=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:o,y1:v,y2:r,yRatio:this.yRatio[g],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:h,w:u});return this.barHelpers.barBackground({bc:f,j:h,i:d,x1:y,x2:o,elSeries:c}),{pathTo:M.pathTo,pathFrom:M.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,a,d,h),barXPosition:y,x:u.globals.isXNumeric?n:n+i,y:r}}}]),t}(),Oe=function(){f(t,Te);var e=u(t);function t(){return a(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t,n){var r=this,i=this.w,o=new A(this.ctx),a=i.globals.comboCharts?t:i.config.chart.type,s=new $(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal;var l=new L(this.ctx,i);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var c=o.group({class:"apexcharts-".concat(a,"-series apexcharts-plot-series")}),u=function(t){r.isBoxPlot="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[t].type;var a,l,u,d,h=void 0,f=void 0,p=[],g=[],v=i.globals.comboCharts?n[t]:t,y=r.barHelpers.getGroupIndex(v).columnGroupIndex,b=o.group({class:"apexcharts-series",seriesName:C.escapeString(i.globals.seriesNames[v]),rel:t+1,"data:realIndex":v});r.ctx.series.addCollapsedClassToSeries(b,v),e[t].length>0&&(r.visibleI=r.visibleI+1);var x,w,k=0;r.yRatio.length>1&&(r.yaxisIndex=i.globals.seriesYAxisReverseMap[v][0],k=v);var S=r.barHelpers.initialPositions();f=S.y,x=S.barHeight,l=S.yDivision,d=S.zeroW,h=S.x,w=S.barWidth,a=S.xDivision,u=S.zeroH,g.push(h+w/2);for(var _=o.group({class:"apexcharts-datalabels","data:realIndex":v}),A=function(n){var o=r.barHelpers.getStrokeWidth(t,n,v),c=null,C={indexes:{i:t,j:n,realIndex:v,translationsIndex:k},x:h,y:f,strokeWidth:o,elSeries:b};c=r.isHorizontal?r.drawHorizontalBoxPaths(m(m({},C),{},{yDivision:l,barHeight:x,zeroW:d})):r.drawVerticalBoxPaths(m(m({},C),{},{xDivision:a,barWidth:w,zeroH:u})),f=c.y,h=c.x,n>0&&g.push(h+w/2),p.push(f),c.pathTo.forEach((function(a,l){var u=!r.isBoxPlot&&r.candlestickOptions.wick.useFillColor?c.color[l]:i.globals.stroke.colors[t],d=s.fillPath({seriesNumber:v,dataPointIndex:n,color:c.color[l],value:e[t][n]});r.renderSeries({realIndex:v,pathFill:d,lineFill:u,j:n,i:t,pathFrom:c.pathFrom,pathTo:a,strokeWidth:o,elSeries:b,x:h,y:f,series:e,columnGroupIndex:y,barHeight:x,barWidth:w,elDataLabelsWrap:_,visibleSeries:r.visibleI,type:i.config.chart.type})}))},L=0;L<i.globals.dataPoints;L++)A(L);i.globals.seriesXvalues[v]=g,i.globals.seriesYvalues[v]=p,c.add(b)},d=0;d<e.length;d++)u(d);return c}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,n=e.x;e.y;var r=e.xDivision,i=e.barWidth,o=e.zeroH,a=e.strokeWidth,s=this.w,l=new A(this.ctx),c=t.i,u=t.j,d=!0,h=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[t.translationsIndex],m=t.realIndex,v=this.getOHLCValue(m,u),y=o,b=o;v.o>v.c&&(d=!1);var x=Math.min(v.o,v.c),w=Math.max(v.o,v.c),k=v.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[m][u]-s.globals.minX)/this.xRatio-i/2);var C=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(x=o,w=o):(x=o-x/g,w=o-w/g,y=o-v.h/g,b=o-v.l/g,k=o-v.m/g);var S=l.move(C,o),_=l.move(C+i/2,x);return s.globals.previousPaths.length>0&&(_=this.getPreviousPath(m,u,!0)),S=this.isBoxPlot?[l.move(C,x)+l.line(C+i/2,x)+l.line(C+i/2,y)+l.line(C+i/4,y)+l.line(C+i-i/4,y)+l.line(C+i/2,y)+l.line(C+i/2,x)+l.line(C+i,x)+l.line(C+i,k)+l.line(C,k)+l.line(C,x+a/2),l.move(C,k)+l.line(C+i,k)+l.line(C+i,w)+l.line(C+i/2,w)+l.line(C+i/2,b)+l.line(C+i-i/4,b)+l.line(C+i/4,b)+l.line(C+i/2,b)+l.line(C+i/2,w)+l.line(C,w)+l.line(C,k)+"z"]:[l.move(C,w)+l.line(C+i/2,w)+l.line(C+i/2,y)+l.line(C+i/2,w)+l.line(C+i,w)+l.line(C+i,x)+l.line(C+i/2,x)+l.line(C+i/2,b)+l.line(C+i/2,x)+l.line(C,x)+l.line(C,w-a/2)],_+=l.move(C,x),s.globals.isXNumeric||(n+=r),{pathTo:S,pathFrom:_,x:n,y:w,barXPosition:C,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var n=e.y,r=e.yDivision,i=e.barHeight,o=e.zeroW,a=e.strokeWidth,s=this.w,l=new A(this.ctx),c=t.i,u=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var h=this.invertedYRatio,f=t.realIndex,p=this.getOHLCValue(f,u),g=o,m=o,v=Math.min(p.o,p.c),y=Math.max(p.o,p.c),b=p.m;s.globals.isXNumeric&&(n=(s.globals.seriesX[f][u]-s.globals.minX)/this.invertedXRatio-i/2);var x=n+i*this.visibleI;void 0===this.series[c][u]||null===this.series[c][u]?(v=o,y=o):(v=o+v/h,y=o+y/h,g=o+p.h/h,m=o+p.l/h,b=o+p.m/h);var w=l.move(o,x),k=l.move(v,x+i/2);return s.globals.previousPaths.length>0&&(k=this.getPreviousPath(f,u,!0)),w=[l.move(v,x)+l.line(v,x+i/2)+l.line(g,x+i/2)+l.line(g,x+i/2-i/4)+l.line(g,x+i/2+i/4)+l.line(g,x+i/2)+l.line(v,x+i/2)+l.line(v,x+i)+l.line(b,x+i)+l.line(b,x)+l.line(v+a/2,x),l.move(b,x)+l.line(b,x+i)+l.line(y,x+i)+l.line(y,x+i/2)+l.line(m,x+i/2)+l.line(m,x+i-i/4)+l.line(m,x+i/4)+l.line(m,x+i/2)+l.line(y,x+i/2)+l.line(y,x)+l.line(b,x)+"z"],k+=l.move(v,x),s.globals.isXNumeric||(n+=r),{pathTo:w,pathFrom:k,x:y,y:n,barYPosition:x,color:d}}},{key:"getOHLCValue",value:function(e,t){var n=this.w;return{o:this.isBoxPlot?n.globals.seriesCandleH[e][t]:n.globals.seriesCandleO[e][t],h:this.isBoxPlot?n.globals.seriesCandleO[e][t]:n.globals.seriesCandleH[e][t],m:n.globals.seriesCandleM[e][t],l:this.isBoxPlot?n.globals.seriesCandleC[e][t]:n.globals.seriesCandleL[e][t],c:this.isBoxPlot?n.globals.seriesCandleL[e][t]:n.globals.seriesCandleC[e][t]}}}]),t}(),Me=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,n=e.config.plotOptions[e.config.chart.type];return n.colorScale.ranges.length>0&&n.colorScale.ranges.map((function(e,n){e.from<=0&&(t=!0)})),t}},{key:"getShadeColor",value:function(e,t,n,r){var i=this.w,o=1,a=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,n);i.globals.hasNegs||r?o=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*a):(1-s.percent/100)*(1.25*a):s.percent<=0?1-(1+s.percent/100)*a:(1-s.percent/100)*a:(o=1-s.percent/100,"treemap"===e&&(o=(1-s.percent/100)*(1.25*a)));var l=s.color,c=new C;if(i.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){var u=c.shadeColor(-1*o,s.color);l=C.hexToRgba(C.isColorHex(u)?u:C.rgb2hex(u),i.config.fill.opacity)}else{var d=c.shadeColor(o,s.color);l=C.hexToRgba(C.isColorHex(d)?d:C.rgb2hex(d),i.config.fill.opacity)}return{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,n){var r=this.w,i=r.globals.series[t][n],o=r.config.plotOptions[e],a=o.colorScale.inverse?n:t;o.distributed&&"treemap"===r.config.chart.type&&(a=n);var s=r.globals.colors[a],l=null,c=Math.min.apply(Math,b(r.globals.series[t])),u=Math.max.apply(Math,b(r.globals.series[t]));o.distributed||"heatmap"!==e||(c=r.globals.minY,u=r.globals.maxY),void 0!==o.colorScale.min&&(c=o.colorScale.min<r.globals.minY?o.colorScale.min:r.globals.minY,u=o.colorScale.max>r.globals.maxY?o.colorScale.max:r.globals.maxY);var d=Math.abs(u)+Math.abs(c),h=100*i/(0===d?d-1e-6:d);return o.colorScale.ranges.length>0&&o.colorScale.ranges.map((function(e,t){if(i>=e.from&&i<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,c=e.from,u=e.to;var n=Math.abs(u)+Math.abs(c);h=100*i/(0===n?n-1e-6:n)}})),{color:s,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,n=e.x,r=e.y,i=e.i,o=e.j,a=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,c=new A(this.ctx),u=new U(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=n+h,g=r+parseFloat(l.style.fontSize)/3+f;u.plotDataLabelsText({x:p,y:g,text:t,i,j:o,color:a.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new A(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Pe=function(){function e(t,n){a(this,e),this.ctx=t,this.w=t.w,this.xRatio=n.xRatio,this.yRatio=n.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Me(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return l(e,[{key:"draw",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var i=t.globals.gridWidth/t.globals.dataPoints,o=t.globals.gridHeight/t.globals.series.length,a=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var c=s?0:l.length-1;s?c<l.length:c>=0;s?c++:c--){var u=n.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:C.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(u,c),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new _(this.ctx).dropShadow(u,d,c)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[c].length;p++){var g=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),m=g.color,v=g.colorProps;"image"===t.config.fill.type&&(m=new $(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?v.percent<0?1-(1+v.percent/100):f+v.percent/100:v.percent/100,patternID:C.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:i,height:t.config.fill.image.height?t.config.fill.image.height:o}));var y=this.rectRadius,b=n.drawRect(h,a,i,o,y);if(b.attr({cx:h,cy:a}),b.node.classList.add("apexcharts-heatmap-rect"),u.add(b),b.attr({fill:m,i:c,index:c,j:p,val:e[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(b),t.config.chart.animations.enabled&&!t.globals.dataChanged){var x=1;t.globals.resized||(x=t.config.chart.animations.speed),this.animateHeatMap(b,h,a,i,o,x)}if(t.globals.dataChanged){var w=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){w=this.dynamicAnim.speed;var k=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(b,C.isColorHex(k)?k:C.rgb2hex(k),C.isColorHex(m)?m:C.rgb2hex(m),w)}}var S=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),L=this.helpers.calculateDataLabels({text:S,x:h+i/2,y:a+o/2,i:c,j:p,colorProps:v,series:l});null!==L&&u.add(L),h+=i}a+=o,r.add(u)}var T=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?T.unshift(""):T.push(""),t.globals.yAxisScale[0].result=T,r}},{key:"animateHeatMap",value:function(e,t,n,r,i,o){var a=new S(this.ctx);a.animateRect(e,{x:t+r/2,y:n+i/2,width:0,height:0},{x:t,y:n,width:r,height:i},o,(function(){a.animationCompleted(e)}))}},{key:"animateHeatColor",value:function(e,t,n,r){e.attr({fill:t}).animate(r).attr({fill:n})}}]),e}(),De=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"drawYAxisTexts",value:function(e,t,n,r){var i=this.w,o=i.config.yaxis[0],a=i.globals.yLabelFormatters[0];return new A(this.ctx).drawText({x:e+o.labels.offsetX,y:t+o.labels.offsetY,text:a(r,n),textAnchor:"middle",fontSize:o.labels.style.fontSize,fontFamily:o.labels.style.fontFamily,foreColor:Array.isArray(o.labels.style.colors)?o.labels.style.colors[n]:o.labels.style.colors})}}]),e}(),Ne=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=Math.min(n.globals.gridWidth,n.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=n.globals.gridWidth/2,"radialBar"===n.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(n.config.plotOptions.pie.endAngle-n.config.plotOptions.pie.startAngle),this.initialAngle=n.config.plotOptions.pie.startAngle%this.fullAngle,n.globals.radialSize=this.defaultSize/2.05-n.config.stroke.width-(n.config.chart.sparkline.enabled?0:n.config.chart.dropShadow.blur),this.donutSize=n.globals.radialSize*parseInt(n.config.plotOptions.pie.donut.size,10)/100;var r=n.config.plotOptions.pie.customScale,i=n.globals.gridWidth/2,o=n.globals.gridHeight/2;this.translateX=i-i*r,this.translateY=o-o*r,this.dataLabelsGroup=new A(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(r,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new A(this.ctx),i=r.group({class:"apexcharts-pie"});if(n.globals.noData)return i;for(var o=0,a=0;a<e.length;a++)o+=C.negToZero(e[a]);var s=[],l=r.group();0===o&&(o=1e-5),e.forEach((function(e){t.maxY=Math.max(t.maxY,e)})),n.config.yaxis[0].max&&(this.maxY=n.config.yaxis[0].max),"back"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i);for(var c=0;c<e.length;c++){var u=this.fullAngle*C.negToZero(e[c])/o;s.push(u),"polarArea"===this.chartType?(s[c]=this.fullAngle/e.length,this.sliceSizes.push(n.globals.radialSize*e[c]/this.maxY)):this.sliceSizes.push(n.globals.radialSize)}if(n.globals.dataChanged){for(var d,h=0,f=0;f<n.globals.previousPaths.length;f++)h+=C.negToZero(n.globals.previousPaths[f]);for(var p=0;p<n.globals.previousPaths.length;p++)d=this.fullAngle*C.negToZero(n.globals.previousPaths[p])/h,this.prevSectorAngleArr.push(d)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var g=r.drawCircle(this.donutSize);g.attr({cx:this.centerX,cy:this.centerY,fill:n.config.plotOptions.pie.donut.background?n.config.plotOptions.pie.donut.background:"transparent"}),l.add(g)}var m=this.drawArcs(s,e);
2if(this.sliceLabels.forEach((function(e){m.add(e)})),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n.config.plotOptions.pie.customScale,")")}),l.add(m),i.add(l),this.donutDataLabels.show){var v=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});i.add(v)}return"front"===n.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i),i}},{key:"drawArcs",value:function(e,t){var n=this.w,r=new _(this.ctx),i=new A(this.ctx),o=new $(this.ctx),a=i.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,c=this.initialAngle,u=this.initialAngle;this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=i.group({class:"apexcharts-series apexcharts-pie-series",seriesName:C.escapeString(n.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});a.add(h),l=u,c=(s=c)+e[d],u=l+this.prevSectorAngleArr[d];var f=c<s?this.fullAngle+c-s:c-s,p=o.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),g=this.getChangedPath(l,u),m=i.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:n.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),r.setSelectionFilter(m,0,d),n.config.chart.dropShadow.enabled){var v=n.config.chart.dropShadow;r.dropShadow(m,v,d)}this.addListeners(m,this.donutDataLabels),A.setAttrs(m.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var y={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?y=C.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize/1.25+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(y=C.polarToCartesian(this.centerX,this.centerY,(n.globals.radialSize+this.donutSize)/2+n.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),h.add(m);var b=0;if(!this.initialAnim||n.globals.resized||n.globals.dataChanged?this.animBeginArr.push(0):(0==(b=f/this.fullAngle*n.config.chart.animations.speed)&&(b=1),this.animDur=b+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&n.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:s,prevStartAngle:l,prevEndAngle:u,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:n.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:s,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:b}),n.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.node.addEventListener("mouseup",this.pieClicked.bind(this,d)),void 0!==n.globals.selectedDataPoints[0]&&n.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),n.config.dataLabels.enabled){var x=y.x,w=y.y,k=100*f/this.fullAngle+"%";if(0!==f&&n.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var S=n.config.dataLabels.formatter;
vendor: 30,401 bytes, line 2
2void 0!==S&&(k=S(n.globals.seriesPercent[d][0],{seriesIndex:d,w:n}));var L=n.globals.dataLabels.style.colors[d],T=i.group({class:"apexcharts-datalabels"}),E=i.drawText({x,y:w,text:k,textAnchor:"middle",fontSize:n.config.dataLabels.style.fontSize,fontFamily:n.config.dataLabels.style.fontFamily,fontWeight:n.config.dataLabels.style.fontWeight,foreColor:L});if(T.add(E),n.config.dataLabels.dropShadow.enabled){var O=n.config.dataLabels.dropShadow;r.dropShadow(E,O)}E.node.classList.add("apexcharts-pie-label"),n.config.chart.animations.animate&&!1===n.globals.resized&&(E.node.classList.add("apexcharts-pie-label-delay"),E.node.style.animationDelay=n.config.chart.animations.speed/940+"s"),this.sliceLabels.push(T)}}}return a}},{key:"addListeners",value:function(e,t){var n=new A(this.ctx);e.node.addEventListener("mouseenter",n.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",n.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",n.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var n=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,i=r,o=t.startAngle,a=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(o=t.prevEndAngle,i=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===n.config.series.length-1&&(r+a>this.fullAngle?t.endAngle=t.endAngle-(r+a):r+a<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(r+a)))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,o,a,r,i,t)}},{key:"animateArc",value:function(e,t,n,r,i,o){var a,s=this,l=this.w,c=new S(this.ctx),u=o.size;(isNaN(t)||isNaN(i))&&(t=n,i=r,o.dur=0);var d=r,h=n,f=t<n?this.fullAngle+t-n:t-n;l.globals.dataChanged&&o.shouldSetPrevPaths&&o.prevEndAngle&&(a=s.getPiePath({me:s,startAngle:o.prevStartAngle,angle:o.prevEndAngle<o.prevStartAngle?this.fullAngle+o.prevEndAngle-o.prevStartAngle:o.prevEndAngle-o.prevStartAngle,size:u}),e.attr({d:a})),0!==o.dur?e.animate(o.dur,l.globals.easing,o.animBeginArr[o.i]).afterAll((function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),o.i===l.config.series.length-1&&c.animationCompleted(e)})).during((function(l){d=f+(r-f)*l,o.animateStartingPos&&(d=i+(r-i)*l,h=t-i+(n-(t-i))*l),a=s.getPiePath({me:s,startAngle:h,angle:d,size:u}),e.node.setAttribute("data:pathOrig",a),e.attr({d:a})})):(a=s.getPiePath({me:s,startAngle:h,angle:r,size:u}),o.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",a),e.attr({d:a,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,n=this.w,r=this,i=r.sliceSizes[e]+(n.config.plotOptions.pie.expandOnClick?4:0),o=n.globals.dom.Paper.select(".apexcharts-".concat(r.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==o.attr("data:pieClicked")){var a=n.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,(function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)})),n.globals.capturedDataPointIndex=e,o.attr("data:pieClicked","true");var s=parseInt(o.attr("data:startAngle"),10),l=parseInt(o.attr("data:angle"),10);t=r.getPiePath({me:r,startAngle:s,angle:l,size:i}),360!==l&&o.plot(t)}else{o.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(o.node,this.donutDataLabels);var c=o.attr("data:pathOrig");o.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var n="";return this.dynamicAnim&&this.w.globals.dataChanged&&(n=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),n}},{key:"getPiePath",value:function(e){var t,n=e.me,r=e.startAngle,i=e.angle,o=e.size,a=new A(this.ctx),s=r,l=Math.PI*(s-90)/180,c=i+r;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var u=Math.PI*(c-90)/180,d=n.centerX+o*Math.cos(l),h=n.centerY+o*Math.sin(l),f=n.centerX+o*Math.cos(u),p=n.centerY+o*Math.sin(u),g=C.polarToCartesian(n.centerX,n.centerY,n.donutSize,c),m=C.polarToCartesian(n.centerX,n.centerY,n.donutSize,s),v=i>180?1:0,y=["M",d,h,"A",o,o,0,v,1,f,p];return t="donut"===n.chartType?[].concat(y,["L",g.x,g.y,"A",n.donutSize,n.donutSize,0,v,0,m.x,m.y,"L",d,h,"z"]).join(" "):"pie"===n.chartType||"polarArea"===n.chartType?[].concat(y,["L",n.centerX,n.centerY,"L",d,h]).join(" "):[].concat(y).join(" "),a.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,n=new ee(this.ctx),r=new A(this.ctx),i=new De(this.ctx),o=r.group(),a=r.group(),s=n.niceScale(0,Math.ceil(this.maxY),0),l=s.result.reverse(),c=s.result.length;this.maxY=s.niceMax;for(var u=t.globals.radialSize,d=u/(c-1),h=0;h<c-1;h++){var f=r.drawCircle(u);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=i.drawYAxisTexts(this.centerX,this.centerY-u+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);a.add(p)}o.add(f),u-=d}this.drawSpokes(e),e.add(o),e.add(a)}},{key:"renderInnerDataLabels",value:function(e,t,n){var r=this.w,i=new A(this.ctx),o=t.total.show;e.node.innerHTML="",e.node.style.opacity=n.opacity;var a,s,l=n.centerX,c=this.donutDataLabels.total.label?n.centerY:n.centerY-n.centerY/6;a=void 0===t.name.color?r.globals.colors[0]:t.name.color;var u=t.name.fontSize,d=t.name.fontFamily,h=t.name.fontWeight;s=void 0===t.value.color?r.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",g="";if(o?(a=t.total.color,u=t.total.fontSize,d=t.total.fontFamily,h=t.total.fontWeight,g=this.donutDataLabels.total.label?t.total.label:"",p=t.total.formatter(r)):1===r.globals.series.length&&(p=f(r.globals.series[0],r),g=r.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,r)),t.name.show){var m=i.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:a,fontSize:u,fontWeight:h,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),e.add(m)}if(t.value.show){var v=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,y=i.drawText({x:l,y:c+v,text:p,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});y.node.classList.add("apexcharts-datalabel-value"),e.add(y)}return e}},{key:"printInnerLabels",value:function(e,t,n,r){var i,o=this.w;r?i=void 0===e.name.color?o.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:e.name.color:o.globals.series.length>1&&e.total.show&&(i=e.total.color);var a=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=o.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");n=(0,e.value.formatter)(n,o),r||"function"!=typeof e.total.formatter||(n=e.total.formatter(o));var l=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,l,o):"",null!==a&&(a.textContent=t),null!==s&&(s.textContent=n),null!==a&&(a.style.fill=i)}},{key:"printDataLabelsInner",value:function(e,t){var n=this.w,r=e.getAttribute("data:value"),i=n.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];n.globals.series.length>1&&this.printInnerLabels(t,i,r,e);var o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==o&&(o.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,n=this.w,r=new A(this.ctx),i=n.config.plotOptions.polarArea.spokes;if(0!==i.strokeWidth){for(var o=[],a=360/n.globals.series.length,s=0;s<n.globals.series.length;s++)o.push(C.polarToCartesian(this.centerX,this.centerY,n.globals.radialSize,n.config.plotOptions.pie.startAngle+a*s));o.forEach((function(n,o){var a=r.drawLine(n.x,n.y,t.centerX,t.centerY,Array.isArray(i.connectorColors)?i.connectorColors[o]:i.connectorColors);e.add(a)}))}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],n=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.select(".apexcharts-radialbar, .apexcharts-pie").members[0].add(n)}}}]),e}(),Ie=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var n=this.w;this.graphics=new A(this.ctx),this.lineColorArr=void 0!==n.globals.stroke.colors?n.globals.stroke.colors:n.globals.colors,this.defaultSize=n.globals.svgHeight<n.globals.svgWidth?n.globals.gridHeight:n.globals.gridWidth,this.isLog=n.config.yaxis[0].logarithmic,this.logBase=n.config.yaxis[0].logBase,this.coreUtils=new L(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,n.globals.maxY,0):n.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):n.globals.minY,this.polygons=n.config.plotOptions.radar.polygons,this.strokeWidth=n.config.stroke.show?n.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-n.config.chart.dropShadow.blur,n.config.xaxis.labels.show&&(this.size=this.size-n.globals.xAxisLabelsWidth/1.75),void 0!==n.config.plotOptions.radar.size&&(this.size=n.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new $(this.ctx),i=[],o=new U(this.ctx);e.length&&(this.dataPointsLen=e[n.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var a=n.globals.gridWidth/2,s=n.globals.gridHeight/2,l=a+n.config.plotOptions.radar.offsetX,c=s+n.config.plotOptions.radar.offsetY,u=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),d=[],h=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((function(e,a){var s=e.length===n.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":s,seriesName:C.escapeString(n.globals.seriesNames[a]),rel:a+1,"data:realIndex":a});t.dataRadiusOfPercent[a]=[],t.dataRadius[a]=[],t.angleArr[a]=[],e.forEach((function(e,n){var r=Math.abs(t.maxValue-t.minValue);e-=t.minValue,t.isLog&&(e=t.coreUtils.getLogVal(t.logBase,e,0)),t.dataRadiusOfPercent[a][n]=e/r,t.dataRadius[a][n]=t.dataRadiusOfPercent[a][n]*t.size,t.angleArr[a][n]=n*t.disAngle})),d=t.getDataPointsPos(t.dataRadius[a],t.angleArr[a]);var c=t.createPaths(d,{x:0,y:0});h=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":a}),n.globals.delayedElements.push({el:h.node,index:a});var u={i:a,realIndex:a,animationDelay:a,initialSpeed:n.config.chart.animations.speed,dataChangeSpeed:n.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:n.globals.stroke.colors[a],strokeLineCap:n.config.stroke.lineCap},p=null;n.globals.previousPaths.length>0&&(p=t.getPreviousPath(a));for(var g=0;g<c.linePathsTo.length;g++){var v=t.graphics.renderPaths(m(m({},u),{},{pathFrom:null===p?c.linePathsFrom[g]:p,pathTo:c.linePathsTo[g],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[a]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(v);var y=r.fillPath({seriesNumber:a}),b=t.graphics.renderPaths(m(m({},u),{},{pathFrom:null===p?c.areaPathsFrom[g]:p,pathTo:c.areaPathsTo[g],strokeWidth:0,fill:y,drawShadow:!1}));if(n.config.chart.dropShadow.enabled){var x=new _(t.ctx),w=n.config.chart.dropShadow;x.dropShadow(b,Object.assign({},w,{noUserSpaceOnUse:!0}),a)}l.add(b)}e.forEach((function(e,r){var i=new G(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:a,dataPointIndex:r}),s=t.graphics.drawMarker(d[r].x,d[r].y,i);s.attr("rel",r),s.attr("j",r),s.attr("index",a),s.node.setAttribute("default-marker-size",i.pSize);var c=t.graphics.group({class:"apexcharts-series-markers"});c&&c.add(s),h.add(c),l.add(h);var u=n.config.dataLabels;if(u.enabled){var p=u.formatter(n.globals.series[a][r],{seriesIndex:a,dataPointIndex:r,w:n});o.plotDataLabelsText({x:d[r].x,y:d[r].y,text:p,textAnchor:"middle",i:a,j:a,parent:f,offsetCorrection:!1,dataLabelsConfig:m({},u)})}l.add(f)})),i.push(l)})),this.drawPolygons({parent:u}),n.config.xaxis.labels.show){var p=this.drawXAxisTexts();u.add(p)}return i.forEach((function(e){u.add(e)})),u.add(this.yaxisLabels),u}},{key:"drawPolygons",value:function(e){for(var t=this,n=this.w,r=e.parent,i=new De(this.ctx),o=n.globals.yAxisScale[0].result.reverse(),a=o.length,s=[],l=this.size/(a-1),c=0;c<a;c++)s[c]=l*c;s.reverse();var u=[],d=[];s.forEach((function(e,n){var r=C.getPolygonPos(e,t.dataPointsLen),i="";r.forEach((function(e,r){if(0===n){var o=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[r]:t.polygons.connectorColors);d.push(o)}0===r&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),i+=e.x+","+e.y+" "})),u.push(i)})),u.forEach((function(e,i){var o=t.polygons.strokeColors,a=t.polygons.strokeWidth,s=t.graphics.drawPolygon(e,Array.isArray(o)?o[i]:o,Array.isArray(a)?a[i]:a,n.globals.radarPolygons.fill.colors[i]);r.add(s)})),d.forEach((function(e){r.add(e)})),n.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((function(e,n){var r=i.drawYAxisTexts(e.x,e.y,n,o[n]);t.yaxisLabels.add(r)}))}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,n=t.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),i=C.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach((function(o,a){var s=t.config.xaxis.labels.formatter,l=new U(e.ctx);if(i[a]){var c=e.getTextPos(i[a],e.size),u=s(o,{seriesIndex:-1,dataPointIndex:a,w:t});l.plotDataLabelsText({x:c.newX,y:c.newY,text:u,textAnchor:c.textAnchor,i:a,j:a,parent:r,className:"apexcharts-xaxis-label",color:Array.isArray(n.style.colors)&&n.style.colors[a]?n.style.colors[a]:"#a8a8a8",dataLabelsConfig:m({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},n),offsetCorrection:!1}).on("click",(function(n){if("function"==typeof t.config.chart.events.xAxisLabelClick){var r=Object.assign({},t,{labelIndex:a});t.config.chart.events.xAxisLabelClick(n,e.ctx,r)}}))}})),r}},{key:"createPaths",value:function(e,t){var n=this,r=[],i=[],o=[],a=[];if(e.length){i=[this.graphics.move(t.x,t.y)],a=[this.graphics.move(t.x,t.y)];var s=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((function(t,r){s+=n.graphics.line(t.x,t.y),l+=n.graphics.line(t.x,t.y),r===e.length-1&&(s+="Z",l+="Z")})),r.push(s),o.push(l)}return{linePathsFrom:i,linePathsTo:r,areaPathsFrom:a,areaPathsTo:o}}},{key:"getTextPos",value:function(e,t){var n="middle",r=e.x,i=e.y;return Math.abs(e.x)>=10?e.x>0?(n="start",r+=10):e.x<0&&(n="end",r-=10):n="middle",Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:n,newX:r,newY:i}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,n=null,r=0;r<t.globals.previousPaths.length;r++){var i=t.globals.previousPaths[r];i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[r].paths[0]&&(n=t.globals.previousPaths[r].paths[0].d)}return n}},{key:"getDataPointsPos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],i=0;i<n;i++){var o={};o.x=e[i]*Math.sin(t[i]),o.y=-e[i]*Math.cos(t[i]),r.push(o)}return r}}]),e}(),Fe=function(){f(t,Ne);var e=u(t);function t(n){var r;a(this,t),(r=e.call(this,n)).ctx=n,r.w=n.w,r.animBeginArr=[0],r.animDur=0;var i=r.w;return r.startAngle=i.config.plotOptions.radialBar.startAngle,r.endAngle=i.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(i.config.plotOptions.radialBar.endAngle-i.config.plotOptions.radialBar.startAngle),r.trackStartAngle=i.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=i.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),360===r.endAngle&&(r.endAngle=359.99),r.margin=parseInt(i.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(o(r)),r}return l(t,[{key:"draw",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-radialbar"});if(t.globals.noData)return r;var i=n.group(),o=this.defaultSize/2,a=t.globals.gridWidth/2,s=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(s=s-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:s,centerX:a,centerY:o,colorArr:l,series:e});i.add(c)}var u=this.drawArcs({size:s,centerX:a,centerY:o,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=s-s*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return i.add(u.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(u.g.add(u.elHollow),u.dataLabels&&u.g.add(u.dataLabels)),r.add(i),r}},{key:"drawTracks",value:function(e){var t=this.w,n=new A(this.ctx),r=n.group({class:"apexcharts-tracks"}),i=new _(this.ctx),o=new $(this.ctx),a=this.getStrokeWidth(e);e.size=e.size-a/2;for(var s=0;s<e.series.length;s++){var l=n.group({class:"apexcharts-radialbar-track apexcharts-track"});r.add(l),l.attr({rel:s+1}),e.size=e.size-a-this.margin;var c=t.config.plotOptions.radialBar.track,u=o.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[s]:c.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=n.drawPath({d:"",stroke:u,strokeWidth:a*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;i.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return r}},{key:"drawArcs",value:function(e){var t=this.w,n=new A(this.ctx),r=new $(this.ctx),i=new _(this.ctx),o=n.group(),a=this.getStrokeWidth(e);e.size=e.size-a/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-a*e.series.length-this.margin*e.series.length-a*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,o,l,s));var u=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;i.dropShadow(u,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;if(this.radialDataLabels.show){var p=t.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0];f=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})}"back"===t.config.plotOptions.radialBar.hollow.position&&(o.add(u),f&&o.add(f));var g=!1;t.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var m=g?e.series.length-1:0;g?m>=0:m<e.series.length;g?m--:m++){var v=n.group({class:"apexcharts-series apexcharts-radial-series",seriesName:C.escapeString(t.globals.seriesNames[m])});o.add(v),v.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(v,m),e.size=e.size-a-this.margin;var y=r.fillPath({seriesNumber:m,size:e.size,value:e.series[m]}),b=this.startAngle,x=void 0,w=C.negToZero(e.series[m]>100?100:e.series[m])/100,k=Math.round(this.totalAngle*w)+this.startAngle,S=void 0;t.globals.dataChanged&&(x=this.startAngle,S=Math.round(this.totalAngle*C.negToZero(t.globals.previousPaths[m])/100)+x),Math.abs(k)+Math.abs(b)>360&&(k-=.01),Math.abs(S)+Math.abs(x)>360&&(S-=.01);var L=k-b,T=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[m]:t.config.stroke.dashArray,E=n.drawPath({d:"",stroke:y,strokeWidth:a,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:T});if(A.setAttrs(E.node,{"data:angle":L,"data:value":e.series[m]}),t.config.chart.dropShadow.enabled){var O=t.config.chart.dropShadow;i.dropShadow(E,O,m)}if(i.setSelectionFilter(E,0,m),this.addListeners(E,this.radialDataLabels),v.add(E),E.attr({index:0,j:m}),this.barLabels.enabled){var M=C.polarToCartesian(e.centerX,e.centerY,e.size,b),P=this.barLabels.formatter(t.globals.seriesNames[m],{seriesIndex:m,w:t}),D=["apexcharts-radialbar-label"];this.barLabels.onClick||D.push("apexcharts-no-click");var N=this.barLabels.useSeriesColors?t.globals.colors[m]:t.config.chart.foreColor;N||(N=t.config.chart.foreColor);var I=M.x+this.barLabels.offsetX,F=M.y+this.barLabels.offsetY,R=n.drawText({x:I,y:F,text:P,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:N,cssClass:D.join(" ")});R.on("click",this.onBarLabelClick),R.attr({rel:m+1}),0!==b&&R.attr({"transform-origin":"".concat(I," ").concat(F),transform:"rotate(".concat(b," 0 0)")}),v.add(R)}var z=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(z=t.config.chart.animations.speed),t.globals.dataChanged&&(z=t.config.chart.animations.dynamicAnimation.speed),this.animDur=z/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(E,{centerX:e.centerX,centerY:e.centerY,endAngle:k,startAngle:b,prevEndAngle:S,prevStartAngle:x,size:e.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:z,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:o,elHollow:u,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new A(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,n,r){var i=this.w,o=new $(this.ctx),a=C.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)o.clippedImgArea({width:n,height:n,image:s,patternID:"pattern".concat(i.globals.cuid).concat(a)}),r="url(#pattern".concat(i.globals.cuid).concat(a,")");else{var l=i.config.plotOptions.radialBar.hollow.imageWidth,c=i.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var u=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)}));t.add(u)}else{var d=i.globals.dom.Paper.image(s).loaded((function(t){this.move(e.centerX-l/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)}));t.add(d)}}return r}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,n=this.barLabels.onClick,r=this.w;n&&n(r.globals.seriesNames[t],{w:r,seriesIndex:t})}}]),t}(),Re=function(){f(t,Te);var e=u(t);function t(){return a(this,t),e.apply(this,arguments)}return l(t,[{key:"draw",value:function(e,t){var n=this.w,r=new A(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=n.globals.seriesRangeStart,this.seriesRangeEnd=n.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var i=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),o=0;o<e.length;o++){var a,s,l,c,u=void 0,d=void 0,h=n.globals.comboCharts?t[o]:o,f=this.barHelpers.getGroupIndex(h).columnGroupIndex,p=r.group({class:"apexcharts-series",seriesName:C.escapeString(n.globals.seriesNames[h]),rel:o+1,"data:realIndex":h});this.ctx.series.addCollapsedClassToSeries(p,h),e[o].length>0&&(this.visibleI=this.visibleI+1);var g=0,v=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[h][0],y=h);var b=this.barHelpers.initialPositions();d=b.y,c=b.zeroW,u=b.x,v=b.barWidth,g=b.barHeight,a=b.xDivision,s=b.yDivision,l=b.zeroH;for(var x=r.group({class:"apexcharts-datalabels","data:realIndex":h}),w=r.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<n.globals.dataPoints;k++){var S=this.barHelpers.getStrokeWidth(o,k,h),_=this.seriesRangeStart[o][k],L=this.seriesRangeEnd[o][k],T=null,E=null,O=null,M={x:u,y:d,strokeWidth:S,elSeries:p},P=this.seriesLen;if(n.config.plotOptions.bar.rangeBarGroupRows&&(P=1),void 0===n.config.series[o].data[k])break;if(this.isHorizontal){O=d+g*this.visibleI;var D=(s-g*P)/2;if(n.config.series[o].data[k].x){var N=this.detectOverlappingBars({i:o,j:k,barYPosition:O,srty:D,barHeight:g,yDivision:s,initPositions:b});g=N.barHeight,O=N.barYPosition}v=(T=this.drawRangeBarPaths(m({indexes:{i:o,j:k,realIndex:h},barHeight:g,barYPosition:O,zeroW:c,yDivision:s,y1:_,y2:L},M))).barWidth}else{n.globals.isXNumeric&&(u=(n.globals.seriesX[o][k]-n.globals.minX)/this.xRatio-v/2),E=u+v*this.visibleI;var I=(a-v*P)/2;if(n.config.series[o].data[k].x){var F=this.detectOverlappingBars({i:o,j:k,barXPosition:E,srtx:I,barWidth:v,xDivision:a,initPositions:b});v=F.barWidth,E=F.barXPosition}g=(T=this.drawRangeColumnPaths(m({indexes:{i:o,j:k,realIndex:h,translationsIndex:y},barWidth:v,barXPosition:E,zeroH:l,xDivision:a},M))).barHeight}var R=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:O,goalX:T.goalX,goalY:T.goalY,barHeight:g,barWidth:v});R&&w.add(R),d=T.y,u=T.x;var z=this.barHelpers.getPathFillColor(e,o,k,h),j=n.globals.stroke.colors[h];this.renderSeries({realIndex:h,pathFill:z,lineFill:j,j:k,i:o,x:u,y:d,y1:_,y2:L,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:S,elSeries:p,series:e,barHeight:g,barWidth:v,barXPosition:E,barYPosition:O,columnGroupIndex:f,elDataLabelsWrap:x,elGoalsMarkers:w,visibleSeries:this.visibleI,type:"rangebar"})}i.add(p)}return i}},{key:"detectOverlappingBars",value:function(e){var t=e.i,n=e.j,r=e.barYPosition,i=e.barXPosition,o=e.srty,a=e.srtx,s=e.barHeight,l=e.barWidth,c=e.yDivision,u=e.xDivision,d=e.initPositions,h=this.w,f=[],p=h.config.series[t].data[n].rangeName,g=h.config.series[t].data[n].x,m=Array.isArray(g)?g.join(" "):g,v=h.globals.labels.map((function(e){return Array.isArray(e)?e.join(" "):e})).indexOf(m),y=h.globals.seriesRange[t].findIndex((function(e){return e.x===m&&e.overlaps.length>0}));return this.isHorizontal?(r=h.config.plotOptions.bar.rangeBarGroupRows?o+c*v:o+s*this.visibleI+c*v,y>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][y].overlaps).indexOf(p)>-1&&(r=(s=d.barHeight/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+f.indexOf(p))+c*v)):(v>-1&&!h.globals.timescaleLabels.length&&(i=h.config.plotOptions.bar.rangeBarGroupRows?a+u*v:a+l*this.visibleI+u*v),y>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][y].overlaps).indexOf(p)>-1&&(i=(l=d.barWidth/f.length)*this.visibleI+u*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+f.indexOf(p))+u*v)),{barYPosition:r,barXPosition:i,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,n=e.x,r=e.xDivision,i=e.barWidth,o=e.barXPosition,a=e.zeroH,s=this.w,l=t.i,c=t.j,u=t.realIndex,d=t.translationsIndex,h=this.yRatio[d],f=this.getRangeValue(u,c),p=Math.min(f.start,f.end),g=Math.max(f.start,f.end);void 0===this.series[l][c]||null===this.series[l][c]?p=a:(p=a-p/h,g=a-g/h);var m=Math.abs(g-p),v=this.barHelpers.getColumnPaths({barXPosition:o,barWidth:i,y1:p,y2:g,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:u,i:u,j:c,w:s});if(s.globals.isXNumeric){var y=this.getBarXForNumericXAxis({x:n,j:c,realIndex:u,barWidth:i});n=y.x,o=y.barXPosition}else n+=r;return{pathTo:v.pathTo,pathFrom:v.pathFrom,barHeight:m,x:n,y:f.start<0&&f.end<0?p:g,goalY:this.barHelpers.getGoalValues("y",null,a,l,c,d),barXPosition:o}}},{key:"preventBarOverflow",value:function(e){var t=this.w;return e<0&&(e=0),e>t.globals.gridWidth&&(e=t.globals.gridWidth),e}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,n=e.y,r=e.y1,i=e.y2,o=e.yDivision,a=e.barHeight,s=e.barYPosition,l=e.zeroW,c=this.w,u=t.realIndex,d=t.j,h=this.preventBarOverflow(l+r/this.invertedYRatio),f=this.preventBarOverflow(l+i/this.invertedYRatio),p=this.getRangeValue(u,d),g=Math.abs(f-h),m=this.barHelpers.getBarpaths({barYPosition:s,barHeight:a,x1:h,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:u,realIndex:u,j:d,w:c});return c.globals.isXNumeric||(n+=o),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:g,x:p.start<0&&p.end<0?h:f,goalX:this.barHelpers.getGoalValues("x",l,null,u,d),y:n}}},{key:"getRangeValue",value:function(e,t){var n=this.w;return{start:n.globals.seriesRangeStart[e][t],end:n.globals.seriesRangeEnd[e][t]}}}]),t}(),ze=function(){function e(t){a(this,e),this.w=t.w,this.lineCtx=t}return l(e,[{key:"sameValueSeriesFix",value:function(e,t){var n=this.w;if(("gradient"===n.config.fill.type||"gradient"===n.config.fill.type[e])&&new L(this.lineCtx.ctx,n).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,n=e.realIndex,r=e.x,i=e.y,o=e.i,a=e.j,s=e.prevY,l=this.w,c=[],u=[];
2if(0===a){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[n][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),c.push(d),u.push(C.isNumber(t[o][0])?s+l.config.markers.offsetY:null),c.push(r+l.config.markers.offsetX),u.push(C.isNumber(t[o][a+1])?i+l.config.markers.offsetY:null)}else c.push(r+l.config.markers.offsetX),u.push(C.isNumber(t[o][a+1])?i+l.config.markers.offsetY:null);return{x:c,y:u}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,n=e.pathFromArea,r=e.realIndex,i=this.w,o=0;o<i.globals.previousPaths.length;o++){var a=i.globals.previousPaths[o];("line"===a.type||"area"===a.type)&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(r,10)&&("line"===a.type?(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[o].paths[0].d):"area"===a.type&&(this.lineCtx.appendPathFrom=!1,n=i.globals.previousPaths[o].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[o].paths[1]&&(t=i.globals.previousPaths[o].paths[1].d)))}return{pathFromLine:t,pathFromArea:n}}},{key:"determineFirstPrevY",value:function(e){var t,n,r,i=e.i,o=e.realIndex,a=e.series,s=e.prevY,l=e.lineYPosition,c=e.translationsIndex,u=this.w,d=u.config.chart.stacked&&!u.globals.comboCharts||u.config.chart.stacked&&u.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[o])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[o])||void 0===n?void 0:n.type));if(void 0!==(null===(r=a[i])||void 0===r?void 0:r[0]))s=(l=d&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-a[i][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?a[i][0]/this.lineCtx.yRatio[c]:0);else if(d&&i>0&&void 0===a[i][0])for(var h=i-1;h>=0;h--)if(null!==a[h][0]&&void 0!==a[h][0]){s=l=this.lineCtx.prevSeriesY[h][0];break}return{prevY:s,lineYPosition:l}}}]),e}(),je=function(e){var t=function(e){for(var t,n,r,i,o=function(e){for(var t=[],n=e[0],r=e[1],i=t[0]=Ye(n,r),o=1,a=e.length-1;o<a;o++)n=r,r=e[o+1],t[o]=.5*(i+(i=Ye(n,r)));return t[o]=i,t}(e),a=e.length-1,s=[],l=0;l<a;l++)r=Ye(e[l],e[l+1]),Math.abs(r)<1e-6?o[l]=o[l+1]=0:(i=(t=o[l]/r)*t+(n=o[l+1]/r)*n)>9&&(i=3*r/Math.sqrt(i),o[l]=i*t,o[l+1]=i*n);for(var c=0;c<=a;c++)i=(e[Math.min(a,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+o[c]*o[c])),s.push([i||0,o[c]*i||0]);return s}(e),n=e[1],r=e[0],i=[],o=t[1],a=t[0];i.push(r,[r[0]+a[0],r[1]+a[1],n[0]-o[0],n[1]-o[1],n[0],n[1]]);for(var s=2,l=t.length;s<l;s++){var c=e[s],u=t[s];i.push([c[0]-u[0],c[1]-u[1],c[0],c[1]])}return i},He=function(e,t,n){var r=e.slice(t,n);if(t){if(n-t>1&&r[1].length<6){var i=r[0].length;r[1]=[2*r[0][i-2]-r[0][i-4],2*r[0][i-1]-r[0][i-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r};function Ye(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Be=function(){function e(t,n,r){a(this,e),this.ctx=t,this.w=t.w,this.xyRatios=n,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new V(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new ze(this),this.markers=new G(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return l(e,[{key:"draw",value:function(e,t,n,r){var i,o=this.w,a=new A(this.ctx),s=o.globals.comboCharts?t:o.config.chart.type,l=a.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),c=new L(this.ctx,o);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=[];for(var u=[],d=0;d<e.length;d++){e=this.lineHelpers.sameValueSeriesFix(d,e);var h=o.globals.comboCharts?n[d]:d,f=this.yRatio.length>1?h:0;this._initSerieVariables(e,d,h);var p=[],g=[],v=[],y=o.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),o.globals.isXNumeric&&o.globals.seriesX.length>0&&(y=(o.globals.seriesX[h][0]-o.globals.minX)/this.xRatio),v.push(y);var b,x=y,w=void 0,k=x,C=this.zeroY,S=this.zeroY;C=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:e,prevY:C,lineYPosition:0,translationsIndex:f}).prevY,"monotoneCubic"===o.config.stroke.curve&&null===e[d][0]?p.push(null):p.push(C),b=C,"rangeArea"===s&&(w=S=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:r,prevY:S,lineYPosition:0,translationsIndex:f}).prevY,g.push(null!==p[0]?S:null));var _=this._calculatePathsFrom({type:s,series:e,i:d,realIndex:h,translationsIndex:f,prevX:k,prevY:C,prevY2:S}),T=[p[0]],E=[g[0]],O={type:s,series:e,realIndex:h,translationsIndex:f,i:d,x:y,y:1,pX:x,pY:b,pathsFrom:_,linePaths:[],areaPaths:[],seriesIndex:n,lineYPosition:0,xArrj:v,yArrj:p,y2Arrj:g,seriesRangeEnd:r},M=this._iterateOverDataPoints(m(m({},O),{},{iterations:"rangeArea"===s?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===s){for(var P=this._calculatePathsFrom({series:r,i:d,realIndex:h,prevX:k,prevY:S}),D=this._iterateOverDataPoints(m(m({},O),{},{series:r,xArrj:[y],yArrj:T,y2Arrj:E,pY:w,areaPaths:M.areaPaths,pathsFrom:P,iterations:r[d].length-1,isRangeStart:!1})),N=M.linePaths.length/2,I=0;I<N;I++)M.linePaths[I]=D.linePaths[I+N]+M.linePaths[I];M.linePaths.splice(N),M.pathFromLine=D.pathFromLine+M.pathFromLine}else M.pathFromArea+="z";this._handlePaths({type:s,realIndex:h,i:d,paths:M}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),u.push(this.elSeries)}if(void 0!==(null===(i=o.config.series[0])||void 0===i?void 0:i.zIndex)&&u.sort((function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.
vendor: 4,499 bytes, line 2
2node.getAttribute("zIndex"))})),o.config.chart.stacked)for(var F=u.length-1;F>=0;F--)l.add(u[F]);else for(var R=0;R<u.length;R++)l.add(u[R]);return l}},{key:"_initSerieVariables",value:function(e,t,n){var r=this.w,i=new A(this.ctx);this.xDivision=r.globals.gridWidth/(r.globals.dataPoints-("on"===r.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[n]:r.config.stroke.width;var o=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[n],o=n),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[o]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[o]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||"end"===r.config.plotOptions.area.fillTo)&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=i.group({class:"apexcharts-series",zIndex:void 0!==r.config.series[n].zIndex?r.config.series[n].zIndex:n,seriesName:C.escapeString(r.globals.seriesNames[n])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":n}),this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":n});var a=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":a,rel:t+1,"data:realIndex":n}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,n,r,i,o=e.type,a=e.series,s=e.i,l=e.realIndex,c=e.translationsIndex,u=e.prevX,d=e.prevY,h=e.prevY2,f=this.w,p=new A(this.ctx);if(null===a[s][0]){for(var g=0;g<a[s].length;g++)if(null!==a[s][g]){u=this.xDivision*g,d=this.zeroY-a[s][g]/this.yRatio[c],t=p.move(u,d),n=p.move(u,this.areaBottomY);break}}else t=p.move(u,d),"rangeArea"===o&&(t=p.move(u,h)+p.line(u,d)),n=p.move(u,this.areaBottomY)+p.line(u,d);if(r=p.move(0,this.zeroY)+p.line(0,this.zeroY),i=p.move(0,this.zeroY)+p.line(0,this.zeroY),f.globals.previousPaths.length>0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:i,realIndex:l});r=m.pathFromLine,i=m.pathFromArea}return{prevX:u,prevY:d,linePath:t,areaPath:n,pathFromLine:r,pathFromArea:i}}},{key:"_handlePaths",value:function(e){var t=e.type,n=e.realIndex,r=e.i,i=e.paths,o=this.w,a=new A(this.ctx),s=new $(this.ctx);this.prevSeriesY.push(i.yArrj),o.globals.seriesXvalues[n]=i.xArrj,o.globals.seriesYvalues[n]=i.yArrj;var l=o.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==t){var c=o.globals.seriesXvalues[n][o.globals.seriesXvalues[n].length-l.count-1],u=a.drawRect(c,0,o.globals.gridWidth,o.globals.gridHeight,0);o.globals.dom.elForecastMask.appendChild(u.node);var d=a.drawRect(0,0,c,o.globals.gridHeight,0);o.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||o.globals.delayedElements.push({el:this.elPointsMain.node,index:n});var h={i:r,realIndex:n,animationDelay:r,initialSpeed:o.config.chart.animations.speed,dataChangeSpeed:o.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var f=s.fillPath({seriesNumber:n}),p=0;p<i.areaPaths.length;p++){var g=a.renderPaths(m(m({},h),{},{pathFrom:i.pathFromArea,pathTo:i.areaPaths[p],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(g)}if(o.config.stroke.show&&!this.pointsChart){var v=null;if("line"===t)v=s.fillPath({seriesNumber:n,i:r});else if("solid"===o.config.stroke.fill.type)v=o.globals.stroke.colors[n];else{var y=o.config.fill;o.config.fill=o.config.stroke.fill,v=s.fillPath({seriesNumber:n,i:r}),o.config.fill=y}for(var b=0;b<i.linePaths.length;b++){var x=v;"rangeArea"===t&&(x=s.fillPath({seriesNumber:n}));var w=m(m({},h),{},{pathFrom:i.pathFromLine,pathTo:i.linePaths[b],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:o.config.stroke.lineCap,fill:"rangeArea"===t?x:"none"}),k=a.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==t){var C=a.renderPaths(w);C.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&C.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(C),C.attr("clip-path","url(#forecastMask".concat(o.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(o.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,n,r=this,i=e.type,o=e.series,a=e.iterations,s=e.realIndex,l=e.translationsIndex,c=e.i,u=e.x,d=e.y,h=e.pX,f=e.pY,p=e.pathsFrom,g=e.linePaths,m=e.areaPaths,v=e.seriesIndex,y=e.lineYPosition,b=e.xArrj,x=e.
2yArrj,w=e.y2Arrj,k=e.isRangeStart,S=e.seriesRangeEnd,_=this.w,L=new A(this.ctx),T=this.yRatio,E=p.prevY,O=p.linePath,M=p.areaPath,P=p.pathFromLine,D=p.pathFromArea,N=C.isNumber(_.globals.minYArr[s])?_.globals.minYArr[s]:_.globals.minY;a||(a=_.globals.dataPoints>1?_.globals.dataPoints-1:_.globals.dataPoints);var I=function(e,t){return t-e/T[l]+2*(r.isReversed?e/T[l]:0)},F=d,R=_.config.chart.stacked&&!_.globals.comboCharts||_.config.chart.stacked&&_.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[s])||void 0===t?void 0:t.type)||"column"===(null===(n=this.w.config.series[s])||void 0===n?void 0:n.type)),z=_.config.stroke.curve;Array.isArray(z)&&(z=Array.isArray(v)?z[v[c]]:z[c]);for(var j,H=0,Y=0;Y<a;Y++){var B=void 0===o[c][Y+1]||null===o[c][Y+1];if(_.globals.isXNumeric){var W=_.globals.seriesX[s][Y+1];void 0===_.globals.seriesX[s][Y+1]&&(W=_.globals.seriesX[s][a-1]),u=(W-_.globals.minX)/this.xRatio}else u+=this.xDivision;y=R&&c>0&&_.globals.collapsedSeries.length<_.config.series.length-1?this.prevSeriesY[function(e){for(var t=e;t>0;t--){if(!(_.globals.collapsedSeriesIndices.indexOf((null==v?void 0:v[t])||t)>-1))return t;t--}return 0}(c-1)][Y+1]:this.zeroY,B?d=I(N,y):(d=I(o[c][Y+1],y),"rangeArea"===i&&(F=I(S[c][Y+1],y))),b.push(u),!B||"smooth"!==_.config.stroke.curve&&"monotoneCubic"!==_.config.stroke.curve?(x.push(d),w.push(F)):(x.push(null),w.push(null));var X=this.lineHelpers.calculatePoints({series:o,x:u,y:d,realIndex:s,i:c,j:Y,prevY:E}),$=this._createPaths({type:i,series:o,i:c,realIndex:s,j:Y,x:u,y:d,y2:F,xArrj:b,yArrj:x,y2Arrj:w,pX:h,pY:f,pathState:H,segmentStartX:j,linePath:O,areaPath:M,linePaths:g,areaPaths:m,curve:z,isRangeStart:k});m=$.areaPaths,g=$.linePaths,h=$.pX,f=$.pY,H=$.pathState,j=$.segmentStartX,M=$.areaPath,O=$.linePath,!this.appendPathFrom||"monotoneCubic"===z&&"rangeArea"===i||(P+=L.line(u,this.zeroY),D+=L.line(u,this.zeroY)),this.handleNullDataPoints(o,X,c,Y,s),this._handleMarkersAndLabels({type:i,pointsPos:X,i:c,j:Y,realIndex:s,isRangeStart:k})}return{yArrj:x,xArrj:b,pathFromArea:D,areaPaths:m,pathFromLine:P,linePaths:g,linePath:O,areaPath:M}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,n=e.pointsPos,r=e.isRangeStart,i=e.i,o=e.j,a=e.realIndex,s=this.w,l=new U(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,o,{realIndex:a,pointsPos:n,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers(n,a,o+1);null!==c&&this.elPointsMain.add(c)}var u=l.drawDataLabel({type:t,isRangeStart:r,pos:n,i:a,j:o+1});null!==u&&this.elDataLabelsWrap.add(u)}},{key:"_createPaths",value:function(e){var t=e.type,n=e.series,r=e.i;e.realIndex;var i,o=e.j,a=e.x,s=e.y,l=e.xArrj,c=e.yArrj,u=e.y2,d=e.y2Arrj,h=e.pX,f=e.pY,p=e.pathState,g=e.segmentStartX,m=e.linePath,v=e.areaPath,y=e.linePaths,b=e.areaPaths,x=e.curve,w=e.isRangeStart,k=new A(this.ctx),C=this.areaBottomY,S="rangeArea"===t,_="rangeArea"===t&&w;switch(x){case"monotoneCubic":var L=w?c:d;switch(p){case 0:if(null===L[o+1])break;p=1;case 1:if(!(S?l.length===n[r].length:o===n[r].length-2))break;case 2:var T=w?l:l.slice().reverse(),E=w?L:L.slice().reverse(),O=(i=E,T.map((function(e,t){return[e,i[t]]})).filter((function(e){return null!==e[1]}))),M=O.length>1?je(O):O,P=[];S&&(_?b=O:P=b.reverse());var D=0,N=0;if(function(e,t){for(var n=function(e){var t=[],n=0;return e.forEach((function(e){null!==e?n++:n>0&&(t.push(n),n=0)})),n>0&&t.push(n),t}(e),r=[],i=0,o=0;i<n.length;o+=n[i++])r[i]=He(t,o,o+n[i]);return r}(E,M).forEach((function(e){D++;var t=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n],i=r.length;i>4?(t+="C".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]),t+=", ".concat(r[4],", ").concat(r[5])):i>2&&(t+="S".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]))}return t}(e),n=N,r=(N+=e.length)-1;_?m=k.move(O[n][0],O[n][1])+t:S?m=k.move(P[n][0],P[n][1])+k.line(O[n][0],O[n][1])+t+k.line(P[r][0],P[r][1]):(m=k.move(O[n][0],O[n][1])+t,v=m+k.line(O[r][0],C)+k.line(O[n][0],C)+"z",b.push(v)),y.push(m)})),S&&D>1&&!_){var I=y.slice(D).reverse();y.splice(D),I.forEach((function(e){return y.push(e)}))}p=0}break;case"smooth":var F=.35*(a-h);if(null===n[r][o])p=0;else switch(p){case 0:if(g=h,m=_?k.move(h,d[o])+k.line(h,f):k.move(h,f),v=k.move(h,f),null===n[r][o+1]){y.push(m),b.push(v);break}if(p=1,o<n[r].length-2){var R=k.curve(h+F,f,a-F,s,a,s);m+=R,v+=R;break}case 1:if(null===n[r][o+1])m+=_?k.line(h,u):k.move(h,f),v+=k.line(h,C)+k.line(g,C)+"z",y.push(m),b.push(v),p=-1;else{var z=k.curve(h+F,f,a-F,s,a,s);m+=z,v+=z,o>=n[r].length-2&&(_&&(m+=k.curve(a,s,a,s,a,u)+k.move(a,u)),v+=k.curve(a,s,a,s,a,C)+k.line(g,C)+"z",y.push(m),b.push(v),p=-1)}}h=a,f=s;break;default:var j=function(e,t,n){var r=[];switch(e){case"stepline":r=k.line(t,null,"H")+k.line(null,n,"V");break;case"linestep":r=k.line(null,n,"V")+k.line(t,null,"H");break;case"straight":r=k.line(t,n)}return r};if(null===n[r][o])p=0;else switch(p){case 0:if(g=h,m=_?k.move(h,d[o])+k.line(h,f):k.move(h,f),v=k.move(h,f),null===n[r][o+1]){y.push(m),b.push(v);break}if(p=1,o<n[r].length-2){var H=j(x,a,s);m+=H,v+=H;break}case 1:if(null===n[r][o+1])m+=_?k.line(h,u):k.move(h,f),v+=k.line(h,C)+k.line(g,C)+"z",y.push(m),b.push(v),p=-1;else{var Y=j(x,a,s);m+=Y,v+=Y,o>=n[r].length-2&&(_&&(m+=k.line(a,u)),v+=k.line(a,C)+k.line(g,C)+"z",y.push(m),b.push(v),p=-1)}}h=a,f=s}return{linePaths:y,areaPaths:b,pX:h,pY:f,pathState:p,segmentStartX:g,linePath:m,areaPath:v}}},{key:"handleNullDataPoints",value:function(e,t,n,r,i){var o=this.w;if(null===e[n][r]&&o.config.markers.showNullDataPoints||1===e[n].length){var a=this.strokeWidth-o.config.markers.strokeWidth/2;a>0||(a=0);var s=this.markers.plotChartMarkers(t,i,r+1,a,!0);null!==s&&this.elPointsMain.add(s)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,n,r,i){this.xoffset=t,this.yoffset=n,this.height=i,this.width=r,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,n=[],r=this.xoffset,i=this.yoffset,a=o(e)/this.height,s=o(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)n.push([r,i,r+a,i+e[t]/a]),i+=e[t]/a;else for(t=0;t<e.length;t++)n.push([r,i,r+e[t]/s,i+s]),r+=e[t]/s;return n},this.cutArea=function(t){var n;if(this.width>=this.height){var r=t/this.height,i=this.width-r;n=new e(this.xoffset+r,this.yoffset,i,this.height)}else{var o=t/this.width,a=this.height-o;n=new e(this.xoffset,this.yoffset+o,this.width,a)}return n}}function t(t,r,i,a,s){a=void 0===a?0:a,s=void 0===s?0:s;var l=n(function(e,t){var n,r=[],i=t/o(e);for(n=0;n<e.length;n++)r[n]=e[n]*i;return r}(t,r*i),[],new e(a,s,r,i),[]);return function(e){var t,n,r=[];for(t=0;t<e.length;t++)for(n=0;n<e[t].length;n++)r.push(e[t][n]);return r}(l)}function n(e,t,i,a){var s,l,c;if(0!==e.length)return s=i.shortestEdge(),function(e,t,n){var i;return 0===e.length||((i=e.slice()).push(t),r(e,n)>=r(i,n))}(t,l=e[0],s)?(t.push(l),n(e.slice(1),t,i,a)):(c=i.cutArea(o(t),a),a.push(i.getCoordinates(t)),n(e,[],c,a)),a;a.push(i.getCoordinates(t))}function r(e,t){var n=Math.min.apply(Math,e),r=Math.max.apply(Math,e),i=o(e);return Math.max(Math.pow(t,2)*r/Math.pow(i,2),Math.pow(i,2)/(Math.pow(t,2)*n))}function i(e){return e&&e.constructor===Array}function o(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t];return n}function a(e){var t,n=0;if(i(e[0]))for(t=0;t<e.length;t++)n+=a(e[t]);else n=o(e);return n}return function e(n,r,o,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var c,u,d=[],h=[];if(i(n[0])){for(u=0;
vendor: 5,018 bytes, line 2
2u<n.length;u++)d[u]=a(n[u]);for(c=t(d,r,o,s,l),u=0;u<n.length;u++)h.push(e(n[u],c[u][2]-c[u][0],c[u][3]-c[u][1],c[u][0],c[u][1]))}else h=t(n,r,o,s,l);return h}}();var We,Xe,$e=function(){function e(t,n){a(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Me(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return l(e,[{key:"draw",value:function(e){var t=this,n=this.w,r=new A(this.ctx),i=new $(this.ctx),o=r.group({class:"apexcharts-treemap"});if(n.globals.noData)return o;var a=[];return e.forEach((function(e){var t=e.map((function(e){return Math.abs(e)}));a.push(t)})),this.negRange=this.helpers.checkColorRange(),n.config.series.forEach((function(e,n){e.data.forEach((function(e){Array.isArray(t.labels[n])||(t.labels[n]=[]),t.labels[n].push(e.x)}))})),window.TreemapSquared.generate(a,n.globals.gridWidth,n.globals.gridHeight).forEach((function(a,s){var l=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:C.escapeString(n.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(n.config.chart.dropShadow.enabled){var c=n.config.chart.dropShadow;new _(t.ctx).dropShadow(o,c,s)}var u=r.group({class:"apexcharts-data-labels"});a.forEach((function(o,a){var c=o[0],u=o[1],d=o[2],h=o[3],f=r.drawRect(c,u,d-c,h-u,n.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,n.config.plotOptions.treemap.useFillColorAsStroke?g:n.globals.stroke.colors[s]);f.attr({cx:c,cy:u,index:s,i:s,j:a,width:d-c,height:h-u});var p=t.helpers.getShadeColor(n.config.chart.type,s,a,t.negRange),g=p.color;void 0!==n.config.series[s].data[a]&&n.config.series[s].data[a].fillColor&&(g=n.config.series[s].data[a].fillColor);var m=i.fillPath({color:g,seriesNumber:s,dataPointIndex:a});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:m}),t.helpers.addListeners(f);var v={x:c+(d-c)/2,y:u+(h-u)/2,width:0,height:0},y={x:c,y:u,width:d-c,height:h-u};if(n.config.chart.animations.enabled&&!n.globals.dataChanged){var b=1;n.globals.resized||(b=n.config.chart.animations.speed),t.animateTreemap(f,v,y,b)}if(n.globals.dataChanged){var x=1;t.dynamicAnim.enabled&&n.globals.shouldAnimate&&(x=t.dynamicAnim.speed,n.globals.previousPaths[s]&&n.globals.previousPaths[s][a]&&n.globals.previousPaths[s][a].rect&&(v=n.globals.previousPaths[s][a].rect),t.animateTreemap(f,v,y,x))}var w=t.getFontSize(o),k=n.config.dataLabels.formatter(t.labels[s][a],{value:n.globals.series[s][a],seriesIndex:s,dataPointIndex:a,w:n});"truncate"===n.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(n.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,c,u,d,h));var C=null;n.globals.series[s][a]&&(C=t.helpers.calculateDataLabels({text:k,x:(c+d)/2,y:(u+h)/2+t.strokeWidth/2+w/3,i:s,j:a,colorProps:p,fontSize:w,series:e})),n.config.dataLabels.enabled&&C&&t.rotateToFitLabel(C,w,k,c,u,d,h),l.add(f),null!==C&&l.add(C)})),l.add(u),o.add(l)})),o}},{key:"getFontSize",value:function(e){var t,n,r=this.w,i=function e(t){var n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=t[n].length;return r}(this.labels)/function e(t){var n,r=0;if(Array.isArray(t[0]))for(n=0;n<t.length;n++)r+=e(t[n]);else for(n=0;n<t.length;n++)r+=1;return r}(this.labels);return t=(e[2]-e[0])*(e[3]-e[1]),n=Math.pow(t,.5),Math.min(n/i,parseInt(r.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,n,r,i,o,a){var s=new A(this.ctx),l=s.getTextRects(n,t);if(l.width+this.w.config.stroke.width+5>o-r&&l.width<=a-i){var c=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,n,r,i,o){var a=new A(this.ctx),s=a.getTextRects(e,t).width+this.w.config.stroke.width+5>i-n&&o-r>i-n?o-r:i-n,l=a.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==l.length&&s/t<5?"":l}},{key:"animateTreemap",value:function(e,t,n,r){var i=new S(this.ctx);i.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:n.x,y:n.y,width:n.width,height:n.height},r,(function(){i.animationCompleted(e)}))}}]),e}(),Ge=10/86400,Ve=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return l(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var n=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var i=new O(this.ctx),o=(t-e)/864e5;this.determineInterval(o),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,o<Ge?r.globals.disableZoomIn=!0:o>5e4&&(r.globals.disableZoomOut=!0);var a=i.getTimeUnitsfromTimestamp(e,t,this.utc),s=r.globals.gridWidth/o,l=s/24,c=l/60,u=c/60,d=Math.floor(24*o),h=Math.floor(1440*o),f=Math.floor(86400*o),p=Math.floor(o),g=Math.floor(o/30),v=Math.floor(o/365),y={minMillisecond:a.minMillisecond,minSecond:a.minSecond,minMinute:a.minMinute,minHour:a.minHour,minDate:a.minDate,minMonth:a.minMonth,minYear:a.minYear}
2,b={firstVal:y,currentMillisecond:y.minMillisecond,currentSecond:y.minSecond,currentMinute:y.minMinute,currentHour:y.minHour,currentMonthDate:y.minDate,currentDate:y.minDate,currentMonth:y.minMonth,currentYear:y.minYear,daysWidthOnXAxis:s,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:u,numberOfSeconds:f,numberOfMinutes:h,numberOfHours:d,numberOfDays:p,numberOfMonths:g,numberOfYears:v};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=this.timeScaleArray.map((function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?m(m({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?m(m({},t),{},{value:e.value}):"minute"===e.unit?m(m({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?m(m({},t),{},{value:e.value,minute:e.minute,second:e.second}):e}));return x.filter((function(e){var t=1,i=Math.ceil(r.globals.gridWidth/120),o=e.value;void 0!==r.config.xaxis.tickAmount&&(i=r.config.xaxis.tickAmount),x.length>i&&(t=Math.floor(x.length/i));var a=!1,s=!1;switch(n.tickInterval){case"years":"year"===e.unit&&(a=!0);break;case"half_year":t=7,"year"===e.unit&&(a=!0);break;case"months":t=1,"year"===e.unit&&(a=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(a=!0),30===o&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(a=!0),30===o&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(a=!0);break;case"days":t=1,"month"===e.unit&&(a=!0);break;case"hours":"day"===e.unit&&(a=!0);break;case"minutes_fives":case"seconds_fives":o%5!=0&&(s=!0);break;case"seconds_tens":o%10!=0&&(s=!0)}if("hours"===n.tickInterval||"minutes_fives"===n.tickInterval||"seconds_tens"===n.tickInterval||"seconds_fives"===n.tickInterval){if(!s)return!0}else if((o%t==0||a)&&!s)return!0}))}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var n=this.w,r=this.formatDates(e),i=this.removeOverlappingTS(r);n.globals.timescaleLabels=i.slice(),new pe(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,n=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case n>15:this.tickInterval="minutes_fives";break;case n>5:this.tickInterval="minutes";break;case n>1:this.tickInterval="seconds_tens";break;case 60*n>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.daysWidthOnXAxis,o=e.numberOfYears,a=t.minYear,s=0,l=new O(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var u=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-u+1)*i,a=t.minYear+1,this.timeScaleArray.push({position:s,value:a,unit:c,year:a,month:C.monthMod(n+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:a,unit:c,year:r,month:C.monthMod(n+1)});for(var d=a,h=s,f=0;f<o;f++)d++,h=l.determineDaysOfYear(d-1)*i+h,this.timeScaleArray.push({position:h,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,n=e.currentMonthDate,r=e.currentMonth,i=e.currentYear,o=e.daysWidthOnXAxis,a=e.numberOfMonths,s=r,l=0,c=new O(this.ctx),u="month",d=0;if(t.minDate>1){l=(c.determineDaysOfMonths(r+1,t.minYear)-n+1)*o,s=C.monthMod(r+1);var h=i+d,f=C.monthMod(s),p=s;0===s&&(u="year",p=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:u,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:u,year:i,month:C.monthMod(r)});for(var g=s+1,m=l,v=0,y=1;v<a;v++,y++){0===(g=C.monthMod(g))?(u="year",d+=1):u="month";var b=this._getYear(i,g,d);m=c.determineDaysOfMonths(g,b)*o+m;var x=0===g?b:g;this.timeScaleArray.push({position:m,value:x,unit:u,year:b,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,n=e.currentMonth,r=e.currentYear,i=e.hoursWidthOnXAxis,o=e.numberOfDays,a=new O(this.ctx),s="day",l=t.minDate+1,c=l,u=function(e,t,n){return e>a.determineDaysOfMonths(t+1,n)?(c=1,s="month",h=t+=1,t):t},d=(24-t.minHour)*i,h=l,f=u(c,n,r);0===t.minHour&&1===t.minDate?(d=0,h=C.monthMod(t.minMonth),s="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,l=t.minDate,h=l,f=u(c=l,n,r)),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(r,f,0),month:C.monthMod(f),day:c});for(var p=d,g=0;g<o;g++){s="day",f=u(c+=1,f,this._getYear(r,f,0));var m=this._getYear(r,f,0);p=24*i+p;var v=1===c?C.monthMod(f):c;this.timeScaleArray.push({position:p,value:v,unit:s,year:m,month:C.monthMod(f),day:v})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,n=e.currentDate,r=e.currentMonth,i=e.currentYear,o=e.minutesWidthOnXAxis,a=e.numberOfHours,s=new O(this.ctx),l="hour",c=function(e,t){return e>s.determineDaysOfMonths(t+1,i)&&(g=1,t+=1),{month:t,date:g}},u=function(e,t){return e>s.determineDaysOfMonths(t+1,i)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*o,f=t.minHour+1,p=f;60===d&&(h=0,p=f=t.minHour);var g=n;p>=24&&(p=0,g+=1,l="day");var m=c(g,r).month;m=u(g,m),this.timeScaleArray.push({position:h,value:f,unit:l,day:g,hour:p,year:i,month:C.monthMod(m)}),p++;for(var v=h,y=0;y<a;y++){l="hour",p>=24&&(p=0,l="day",m=c(g+=1,m).month,m=u(g,m));var b=this._getYear(i,m,0);v=60*o+v;var x=0===p?g:p;this.timeScaleArray.push({position:v,value:x,unit:l,hour:p,day:g,year:b,month:C.monthMod(m)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,o=e.currentDate,a=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,u=e.numberOfMinutes,d=r+1,h=o,f=a,p=s,g=i,m=(60-n-t/1e3)*c,v=0;v<u;v++)d>=60&&(d=0,24===(g+=1)&&(g=0)),this.timeScaleArray.push({position:m,value:d,unit:"minute",hour:g,minute:d,day:h,year:this._getYear(p,f,0),month:C.monthMod(f)}),m+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,n=e.currentSecond,r=e.currentMinute,i=e.currentHour,o=e.currentDate,a=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,u=n+1,d=r,h=o,f=a,p=s,g=i,m=(1e3-t)/1e3*l,v=0;v<c;v++)u>=60&&(u=0,++d>=60&&(d=0,24==++g&&(g=0))),this.timeScaleArray.push({position:m,value:u,unit:"second",hour:g,minute:d,second:u,day:h,year:this._getYear(p,f,0),month:C.monthMod(f)}),m+=l,u++}},{key:"createRawDateString",value:function(e,t){var n=e.year;return 0===e.month&&(e.month=1),n+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?n+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":n+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?n+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":n+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?n+=":"+("0"+t).slice(-2):n+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?n+=":"+("0"+t).slice(-2):n+=":00",this.utc&&(n+=".000Z"),n}},{key:"formatDates",value:function(e){var t=this,n=this.w;return e.map((function(e){var r=e.value.toString(),i=new O(t.ctx),o=t.createRawDateString(e,r),a=i.getDate(i.parseDate(o));if(t.utc||(a=i.getDate(i.parseDateWithTimezone(o))),void 0===n.config.xaxis.labels.format){var s="dd MMM",l=n.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),r=i.formatDate(a,s)}else r=i.formatDate(a,n.config.xaxis.labels.format);return{dateString:o,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}}))}},{key:"removeOverlappingTS",value:function(e){var t,n=this,r=new A(this.ctx),i=!1;e.length>0&&e[0].value&&e.every((function(t){return t.value.length===e[0].value.length}))&&(i=!0,t=r.getTextRects(e[0].value).width);var o=0,a=e.map((function(a,s){if(s>0&&n.w.config.xaxis.labels.hideOverlappingLabels){var l=i?t:r.getTextRects(e[o].value).width,c=e[o].position;return a.position>c+l+10?(o=s,a):null}return a}));return a.filter((function(e){return null!==e}))}},{key:"_getYear",value:function(e,t,n){return e+Math.floor(t/12)+n}}]),e}(),Ue=function(){function e(t,n){a(this,e),this.ctx=n,this.w=n.w,this.el=t}return l(e,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,n=e.config,r=n.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(r),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(r),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(r)&&n.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),A.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(n.chart.offsetX,", ").concat(n.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==n.theme.mode||n.chart.background?"light"!==n.theme.mode||n.chart.background?n.chart.background:"#fff"
vendor: 7,766 bytes, line 2
2:"#424242",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),A.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var n=this.w,r=this.ctx,i=n.config,o=n.globals,a={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},column:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},s=i.chart.type||"line",l=null,c=0;o.series.forEach((function(t,r){var i=e[r].type||s;a[i]?("rangeArea"===i?(a[i].series.push(o.seriesRangeStart[r]),a[i].seriesRangeEnd.push(o.seriesRangeEnd[r])):a[i].series.push(t),a[i].i.push(r),"column"!==i&&"bar"!==i||(n.globals.columnSeries=a.column)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(i)?l=i:"bar"===i?(a.column.series.push(t),a.column.i.push(r)):console.warn("You have specified an unrecognized series type (".concat(i,").")),s!==i&&"scatter"!==i&&c++})),c>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),a.column.series.length>0&&i.plotOptions.bar.horizontal&&(c-=a.column.series.length,a.column={series:[],i:[]},n.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),o.comboCharts||(o.comboCharts=c>0);var u=new Be(r,t),d=new Oe(r,t);r.pie=new Ne(r);var h=new Fe(r);r.rangeBar=new Re(r,t);var f=new Ie(r),p=[];if(o.comboCharts){var g,m,v=new L(r);if(a.area.series.length>0&&(g=p).push.apply(g,b(v.drawSeriesByGroup(a.area,o.areaGroups,"area",u))),a.column.series.length>0)if(i.chart.stacked){var y=new Ee(r,t);p.push(y.draw(a.column.series,a.column.i))}else r.bar=new Te(r,t),p.push(r.bar.draw(a.column.series,a.column.i));if(a.rangeArea.series.length>0&&p.push(u.draw(a.rangeArea.series,"rangeArea",a.rangeArea.i,a.rangeArea.seriesRangeEnd)),a.line.series.length>0&&(m=p).push.apply(m,b(v.drawSeriesByGroup(a.line,o.lineGroups,"line",u))),a.candlestick.series.length>0&&p.push(d.draw(a.candlestick.series,"candlestick",a.candlestick.i)),a.boxPlot.series.length>0&&p.push(d.draw(a.boxPlot.series,"boxPlot",a.boxPlot.i)),a.rangeBar.series.length>0&&p.push(r.rangeBar.draw(a.rangeBar.series,a.rangeBar.i)),a.scatter.series.length>0){var x=new Be(r,t,!0);p.push(x.draw(a.scatter.series,"scatter",a.scatter.i))}if(a.bubble.series.length>0){var w=new Be(r,t,!0);p.push(w.draw(a.bubble.series,"bubble",a.bubble.i))}}else switch(i.chart.type){case"line":p=u.draw(o.series,"line");break;case"area":p=u.draw(o.series,"area");break;case"bar":i.chart.stacked?p=new Ee(r,t).draw(o.series):(r.bar=new Te(r,t),p=r.bar.draw(o.series));break;case"candlestick":p=new Oe(r,t).draw(o.series,"candlestick");break;case"boxPlot":p=new Oe(r,t).draw(o.series,i.chart.type);break;case"rangeBar":p=r.rangeBar.draw(o.series);break;case"rangeArea":p=u.draw(o.seriesRangeStart,"rangeArea",void 0,o.seriesRangeEnd);break;case"heatmap":p=new Pe(r,t).draw(o.series);break;case"treemap":p=new $e(r,t).draw(o.series);break;case"pie":case"donut":case"polarArea":p=r.pie.draw(o.series);break;case"radialBar":p=h.draw(o.series);break;case"radar":p=f.draw(o.series);break;default:p=u.draw(o.series)}return p}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,n=e.config;n.chart.width=n.chart.width||"100%",n.chart.height=n.chart.height||"auto",t.svgWidth=n.chart.width,t.svgHeight=n.chart.height;var r=C.getDimensions(this.el),i=n.chart.width.toString().split(/[0-9]+/g).pop();"%"===i?C.isNumber(r[0])&&(0===r[0].width&&(r=C.getDimensions(this.el.parentNode)),t.svgWidth=r[0]*parseInt(n.chart.width,10)/100):"px"!==i&&""!==i||(t.svgWidth=parseInt(n.chart.width,10));var o=String(n.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===o){var a=C.getDimensions(this.el.parentNode);t.svgHeight=a[1]*parseInt(n.chart.height,10)/100}else t.svgHeight=parseInt(n.chart.height,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),A.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==o){var s=n.chart.sparkline.enabled?0:t.axisCharts?n.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+s,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,n=e.translateX;A.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(n,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,n=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(n=new me(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var i=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),o=2.05*e.globals.radialSize;if(i&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var a=C.getBoundingClientRect(i);o=a.bottom;var s=a.bottom-a.top;o=Math.max(2.05*e.globals.radialSize,s)}var l=Math.ceil(o+t.translateY+n+r);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(l,"px"),A.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new te(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map((function(){return[]}))},n=new W,r=this.w.globals;n.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new ae(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new ae(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new Ve(this.ctx);var n=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(n=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(n)}t=new L(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var n=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];
2n.forEach((function(t){var n=ApexCharts.getChartByID(t);n.w.globals.brushSource=e.ctx,"function"!=typeof n.w.config.chart.events.zoomed&&(n.w.config.chart.events.zoomed=function(){return e.updateSourceChart(n)}),"function"!=typeof n.w.config.chart.events.scrolled&&(n.w.config.chart.events.scrolled=function(){return e.updateSourceChart(n)})})),t.config.chart.events.selection=function(e,t){n.forEach((function(e){ApexCharts.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:t.xaxis.min,max:t.xaxis.max}},!1,!1,!1,!1)}))}}}}]),e}(),qe=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"_updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise((function(a){var s=[t.ctx];i&&(s=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(s=[t.ctx],t.ctx.w.globals.isExecCalled=!1),s.forEach((function(i,l){var c=i.w;if(c.globals.shouldAnimate=r,n||(c.globals.resized=!0,c.globals.dataChanged=!0,r&&i.series.getPreviousPaths()),e&&"object"===w(e)&&(i.config=new B(e),e=L.extendArrayProps(i.config,e,c),i.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=C.extend(c.config,e),o&&(c.globals.lastXAxis=e.xaxis?C.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?C.clone(e.yaxis):[],c.globals.initialConfig=C.extend({},c.config),c.globals.initialSeries=C.clone(c.config.series),e.series))){for(var u=0;u<c.globals.collapsedSeriesIndices.length;u++){var d=c.config.series[c.globals.collapsedSeriesIndices[u]];c.globals.collapsedSeries[u].data=c.globals.axisCharts?d.data.slice():d}for(var h=0;h<c.globals.ancillaryCollapsedSeriesIndices.length;h++){var f=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[h]];c.globals.ancillaryCollapsedSeries[h].data=c.globals.axisCharts?f.data.slice():f}i.series.emptyCollapsedSeries(c.config.series)}return i.update(e).then((function(){l===s.length-1&&a(i)}))}))}))}},{key:"_updateSeries",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise((function(i){var o,a=n.w;return a.globals.shouldAnimate=t,a.globals.dataChanged=!0,t&&n.ctx.series.getPreviousPaths(),a.globals.axisCharts?(0===(o=e.map((function(e,t){return n._extendSeries(e,t)}))).length&&(o=[{data:[]}]),a.config.series=o):a.config.series=e.slice(),r&&(a.globals.initialConfig.series=C.clone(a.config.series),a.globals.initialSeries=C.clone(a.config.series)),n.ctx.update().then((function(){i(n.ctx)}))}))}},{key:"_extendSeries",value:function(e,t){var n=this.w,r=n.config.series[t];return m(m({},n.config.series[t]),{},{name:e.name?e.name:null==r?void 0:r.name,color:e.color?e.color:null==r?void 0:r.color,type:e.type?e.type:null==r?void 0:r.type,group:e.group?e.group:null==r?void 0:r.group,hidden:void 0!==e.hidden?e.hidden:null==r?void 0:r.hidden,data:e.data?e.data:null==r?void 0:r.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var n=this.w,r=null,i=".apexcharts-series[data\\:realIndex='".concat(e,"']");return n.globals.axisCharts?r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(t,"'], ").concat(i," circle[j='").concat(t,"'], ").concat(i," rect[j='").concat(t,"']")).members[0]:void 0===t&&(r=n.globals.dom.Paper.select("".concat(i," path[j='").concat(e,"']")).members[0],"pie"!==n.config.chart.type&&"polarArea"!==n.config.chart.type&&"donut"!==n.config.chart.type||this.ctx.pie.pieClicked(e)),r?(new A(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach((function(n){void 0!==e.xaxis[n]&&(t.config.xaxis[n]=e.xaxis[n],t.globals.lastXAxis[n]=e.xaxis[n])})),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var n=new Y(e);e=n.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach((function(t,n){e.yaxis[n].min=0,e.yaxis[n].max=100})):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,n=this.w,r=n.globals.lastXAxis,i=n.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(i=e.yaxis),n.config.xaxis.min=r.min,n.c
2onfig.xaxis.max=r.max;n.config.yaxis.map((function(e,r){n.globals.zoomed||void 0!==i[r]?function(e){void 0!==i[e]&&(n.config.yaxis[e].min=i[e].min,n.config.yaxis[e].max=i[e].max)}(r):void 0!==t.ctx.opts.yaxis[r]&&(e.min=t.ctx.opts.yaxis[r].min,e.max=t.ctx.opts.yaxis[r].max)}))}}]),e}();We="undefined"!=typeof window?window:void 0,Xe=function(e,t){var n=(void 0!==this?this:e).SVG=function(e){if(n.supported)return e=new n.Doc(e),n.parser.draw||n.prepare(),e};if(n.ns="http://www.w3.org/2000/svg",n.xmlns="http://www.w3.org/2000/xmlns/",n.xlink="http://www.w3.org/1999/xlink",n.svgjs="http://svgjs.dev",n.supported=!0,!n.supported)return!1;n.did=1e3,n.eid=function(e){return"Svgjs"+u(e)+n.did++},n.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},n.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var r=e.length-1;r>=0;r--)if(e[r])for(var i in t)e[r].prototype[i]=t[i];n.Set&&n.Set.inherit&&n.Set.inherit()},n.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,n.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&n.extend(t,e.extend),e.construct&&n.extend(e.parent||n.Container,e.construct),t},n.adopt=function(t){return t?t.instance?t.instance:((r="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new n.Nested:new n.Doc:"linearGradient"==t.nodeName?new n.Gradient("linear"):"radialGradient"==t.nodeName?new n.Gradient("radial"):n[u(t.nodeName)]?new(n[u(t.nodeName)]):new n.Element(t)).type=t.nodeName,r.node=t,t.instance=r,r instanceof n.Doc&&r.namespace().defs(),r.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),r):null;var r},n.prepare=function(){var e=t.getElementsByTagName("body")[0],r=(e?new n.Doc(e):n.adopt(t.documentElement).nested()).size(2,0);n.parser={body:e||t.documentElement,draw:r.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:r.polyline().node,path:r.path().node,native:n.create("svg")}},n.parser={native:n.create("svg")},t.addEventListener("DOMContentLoaded",(function(){n.parser.draw||n.prepare()}),!1),n.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},n.utils={map:function(e,t){for(var n=e.length,r=[],i=0;i<n;i++)r.push(t(e[i]));return r},filter:function(e,t){for(var n=e.length,r=[],i=0;i<n;i++)t(e[i])&&r.push(e[i]);return r},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},n.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},n.Color=function(e){var t,r;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?n.regex.isRgb.test(e)?(t=n.regex.rgb.exec(e.replace(n.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):n.regex.isHex.test(e)&&(t=n.regex.hex.exec(4==(r=e).length?["#",r.substring(1,2),r.substring(1,2),r.substring(2,3),r.substring(2,3),r.substring(3,4),r.substring(3,4)].join(""):r),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===w(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},n.extend(n.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new n.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new n.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),n.Color.test=function(e){return e+="",n.regex.isHex.test(e)||n.regex.isRgb.test(e)},n.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},n.Color.isColor=function(e){return n.Color.isRgb(e)||n.Color.test(e)},n.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},n.extend(n.Array,{toString:function(){return this.value.join(" ")}
2,valueOf:function(){return this.value},parse:function(e){return e=e.valueOf(),Array.isArray(e)?e:this.split(e)}}),n.PointArray=function(e,t){n.Array.call(this,e,t||[[0,0]])},n.PointArray.prototype=new n.Array,n.PointArray.prototype.constructor=n.PointArray;for(var r={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]}},i="mlhvqtcsaz".split(""),o=0,a=i.length;o<a;++o)r[i[o]]=function(e){return function(t,n,i){if("H"==e)t[0]=t[0]+n.x;else if("V"==e)t[0]=t[0]+n.y;else if("A"==e)t[5]=t[5]+n.x,t[6]=t[6]+n.y;else for(var o=0,a=t.length;o<a;++o)t[o]=t[o]+(o%2?n.y:n.x);if(r&&"function"==typeof r[e])return r[e](t,n,i)}}(i[o].toUpperCase());n.PathArray=function(e,t){n.Array.call(this,e,t||[["M",0,0]])},n.PathArray.prototype=new n.Array,n.PathArray.prototype.constructor=n.PathArray,n.extend(n.PathArray,{toString:function(){return function(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t][0],null!=e[t][1]&&(r+=e[t][1],null!=e[t][2]&&(r+=" ",r+=e[t][2],null!=e[t][3]&&(r+=" ",r+=e[t][3],r+=" ",r+=e[t][4],null!=e[t][5]&&(r+=" ",r+=e[t][5],r+=" ",r+=e[t][6],null!=e[t][7]&&(r+=" ",r+=e[t][7])))));return r+" "}(this.value)},move:function(e,t){var n=this.bbox();return n.x,n.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,r=this.destination.value,i=[],o=new n.PathArray,a=0,s=t.length;a<s;a++){i[a]=[t[a][0]];for(var l=1,c=t[a].length;l<c;l++)i[a][l]=t[a][l]+(r[a][l]-t[a][l])*e;"A"===i[a][0]&&(i[a][4]=+(0!=i[a][4]),i[a][5]=+(0!=i[a][5]))}return o.value=i,o},parse:function(e){if(e instanceof n.PathArray)return e.valueOf();var t,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(n.regex.numbersWithDots,l).replace(n.regex.pathLetters," $& ").replace(n.regex.hyphen,"$1 -").trim().split(n.regex.delimiter):e.reduce((function(e,t){return[].concat.call(e,t)}),[]);var o=[],a=new n.Point,s=new n.Point,c=0,u=e.length;do{n.regex.isPathLetter.test(e[c])?(t=e[c],++c):"M"==t?t="L":"m"==t&&(t="l"),o.push(r[t].call(null,e.slice(c,c+=i[t.toUpperCase()]).map(parseFloat),a,s))}while(u>c);return o},bbox:function(){return n.parser.draw||n.prepare(),n.parser.path.setAttribute("d",this.toString()),n.parser.path.getBBox()}}),n.Number=n.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(n.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof n.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new n.Number(e),new n.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new n.Number(e),new n.Number(this-e,this.unit||e.unit)},times:function(e){return e=new n.Number(e),new n.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new n.Number(e),new n.Number(this/e,this.unit||e.unit)},to:function(e){var t=new n.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new n.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new n.Number(this.destination).minus(this).times(e).plus(this):this}}}),n.Element=n.invent({create:function(e){this._stroke=n.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var r=h(this,e,t);return this.width(new n.Number(r.width)).height(new n.Number(r.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(n.regex.delimiter)},hasClass:function(e){return-1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!=e})).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return n.get(this.attr(e))},parent:function(t){var r=this;if(!r.node.parentNode)return null;if(r=n.adopt(r.node.parentNode),!t)return r;for(;r&&r.node instanceof e.SVGElement;){if("string"==typeof t?r.matches(t):r instanceof t)return r;if(!r.node.parentNode||"#document"==r.node.parentNode.nodeName)return null;r=n.adopt(r.node.parentNode)}},doc:function(){return this instanceof n.Doc?this:this.parent(n.Doc)},parents:function(e){var t=[],n=this;do{if(!(n=n.parent(e))||!n.node)break;t.push(n)}while(n.parent);return t},matches:function(e){return function(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,t)}(this.node,e)},native:function(){return this.node},svg:function(e){var r=t.createElementNS("http://www.w3.org/2000/svg","svg");if(!(e&&this instanceof n.Parent))return r.appendChild(e=t.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),r.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");r.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var i=0,o=r.firstChild.childNodes.length;i<o;i++)this.node.appendChild(r.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each((function(){this.writeDataToDom()})),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return function(e,t){return e instanceof t}(this,e)}}}),n.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},n.morph=function(e){return function(t,r){return new n.MorphObj(t,r).at(e)}},n.Situation=n.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new n.Number(e.duration).valueOf(),this.delay=new n.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),n.FX=n.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,r){"object"===w(e)&&(t=e.ease,r=e.delay,e=e.duration);var i=new n.Situation({duration:e||1e3,delay:r||0,ease:n.easing[t||"-"]||t});return this.queue(i),this},target:function(e){return e&&e instanceof n.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start}
2,startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof n.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof n.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var r in t.animations){e=this.target()[r](),Array.isArray(e)||(e=[e]),Array.isArray(t.animations[r])||(t.animations[r]=[t.animations[r]]);for(var i=e.length;i--;)t.animations[r][i]instanceof n.Number&&(e[i]=new n.Number(e[i])),t.animations[r][i]=e[i].morph(t.animations[r][i])}for(var r in t.attrs)t.attrs[r]=new n.MorphObj(this.target().attr(r),t.attrs[r]);for(var r in t.styles)t.styles[r]=new n.MorphObj(this.target().style(r),t.styles[r]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var n=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(!n&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",(function n(r){r.detail.situation==t&&(e.call(this,t),this.off("finished.fx",n))})),this._callStart()},during:function(e){var t=this.last(),r=function(r){r.detail.situation==t&&e.call(this,r.detail.pos,n.morph(r.detail.pos),r.detail.eased,t)};return this.target().off("during.fx",r).on("during.fx",r),this.after((function(){this.off("during.fx",r)})),this._callStart()},afterAll:function(e){var t=function t(n){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,n){return this.last()[n||"animations"][e]=t,this._callStart()},step:function(e){var t,n,r;e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(t=Math.max(this.absPos,0),n=Math.floor(t),!0===this.situation.loops||n<this.situation.loops?(this.pos=t-n,r=this.situation.loop,this.situation.loop=n):(this.absPos=this.situation.loops,this.pos=1,r=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=this.situation.reversed!=Boolean((this.situation.loop-r)%2))):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var i=this.situation.ease(this.pos);for(var o in this.situation.once)o>this.lastPos&&o<=i&&(this.situation.once[o].call(this.target(),this.pos,i),delete this.situation.once[o]);return this.active&&this.target().fire("during",{pos:this.pos,eased:i,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=i,this):this},eachAt:function(){var e,t=this,r=this.target(),i=this.situation;for(var o in i.animations)e=[].concat(i.animations[o]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r[o].apply(r,e);for(var o in i.attrs)e=[o].concat(i.attrs[o]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.attr.apply(r,e);for(var o in i.styles)e=[o].concat(i.styles[o]).map((function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e})),r.style.apply(r,e);if(i.transforms.length){e=i.initialTransformation,o=0;for(var a=i.transforms.length;o<a;o++){var s=i.transforms[o];s instanceof n.Matrix?e=s.relative?e.multiply((new n.Matrix).morph(s).at(i.ease(this.pos))):e.morph(s).at(i.ease(this.pos)):(s.relative||s.und
2o(e.extract()),e=e.multiply(s.at(i.ease(this.pos))))}r.matrix(e)}return this},once:function(e,t,n){var r=this.last();return n||(e=r.ease(e)),r.once[e]=t,this},_callStart:function(){return setTimeout(function(){this.start()}.bind(this),0),this}},parent:n.Element,construct:{animate:function(e,t,r){return(this.fx||(this.fx=new n.FX(this))).animate(e,t,r)},delay:function(e){return(this.fx||(this.fx=new n.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),n.MorphObj=n.invent({create:function(e,t){return n.Color.isColor(t)?new n.Color(e).morph(t):n.regex.delimiter.test(e)?n.regex.pathLetters.test(e)?new n.PathArray(e).morph(t):new n.Array(e).morph(t):n.regex.numberAndUnit.test(t)?new n.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),n.extend(n.FX,{attr:function(e,t,n){if("object"===w(e))for(var r in e)this.attr(r,e[r]);else this.add(e,t,"attrs");return this},plot:function(e,t,n,r){return 4==arguments.length?this.plot([e,t,n,r]):this.add("plot",new(this.target().morphArray)(e))}}),n.Box=n.invent({create:function(e,t,r,i){if(!("object"!==w(e)||e instanceof n.Element))return n.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);var o;4==arguments.length&&(this.x=e,this.y=t,this.width=r,this.height=i),null==(o=this).x&&(o.x=0,o.y=0,o.width=0,o.height=0),o.w=o.width,o.h=o.height,o.x2=o.x+o.width,o.y2=o.y+o.height,o.cx=o.x+o.width/2,o.cy=o.y+o.height/2}}),n.BBox=n.invent({create:function(e){if(n.Box.apply(this,[].slice.call(arguments)),e instanceof n.Element){var r;try{if(!t.documentElement.contains){for(var i=e.node;i.parentNode;)i=i.parentNode;if(i!=t)throw new Error("Element not in the dom")}r=e.node.getBBox()}catch(t){if(e instanceof n.Shape){n.parser.draw||n.prepare();var o=e.clone(n.parser.draw.instance).show();o&&o.node&&"function"==typeof o.node.getBBox&&(r=o.node.getBBox()),o&&"function"==typeof o.remove&&o.remove()}else r={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}n.Box.call(this,r)}},inherit:n.Box,parent:n.Element,construct:{bbox:function(){return new n.BBox(this)}}}),n.BBox.prototype.constructor=n.BBox,n.Matrix=n.invent({create:function(e){var t=p([1,0,0,1,0,0]);e=null===e?t:e instanceof n.Element?e.matrixify():"string"==typeof e?p(e.split(n.regex.delimiter).map(parseFloat)):6==arguments.length?p([].slice.call(arguments)):Array.isArray(e)?p(e):e&&"object"===w(e)?e:t;for(var r=v.length-1;r>=0;--r)this[v[r]]=null!=e[v[r]]?e[v[r]]:t[v[r]]},extend:{extract:function(){var e=f(this,0,1);f(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new n.Matrix(this)}},clone:function(){return new n.Matrix(this)},morph:function(e){return this.destination=new n.Matrix(e),this},multiply:function(e){return new n.Matrix(this.native().multiply(function(e){return e instanceof n.Matrix||(e=new n.Matrix(e)),e}(e).native()))},inverse:function(){return new n.Matrix(this.native().inverse())},translate:function(e,t){return new n.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=n.parser.native.createSVGMatrix(),t=v.length-1;t>=0;t--)e[v[t]]=this[v[t]];return e},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:n.Element,construct:{ctm:function(){return new n.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof n.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new n.Matrix(t)}return new n.Matrix(this.node.getScreenCTM())}}}),n.Point=n.invent({create:function(e,t){var n;n=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===w(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=n.x,this.y=n.y},extend:{clone:function(){return new n.Point(this)},morph:function(e,t){return this.destination=new n.Point(e,t),this}}}),n.extend(n.Element,{point:function(e,t){return new n.Point(e,t).transform(this.screenCTM().inverse())}}),n.extend(n.Element,{attr:function(e,t,r){if(null==e){for(e={},r=(t=this.node.attributes).length-1;r>=0;r--)e[t[r].nodeName]=n.regex.isNumber.test(t[r].nodeValue)?parseFloat(t[r].nodeValue):t[r].nodeValue;return e}if("object"===w(e))for(var i in e)this.attr(i,e[i]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?n.defaults.attrs[e]:n.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(n.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof n.Image&&(t=this.doc().defs().pattern(0,0,(function(){this.add(t)})))),"number"==typeof t?t=new n.Number(t):n.Color.isColor(t)?t=new n.Color(t):Array.isArray(t)&&(t=new n.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof r?this.node.setAttributeNS(r,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,t)}return this}}),n.extend(n.Element,{transform:function(e,t){var r;return"object"!==w(e)?(r=new n.Matrix(this).extract(),"string"==typeof e?r[e]:r):(r=new n.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(r=t?r.multiply(new n.Matrix(e)):new n.Matrix(e)),this.attr("transform",r))}}),n.extend(n.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(n.regex.transforms).slice(0,-1).map((function(e){var t=e.trim().split("(");return[t[0],t[1].split(n.regex.delimiter).map((function(e){return parseFloat(e)}))]}
2)).reduce((function(e,t){return"matrix"==t[0]?e.multiply(p(t[1])):e[t[0]].apply(e,t[1])}),new n.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),n=e.screenCTM().inverse();return this.addTo(e).untransform().transform(n.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),n.Transformation=n.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[n];else if(e&&"object"===w(e))for(n=0,r=this.arguments.length;n<r;++n)this[this.arguments[n]]=e[this.arguments[n]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),n.Translate=n.invent({parent:n.Matrix,inherit:n.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),n.extend(n.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2)if("object"===w(e))for(var r in e)this.style(r,e[r]);else{if(!n.regex.isCss.test(e))return this.node.style[c(e)];for(e=e.split(/\s*;\s*/).filter((function(e){return!!e})).map((function(e){return e.split(/\s*:\s*/)}));t=e.pop();)this.style(t[0],t[1])}else this.node.style[c(e)]=null===t||n.regex.isBlank.test(t)?"":t;return this}}),n.Parent=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element,extend:{children:function(){return n.utils.map(n.utils.filterSVGElements(this.node.childNodes),(function(e){return n.adopt(e)}))},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return n.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var r=this.children(),i=0,o=r.length;i<o;i++)r[i]instanceof n.Element&&e.apply(r[i],[i,r]),t&&r[i]instanceof n.Container&&r[i].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),n.extend(n.Parent,{ungroup:function(e,t){return 0===t||this instanceof n.Defs||this.node==n.parser.draw||(e=e||(this instanceof n.Doc?this:this.parent(n.Parent)),t=t||1/0,this.each((function(){return this instanceof n.Defs?this:this instanceof n.Parent?this.ungroup(e,t-1):this.toParent(e)})),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),n.Container=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Parent}),n.ViewBox=n.invent({parent:n.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach((function(e){n.Element.prototype[e]=function(t){return n.on(this.node,e,t),this}})),n.listeners=[],n.handlerMap=[],n.listenerId=0,n.on=function(e,t,r,i,o){var a=r.bind(i||e.instance||e),s=(n.handlerMap.indexOf(e)+1||n.handlerMap.push(e))-1,l=t.split(".")[0],c=t.split(".")[1]||"*";n.listeners[s]=n.listeners[s]||{},n.listeners[s][l]=n.listeners[s][l]||{},n.listeners[s][l][c]=n.listeners[s][l][c]||{},r._svgjsListenerId||(r._svgjsListenerId=++n.listenerId),n.listeners[s][l][c][r._svgjsListenerId]=a,e.addEventListener(l,a,o||{passive:!1})},n.off=function(e,t,r){var i=n.handlerMap.indexOf(e),o=t&&t.split(".")[0],a=t&&t.split(".")[1],s="";if(-1!=i)if(r){if("function"==typeof r&&(r=r._svgjsListenerId),!r)return;n.listeners[i][o]&&n.listeners[i][o][a||"*"]&&(e.removeEventListener(o,n.listeners[i][o][a||"*"][r],!1),delete n.listeners[i][o][a||"*"][r])}else if(a&&o){if(n.listeners[i][o]&&n.listeners[i][o][a]){for(var l in n.listeners[i][o][a])n.off(e,[o,a].join("."),l);delete n.listeners[i][o][a]}}else if(a)for(var c in n.listeners[i])for(var s in n.listeners[i][c])a===s&&n.off(e,[c,a].join("."));else if(o){if(n.listeners[i][o]){for(var s in n.listeners[i][o])n.off(e,[o,s].join("."));delete n.listeners[i][o]}}else{for(var c in n.listeners[i])n.off(e,c);delete n.listeners[i],delete n.handlerMap[i]}},n.extend(n.Element,{on:function(e,t,r,i){return n.on(this.node,e,t,r,i),this},off:function(e,t){return n.off(this.node,e,t),this},fire:function(t,r){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new n.CustomEvent(t,{detail:r,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),n.Defs=n.invent({create:"defs",inherit:n.Container}),n.G=n.invent({create:"g",inherit:n.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new n.G)}}}),n.Doc=n.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,n.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:n.Container,extend:{namespace:function(){return this.attr({xmlns:n.ns,version:"1.1"}).attr("xmlns:xlink",n.xlink,n.xmlns).attr("xmlns:svgjs",n.svgjs,n.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=n.adopt(e):this._defs=new n.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,n.parser.draw&&!n.parser.draw.parentNode&&this.node.appendChild(n.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,n=g(t.cloneNode(!0));return e?(e.node||e).appendChild(n.node):t.parentNode.insertBefore(n.node,t.nextSibling),n}}}),n.extend(n.Element,{}),n.Gradient=n.invent({create:function(e){this.constructor.call(this,n.create(e+"Gradient")),this.type=e},inherit:n.Container,extend:{at:function(e,t,r){return this.put(new n.Stop).update(e,t,r)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}
vendor: 5,762 bytes, line 2
2,fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="gradientTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),n.extend(n.Gradient,n.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new n.Number(e),fy:new n.Number(t)}):this.attr({x1:new n.Number(e),y1:new n.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new n.Number(e),cy:new n.Number(t)}):this.attr({x2:new n.Number(e),y2:new n.Number(t)})}}),n.extend(n.Defs,{gradient:function(e,t){return this.put(new n.Gradient(e)).update(t)}}),n.Stop=n.invent({create:"stop",inherit:n.Element,extend:{update:function(e){return("number"==typeof e||e instanceof n.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new n.Number(e.offset)),this}}}),n.Pattern=n.invent({create:"pattern",inherit:n.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,r){return"transform"==e&&(e="patternTransform"),n.Container.prototype.attr.call(this,e,t,r)}},construct:{pattern:function(e,t,n){return this.defs().pattern(e,t,n)}}}),n.extend(n.Defs,{pattern:function(e,t,r){return this.put(new n.Pattern).update(r).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),n.Shape=n.invent({create:function(e){this.constructor.call(this,e)},inherit:n.Element}),n.Symbol=n.invent({create:"symbol",inherit:n.Container,construct:{symbol:function(){return this.put(new n.Symbol)}}}),n.Use=n.invent({create:"use",inherit:n.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,n.xlink)}},construct:{use:function(e,t){return this.put(new n.Use).element(e,t)}}}),n.Rect=n.invent({create:"rect",inherit:n.Shape,construct:{rect:function(e,t){return this.put(new n.Rect).size(e,t)}}}),n.Circle=n.invent({create:"circle",inherit:n.Shape,construct:{circle:function(e){return this.put(new n.Circle).rx(new n.Number(e).divide(2)).move(0,0)}}}),n.extend(n.Circle,n.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),n.Ellipse=n.invent({create:"ellipse",inherit:n.Shape,construct:{ellipse:function(e,t){return this.put(new n.Ellipse).size(e,t).move(0,0)}}}),n.extend(n.Ellipse,n.Rect,n.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),n.extend(n.Circle,n.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new n.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new n.Number(e).divide(2))},size:function(e,t){var r=h(this,e,t);return this.rx(new n.Number(r.width).divide(2)).ry(new n.Number(r.height).divide(2))}}),n.Line=n.invent({create:"line",inherit:n.Shape,extend:{array:function(){return new n.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,r,i){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:r,y2:i}:new n.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var n=h(this,e,t);return this.attr(this.array().size(n.width,n.height).toLine())}},construct:{line:function(e,t,r,i){return n.Line.prototype.plot.apply(this.put(new n.Line),null!=e?[e,t,r,i]:[0,0,0,0])}}}),n.Polyline=n.invent({create:"polyline",inherit:n.Shape,construct:{polyline:function(e){return this.put(new n.Polyline).plot(e||new n.PointArray)}}}),n.Polygon=n.invent({create:"polygon",inherit:n.Shape,construct:{polygon:function(e){return this.put(new n.Polygon).plot(e||new n.PointArray)}}}),n.extend(n.Polyline,n.Polygon,{array:function(){return this._array||(this._array=new n.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new n.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var n=h(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}}),n.extend(n.Line,n.Polyline,n.Polygon,{morphArray:n.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),n.Path=n.invent({create:"path",inherit:n.Shape,extend:{morphArray:n.PathArray,array:function(){return this._array||(this._array=new n.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new n.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new n.Path).plot(e||new n.PathArray)}}}),n.Image=n.invent({create:"image",inherit:n.Shape,extend:{load:function(t){if(!t)return this;var r=this,i=new e.Image;return n.on(i,"load",(function(){n.off(i);var e=r.parent(n.Pattern);null!==e&&(0==r.width()&&0==r.height()&&r.size(i.width,i.height),e&&0==e.width()&&0==e.height()&&e.size(r.width(),r.height()),"function"==typeof r._loaded&&r._loaded.
2call(r,{width:i.width,height:i.height,ratio:i.width/i.height,url:t}))})),n.on(i,"error",(function(e){n.off(i),"function"==typeof r._error&&r._error.call(r,e)})),this.attr("href",i.src=this.src=t,n.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,r){return this.put(new n.Image).load(e).size(t||0,r||t||0)}}}),n.Text=n.invent({create:function(){this.constructor.call(this,n.create("text")),this.dom.leading=new n.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",n.defaults.attrs["font-family"])},inherit:n.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,r=0,i=t.length;r<i;++r)0!=r&&3!=t[r].nodeType&&1==n.adopt(t[r]).dom.newLined&&(e+="\n"),e+=t[r].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{r=0;for(var o=(e=e.split("\n")).length;r<o;r++)this.tspan(e[r]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new n.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=n.utils.map(n.utils.filterSVGElements(e.childNodes),(function(e){return n.adopt(e)}));return new n.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,r=0,i=this.dom.leading*new n.Number(this.attr("font-size"));this.lines().each((function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?r+=i:(this.attr("dy",i+r),r=0))})),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new n.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new n.Text).text(e)},plain:function(e){return this.put(new n.Text).plain(e)}}}),n.Tspan=n.invent({create:"tspan",inherit:n.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(n.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),n.extend(n.Text,n.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,r=new n.Tspan;return!1===this._build&&this.clear(),t.appendChild(r.node),r.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),n.TextPath=n.invent({create:"textPath",inherit:n.Parent,parent:n.Text,construct:{morphArray:n.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),n=null;return t&&(n=t.plot(e)),null==e?n:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return n.adopt(this.node.firstChild)}}}),n.Nested=n.invent({create:function(){this.constructor.call(this,n.create("svg")),this.style("overflow","visible")},inherit:n.Container,construct:{nested:function(){return this.put(new n.Nested)}}});var s={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function l(e,t,r,i){return r+i.replace(n.regex.dots," .")}function c(e){return e.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function u(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function h(e,t,n){if(null==t||null==n){var r=e.bbox();null==t?t=r.width/r.height*n:null==n&&(n=r.height/r.width*t)}return{width:t,height:n}}function f(e,t,n){return{x:t*e.a+n*e.c+0,y:t*e.b+n*e.d+0}}function p(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function g(t){for(var r=t.childNodes.length-1;r>=0;r--)t.childNodes[r]instanceof e.SVGElement&&g(t.childNodes[r]);return n.adopt(t).id(n.eid(t.nodeName))}function m(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach((function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||n.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var r=s[e].length-1;r>=0;r--)null!=t[s[e][r]]&&this.attr(s.prefix(e,s[e][r]),t[s[e][r]]);return this},n.extend(n.Element,n.FX,t)})),n.extend(n.Element,n.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new n.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new n.Number(e).plus(this instanceof n.FX?0:this.x()),!0)},dy:function(e){return this.y(new n.Number(e).plus(this instanceof n.FX?0:this.y()),!0)}}),n.extend(n.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),n.Set=n.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,n=e.length;t<n;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,n=this.members.length;t<n;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>
2=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new n.Set(e)}}}),n.FX.Set=n.invent({create:function(e){this.set=e}}),n.Set.inherit=function(){var e=[];for(var t in n.Shape.prototype)"function"==typeof n.Shape.prototype[t]&&"function"!=typeof n.Set.prototype[t]&&e.push(t);for(var t in e.forEach((function(e){n.Set.prototype[e]=function(){for(var t=0,r=this.members.length;t<r;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new n.FX.Set(this)):this}})),e=[],n.FX.prototype)"function"==typeof n.FX.prototype[t]&&"function"!=typeof n.FX.Set.prototype[t]&&e.push(t);e.forEach((function(e){n.FX.Set.prototype[e]=function(){for(var t=0,n=this.set.members.length;t<n;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}}))},n.extend(n.Element,{}),n.extend(n.Element,{remember:function(e,t){if("object"===w(arguments[0]))for(var n in e)this.remember(n,e[n]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),n.get=function(e){var r=t.getElementById(function(e){var t=(e||"").toString().match(n.regex.reference);if(t)return t[1]}(e)||e);return n.adopt(r)},n.select=function(e,r){return new n.Set(n.utils.map((r||t).querySelectorAll(e),(function(e){return n.adopt(e)})))},n.extend(n.Parent,{select:function(e){return n.select(e,this.node)}});var v="abcdef".split("");
2if("function"!=typeof e.CustomEvent){var y=function(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};y.prototype=e.Event.prototype,n.CustomEvent=y}else n.CustomEvent=e.CustomEvent;return n},void 0!==(r=function(){return Xe(We,We.document)}.call(t,n,t,e))&&(e.exports=r),function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,n){return this.put(new SVG.BlendEffect(e,t,n))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,n){return this.put(new SVG.CompositeEffect(e,t,n))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,n){return this.put(new SVG.DiffuseLightingEffect(e,t,n))},displacementMap:function(e,t,n,r,i){return this.put(new SVG.DisplacementMapEffect(e,t,n,r,i))},specularLighting:function(e,t,n,r){return this.put(new SVG.SpecularLightingEffect(e,t,n,r))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,n,r,i){return this.put(new SVG.TurbulenceEffect(e,t,n,r,i))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,n){return this.parent()&&this.parent().diffuseLighting(e,t,n).in(this)},displacementMap:function(e,t,n,r){return this.parent()&&this.parent().displacementMap(this,e,t,n,r)},specularLighting:function(e,t,n,r){return this.parent()&&this.parent().specularLighting(e,t,n,r).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,n,r,i){return this.parent()&&this.parent().turbulence(e,t,n,r,i).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={blend:function(e,t,n){this.attr({in:e,in2:t,mode:n||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=i(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=i(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,n){this.attr({in:e,in2:t,operator:n})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,n,r,i){this.attr({in:e,in2:t,scale:n,xChannelSelector:r,yChannelSelector:i})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,n=e.length,r=[];t<n;t++)r.push(e[t]);return r.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,n,r,i){this.attr({numOctaves:t,seed:n,stitchTiles:r,baseFrequency:e,type:i})}},n={merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each((function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))}))}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var n=0;n<e.length;n++)e[n]instanceof SVG.MergeNode?this.put(e[n]):this.put(new SVG.MergeNode(e[n]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach(function(e){this[e]=new(SVG["Func"+e.toUpperCase()])("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}.bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach(function(t){this[t].attr(e.rgb)}.bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,n){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:n})},specularLighting:function(e,t,n,r){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:n,kernelUnitLength:r})}},r={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,n){this.attr({x:e,y:t,z:n})},spotLight:function(e,t,n,r,i,o){this.attr({x:e,y:t,z:n,pointsAtX:r,pointsAtY:i,pointsAtZ:o})},mergeNode:function(e){this.attr("in",e)}};function i(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function o(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var n in arguments[t])e(arguments[t][n],n,arguments[t])}["r","g","b","a"].forEach((function(e){r["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}})),o(t,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})})),o(n,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})})),o(r,(function(e,t){var n=t.charAt(0).toUpperCase()+t.slice(1);SVG[n]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+n)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})})),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}.call(void 0),function(){function e(e,i,o,a,s,l,c){for(var u=e.slice(i,o||c),d=a.slice(s,l||c),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};u[h]=t.call(f,u[h]),d[h]=t.call(p,d[h]),u[h][0]!=d[h][0]||"M"==u[h][0]||"A"==u[h][0]&&(u[h][4]!=d[h][4]||u[h][5]!=d[h][5])?(Array.prototype.splice.apply(u,[h,1].c
2oncat(r.call(f,u[h]))),Array.prototype.splice.apply(d,[h,1].concat(r.call(p,d[h])))):(u[h]=n.call(f,u[h]),d[h]=n.call(p,d[h])),++h!=u.length||h!=d.length;)h==u.length&&u.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:u,dest:d}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function n(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function r(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,k,C,S,_,A,L,T=Math.abs(t[1]),E=Math.abs(t[2]),O=t[3]%360,M=t[4],P=t[5],D=t[6],N=t[7],I=new SVG.Point(e),F=new SVG.Point(D,N),R=[];if(0===T||0===E||I.x===F.x&&I.y===F.y)return[["C",I.x,I.y,F.x,F.y,F.x,F.y]];for((r=(n=new SVG.Point((I.x-F.x)/2,(I.y-F.y)/2).transform((new SVG.Matrix).rotate(O))).x*n.x/(T*T)+n.y*n.y/(E*E))>1&&(T*=r=Math.sqrt(r),E*=r),i=(new SVG.Matrix).rotate(O).scale(1/T,1/E).rotate(-O),I=I.transform(i),s=(o=[(F=F.transform(i)).x-I.x,F.y-I.y])[0]*o[0]+o[1]*o[1],a=Math.sqrt(s),o[0]/=a,o[1]/=a,l=s<4?Math.sqrt(1-s/4):0,M===P&&(l*=-1),c=new SVG.Point((F.x+I.x)/2+l*-o[1],(F.y+I.y)/2+l*o[0]),u=new SVG.Point(I.x-c.x,I.y-c.y),d=new SVG.Point(F.x-c.x,F.y-c.y),h=Math.acos(u.x/Math.sqrt(u.x*u.x+u.y*u.y)),u.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),P&&h>f&&(f+=2*Math.PI),!P&&h<f&&(f-=2*Math.PI),v=[],y=h,p=(f-h)/(g=Math.ceil(2*Math.abs(h-f)/Math.PI)),m=4*Math.tan(p/4)/3,k=0;k<=g;k++)x=Math.cos(y),b=Math.sin(y),w=new SVG.Point(c.x+x,c.y+b),v[k]=[new SVG.Point(w.x+m*b,w.y-m*x),w,new SVG.Point(w.x-m*b,w.y+m*x)],y+=p;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),i=(new SVG.Matrix).rotate(O).scale(T,E).rotate(-O),k=0,C=v.length;k<C;k++)v[k][0]=v[k][0].transform(i),v[k][1]=v[k][1].transform(i),v[k][2]=v[k][2].transform(i);for(k=1,C=v.length;k<C;k++)S=(w=v[k-1][2]).x,_=w.y,A=(w=v[k][0]).x,L=w.y,D=(w=v[k][1]).x,N=w.y,R.push(["C",S,_,A,L,D,N]);return R}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function i(e,t){if(!1===t)return!1;for(var n=t,r=e.length;n<r;++n)if("M"==e[n][0])return n;return!1}SVG.extend(SVG.PathArray,{morph:function(t){for(var n=this.value,r=this.parse(t),o=0,a=0,s=!1,l=!1;!1!==o||!1!==a;){var c;s=i(n,!1!==o&&o+1),l=i(r,!1!==a&&a+1),!1===o&&(o=0==(c=new SVG.PathArray(u.start).bbox()).height||0==c.width?n.push(n[0])-1:n.push(["M",c.x+c.width/2,c.y+c.height/2])-1),!1===a&&(a=0==(c=new SVG.PathArray(u.dest).bbox()).height||0==c.width?r.push(r[0])-1:r.push(["M",c.x+c.width/2,c.y+c.height/2])-1);var u=e(n,o,s,r,a,l);n=n.slice(0,o).concat(u.start,!1===s?[]:n.slice(s)),r=r.slice(0,a).concat(u.dest,!1===l?[]:r.slice(l)),o=!1!==s&&o+u.start.length,a=!1!==l&&a+u.dest.length}return this.value=n,this.destination=new SVG.PathArray,this.destination.value=r,this}})}(),function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var n=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",(function(e){n.start(e)})),this.el.on("touchstart.drag",(function(e){n.start(e)}))},e.prototype.transformPoint=function(e,t){var n=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=n.clientX-(t||0),this.p.y=n.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var n,r=this.getBBox();if(this.el instanceof SVG.Text)switch(n=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":n/=2;break;case"start":n=0}this.startPoints={point:this.transformPoint(e,n),box:r,transform:this.el.transform()},SVG.on(window,"mousemove.drag",(function(e){t.drag(e)})),SVG.on(window,"touchmove.drag",(function(e){t.drag(e)})),SVG.on(window,"mouseup.drag",(function(e){t.end(e)})),SVG.on(window,"touchend.drag",(function(e){t.end(e)})),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),n=this.transformPoint(e),r=this.startPoints.box.x+n.x-this.startPoints.point.x,i=this.startPoints.box.y+n.y-this.startPoints.point.y,o=this.constraint,a=n.x-this.startPoints.point.x,s=n.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:n,m:this.m,handler:this}),this.el.event().defaultPrevented)return n;if("function"==typeof o){var l=o.call(this.el,r,i,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(r):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(i):!1!==l.y&&this.el.y(l.y)}else"object"==typeof o&&(null!=o.minX&&r<o.minX?a=(r=o.minX)-this.startPoints.box.x:null!=o.maxX&&r>o.maxX-t.width&&(a=(r=o.maxX-t.width)-this.startPoints.box.x),null!=o.minY&&i<o.minY?s=(i=o.minY)-this.startPoints.box.y:null!=o.maxY&&i>o.maxY-t.height&&(s=(i=o.maxY-t.height)-this.startPoints.box.y),null!=o.snapToGri
2d&&(r-=r%o.snapToGrid,i-=i%o.snapToGrid,a-=a%o.snapToGrid,s-=s%o.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:a,y:s},!0):this.el.move(r,i));return n},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,n){"function"!=typeof t&&"object"!=typeof t||(n=t,t=!0);var r=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?r.init(n||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,n){var r="string"!=typeof e?e:t[e];return n?r/2:r},this.pointCoords=function(e,t){var n=this.pointsList[e];return{x:this.pointCoord(n[0],t,"t"===e||"b"===e),y:this.pointCoord(n[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var n=this.el.bbox();this.options={};var r=this.el.selectize.defaults.points;for(var i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);var o=["points","pointsExclude"];for(var i in o){var a=this.options[o[i]];"string"==typeof a?a=a.length>0?a.split(/\s*,\s*/i):[]:"boolean"==typeof a&&"points"===o[i]&&(a=a?r:[]),this.options[o[i]]=a}this.options.points=[r,this.options.points].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)>-1}))})),this.options.points=[this.options.points,this.options.pointsExclude].reduce((function(e,t){return e.filter((function(e){return t.indexOf(e)<0}))})),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(n.x,n.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map((function(t){return[t[0]-e.x,t[1]-e.y]}))},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),n=0,r=t.length;n<r;++n){var i=function(t){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var r=n.pageX||n.touches[0].pageX,i=n.pageY||n.touches[0].pageY;e.el.fire("point",{x:r,y:i,i:t,event:n})}}(n),o=this.drawPoint(t[n][0],t[n][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",i).on("mousedown",i);this.pointSelection.set.add(o)}},e.prototype.drawPoint=function(e,t){var n=this.options.pointType;switch(n){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof n)return n.call(this,e,t);throw new Error("Unknown "+n+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each((function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])}))},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map((function(n,r){var i=e.pointCoords(n,t);e.rectSelection.set.get(r+1).center(i.x,i.y)})),this.options.rotationPoint){var n=this.rectSelection.set.length();this.rectSelection.set.get(n-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,n=this.el.bbox();function r(e){return function(n){(n=n||window.event).preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation();var r=n.pageX||n.touches[0].pageX,i=n.pageY||n.touches[0].pageY;t.el.fire(e,{x:r,y:i,event:n})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(n.width,n.height).addClass(this.options.classRect)),this.options.points.length&&this.rectSelection.set.length()<2&&(this.options.points.map((function(e,i){var o=t.pointCoords(e,n),a=t.drawPoint(o.x,o.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",r(e)).on("touchstart",r(e));t.rectSelection.set.add(a)}
2)),this.rectSelection.set.each((function(){this.addClass(t.options.classPoints)}))),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var i=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var n=e.pageX||e.touches[0].pageX,r=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:n,y:r,event:e})},o=this.drawPoint(n.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",i).on("mousedown",i);this.rectSelection.set.add(o)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver)if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver((function(){e.handler()})),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",(function(){e.handler()}))},e.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each((function(){this.remove()})),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each((function(){this.remove()})),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,n){return"object"==typeof t&&(n=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,n||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,n){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(n||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var n in this.options={},this.el.resize.defaults)this.options[n]=this.el.resize.defaults[n],void 0!==e[n]&&(this.options[n]=e[n]);this.el.on("lt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rt.resize",(function(e){t.resize(e||window.event)})),this.el.on("rb.resize",(function(e){t.resize(e||window.event)})),this.el.on("lb.resize",(function(e){t.resize(e||window.event)})),this.el.on("t.resize",(function(e){t.resize(e||window.event)})),this.el.on("r.resize",(function(e){t.resize(e||window.event)})),this.el.on("b.resize",(function(e){t.resize(e||window.event)})),this.el.on("l.resize",(function(e){t.resize(e||window.event)})),this.el.on("rot.resize",(function(e){t.resize(e||window.event)})),this.el.on("point.resize",(function(e){t.resize(e||window.event)})),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var n=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(n.x,n.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var r=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[r[e.detail.i][0],r[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var n=this.snapToGri
2d(e,t);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y+n[1]).size(this.parameters.box.width-n[0],this.parameters.box.height-n[1])}};break;case"rt":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).size(this.parameters.box.width+n[0],this.parameters.box.height-n[1])}};break;case"rb":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+n[0]);n=this.checkAspectRatio(n),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+n[0],this.parameters.box.height+n[1])}};break;case"lb":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0&&this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+n[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-n[0]);n=this.checkAspectRatio(n,!0),this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).size(this.parameters.box.width-n[0],this.parameters.box.height+n[1])}};break;case"t":this.calc=function(e,t){var n=this.snapToGrid(e,t,2);if(this.parameters.box.height-n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+n[1]).height(this.parameters.box.height-n[1])}};break;case"r":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.width+n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+n[0])}};break;case"b":this.calc=function(e,t){var n=this.snapToGrid(e,t,0);if(this.parameters.box.height+n[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+n[1])}};break;case"l":this.calc=function(e,t){var n=this.snapToGrid(e,t,1);if(this.parameters.box.width-n[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+n[0],this.parameters.box.y).width(this.parameters.box.width-n[0])}};break;case"rot":this.calc=function(e,t){var n=e+this.parameters.p.x,r=t+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),o=Math.atan2(r-this.parameters.box.y-this.parameters.box.height/2,n-this.parameters.box.x-this.parameters.box.width/2),a=this.parameters.rotation+180*(o-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(a-a%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var n=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),r=this.el.array().valueOf();r[this.parameters.i][0]=this.parameters.pointCoords[0]+n[0],r[this.parameters.i][1]=this.parameters.pointCoords[1]+n[1],this.el.plot(r)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"touchend.resize",(function(){t.done()})),SVG.on(window,"mousemove.resize",(function(e){t.update(e||window.event)})),SVG.on(window,"mouseup.resize",(function(){t.done()}))},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),n=this.transformPoint(t.x,t.y),r=n.x-this.parameters.p.x,i=n.y-this.parameters.p.y;this.lastUpdateCall=[r,i],this.calc(r,i),this.el.fire("resizing",{dx:r,dy:i,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")}
2,e.prototype.snapToGrid=function(e,t,n,r){var i;return void 0!==r?i=[(n+e)%this.options.snapToGrid,(r+t)%this.options.snapToGrid]:(n=null==n?3:n,i=[(this.parameters.box.x+e+(1&n?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&n?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(i[0]-=this.options.snapToGrid),t<0&&(i[1]-=this.options.snapToGrid),e-=Math.abs(i[0])<this.options.snapToGrid/2?i[0]:i[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(i[1])<this.options.snapToGrid/2?i[1]:i[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,n,r)},e.prototype.constraintToBox=function(e,t,n,r){var i,o,a=this.options.constraint||{};return void 0!==r?(i=n,o=r):(i=this.parameters.box.x+(1&n?0:this.parameters.box.width),o=this.parameters.box.y+(2&n?0:this.parameters.box.height)),void 0!==a.minX&&i+e<a.minX&&(e=a.minX-i),void 0!==a.maxX&&i+e>a.maxX&&(e=a.maxX-i),void 0!==a.minY&&o+t<a.minY&&(t=a.minY-o),void 0!==a.maxY&&o+t>a.maxY&&(t=a.maxY-o),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var n=e.slice(),r=this.parameters.box.width/this.parameters.box.height,i=this.parameters.box.width+e[0],o=this.parameters.box.height-e[1],a=i/o;return a<r?(n[1]=i/r-this.parameters.box.height,t&&(n[1]=-n[1])):a>r&&(n[0]=this.parameters.box.width-o*r,t&&(n[0]=-n[0])),n},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var Ze=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"initModules",value:function(){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"],this.ctx.animations=new S(this.ctx),this.ctx.axes=new oe(this.ctx),this.ctx.core=new Ue(this.ctx.el,this.ctx),this.ctx.config=new B({}),this.ctx.data=new Z(this.ctx),this.ctx.grid=new Q(this.ctx),this.ctx.graphics=new A(this.ctx),this.ctx.coreUtils=new L(this.ctx),this.ctx.crosshairs=new ae(this.ctx),this.ctx.events=new re(this.ctx),this.ctx.exports=new K(this.ctx),this.ctx.fill=new $(this.ctx),this.ctx.localization=new ie(this.ctx),this.ctx.options=new F,this.ctx.responsive=new se(this.ctx),this.ctx.series=new q(this.ctx),this.ctx.theme=new le(this.ctx),this.ctx.formatters=new M(this.ctx),this.ctx.titleSubtitle=new ce(this.ctx),this.ctx.legend=new me(this.ctx),this.ctx.toolbar=new ve(this.ctx),this.ctx.tooltip=new _e(this.ctx),this.ctx.dimensions=new pe(this.ctx),this.ctx.updateHelpers=new qe(this.ctx),this.ctx.zoomPanSelection=new ye(this.ctx),this.ctx.w.globals.tooltip=new _e(this.ctx)}}]),e}(),Ke=function(){function e(t){a(this,e),this.ctx=t,this.w=t.w}return l(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each((function(){this.removeClass("*"),this.off(),this.stop()}),!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,n=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!n&&(r.parentNode.parentNode.style.minHeight="unset");var i=this.w.globals.dom.baseEl;i&&this.ctx.eventList.forEach((function(e){i.removeEventListener(e,t.ctx.events.documentEvent)}));var o=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(o.Paper),o.Paper.remove(),o.elWrap=null,o.elGraphical=null,o.elLegendWrap=null,o.elLegendForeign=null,o.baseEl=null,o.elGridRect=null,o.elGridRectMask=null,o.elGridRectBarMask=null,o.elGridRectMarkerMask=null,o.elForecastMask=null,o.elNonForecastMask=null,o.elDefs=null}}]),e}(),Je=new WeakMap,Qe=function(){function e(t,n){a(this,e),this.opts=n,this.ctx=this,this.w=new X(n).init(),this.el=t,this.w.globals.cuid=C.randomId(),this.w.globals.chartID=this.w.config.chart.id?C.escapeString(this.w.config.chart.id):this.w.globals.cuid,new Ze(this).initModules(),this.create=C.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return l(e,[{key:"render",value:function(){var e=this;return new Promise((function(t,n){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;"function"==typeof r&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var n=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=e.getBoundingClientRect();"none"!==e.style.display&&0!==r.width||(n=!0)}var i=new ResizeObserver((function(r){n&&t.call(e,r),n=!0}));
2e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach((function(e){return i.observe(e)})):i.observe(e),Je.set(t,i)}(e.el.parentNode,e.parentResizeHandler);var i=e.el.getRootNode&&e.el.getRootNode(),o=C.is("ShadowRoot",i),a=e.el.ownerDocument,s=o?i.getElementById("apexcharts-css"):a.getElementById("apexcharts-css");if(!s){var l;(s=document.createElement("style")).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}\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-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, .7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\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  width: 12px;\n  height: 12px;\n  position: relative;\n  top: 0;\n  margin-right: 10px;\n  border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\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.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\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.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\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: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\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: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\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: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}
2\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_boundingRect,\n.svg_select_points_rot {\n  pointer-events: none;\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n  opacity: 0;\n  visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n  cursor: ew-resize;\n  opacity: 1;\n  visibility: visible\n}\n\n.svg_select_points {\n  fill: #efefef;\n  stroke: #333;\n  rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,\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  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, .7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1\n  }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\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-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\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  pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n  transition: .15s ease all\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>
2div {\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';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&s.setAttribute("nonce",c),o?i.prepend(s):a.head.appendChild(s)}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then((function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)})).catch((function(e){n(e)}))}else n(new Error("Element not found"))}))}},{key:"create",value:function(e,t){var n=this,r=this.w;new Ze(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),r.config.xaxis.convertedCatToNumeric&&new Y(r.config).convertCatToNumericXaxis(r.config,this.ctx),null===this.el)return i.animationEnded=!0,null;if(this.core.setupElements(),"treemap"===r.config.chart.type&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),0===i.svgWidth)return i.animationEnded=!0,null;var o=e;e.forEach((function(e,t){e.hidden&&(o=n.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))}));var a=L.checkComboSeries(o,r.config.chart.type);i.comboCharts=a.comboCharts,i.comboBarCount=a.comboBarCount;var s=o.every((function(e){return e.data&&0===e.data.length}));(0===o.length||s&&i.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(o),this.theme.init(),new G(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),"category"!==r.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new L(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var c=this.core.plotChartType(o,l),u=new U(this);return u.bringForward(),r.config.dataLabels.background.enabled&&u.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:c,xyRatios:l,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=this,r=n.w;return new Promise((function(i,o){if(null===n.el)return o(new Error("Not enough data to display or target element not found"));(null===t||r.globals.allSeriesCollapsed)&&n.series.handleNoData(),n.grid=new Q(n);var a,s,l=n.grid.drawGrid();if(n.annotations=new R(n),n.annotations.drawImageAnnos(),n.annotations.drawTextAnnos(),"back"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(a=l.elGridBorders)&&void 0!==a&&a.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)r.globals.dom.elGraphical.add(t.elGraph[c]);else r.globals.dom.elGraphical.add(t.elGraph);"front"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(s=l.elGridBorders)&&void 0!==s&&s.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),"front"===r.config.xaxis.crosshairs.position&&n.crosshairs.drawXCrosshairs(),"front"===r.config.yaxis[0].crosshairs.position&&n.crosshairs.drawYCrosshairs(),"treemap"!==r.config.chart.type&&n.axes.drawAxis(r.config.chart.type,l);var u=new J(e.ctx,l),d=new ne(e.ctx,l);if(null!==l&&(u.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),r.config.yaxis.map((function(e,t){-1===r.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)}))),n.annotations.drawAxesAnnotations(),!r.globals.noData){if(r.config.tooltip.enabled&&!r.globals.noData&&n.w.globals.tooltip.drawTooltip(t.xyRatios),r.globals.axisCharts&&(r.globals.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.globals.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&n.zoomPanSelection.init({xyRatios:t.xyRatios});else{var h=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach((function(e){h[e]=!1}))}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&n.toolbar.createToolbar()}r.globals.memory.methodsToExec.length>
20&&r.globals.memory.methodsToExec.forEach((function(e){e.method(e.params,!1,e.context)})),r.globals.axisCharts||r.globals.noData||n.core.resizeNonAxisCharts(),i(n)}))}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=Je.get(e))&&(t.disconnect(),Je.delete(e));var n=this.w.config.chart.id;n&&Apex._chartInstances.forEach((function(e,t){e.id===C.escapeString(n)&&Apex._chartInstances.splice(t,1)})),new Ke(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w;return a.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((function(e,n){return t.updateHelpers._extendSeries(e,n)}))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),a.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,n,r,i,o)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,n)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,n)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this;n.w.globals.dataChanged=!0,n.series.getPreviousPaths();for(var r=n.w.config.series.slice(),i=0;i<r.length;i++)if(null!==e[i]&&void 0!==e[i])for(var o=0;o<e[i].data.length;o++)r[i].data.push(e[i].data[o]);return n.w.config.series=r,t&&(n.w.globals.initialSeries=C.clone(n.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise((function(n,r){new Ke(t.ctx).clear({isUpdating:!0});var i=t.create(t.w.config.series,e);if(!i)return n(t);t.mount(i).then((function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,n(t)})).catch((function(e){r(e)}))}))}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach((function(e){t.push(e)}))),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter((function(e){if(e.group)return!0})).map((function(t){return e.w.config.chart.group===t.group?t.chart:e}))}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;n&&(r=n),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=this;t&&(n=t),n.annotations.removeAnnotation(n,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new te(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new te(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new K(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new K(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout((function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()}),150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=C.escapeString(e);if(Apex._chartInstances){var n=Apex._chartInstances.filter((function(e){return e.id===t}))[0];return n&&n.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),n=0;n<t.length;n++)new e(t[n],JSON.parse(t[n].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var n=this.getChartByID(e);if(n){n.w.globals.isExecCalled=!0;var r=null;if(-1!==n.publicMethods.indexOf(t)){for(var i=arguments.length,o=new Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];r=n[t].apply(n,o)}return r}}},{key:"merge",value:function(e,t){return C.extend(e,t)}}]),e}();e.exports=Qe},9692:function(e,t){var n,r,i;r=[t,e],n=function(e,t){"use strict";var n,r,i="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>
2-1&&(n.splice(t,1),r.splice(t,1))}}),o=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(e){o=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!i.has(e)){var t=null,n=e.clientWidth,r=null,a=function(){e.clientWidth!==n&&h()},s=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",h,!1),e.removeEventListener("keyup",h,!1),e.removeEventListener("autosize:destroy",s,!1),e.removeEventListener("autosize:update",h,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),i.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",s,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",h,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",h,!1),e.addEventListener("autosize:update",h,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",i.set(e,{destroy:s,update:h}),l()}function l(){var n=window.getComputedStyle(e,null);"vertical"===n.resize?e.style.resize="none":"both"===n.resize&&(e.style.resize="horizontal"),t="content-box"===n.boxSizing?-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),isNaN(t)&&(t=0),h()}function c(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function u(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}function d(){var r=e.style.height,i=u(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="auto";var a=e.scrollHeight+t;0!==e.scrollHeight?(e.style.height=a+"px",n=e.clientWidth,i.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)):e.style.height=r}function h(){d();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),i="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(i!==t?"hidden"===n.overflowY&&(c("scroll"),d(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(c("hidden"),d(),i="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==i){r=i;var a=o("autosize:resized");try{e.dispatchEvent(a)}catch(e){}}}}function s(e){var t=i.get(e);t&&t.destroy()}function l(e){var t=i.get(e);t&&t.update()}var c=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((c=function(e){return e}).destroy=function(e){return e},c.update=function(e){return e}):((c=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return a(e,t)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e},c.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],l),e}),t.exports=c},void 0===(i="function"==typeof n?n.apply(t,r):n)||(e.exports=i)},2505:(e,t,n)=>{e.exports=n(8015)},5592:(e,t,n)=>{"use strict";var r=n(9516),i=n(7522),o=n(9106),a=n(2012),s=n(4202),l=n(7763),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(2537);e.exports=function(e){return new Promise((function(t,u){var d=e.data,h=e.headers;r.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest,p="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||s(e.url)||(f=new window.XDomainRequest,p="onload",g=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var m=e.auth.username||"",v=e.auth.password||"";h.Authorization="Basic "+c(m+":"+v)}if(f.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[p]=function(){if(f&&(4===f.readyState||g)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:n,config:e,request:f};i(t,u,r),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var y=n(3948),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}if("setRequestHeader"in f&&r.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),u(e),f=null)})),void 0===d&&(d=null),f.send(d)}))}},8015:(e,t,n)=>{"use strict";var r=n(9516),i=n(9012),o=n(5155),a=n(6987);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=o,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(1928),l.CancelToken=n(3191),l.isCancel=n(3864),l.all=function(e){return Promise.all(e)},l.spread=n(7980),e.exports=l,e.exports.default=l},1928:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
2,t.prototype.__CANCEL__=!0,e.exports=t},3191:(e,t,n)=>{"use strict";var r=n(1928);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},3864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},5155:(e,t,n)=>{"use strict";var r=n(6987),i=n(9516),o=n(3471),a=n(4490),s=n(9137),l=n(4680);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e&&(e=i.merge({url:arguments[0]},arguments[1])),(e=i.merge(r,this.defaults,{method:"get"},e)).method=e.method.toLowerCase(),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url));var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},i.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(i.merge(n||{},{method:e,url:t}))}})),i.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(i.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=c},3471:(e,t,n)=>{"use strict";var r=n(9516);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},7763:(e,t,n)=>{"use strict";var r=n(5449);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},4490:(e,t,n)=>{"use strict";var r=n(9516),i=n(2881),o=n(3864),a=n(6987);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5449:e=>{"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},7522:(e,t,n)=>{"use strict";var r=n(7763);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},2881:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},6987:(e,t,n)=>{"use strict";var r=n(5606),i=n(9516),o=n(7018),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r)&&(l=n(5592)),l),transformRequest:[function(e,t){return o(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}}
2,i.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){c.headers[e]=i.merge(a)})),e.exports=c},9012:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},2537:e=>{"use strict";function t(){this.message="String contains an invalid character"}t.prototype=new Error,t.prototype.code=5,t.prototype.name="InvalidCharacterError",e.exports=function(e){for(var n,r,i=String(e),o="",a=0,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.charAt(0|a)||(s="=",a%1);o+=s.charAt(63&n>>8-a%1*8)){if((r=i.charCodeAt(a+=3/4))>255)throw new t;n=n<<8|r}return o}},9106:(e,t,n)=>{"use strict";var r=n(9516);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)&&(t+="[]"),r.isArray(e)||(e=[e]),r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}return o&&(e+=(-1===e.indexOf("?")?"?":"&")+o),e}},4680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},3948:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},9137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}}
2,4202:(e,t,n)=>{"use strict";var r=n(9516);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},7018:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},2012:(e,t,n)=>{"use strict";var r=n(9516);e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),(function(e){i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t&&(o[t]=o[t]?o[t]+", "+n:n)})),o):o}},7980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},9516:(e,t,n)=>{"use strict";var r=n(9012),i=n(7206),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},5006:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(2505),i=n.n(r);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};d(k,s,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,s)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,563 bytes, line 2
2))}function L(e,t){function n(i,a,s,l){var c=f(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function T(t,n,r){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),d(L.prototype,l,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),d(_,u,"Generator"),d(_,s,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){u(o,r,i,a,s,"next",e)}function s(e){u(o,r,i,a,s,"throw",e)}a(void 0)}))}}const h={computed:{renewalContext:function(){return{}}},methods:{renewalSaved:function(){var e=this;return d(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.load();case 2:case"end":return t.stop()}}),t)})))()},run:function(e,t){var n=this;return d(c().mark((function r(){var i,o,a,s,l;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.busy[e.id]){r.next=2;break}return r.abrupt("return");case 2:return(null===(i=n.actionError)||void 0===i?void 0:i.license.id)===e.id&&(n.actionError=null),n.$set(n.busy,e.id,!0),n.$delete(n.rowErrors,e.id),n.retries[e.id]=t,r.prev=6,r.next=9,t();case 9:r.next=17;break;case 11:r.prev=11,r.t0=r.catch(6),l=Object.values((null===(o=r.t0.response)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.errors)||{}).flat()[0]||"Could not save this change. Please try again.",n.$set(n.rowErrors,e.id,l),(null===(a=n.renewing)||void 0===a?void 0:a.license.id)===e.id||(null===(s=n.archiving)||void 0===s?void 0:s.id)===e.id||(n.actionError={license:e,message:l});case 17:return r.prev=17,n.$delete(n.busy,e.id),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[6,11,17,20]])})))()},retry:function(e){var t,n=this.listing.licenses.find((function(t){return t.id===e}))||(null===(t=this.actionError)||void 0===t?void 0:t.license);n&&this.retries[e]&&this.run(n,this.retries[e])},renew:function(e,t){var n=["Expired","Unactivated"].includes(e.updates.status);t&&n?this.quote(e):this.saveRenewal(e,t)},quote:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.run(e,d(c().mark((function r(){var o,a;return c().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,i().get(e.renewal_preview_url,{params:s(s({},t.renewalContext),{},{coupon_code:n})});case 2:o=r.sent,a=o.data,t.renewing={license:e,quote:a};case 5:case"end":return r.stop()}}),r)}))))},saveRenewal:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.run(e,d(c().mark((function o(){var a,l,u;return c().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,i().patch(e.auto_renew_url,s(s({},n.renewalContext),{},{enabled:t,coupon_code:null==r?void 0:r.coupon_code}));case 2:if(a=o.sent,!(l=a.data).redirect_url){o.next=7;break}return location.assign(l.redirect_url),o.abrupt("return");case 7:return n.renewing=null,(u=n.listing.licenses.findIndex((function(t){return t.id===e.id})))>=0&&n.$set(n.listing.licenses,u,s(s({},n.listing.licenses[u]),l.license)),o.next=12,n.renewalSaved();case 12:case"end":return o.stop()}}),o)}))))}}}},1283:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={all:function(){return Laravel.countries},name:function(e){return this.all()[e]}}},2871:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{A:()=>s});const s={rows:function(e){var t=[],n="later"===e.id||"all"===e.id;return this.cart.items.filter((function(t){return"all"===e.id||t.destination===e.id})).forEach((function(e){var r=n&&!e.locked&&t.find((function(t){return t.row_id===e.row_id&&t.enabled===e.enabled}));if(r)return r.ids.push(e.id),r.cost+=e.cost,void r.quantity++;t.push(o(o({},e),{},{ids:[e.id],quantity:1}))})),t},money:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:e%100?2:0}).format(e/100)},description:function(e){if(!e.enabled)return e.is_statamic?"Includes one year of updates and support. Renew manually afterward.":"Includes one year of updates. Renew manually afterward.";var t=e.quantity>1?" × "+e.quantity+" licenses":"";return this.money(e.renewal_unit_price)+"/year"+t+" starting "+e.renewal_date+". Cancel anytime."}}},1009:(e,t,n)=>{"use strict";function r(e){return(Number(e)||0)/100}function i(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fractionDigits,n=void 0===t?2:t;return"$"+r(e).toLocaleString("en-US",{minimumFractionDigits:n,maximumFractionDigits:n})}function o(e){return"$"+Math.round(r(e)).toLocaleString("en-US")}n.d(t,{c:()=>o,n:()=>i})},8470:()=>{function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var n=function(e){return String(e).replace(/[&<>"']/g,(function(e){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[e]}))};document.addEventListener("alpine:init",(function(){window.Alpine.data("partnersWorldMap",(function(t){return{partners:t,certifiedCount:t.filter((function(e){return e.certified})).length,countryCount:new Set(t.map((function(e){return e.country})).filter(Boolean)).size||new Set(t.map((function(e){return"".concat(Math.round(e.lat/5),"_").concat(Math.round(e.lng/5))}))).size,timezoneCount:new Set(t.map((function(e){return Math.round(e.lng/15)}))).size,init:function(){var e=this;this.$nextTick((function(){return e.render()}))},render:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if("undefined"!=typeof L){var i=L.map(this.$refs.map,{center:[28,10],zoom:2,minZoom:2,maxZoom:8,worldCopyJump:!0,zoomControl:!0,scrollWheelZoom:!1,attributionControl:!0,maxBounds:[[-85,-200],[85,200]],maxBoundsViscosity:.7,fadeAnimation:!1});i.on("focus",(function(){return i.scrollWheelZoom.enable()})),i.on("blur",(function(){return i.scrollWheelZoom.disable()}));var o=i.getContainer();o.setAttribute("tabindex","0"),o.addEventListener("click",(function(){return o.focus()}),{once:!0}),this.$refs.zoomHost&&i.zoomControl&&this.$refs.zoomHost.appendChild(i.zoomControl.getContainer()),L.tileLayer("https://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png?key=cb1_2ep9_1_5e8e50873e275bdab85f7469",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://carto.com/attributions">CARTO</a>',subdomains:"abcd",maxZoom:19,keepBuffer:4}).addTo(i);var a=function(e){return{regular:e.divIcon({className:"",html:'<div class="partner-pin partner-pin--regular"><div class="partner-pin__core"></div></div>',iconSize:[10,10],iconAnchor:[5,5]}),certified:e.divIcon({className:"",html:'<div class="partner-pin partner-pin--certified"><div class="partner-pin__pulse"></div><div class="partner-pin__core"></div></div>',iconSize:[22,22],iconAnchor:[11,11]}),enterprise:e.divIcon({className:"",html:'<div class="partner-pin partner-pin--enterprise"><div class="partner-pin__pulse"></div><div class="partner-pin__core"></div></div>',iconSize:[28,28],iconAnchor:[14,14]})}}(L),s=function(e){return e.enterprise?2:e.certified?1:0};e(this.partners).sort((function(e,t){return s(e)-s(t)}
2)).forEach((function(e){if("number"==typeof e.lat&&"number"==typeof e.lng){var t=e.enterprise?a.enterprise:e.certified?a.certified:a.regular,r=L.marker([e.lat,e.lng],{icon:t,riseOnHover:!0,title:e.name,zIndexOffset:e.enterprise?2e3:e.certified?1e3:0}).addTo(i);r.on("click",(function(){e.url&&window.open(e.url,"_blank")}));var o=e.enterprise?'\n    <span class="partner-tooltip__chip partner-tooltip__chip--enterprise">\n        <svg width="9" height="9" viewBox="0 0 24 24" fill="none" aria-hidden="true">\n            <path fill="#BBF451" d="M12 1.5 14.6 5l4.3.6.8 4.3 3 3.1-3 3.1-.8 4.3-4.3.6L12 24l-2.6-3-4.3-.6-.8-4.3-3-3.1 3-3.1.8-4.3 4.3-.6L12 1.5Z"/>\n            <path stroke="#0E0B1F" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" d="m8 12 3 3 5-6"/>\n        </svg>\n        Enterprise\n    </span>\n':e.certified?'\n    <span class="partner-tooltip__chip">\n        <svg width="9" height="9" viewBox="0 0 24 24" fill="none" aria-hidden="true">\n            <path fill="#FF6FC1" d="M12 1.5 14.6 5l4.3.6.8 4.3 3 3.1-3 3.1-.8 4.3-4.3.6L12 24l-2.6-3-4.3-.6-.8-4.3-3-3.1 3-3.1.8-4.3 4.3-.6L12 1.5Z"/>\n            <path stroke="#0E0B1F" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" d="m8 12 3 3 5-6"/>\n        </svg>\n        Certified\n    </span>\n':"",s=e.location?'<span class="partner-tooltip__loc"> · '.concat(n(e.location),"</span>"):"";r.bindTooltip("".concat(o,'<span class="partner-tooltip__name">').concat(n(e.name),"</span>").concat(s),{direction:"top",offset:[0,e.enterprise?-10:e.certified?-8:-6],opacity:1,className:"partner-tooltip"})}}))}else{if(r>25)return;setTimeout((function(){return t.render(r+1)}),200)}}}}))}))},4071:(e,t,n)=>{"use strict";var r=n(2893),i=n(7992),o=n.n(i),a=n(2498),s=n.n(a),l=n(2505),c=n.n(l),u=n(2871);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(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 f(){f=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};c(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,a)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,s){var l=h(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==d(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=h(t,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 5,260 bytes, line 2
2(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(d(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),c(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function p(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){p(o,r,i,a,s,"next",e)}function s(e){p(o,r,i,a,s,"throw",e)}a(void 0)}))}}function m(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(n),!0).forEach((function(t){x(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=!1;const k=function(e,t){return b(b({},u.A),{},{urls:t,cart:e,saving:!1,error:"",retryAction:null,announcement:"",picker:!1,selected:[],search:"",newName:"",sites:[],loadingSites:!1,editingEmptySite:null,assignMode:"new",emptySite:!1,origin:null,drag:null,over:null,suppressMoveClick:!1,refreshVersion:0,init:function(){var e=this;this.changed=function(t){return e.cart=t.detail},this.busy=function(t){return e.saving=t.detail},this.refreshListener=function(){return e.refresh()},window.addEventListener("site-cart-changed",this.changed),window.addEventListener("site-cart-saving",this.busy),window.addEventListener("cart-updated",this.refreshListener),window.addEventListener("cart-emptied",this.refreshListener),window.addEventListener("cart-pricing-changed",this.refreshListener)},destroy:function(){window.removeEventListener("site-cart-changed",this.changed),window.removeEventListener("site-cart-saving",this.busy),window.removeEventListener("cart-updated",this.refreshListener),window.removeEventListener("cart-emptied",this.refreshListener),window.removeEventListener("cart-pricing-changed",this.refreshListener)},get disabled(){return this.saving},get split(){var e=new Set(this.cart.items.map((function(e){return e.destination})));return this.cart.split||e.size>1},get duplicates(){return new Set(this.cart.items.map((function(e){return e.product_id}))).size<this.cart.items.length},get displayGroups(){return this.split?this.cart.groups:[{id:"all",name:"",licenses:[]}]},get assignedGroup(){return this.cart.groups.find((function(e){return"later"!==e.id}))},get choices(){var e=new Set(this.cart.groups.map((function(e){return e.id}))),t=this.search.toLowerCase();return this.sites.filter((function(n){return!e.has(n.id)&&(n.name+" "+(n.domain||"")).toLowerCase().includes(t)}))},assignCart:function(e){var t=this.assignedGroup?this.cart.items.map((function(e){return e.id})):this.oneOfEachProduct(this.unassigned());this.openPicker(t,e)},assignUnassigned:function(e){this.openPicker(this.oneOfEachProduct(this.unassigned()),e)},unassigned:function(){return this.cart.items.filter((function(e){return"later"===e.destination}))},oneOfEachProduct:function(e){var t=new Set;return e.filter((function(e){return!e.locked&&!t.has(e.product_id)&&(t.add(e.product_id),!0)})).map((function(e){return e.id}))},assign:function(e,t){var n=this.cart.items.map((function(e){return e.id}));if(this.assignMode=e,"later"===e)return this.selected=n,void this.move("later");this.openPicker(n,t,e)},groupTotal:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.cart.items.filter((function(t){return t.destination===e.id})).reduce((function(e,r){return e+(n?t.renewalCost(r):r.cost)}),0)},renewalCost:function(e){return e.enabled?e.renewal_unit_price:0},conflict:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected;if(!n.length)return"";var r=this.cart.items.filter((function(e){return n.includes(e.id)}
2)),i=r.find((function(e){return e.locked}));if(i)return i.lock_reason;if("later"===e.id)return"";var o,a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=m(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(r);try{var s,l=function(){var i=o.value,a=(e.licenses||[]).find((function(e){return Number(e.product_id)===Number(i.product_id)}));return a?{v:"Already licensed: "+a.name+(a.edition?" ("+a.edition+")":"")}:t.cart.items.some((function(t){return!n.includes(t.id)&&t.destination===e.id&&t.product_id===i.product_id}))?{v:"Already in cart: "+i.name}:r.filter((function(e){return e.product_id===i.product_id})).length>1?{v:"Only one license per product can go on a site."}:void 0};for(a.s();!(o=a.n()).done;)if(s=l())return s.v}catch(e){a.e(e)}finally{a.f()}return""},ownership:function(e){return(e.licenses||[]).map((function(e){return(e.is_statamic?"Pro licensed":e.name)+(e.edition?" · "+e.edition:"")})).join(", ")||"No licenses attached"},relevantLicenses:function(e){var t=this;return(e.licenses||[]).filter((function(e){return t.cart.items.some((function(t){return Number(t.product_id)===Number(e.product_id)}))}))},openPicker:function(e,t){var n=arguments,r=this;return g(f().mark((function i(){var o,a;return f().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=n.length>2&&void 0!==n[2]?n[2]:"new",a=n.length>3&&void 0!==n[3]?n[3]:null,!r.disabled){i.next=4;break}return i.abrupt("return");case 4:if(r.selected=e,r.origin=(null==t?void 0:t.currentTarget)||document.activeElement,r.editingEmptySite=a,r.assignMode=o,r.search="",r.newName="",r.error="",r.picker=!0,r.$nextTick((function(){return("new"===o?r.$refs.newSiteName:r.$refs.siteSearch).focus()})),r.cart.authenticated){i.next=15;break}return i.abrupt("return");case 15:return r.loadingSites=!0,i.prev=16,i.next=19,c().get(r.urls.sites);case 19:r.sites=i.sent.data,i.next=25;break;case 22:i.prev=22,i.t0=i.catch(16),r.error="Sites could not be loaded. Close and reopen the picker to try again.";case 25:return i.prev=25,r.loadingSites=!1,i.finish(25);case 28:case"end":return i.stop()}}),i,null,[[16,22,25,28]])})))()},closePicker:function(){var e=this;this.picker=!1,this.$nextTick((function(){var t;return null===(t=e.origin)||void 0===t?void 0:t.focus()}))},refresh:function(){var e=this;return g(f().mark((function t(){var n,r;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!w){t.next=2;break}return t.abrupt("return");case 2:return n=++e.refreshVersion,t.prev=3,t.next=6,c().get(e.urls.contents);case 6:if(r=t.sent,!w&&n===e.refreshVersion){t.next=9;break}return t.abrupt("return");case 9:e.replaceCart(r.data),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(3),e.error="Your cart could not be refreshed. Reload this page to try again.";case 15:case"end":return t.stop()}}),t,null,[[3,12]])})))()},save:function(e,t){var n=arguments,r=this;return g(f().mark((function i(){var o,a,s,l,u,d;return f().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(o=n.length>2&&void 0!==n[2]?n[2]:{},a=n.length>3&&void 0!==n[3]?n[3]:null,!w&&!r.disabled){i.next=4;break}return i.abrupt("return");case 4:return s=JSON.parse(JSON.stringify(r.cart)),w=!0,r.refreshVersion++,r.error="",r.retryAction=[e,t,o],window.dispatchEvent(new CustomEvent("site-cart-saving",{detail:!0})),a&&a(),i.prev=11,i.next=14,c().request({method:e,url:t,data:o});case 14:u=i.sent,r.replaceCart(u.data),r.retryAction=null,r.announcement="Cart updated.",r.picker&&r.closePicker(),null===(l=window.Livewire)||void 0===l||l.dispatch("site-cart-count-changed"),i.next=26;break;case 22:i.prev=22,i.t0=i.catch(11),r.cart=s,r.error=Object.values((null===(d=i.t0.response)||void 0===d||null===(d=d.data)||void 0===d?void 0:d.errors)||{}).flat().join(" ")||"Your change could not be saved. Your previous cart has been restored.";case 26:return i.prev=26,w=!1,window.dispatchEvent(new CustomEvent("site-cart-saving",{detail:!1})),i.finish(26);case 30:case"end":return i.stop()}}),i,null,[[11,22,26,30]])})))()},replaceCart:function(e){this.cart=e,window.dispatchEvent(new CustomEvent("site-cart-changed",{detail:this.cart}))},move:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected;if(!n.length)return"later"===e?this.closePicker():this.save("post",this.urls.sites,{destination:e,name:this.newName,replace:this.editingEmptySite});
2var r=[].concat(h(this.cart.groups),h(this.sites)).find((function(t){return t.id===e})),i=r&&this.conflict(r,n);i?this.error=i:("new"===e&&!this.newName.trim()&&this.split&&(this.newName="Site "+(this.cart.groups.filter((function(e){return"later"!==e.id})).length+1)),"new"!==e||this.newName.trim()?this.save("patch",this.urls.units,{ids:n,destination:e,name:this.newName},(function(){"new"!==e&&(t.cart.groups.some((function(t){return t.id===e}))||t.cart.groups.splice(t.cart.groups.length-1,0,r),t.cart.items.forEach((function(t){n.includes(t.id)&&(t.destination=e)})),t.cart.groups=t.cart.groups.filter((function(e){return"later"===e.id||t.cart.items.some((function(t){return t.destination===e.id}))})))})):this.error="Give your new site a name.")},renew:function(e,t){var n=this;this.save("patch",this.urls.renewals,{ids:e.ids,enabled:t},(function(){n.cart.items.forEach((function(n){e.ids.includes(n.id)&&(n.enabled=t)})),n.cart.renewals.total=n.cart.items.reduce((function(e,t){return e+n.renewalCost(t)}),0),n.cart.renewals.has_renewals=n.cart.items.some((function(e){return e.enabled}))}))},startDrag:function(e,t){this.disabled||t.locked||0!==e.button||(e.preventDefault(),e.currentTarget.setPointerCapture(e.pointerId),this.drag={id:t.ids[0],name:t.name,x:e.clientX,y:e.clientY,startX:e.clientX,startY:e.clientY,active:!1},this.over=null)},dragMove:function(e){if(this.drag&&(this.drag.x=e.clientX,this.drag.y=e.clientY,Math.hypot(this.drag.x-this.drag.startX,this.drag.y-this.drag.startY)>6&&(this.drag.active=!0),this.drag.active)){var t=document.elementFromPoint(e.clientX,e.clientY),n=null==t?void 0:t.closest("[data-site-destination]");this.over=n&&this.$root.contains(n)?n.dataset.siteDestination:null,this.autoScroll(t,e.clientY)}},autoScroll:function(e,t){for(var n=e;n&&n!==document.body&&!this.scrolls(n);)n=n.parentElement;var r=n&&n!==document.body?n:null,i=r?r.getBoundingClientRect():{top:0,bottom:window.innerHeight},o=0;t<i.top+55?o=-14:t>i.bottom-55&&(o=14),o&&(r||window).scrollBy(0,o)},scrolls:function(e){return e.scrollHeight>e.clientHeight&&/auto|scroll/.test(getComputedStyle(e).overflowY)},endDrag:function(){var e;if(this.drag){var t=this.drag,n=this.over;this.suppressMoveClick=t.active,this.drag=null,this.over=null,"new"===n&&(this.newName="");var r=null===(e=this.cart.items.find((function(e){return e.id===t.id})))||void 0===e?void 0:e.destination;t.active&&n&&r!==n&&this.move(n,[t.id])}},cancelDrag:function(){this.drag=null,this.over=null},dragStyle:function(){var e;if(!this.drag)return{};var t=null===(e=this.$refs.dragPreview)||void 0===e?void 0:e.offsetParent,n=t?t.getBoundingClientRect():{left:0,top:0};return{left:this.drag.x-n.left+12+"px",top:this.drag.y-n.top+12+"px"}}})};function C(e){return C="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},C(e)}function S(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}function _(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}var L="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,T=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(L&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var E=L&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),T))}};function O(e){return e&&"[object Function]"==={}.toString.call(e)}function M(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}
vendor: 4,682 bytes, line 2
2function P(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function D(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=M(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:D(P(e))}function N(e){return e&&e.referenceNode?e.referenceNode:e}var I=L&&!(!window.MSInputMethodContext||!document.documentMode),F=L&&/MSIE 10/.test(navigator.userAgent);function R(e){return 11===e?I:10===e?F:I||F}function z(e){if(!e)return document.documentElement;for(var t=R(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===M(n,"position")?z(n):n:e?e.ownerDocument.documentElement:document.documentElement}function j(e){return null!==e.parentNode?j(e.parentNode):e}function H(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||r.contains(i))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&z(a.firstElementChild)!==a?z(l):l;var c=j(e);return c.host?H(c.host,t):H(e,j(t).host)}function Y(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function B(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function W(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],R(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function X(e){var t=e.body,n=e.documentElement,r=R(10)&&getComputedStyle(n);return{height:W("Height",t,n,r),width:W("Width",t,n,r)}}var $=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),G=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function U(e){return V({},e,{right:e.left+e.width,bottom:e.top+e.height})}function q(e){var t={};try{if(R(10)){t=e.getBoundingClientRect();var n=Y(e,"top"),r=Y(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?X(e.ownerDocument):{},a=o.width||e.clientWidth||i.width,s=o.height||e.clientHeight||i.height,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var u=M(e);l-=B(u,"x"),c-=B(u,"y"),i.width-=l,i.height-=c}return U(i)}function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=R(10),i="HTML"===t.nodeName,o=q(e),a=q(t),s=D(e),l=M(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var d=U({top:o.top-a.top-c,left:o.left-a.left-u,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Y(t,"top"),i=Y(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}(d,t)),d}function K(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===M(e,"position"))return!0;var n=P(e);return!!n&&K(n)}function J(e){if(!e||!e.parentElement||R())return document.documentElement;for(var t=e.parentElement;t&&"none"===M(t,"transform");)t=t.parentElement;return t||document.documentElement}function Q(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?J(e):H(e,N(t));if("viewport"===r)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Z(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Y(n),s=t?0:Y(n,"left");
vendor: 4,637 bytes, line 2
2return U({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=D(P(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var l=Z(s,a,i);if("HTML"!==s.nodeName||K(a))o=l;else{var c=X(e.ownerDocument),u=c.height,d=c.width;o.top+=l.top-l.marginTop,o.bottom=u+l.top,o.left+=l.left-l.marginLeft,o.right=d+l.left}}var h="number"==typeof(n=n||0);return o.left+=h?n:n.left||0,o.top+=h?n:n.top||0,o.right-=h?n:n.right||0,o.bottom-=h?n:n.bottom||0,o}function ee(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Q(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return V({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function te(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Z(n,r?J(t):H(t,N(n)),r)}function ne(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function re(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function ie(e,t,n){n=n.split("-")[0];var r=ne(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[re(s)],i}function oe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ae(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=oe(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&O(n)&&(t.offsets.popper=U(t.offsets.popper),t.offsets.reference=U(t.offsets.reference),t=n(t,e))})),t}function se(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=te(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ee(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ie(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ae(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function le(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function ce(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function ue(){return this.state.isDestroyed=!0,le(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ce("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function de(e){var t=e.ownerDocument;return t?t.defaultView:window}function he(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||he(D(o.parentNode),t,n,r),r.push(o)}function fe(e,t,n,r){n.updateBound=r,de(e).addEventListener("resize",n.updateBound,{passive:!0});var i=D(e);return he(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function pe(){this.state.eventsEnabled||(this.state=fe(this.reference,this.options,this.state,this.scheduleUpdate))}function ge(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return de(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 8,899 bytes, line 2
2h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function me(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ve(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&me(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ye=L&&/Firefox/i.test(navigator.userAgent);function be(e,t,n){var r=oe(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var xe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],we=xe.slice(3);function ke(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=we.indexOf(e),r=we.slice(n+1).concat(we.slice(0,n));return t?r.reverse():r}var Ce="flip",Se="clockwise",_e="counterclockwise";function Ae(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(oe(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){return U("%p"===a?n:r)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,r){me(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var Le={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:G({},l,o[l]),end:G({},l,o[l]+o[c]-a[c])};e.offsets.popper=V({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],l=void 0;return l=me(+n)?[+n,0]:Ae(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||z(e.instance.popper);e.instance.reference===n&&(n=z(n));var r=ce("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=Q(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),G({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),G({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=V({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(r[l])&&(e.offsets.popper[l]=o(r[l])-n[c]),n[l]>o(r[s])&&(e.offsets.popper[l]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!be(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=ne(r)[c];s[f]-p<a[d]&&(e.offsets.popper[d]-=a[d]-(s[f]-p)),s[d]+p>a[f]&&(e.offsets.popper[d]+=s[d]+p-a[f]),e.offsets.popper=U(e.offsets.popper);var g=s[d]+s[c]/2-p/2,m=M(e.instance.popper),v=parseFloat(m["margin"+u]),y=parseFloat(m["border"+u+"Width"]),b=g-e.offsets.popper[d]-v-y;return b=Math.max(Math.min(a[c]-p,b),0),e.arrowElement=r,e.offsets.arrow=(G(n={},d,Math.round(b)),G(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(le(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Q(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=re(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ce:a=[r,i];break;case Se:a=ke(r);break;case _e:a=ke(r,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(r!==s||a.length===l+1)return e;r=e.placement.split("-")[0],i=re(r);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===r&&d(c.right)>d(u.left)||"right"===r&&d(c.left)<d(u.right)||"top"===r&&d(c.bottom)>d(u.top)||"bottom"===r&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),g=d(c.top)<d(n.top),m=d(c.bottom)>d(n.bottom),v="left"===r&&f||"right"===r&&p||"top"===r&&g||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&m),x=!!t.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&m||!y&&"end"===o&&g),w=b||x;(h||v||w)&&(e.flipped=!0,(h||v)&&(r=a[l+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=V({},e.offsets.popper,ie(e.instance.popper,e.offsets.reference,e.placement)),e=ae(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=re(t),e.offsets.popper=U(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!be(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=oe(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=oe(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=z(e.instance.popper),l=q(s),c={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},l=o(i.width),c=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?o:a:s,f=t?o:s;return{left:h(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}(e,window.devicePixelRatio<2||!ye),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",f=ce("transform"),p=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-l.height+u.bottom:u.top,p="right"===h?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,a&&f)c[f]="translate3d("+p+"px, "+g+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var m="bottom"===d?-1:1,v="right"===h?-1:1;c[d]=g*m,c[h]=p*v,c.willChange=d+", "+h}var y={"x-placement":e.placement};return e.attributes=V({},y,e.attributes),e.styles=V({},c,e.styles),e.arrowStyles=V({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ve(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
2h((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ve(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=te(i,t,e,n.positionFixed),a=ee(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),ve(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Te={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Le},Ee=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=E(this.update.bind(this)),this.options=V({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(V({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=V({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return V({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&O(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return $(e,[{key:"update",value:function(){return se.call(this)}},{key:"destroy",value:function(){return ue.call(this)}},{key:"enableEventListeners",value:function(){return pe.call(this)}},{key:"disableEventListeners",value:function(){return ge.call(this)}}]),e}();Ee.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,Ee.placements=xe,Ee.Defaults=Te;const Oe=Ee;var Me,Pe=n(2404),De=n.n(Pe);function Ne(){Ne.init||(Ne.init=!0,Me=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function Ie(e,t,n,r,i,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,i&&(d.functional=!0)),r&&(d._scopeId=r),o?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=u):t&&(u=a?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),u)if(d.functional){var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}var Fe={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Ne(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Me&&this.$el.appendChild(t),t.data="about:blank",Me||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Me&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Re=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};Re._withStripped=!0;var ze=Ie({render:Re,staticRenderFns:[]}
2,undefined,Fe,"data-v-8859cc6c",false,undefined,!1,void 0,void 0,void 0);var je={version:"1.0.1",install:function(e){e.component("resize-observer",ze),e.component("ResizeObserver",ze)}},He=null;"undefined"!=typeof window?He=window.Vue:void 0!==n.g&&(He=n.g.Vue),He&&He.use(je);var Ye=n(5364),Be=n.n(Ye),We=function(){};function Xe(e){return"string"==typeof e&&(e=e.split(" ")),e}function $e(e,t){var n,r=Xe(t);n=e.className instanceof We?Xe(e.className.baseVal):Xe(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function Ge(e,t){var n,r=Xe(t);n=e.className instanceof We?Xe(e.className.baseVal):Xe(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(We=window.SVGAnimatedString);var Ve=!1;if("undefined"!=typeof window){Ve=!1;try{var Ue=Object.defineProperty({},"passive",{get:function(){Ve=!0}});window.addEventListener("test",null,Ue)}catch(e){}}function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ke={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},Je=[],Qe=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),_(this,"_events",[]),_(this,"_setTooltipNodeEvent",(function(e,t,n,i){var o=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(o)&&(r._tooltipNode.addEventListener(e.type,(function n(o){var a=o.relatedreference||o.toElement||o.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(a)||r._scheduleHide(t,i.delay,i,o)})),!0)})),n=Ze(Ze({},Ke),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}return function(e,t,n){t&&A(e.prototype,t),n&&A(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||ut.options.defaultClass;De()(this._classes,n)||(this.setClasses(n),t=!0),e=ot(e);var r=!1,i=!1;for(var o in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(i=!0),e)this.options[o]=e[o];if(this._tooltipNode)if(i){var a=this._isOpen;this.dispose(),this._init(),a&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var i=r.childNodes[0];return i.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),i.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(i.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),i.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),i}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update(
2)}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,i){var o=t.html,a=n._tooltipNode;if(a){var s=a.querySelector(n.options.innerSelector);if(1===e.nodeType){if(o){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var l=e();return void(l&&"function"==typeof l.then?(n.asyncContent=!0,t.loadingClass&&$e(a,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),l.then((function(e){return t.loadingClass&&Ge(a,t.loadingClass),n._applyContent(e,t)})).then(r).catch(i)):n._applyContent(l,t).then(r).catch(i))}o?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(t&&"string"==typeof t.container&&!document.querySelector(t.container))return;clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&($e(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&$e(this._tooltipNode,this._classes),$e(e,["v-tooltip-open"]),r}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,Je.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var i=this._create(e,t.template);this._tooltipNode=i,e.setAttribute("aria-describedby",i.id);var o=this._findContainer(t.container,e);this._append(i,o);var a=Ze(Ze({},t.popperOptions),{},{placement:t.placement});return a.modifiers=Ze(Ze({},a.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(a.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new Oe(e,i,a),this._setContent(r,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=Je.indexOf(this);-1!==e&&Je.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=ut.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),Ge(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,i=[],o=[];t.forEach((function(e){switch(e){case"hover":i.push("mouseenter"),o.push("mouseleave"),r.options.hideOnTargetClick&&o.push("click");break;case"focus":i.push("focus"),o.push("blur"),r.options.hideOnTargetClick&&o.push("click");break;case"click":i.push("click"),o.push("click")}}
2)),i.forEach((function(t){var i=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:i}),e.addEventListener(t,i)})),o.forEach((function(t){var i=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:i}),e.addEventListener(t,i)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,i=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),i)}},{key:"_scheduleHide",value:function(e,t,n,r){var i=this,o=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==i._isOpen&&i._tooltipNode.ownerDocument.body.contains(i._tooltipNode)){if("mouseleave"===r.type)if(i._setTooltipNodeEvent(r,e,t,n))return;i._hide(e,n)}}),o)}}]),e}();function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<Je.length;t++)Je[t]._onDocumentTouch(e)}),!Ve||{passive:!0,capture:!0});var nt={enabled:!0},rt=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],it={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function ot(e){var t={placement:void 0!==e.placement?e.placement:ut.options.defaultPlacement,delay:void 0!==e.delay?e.delay:ut.options.defaultDelay,html:void 0!==e.html?e.html:ut.options.defaultHtml,template:void 0!==e.template?e.template:ut.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:ut.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:ut.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:ut.options.defaultTrigger,offset:void 0!==e.offset?e.offset:ut.options.defaultOffset,container:void 0!==e.container?e.container:ut.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:ut.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:ut.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:ut.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:ut.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:ut.options.defaultLoadingContent,popperOptions:tt({},void 0!==e.popperOptions?e.popperOptions:ut.options.defaultPopperOptions)};if(t.offset){var n=C(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, ".concat(r)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function at(e,t){for(var n=e.placement,r=0;r<rt.length;r++){var i=rt[r];t[i]&&(n=i)}return n}function st(e){var t=C(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function lt(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(Ge(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function ct(e,t){var n=t.value;t.oldValue;var r,i=t.modifiers,o=st(n);o&&nt.enabled?(e._tooltip?((r=e._tooltip).setContent(o),r.setOptions(tt(tt({},n),{},{placement:at(n,i)}))):r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=st(t),i=void 0!==t.classes?t.classes:ut.options.defaultClass,o=tt({title:r},ot(tt(tt({},"object"===C(t)?t:{}),{},{placement:at(t,n)}))),a=e._tooltip=new Qe(e,o);a.setClasses(i),a._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:ut.options.defaultTargetClass;return e._tooltipTargetClasses=s,$e(e,s),a}(e,n,i),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?r.show():r.hide())):lt(e)}var ut={options:it,bind:ct,update:ct,unbind:function(e){lt(e)}};function dt(e){e.addEventListener("click",ft),e.addEventListener("touchstart",pt,!!Ve&&{passive:!0})}function ht(e){e.removeEventListener("click",ft),e.removeEventListener("touchstart",pt),e.removeEventListener("touchend",gt),e.removeEventListener("touchcancel",mt)}function ft(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function pt(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",gt),t.addEventListener("touchcancel",mt)}}function gt(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function mt(e){e.currentTarget.$_vclosepopover_touch=!1}var vt={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&dt(e)},update:function(e,t){var n=t.value,r=t.oldValue,i=t.modifiers;e.$_closePopoverModifiers=i,n!==r&&(void 0===n||n?dt(e):ht(e))},unbind:function(e){ht(e)}};function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?yt(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xt(e){var t=ut.options.popover[e];return void 0===t?ut.options[e]:t}var wt=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(wt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var kt=[],Ct=function(){};"undefined"!=typeof window&&(Ct=window.Element);var St={name:"VPopover",components:{ResizeObserver:ze},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return xt("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return xt("defaultDelay")}},offset:{type:[String,Number],default:function(){return xt("defaultOffset")}},trigger:{type:String,default:function(){return xt("defaultTrigger")}},container:{type:[String,Object,Ct,Boolean],default:function(){return xt("defaultContainer")}},boundariesElement:{type:[String,Ct],default:function(){return xt("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return xt("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return xt("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return ut.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return ut.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return ut.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return ut.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return ut.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return ut.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return ut.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return _({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event;t.skipDelay;var r=t.force;!(void 0!==r&&r)&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var i=bt(bt({},this.popperOptions),{},{placement:this.placement});if(i.modifiers=bt(bt({},i.modifiers),{},{arrow:bt(bt({},i.modifiers&&i.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var o=this.$_getOffset();i.modifiers.offset=bt(bt({},i.modifiers&&i.modifiers.offset),{},{offset:o})}this.boundariesElement&&(i.modifiers.preventOverflow=bt(bt({},i.modifiers&&i.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new Oe(t,n,i),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var a=this.openGroup;if(a)for(var s,l=0;l<kt.length;l++)(s=kt[l]).openGroup!==a&&(s.hide(),s.$emit("close-group"));kt.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=kt.indexOf(this);-1!==t&&kt.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=ut.options.popover.disposeTimeout||ut.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=C(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)}
2)):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type)if(e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,i=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(i)&&(r.addEventListener(e.type,(function i(o){var a=o.relatedreference||o.toElement||o.relatedTarget;r.removeEventListener(e.type,i),n.contains(a)||t.hide({event:o})})),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function _t(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=kt[n];if(r.$refs.popover){var i=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&i||r.autoHide&&!i)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<kt.length;r++)n(r)}function At(e,t,n,r,i,o,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);const u="function"==typeof n?n.options:n;let d;if(e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),r&&(u._scopeId=r),o?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=d):t&&(d=a?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(u.functional){const e=u.render;u.render=function(t,n){return d.call(n),e(t,n)}}else{const e=u.beforeCreate;u.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof document&&"undefined"!=typeof window&&(wt?document.addEventListener("touchend",(function(e){_t(e,!0)}),!Ve||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){_t(e)}),!0));var Lt=St,Tt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.isOpen?e.popoverId:void 0,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}}
2,[n("div",[e._t("popover",null,{isOpen:e.isOpen})],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};Tt._withStripped=!0;var Et=At({render:Tt,staticRenderFns:[]},undefined,Lt,undefined,false,undefined,!1,void 0,void 0,void 0);!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var Ot={install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};Be()(r,it,n),Ot.options=r,ut.options=r,t.directive("tooltip",ut),t.directive("close-popover",vt),t.component("VPopover",Et)}},get enabled(){return nt.enabled},set enabled(e){nt.enabled=e}},Mt=null;"undefined"!=typeof window?Mt=window.Vue:void 0!==n.g&&(Mt=n.g.Vue),Mt&&Mt.use(Ot);const Pt=Ot;var Dt=n(5681),Nt=n.n(Dt);const It=new r.default({methods:{message:function(e){this.$bus.$emit("flash.message",e)},success:function(e){this.message(e)},error:function(e){this.$bus.$emit("flash.error",e)}}});var Ft=n(7812),Rt=n.n(Ft),zt=n(6804),jt=n.n(zt),Ht=n(2705),Yt=n.n(Ht),Bt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt=function(e){return"IMG"===e.tagName},Xt=function(e){return e&&1===e.nodeType},$t=function(e){return".svg"===(e.currentSrc||e.src).substr(-4).toLowerCase()},Gt=function(e){try{return Array.isArray(e)?e.filter(Wt):function(e){return NodeList.prototype.isPrototypeOf(e)}(e)?[].slice.call(e).filter(Wt):Xt(e)?[e].filter(Wt):"string"==typeof e?[].slice.call(document.querySelectorAll(e)).filter(Wt):[]}catch(e){throw new TypeError("The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom")}},Vt=function(e,t){var n=Bt({bubbles:!1,cancelable:!1,detail:void 0},t);if("function"==typeof window.CustomEvent)return new CustomEvent(e,n);var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}");const Ut=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=window.Promise||function(e){function t(){}e(t,t)},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return[].concat(e,Gt(t))}),[]);return r.filter((function(e){return-1===l.indexOf(e)})).forEach((function(e){l.push(e),e.classList.add("medium-zoom-image")})),c.forEach((function(e){var t=e.type,n=e.listener,i=e.options;r.forEach((function(e){e.addEventListener(t,n,i)}))})),g},o=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
vendor: 7,312 bytes, line 2
2).target,t=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,n=void 0;if(h.container)if(h.container instanceof Object)t=(e=Bt({},e,h.container)).width-e.left-e.right-2*h.margin,n=e.height-e.top-e.bottom-2*h.margin;else{var r=(Xt(h.container)?h.container:document.querySelector(h.container)).getBoundingClientRect(),i=r.width,o=r.height,a=r.left,s=r.top;e=Bt({},e,{width:i,height:o,left:a,top:s})}t=t||e.width-2*h.margin,n=n||e.height-2*h.margin;var l=f.zoomedHd||f.original,c=$t(l)?t:l.naturalWidth||t,u=$t(l)?n:l.naturalHeight||n,d=l.getBoundingClientRect(),p=d.top,g=d.left,m=d.width,v=d.height,y=Math.min(Math.max(m,c),t)/m,b=Math.min(Math.max(v,u),n)/v,x=Math.min(y,b),w="scale("+x+") translate3d("+((t-m)/2-g+h.margin+e.left)/x+"px, "+((n-v)/2-p+h.margin+e.top)/x+"px, 0)";f.zoomed.style.transform=w,f.zoomedHd&&(f.zoomedHd.style.transform=w)};return new r((function(n){if(e&&-1===l.indexOf(e))n(g);else{if(f.zoomed)n(g);else{if(e)f.original=e;else{if(!(l.length>0))return void n(g);var r=l;f.original=r[0]}if(f.original.dispatchEvent(Vt("medium-zoom:open",{detail:{zoom:g}})),d=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,u=!0,f.zoomed=function(e){var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.width,o=t.height,a=e.cloneNode(),s=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=n+s+"px",a.style.left=r+l+"px",a.style.width=i+"px",a.style.height=o+"px",a.style.transform="",a}(f.original),document.body.appendChild(p),h.template){var i=Xt(h.template)?h.template:document.querySelector(h.template);f.template=document.createElement("div"),f.template.appendChild(i.content.cloneNode(!0)),document.body.appendChild(f.template)}if(f.original.parentElement&&"PICTURE"===f.original.parentElement.tagName&&f.original.currentSrc&&(f.zoomed.src=f.original.currentSrc),document.body.appendChild(f.zoomed),window.requestAnimationFrame((function(){document.body.classList.add("medium-zoom--opened")})),f.original.classList.add("medium-zoom-image--hidden"),f.zoomed.classList.add("medium-zoom-image--opened"),f.zoomed.addEventListener("click",a),f.zoomed.addEventListener("transitionend",(function e(){u=!1,f.zoomed.removeEventListener("transitionend",e),f.original.dispatchEvent(Vt("medium-zoom:opened",{detail:{zoom:g}})),n(g)})),f.original.getAttribute("data-zoom-src")){f.zoomedHd=f.zoomed.cloneNode(),f.zoomedHd.removeAttribute("srcset"),f.zoomedHd.removeAttribute("sizes"),f.zoomedHd.removeAttribute("loading"),f.zoomedHd.src=f.zoomed.getAttribute("data-zoom-src"),f.zoomedHd.onerror=function(){clearInterval(o),console.warn("Unable to reach the zoom image target "+f.zoomedHd.src),f.zoomedHd=null,t()};var o=setInterval((function(){f.zoomedHd.complete&&(clearInterval(o),f.zoomedHd.classList.add("medium-zoom-image--opened"),f.zoomedHd.addEventListener("click",a),document.body.appendChild(f.zoomedHd),t())}),10)}else if(f.original.hasAttribute("srcset")){f.zoomedHd=f.zoomed.cloneNode(),f.zoomedHd.removeAttribute("sizes"),f.zoomedHd.removeAttribute("loading");var s=f.zoomedHd.addEventListener("load",(function(){f.zoomedHd.removeEventListener("load",s),f.zoomedHd.classList.add("medium-zoom-image--opened"),f.zoomedHd.addEventListener("click",a),document.body.appendChild(f.zoomedHd),t()}))}else t()}}}))},a=function(){return new r((function(e){if(!u&&f.original){u=!0,document.body.classList.remove("medium-zoom--opened"),f.zoomed.style.transform="",f.zoomedHd&&(f.zoomedHd.style.transform=""),f.template&&(f.template.style.transition="opacity 150ms",f.template.style.opacity=0),f.original.dispatchEvent(Vt("medium-zoom:close",{detail:{zoom:g}})),f.zoomed.addEventListener("transitionend",(function t(){f.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(f.zoomed),f.zoomedHd&&document.body.removeChild(f.zoomedHd),document.body.removeChild(p),f.zoomed.classList.remove("medium-zoom-image--opened"),f.template&&document.body.removeChild(f.template),u=!1,f.zoomed.removeEventListener("transitionend",t),f.original.dispatchEvent(Vt("medium-zoom:closed",{detail:{zoom:g}})),f.original=null,f.zoomed=null,f.zoomedHd=null,f.template=null,e(g)}))}else e(g)}))},s=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).target;return f.original?a():o({target:e})},l=[],c=[],u=!1,d=0,h=n,f={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?h=t:(t||"string"==typeof t)&&i(t);var p=function(e){var t=document.createElement("div");return t.classList.add("medium-zoom-overlay"),t.style.background=e,t}((h=Bt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},h)).background);document.addEventListener("click",(function(e){var t=e.target;t!==p?-1!==l.indexOf(t)&&s({target:t}):a()})),document.addEventListener("keyup",(function(e){var t=e.key||e.keyCode;"Escape"!==t&&"Esc"!==t&&27!==t||a()})),document.addEventListener("scroll",(function(){if(!u&&f.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(d-e)>h.scrollOffset&&setTimeout(a,150)}})),window.addEventListener("resize",a);var g={open:o,close:a,toggle:s,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;if(e.background&&(p.style.background=e.background),e.container&&e.container instanceof Object&&(t.container=Bt({},h.container,e.container)),e.template){var n=Xt(e.template)?e.template:document.querySelector(e.template);t.template=n}return h=Bt({},h,t),l.forEach((function(e){e.dispatchEvent(Vt("medium-zoom:update",{detail:{zoom:g}}))})),g},clone:function(){return e(Bt({},h,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))},attach:i,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];f.zoomed&&a();var r=t.length>0?t.reduce((function(e,t){return[].concat(e,Gt(t))}),[]):l;return r.forEach((function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(Vt("medium-zoom:detach",{detail:{zoom:g}}))})),l=l.filter((function(e){return-1===r.indexOf(e)})),g},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l.forEach((function(r){r.addEventListener("medium-zoom:"+e,t,n)})),c.push({type:"medium-zoom:"+e,listener:t,options:n}),g},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return l.forEach((function(r){r.removeEventListener("medium-zoom:"+e,t,n)})),c=c.filter((function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())})),g},getOptions:function(){return h},getImages:function(){return l},getZoomedImage:function(){return f.original}};return g};var qt=n(9692),Zt=n.n(qt);function Kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Jt=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=Kt({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decode
2URIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",Kt({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,Kt({},this.attributes,t))},withConverter:function(t){return e(Kt({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),Qt=n(1781),en=n.n(Qt),tn=n(3782),nn=(n(133),n(2080)),rn=n.n(nn),on=n(5237),an=n.n(on);function sn(e){let t=parseFloat(getComputedStyle(e).gap),n=[...e.childNodes].filter((e=>1===e.nodeType&&"TEMPLATE"!==e.tagName)),r=getComputedStyle(e).gridTemplateColumns.split(" ").length;n.forEach((e=>e.style.removeProperty("margin-top"))),1!==r&&n.forEach((function(e,i){let o=n[i-r];if(!o)return;let a=e.getBoundingClientRect().top-o.getBoundingClientRect().bottom;a!==t&&(e.style.marginTop=`-${a-t}px`)}))}function ln(e,t){let n=t.replace(e,"*");return n=n.slice(n.indexOf("*")+1,n.lastIndexOf("}")),Number(n.split(",")[0])}var cn=function(){[...document.querySelectorAll("[data-masonry]")].forEach((function(e){!function(e){let t,n,r=e.getAttribute("data-masonry");r&&(r.includes("pollDuration:")&&(t=ln("pollDuration:",r)),r.includes("waitDuration:")&&(n=ln("waitDuration:",r))),n?setTimeout((()=>sn(e)),n):sn(e),t&&setInterval((()=>sn(e)),t),window.addEventListener("resize",(()=>sn(e))),window.addEventListener("reload:masonry",(()=>sn(e)))}(e)}))};n(5218),n(7923),n(6865),n(7216),n(1764),n(7382),n(8208);function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var dn="(prefers-reduced-motion: reduce)",hn={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};function fn(e){e.length=0}function pn(e,t,n){return Array.prototype.slice.call(e,t,n)}function gn(e){return e.bind.apply(e,[null].concat(pn(arguments,1)))}var mn=setTimeout,vn=function(){};function yn(e){return requestAnimationFrame(e)}function bn(e,t){return typeof t===e}function xn(e){return!_n(e)&&bn("object",e)}var wn=Array.isArray,kn=gn(bn,"function"),Cn=gn(bn,"string"),Sn=gn(bn,"undefined");function _n(e){return null===e}function An(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function Ln(e){return wn(e)?e:[e]}function Tn(e,t){Ln(e).forEach(t)}function En(e,t){return e.indexOf(t)>-1}function On(e,t){return e.push.apply(e,Ln(t)),e}function Mn(e,t,n){e&&Tn(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function Pn(e,t){Mn(e,Cn(t)?t.split(" "):t,!0)}function Dn(e,t){Tn(t,e.appendChild.bind(e))}function Nn(e,t){Tn(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function In(e,t){return An(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Fn(e,t){var n=e?pn(e.children):[];return t?n.filter((function(e){return In(e,t)})):n}function Rn(e,t){return t?Fn(e,t)[0]:e.firstElementChild}var zn=Object.keys;function jn(e,t,n){return e&&(n?zn(e).reverse():zn(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function Hn(e){return pn(arguments,1).forEach((function(t){jn(t,(function(n,r){e[r]=t[r]}))})),e}function Yn(e){return pn(arguments,1).forEach((function(t){jn(t,(function(t,n){wn(t)?e[n]=t.slice():xn(t)?e[n]=Yn({},xn(e[n])?e[n]:{},t):e[n]=t}))})),e}function Bn(e,t){Tn(t||zn(e),(function(t){delete e[t]}))}function Wn(e,t){Tn(e,(function(e){Tn(t,(function(t){e&&e.removeAttribute(t)}))}))}function Xn(e,t,n){xn(t)?jn(t,(function(t,n){Xn(e,n,t)})):Tn(e,(function(e){_n(n)||""===n?Wn(e,t):e.setAttribute(t,String(n))}))}function $n(e,t,n){var r=document.createElement(e);return t&&(Cn(t)?Pn(r,t):Xn(r,t)),n&&Dn(n,r),r}function Gn(e,t,n){if(Sn(n))return getComputedStyle(e)[t];_n(n)||(e.style[t]=""+n)}function Vn(e,t){Gn(e,"display",t)}function Un(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function qn(e,t){return e.getAttribute(t)}function Zn(e,t){return e&&e.classList.contains(t)}function Kn(e){return e.getBoundingClientRect()}function Jn(e){Tn(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function Qn(e){return Rn((new DOMParser).parseFromString(e,"text/html").body)}function er(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function tr(e,t){return e&&e.querySelector(t)}function nr(e,t){return t?pn(e.querySelectorAll(t)):[]}function rr(e,t){Mn(e,t,!1)}function ir(e){return e.timeStamp}function or(e){return Cn(e)?e:e?e+"px":""}var ar="splide",sr="data-"+ar;function lr(e,t){if(!e)throw new Error("["+ar+"] "+(t||""))}
vendor: 4,945 bytes, line 2
2var cr=Math.min,ur=Math.max,dr=Math.floor,hr=Math.ceil,fr=Math.abs;function pr(e,t,n){return fr(e-t)<n}function gr(e,t,n,r){var i=cr(t,n),o=ur(t,n);return r?i<e&&e<o:i<=e&&e<=o}function mr(e,t,n){var r=cr(t,n),i=ur(t,n);return cr(ur(r,e),i)}function vr(e){return+(e>0)-+(e<0)}function yr(e,t){return Tn(t,(function(t){e=e.replace("%s",""+t)})),e}function br(e){return e<10?"0"+e:""+e}var xr={};function wr(e){return""+e+br(xr[e]=(xr[e]||0)+1)}function kr(){var e=[];function t(e,t,n){Tn(e,(function(e){e&&Tn(t,(function(t){t.split(" ").forEach((function(t){var r=t.split(".");n(e,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){t(n,r,(function(t,n,r){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,i,o):t.removeListener.bind(t,i);a?t.addEventListener(n,i,o):t.addListener(i),e.push([t,n,r,i,s])}))},unbind:function(n,r,i){t(n,r,(function(t,n,r){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==r||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var r,i=!0;return"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),e.dispatchEvent(r),r},destroy:function(){e.forEach((function(e){e[4]()})),fn(e)}}}var Cr="mounted",Sr="ready",_r="move",Ar="moved",Lr="click",Tr="active",Er="inactive",Or="visible",Mr="hidden",Pr="refresh",Dr="updated",Nr="resize",Ir="resized",Fr="scroll",Rr="scrolled",zr="destroy",jr="arrows:mounted",Hr="navigation:mounted",Yr="autoplay:play",Br="autoplay:pause",Wr="lazyload:loaded",Xr="sk",$r="sh",Gr="ei";function Vr(e){var t=e?e.event.bus:document.createDocumentFragment(),n=kr();return e&&e.event.on(zr,n.destroy),Hn(n,{bus:t,on:function(e,r){n.bind(t,Ln(e).join(" "),(function(e){r.apply(r,wn(e.detail)?e.detail:[])}))},off:gn(n.unbind,t),emit:function(e){n.dispatch(t,e,pn(arguments,1))}})}function Ur(e,t,n,r){var i,o,a=Date.now,s=0,l=!0,c=0;function u(){if(!l){if(s=e?cr((a()-i)/e,1):1,n&&n(s),s>=1&&(t(),i=a(),r&&++c>=r))return d();o=yn(u)}}function d(){l=!0}function h(){o&&cancelAnimationFrame(o),s=0,o=0,l=!0}return{start:function(t){t||h(),i=a()-(t?s*e:0),l=!1,o=yn(u)},rewind:function(){i=a(),s=0,n&&n(s)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}var qr="Arrow",Zr=qr+"Left",Kr=qr+"Right",Jr=qr+"Up",Qr=qr+"Down",ei="ttb",ti={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Jr,Kr],ArrowRight:[Qr,Zr]};function ni(e,t,n){return{resolve:function(e,t,r){var i="rtl"!==(r=r||n.direction)||t?r===ei?0:-1:1;return ti[e]&&ti[e][i]||e.replace(/width|left|right/i,(function(e,t){var n=ti[e.toLowerCase()][i]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}}var ri="role",ii="tabindex",oi="aria-",ai=oi+"controls",si=oi+"current",li=oi+"selected",ci=oi+"label",ui=oi+"labelledby",di=oi+"hidden",hi=oi+"orientation",fi=oi+"roledescription",pi=oi+"live",gi=oi+"busy",mi=oi+"atomic",vi=[ri,ii,"disabled",ai,si,ci,ui,di,hi,fi],yi=ar+"__",bi="is-",xi=ar,wi=yi+"track",ki=yi+"list",Ci=yi+"slide",Si=Ci+"--clone",_i=Ci+"__container",Ai=yi+"arrows",Li=yi+"arrow",Ti=Li+"--prev",Ei=Li+"--next",Oi=yi+"pagination",Mi=Oi+"__page",Pi=yi+"progress"+"__bar",Di=yi+"toggle",Ni=yi+"sr",Ii=bi+"initialized",Fi=bi+"active",Ri=bi+"prev",zi=bi+"next",ji=bi+"visible",Hi=bi+"loading",Yi=bi+"focus-in",Bi=bi+"overflow",Wi=[Fi,ji,Ri,zi,Hi,Yi,Bi],Xi={slide:Ci,clone:Si,arrows:Ai,arrow:Li,prev:Ti,next:Ei,pagination:Oi,page:Mi,spinner:yi+"spinner"};var $i="touchstart mousedown",Gi="touchmove mousemove",Vi="touchend touchcancel mouseup click";var Ui="slide",qi="loop",Zi="fade";function Ki(e,t,n,r){var i,o=Vr(e),a=o.on,s=o.emit,l=o.bind,c=e.Components,u=e.root,d=e.options,h=d.isNavigation,f=d.updateOnMove,p=d.i18n,g=d.pagination,m=d.slideFocus,v=c.Direction.resolve,y=qn(r,"style"),b=qn(r,ci),x=n>-1,w=Rn(r,"."+_i);function k(){var i=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");Xn(r,ci,yr(p.slideX,(x?n:t)+1)),Xn(r,ai,i),Xn(r,ri,m?"button":""),m&&Wn(r,fi)}function C(){i||S()}function S(){if(!i){var n=e.index;(o=_())!==Zn(r,Fi)&&(Mn(r,Fi,o),Xn(r,si,h&&o||""),s(o?Tr:Er,A)),function(){var t=function(){if(e.is(Zi))return _();var t=Kn(c.Elements.track),n=Kn(r),i=v("left",!0),o=v("right",!0);return dr(t[i])<=hr(n[i])&&dr(n[o])<=hr(t[o])}(),n=!t&&(!_()||x);e.state.is([4,5])||Xn(r,di,n||"");Xn(nr(r,d.focusableNodes||""),ii,n?-1:""),m&&Xn(r,ii,n?-1:0);t!==Zn(r,ji)&&(Mn(r,ji,t),s(t?Or:Mr,A));if(!t&&document.activeElement===r){var i=c.Slides.getAt(e.index);i&&Un(i.slide)}}(),Mn(r,Ri,t===n-1),Mn(r,zi,t===n+1)}var o}function _(){var r=e.index;return r===t||d.cloneStatus&&r===n}var A={index:t,slideIndex:n,slide:r,container:w,isClone:x,mount:function(){x||(r.id=u.id+"-slide"+br(t+1),Xn(r,ri,g?"tabpanel":"group"),Xn(r,fi,p.slide),Xn(r,ci,b||yr(p.slideLabel,[t+1,e.length]))),l(r,"click",gn(s,Lr,A)),l(r,"keydown",g
2n(s,Xr,A)),a([Ar,$r,Rr],S),a(Hr,k),f&&a(_r,C)},destroy:function(){i=!0,o.destroy(),rr(r,Wi),Wn(r,vi),Xn(r,"style",y),Xn(r,ci,b||"")},update:S,style:function(e,t,n){Gn(n&&w||r,e,t)},isWithin:function(n,r){var i=fr(n-t);return x||!d.rewind&&!e.is(qi)||(i=cr(i,e.length-i)),i<=r}};return A}var Ji="http://www.w3.org/2000/svg",Qi="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";var eo=sr+"-interval";var to={passive:!1,capture:!0};var no={Spacebar:" ",Right:Kr,Left:Zr,Up:Jr,Down:Qr};function ro(e){return e=Cn(e)?e:e.key,no[e]||e}var io="keydown";var oo=sr+"-lazy",ao=oo+"-srcset",so="["+oo+"], ["+ao+"]";var lo=[" ","Enter"];var co=Object.freeze({__proto__:null,Media:function(e,t,n){var r=e.state,i=n.breakpoints||{},o=n.reducedMotion||{},a=kr(),s=[];function l(e){e&&a.destroy()}function c(e,t){var n=matchMedia(t);a.bind(n,"change",u),s.push([e,n])}function u(){var t=r.is(7),i=n.direction,o=s.reduce((function(e,t){return Yn(e,t[1].matches?t[0]:{})}),{});Bn(n),d(o),n.destroy?e.destroy("completely"===n.destroy):t?(l(!0),e.mount()):i!==n.direction&&e.refresh()}function d(t,i,o){Yn(n,t),i&&Yn(Object.getPrototypeOf(n),t),!o&&r.is(1)||e.emit(Dr,n)}return{setup:function(){var e="min"===n.mediaQuery;zn(i).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){c(i[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),c(o,dn),u()},destroy:l,reduce:function(e){matchMedia(dn).matches&&(e?Yn(n,o):Bn(n,zn(o)))},set:d}},Direction:ni,Elements:function(e,t,n){var r,i,o,a=Vr(e),s=a.on,l=a.bind,c=e.root,u=n.i18n,d={},h=[],f=[],p=[];function g(){r=y("."+wi),i=Rn(r,"."+ki),lr(r&&i,"A track/list element is missing."),On(h,Fn(i,"."+Ci+":not(."+Si+")")),jn({arrows:Ai,pagination:Oi,prev:Ti,next:Ei,bar:Pi,toggle:Di},(function(e,t){d[t]=y("."+e)})),Hn(d,{root:c,track:r,list:i,slides:h}),function(){var e=c.id||wr(ar),t=n.role;c.id=e,r.id=r.id||e+"-track",i.id=i.id||e+"-list",!qn(c,ri)&&"SECTION"!==c.tagName&&t&&Xn(c,ri,t);Xn(c,fi,u.carousel),Xn(i,ri,"presentation")}(),v()}function m(e){var t=vi.concat("style");fn(h),rr(c,f),rr(r,p),Wn([r,i],t),Wn(c,e?t:["style",fi])}function v(){rr(c,f),rr(r,p),f=b(xi),p=b(wi),Pn(c,f),Pn(r,p),Xn(c,ci,n.label),Xn(c,ui,n.labelledby)}function y(e){var t=tr(c,e);return t&&function(e,t){if(kn(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!In(n,t);)n=n.parentElement;return n}(t,"."+xi)===c?t:void 0}function b(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===xi&&Fi]}return Hn(d,{setup:g,mount:function(){s(Pr,m),s(Pr,g),s(Dr,v),l(document,$i+" keydown",(function(e){o="keydown"===e.type}),{capture:!0}),l(c,"focusin",(function(){Mn(c,Yi,!!o)}))},destroy:m})},Slides:function(e,t,n){var r=Vr(e),i=r.on,o=r.emit,a=r.bind,s=t.Elements,l=s.slides,c=s.list,u=[];function d(){l.forEach((function(e,t){f(e,t,-1)}))}function h(){g((function(e){e.destroy()})),fn(u)}function f(t,n,r){var i=Ki(e,n,r,t);i.mount(),u.push(i),u.sort((function(e,t){return e.index-t.index}))}function p(e){return e?m((function(e){return!e.isClone})):u}function g(e,t){p(t).forEach(e)}function m(e){return u.filter(kn(e)?e:function(t){return Cn(e)?In(t.slide,e):En(Ln(e),t.index)})}return{mount:function(){d(),i(Pr,h),i(Pr,d)},destroy:h,update:function(){g((function(e){e.update()}))},register:f,get:p,getIn:function(e){var r=t.Controller,i=r.toIndex(e),o=r.hasFocus()?1:n.perPage;return m((function(e){return gr(e.index,i,i+o-1)}))},getAt:function(e){return m(e)[0]},add:function(e,t){Tn(e,(function(e){if(Cn(e)&&(e=Qn(e)),An(e)){var r=l[t];r?Nn(e,r):Dn(c,e),Pn(e,n.classes.slide),i=e,s=gn(o,Nr),u=nr(i,"img"),(d=u.length)?u.forEach((function(e){a(e,"load error",(function(){--d||s()}))})):s()}var i,s,u,d})),o(Pr)},remove:function(e){Jn(m(e).map((function(e){return e.slide}))),o(Pr)},forEach:g,filter:m,style:function(e,t,n){g((function(r){r.style(e,t,n)}))},getLength:function(e){return e?l.length:u.length},isEnough:function(){return u.length>n.perPage}}},Layout:function(e,t,n){var r,i,o,a=Vr(e),s=a.on,l=a.bind,c=a.emit,u=t.Slides,d=t.Direction.resolve,h=t.Elements,f=h.root,p=h.track,g=h.list,m=u.getAt,v=u.style;function y(){r=n.direction===ei,Gn(f,"maxWidth",or(n.width)),Gn(p,d("paddingLeft"),x(!1)),Gn(p,d("paddingRight"),x(!0)),b(!0)}function b(e){var t=Kn(f);(e||i.width!==t.width||i.height!==t.height)&&(Gn(p,"height",function(){var e="";r&&(lr(e=w(),"height or heightRatio is missing."),e="calc("+e+" - "+x(!1)+" - "+x(!0)+")");return e}()),v(d("marginRight"),or(n.gap)),v("width",n.autoWidth?null:or(n.fixedWidth)||(r?"":k())),v("height",or(n.fixedHeight)||(r?n.autoHeight?null:k():w()),!0),i=t,c(Ir),o!==(o=T())&&(Mn(f,Bi,o),c("overflow",o)))}function x(e){var t=n.padding,r=d(e?"right":"left");return t&&or(t[r]||(xn(t)?0:t))||"0px"}function w(){return or(n.height||Kn(g).width*n.heightRatio)}function k(){var e=or(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function C(){return Kn(g)[d("width")]}
vendor: 13,902 bytes, line 2
2function S(e,t){var n=m(e||0);return n?Kn(n.slide)[d("width")]+(t?0:L()):0}function _(e,t){var n=m(e);if(n){var r=Kn(n.slide)[d("right")],i=Kn(g)[d("left")];return fr(r-i)+(t?0:L())}return 0}function A(t){return _(e.length-1)-_(0)+S(0,t)}function L(){var e=m(0);return e&&parseFloat(Gn(e.slide,d("marginRight")))||0}function T(){return e.is(Zi)||A(!0)>C()}return{mount:function(){var e,t,n;y(),l(window,"resize load",(e=gn(c,Nr),n=Ur(t||0,e,null,1),function(){n.isPaused()&&n.start()})),s([Dr,Pr],y),s(Nr,b)},resize:b,listSize:C,slideSize:S,sliderSize:A,totalSize:_,getPadding:function(e){return parseFloat(Gn(p,d("padding"+(e?"Right":"Left"))))||0},isOverflow:T}},Clones:function(e,t,n){var r,i=Vr(e),o=i.on,a=t.Elements,s=t.Slides,l=t.Direction.resolve,c=[];function u(){o(Pr,d),o([Dr,Nr],f),(r=p())&&(!function(t){var r=s.get().slice(),i=r.length;if(i){for(;r.length<t;)On(r,r);On(r.slice(-t),r.slice(0,t)).forEach((function(o,l){var u=l<t,d=function(t,r){var i=t.cloneNode(!0);return Pn(i,n.classes.clone),i.id=e.root.id+"-clone"+br(r+1),i}(o.slide,l);u?Nn(d,r[0].slide):Dn(a.list,d),On(c,d),s.register(d,l-t+(u?0:i),o.index)}))}}(r),t.Layout.resize(!0))}function d(){h(),u()}function h(){Jn(c),fn(c),i.destroy()}function f(){var e=p();r!==e&&(r<e||!e)&&i.emit(Pr)}function p(){var r=n.clones;if(e.is(qi)){if(Sn(r)){var i=n[l("fixedWidth")]&&t.Layout.slideSize(0);r=i&&hr(Kn(a.track)[l("width")]/i)||n[l("autoWidth")]&&e.length||2*n.perPage}}else r=0;return r}return{mount:u,destroy:h}},Move:function(e,t,n){var r,i=Vr(e),o=i.on,a=i.emit,s=e.state.set,l=t.Layout,c=l.slideSize,u=l.getPadding,d=l.totalSize,h=l.listSize,f=l.sliderSize,p=t.Direction,g=p.resolve,m=p.orient,v=t.Elements,y=v.list,b=v.track;function x(){t.Controller.isBusy()||(t.Scroll.cancel(),w(e.index),t.Slides.update())}function w(e){k(A(e,!0))}function k(n,r){if(!e.is(Zi)){var i=r?n:function(n){if(e.is(qi)){var r=_(n),i=r>t.Controller.getEnd();(r<0||i)&&(n=C(n,i))}return n}(n);Gn(y,"transform","translate"+g("X")+"("+i+"px)"),n!==i&&a($r)}}function C(e,t){var n=e-T(t),r=f();return e-=m(r*(hr(fr(n)/r)||1))*(t?1:-1)}function S(){k(L(),!0),r.cancel()}function _(e){for(var n=t.Slides.get(),r=0,i=1/0,o=0;o<n.length;o++){var a=n[o].index,s=fr(A(a,!0)-e);if(!(s<=i))break;i=s,r=a}return r}function A(t,r){var i=m(d(t-1)-function(e){var t=n.focus;return"center"===t?(h()-c(e,!0))/2:+t*c(e)||0}(t));return r?function(t){n.trimSpace&&e.is(Ui)&&(t=mr(t,0,m(f(!0)-h())));return t}(i):i}function L(){var e=g("left");return Kn(y)[e]-Kn(b)[e]+m(u(!1))}function T(e){return A(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){r=t.Transition,o([Cr,Ir,Dr,Pr],x)},move:function(e,t,n,i){var o,l;e!==t&&(o=e>n,l=m(C(L(),o)),o?l>=0:l<=y[g("scrollWidth")]-Kn(b)[g("width")])&&(S(),k(C(L(),e>n),!0)),s(4),a(_r,t,n,e),r.start(t,(function(){s(3),a(Ar,t,n,e),i&&i()}))},jump:w,translate:k,shift:C,cancel:S,toIndex:_,toPosition:A,getPosition:L,getLimit:T,exceededLimit:function(e,t){t=Sn(t)?L():t;var n=!0!==e&&m(t)<m(T(!1)),r=!1!==e&&m(t)>m(T(!0));return n||r},reposition:x}},Controller:function(e,t,n){var r,i,o,a,s=Vr(e),l=s.on,c=s.emit,u=t.Move,d=u.getPosition,h=u.getLimit,f=u.toPosition,p=t.Slides,g=p.isEnough,m=p.getLength,v=n.omitEnd,y=e.is(qi),b=e.is(Ui),x=gn(A,!1),w=gn(A,!0),k=n.start||0,C=k;function S(){i=m(!0),o=n.perMove,a=n.perPage,r=E();var e=mr(k,0,v?r:i-1);e!==k&&(k=e,u.reposition())}function _(){r!==E()&&c(Gr)}function A(e,t){var n=o||(D()?1:a),i=L(k+n*(e?-1:1),k,!(o||D()));return-1===i&&b&&!pr(d(),h(!e),1)?e?0:r:t?i:T(i)}function L(t,s,l){if(g()||D()){var c=function(t){if(b&&"move"===n.trimSpace&&t!==k)for(var r=d();r===f(t,!0)&&gr(t,0,e.length-1,!n.rewind);)t<k?--t:++t;return t}(t);c!==t&&(s=t,t=c,l=!1),t<0||t>r?t=o||!gr(0,t,s,!0)&&!gr(r,s,t,!0)?y?l?t<0?-(i%a||a):i:t:n.rewind?t<0?r:0:-1:O(M(t)):l&&t!==s&&(t=O(M(s)+(t<s?-1:1)))}else t=-1;return t}function T(e){return y?(e+i)%i||0:e}function E(){for(var e=i-(D()||y&&o?1:a);v&&e-- >0;)if(f(i-1,!0)!==f(e,!0)){e++;break}return mr(e,0,i-1)}function O(e){return mr(D()?e:a*e,0,r)}function M(e){return D()?cr(e,r):dr((e>=r?i-1:e)/a)}function P(e){e!==k&&(C=k,k=e)}function D(){return!Sn(n.focus)||n.isNavigation}function N(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){S(),l([Dr,Pr,Gr],S),l(Ir,_)},go:function(e,t,n){if(!N()){var i=function(e){var t=k;if(Cn(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],i=n[1],o=n[2];"+"===i||"-"===i?t=L(k+ +(""+i+(+o||1)),k):">"===i?t=o?O(+o):x(!0):"<"===i&&(t=w(!0))}else t=y?e:mr(e,0,r);return t}(e),o=T(i);o>-1&&(t||o!==k)&&(P(o),u.move(i,o,C,n))}},scroll:function(e,n,i,o){t.Scroll.scroll(e,n,i,(function(){var e=T(u.toIndex(d()));P(v?cr(e,r):e),o&&o()}))},getNext:x,getPrev:w,getAdjacent:A,getEnd:E,setIndex:P,getIndex:function(e){return e?C:k},toIndex:O,toPage:M,toDest:function(e){var t=u.toIndex(e);return b?mr(t,0,r):t},hasFocus:D,isBusy:N}},Arrows:function(e,t,n){var r,i,o=Vr(e),a=o.on,s=o.bind,l=o.emit,c=n.classes,u=n.i18n,d=t.Elements,h=t.Controller,f=d.arrows,p=d.track,g=f,m=d.prev,v=d.next,y={};function b(){!function(){var e=n.arrows;!e||m&&v||(g=f||$n("div",c.arrows),m=C(!0),v=C(!1),r=!0,Dn(g,[m,v]),!f&&Nn(g,p));m&&v&&(Hn(y,{prev:m,next:v}),Vn(g,e?"":"none"),Pn(g,i=Ai+"--"+n.direction),e&&(a([Cr,Ar,Pr,Rr,Gr],S),s(v,"click",gn(k,">")),s(m,"click",gn(k,"<")),S(),Xn([m,v],ai,p.id),l(jr,m,v)))}(),a(Dr,x)}function x(){w(),b()}function w(){o.destroy(),rr(g,i),r?(Jn(f?[m,v]:g),m=v=null):Wn([m,v],vi)}function k(e){h.go(e,!0)}function C(e){return Qn('<button class="'+c.arrow+" "+(e?c.prev:c.next)+'" type="button"><svg xmlns="'+Ji+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(n.arrowPath||Qi)+'" />')}function S(){if(m&&v){var t=e.index,n=h.getPrev(),r=h.getNext(),i=n>-1&&t<n?u.last:u.prev,o=r>-1&&t>r?u.first:u.next;m.disabled=n<0,v.disabled=r<0,Xn(m,ci,i),Xn(v,ci,o),l("arrows:updated",m,v,n,r)}}return{arrows:y,mount:b,destroy:w,update:S}},Autoplay:function(e,t,n){var r,i,o=Vr(e),a=o.on,s=o.bind,l=o.emit,c=Ur(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&Gn(t,"width",100*e+"%"),l("autoplay:playing",e)})),u=c.isPaused,d=t.Elements,h=t.Elements,f=h.root,p=h.toggle,g=n.autoplay,m="pause"===g;function v(){u()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),i=r=m=!1,x(),l(Yr))}function y(e){void 0===e&&(e=!0),m=!!e,x(),u()||(c.pause(),l(Br))}function b(){m||(r||i?y(!1):v())}function x(){p&&(Mn(p,Fi,!m),Xn(p,ci,n.i18n[m?"play":"pause"]))}function w(e){var r=t.Slides.getAt(e);c.set(r&&+qn(r.slide,eo)||n.interval)}return{mount:function(){g&&(!function(){n.pauseOnHover&&s(f,"mouseenter mouseleave",(function(e){r="mouseenter"===e.type,b()}));n.pauseOnFocus&&s(f,"focusin focusout",(function(e){i="focusin"===e.type,b()}));p&&s(p,"click",(function(){m?v():y(!0)}));a([_r,Fr,Pr],c.rewind),a(_r,w)}(),p&&Xn(p,ai,d.track.id),m||v(),x())},destroy:c.cancel,play:v,pause:y,isPaused:u}},Cover:function(e,t,n){var r=Vr(e).on;function i(e){t.Slides.forEach((function(t){var n=Rn(t.container||t.slide,"img");n&&n.src&&o(e,n,t)}))}function o(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),Vn(t,e?"none":"")}return{mount:function(){n.cover&&(r(Wr,gn(o,!0)),r([Cr,Dr,Pr],gn(i,!0)))},destroy:gn(i,!1)}},Scroll:function(e,t,n){var r,i,o=Vr(e),a=o.on,s=o.emit,l=e.state.set,c=t.Move,u=c.getPosition,d=c.getLimit,h=c.exceededLimit,f=c.translate,p=e.is(Ui),g=1;function m(e,n,o,a,d){var f=u();if(b(),o&&(!p||!h())){var m=t.Layout.sliderSize(),x=vr(e)*m*dr(fr(e)/m)||0;e=c.toPosition(t.Controller.toDest(e%m))+x}var w=pr(f,e,1);g=1,n=w?0:n||ur(fr(e-f)/1.5,800),i=a,r=Ur(n,v,gn(y,f,e,d),1),l(5),s(Fr),r.start()}function v(){l(3),i&&i(),s(Rr)}function y(e,t,r,o){var a,s,l=u(),c=(e+(t-e)*(a=o,(s=n.easingFunc)?s(a):1-Math.pow(1-a,4))-l)*g;f(l+c),p&&!r&&h()&&(g*=.6,fr(c)<10&&m(d(h(!0)),600,!1,i,!0))}function b(){r&&r.cancel()}function x(){r&&!r.isPaused()&&(b(),v())}return{mount:function(){a(_r,b),a([Dr,Pr],x)},destroy:b,scroll:m,cancel:x}},Drag:function(e,t,n){var r,i,o,a,s,l,c,u,d=Vr(e),h=d.on,f=d.emit,p=d.bind,g=d.unbind,m=e.state,v=t.Move,y=t.Scroll,b=t.Controller,x=t.Elements.track,w=t.Media.reduce,k=t.Direction,C=k.resolve,S=k.orient,_=v.getPosition,A=v.exceededLimit,L=!1;function T(){var e=n.drag;j(!e),a="free"===e}function E(e){if(l=!1,!c){var t=z(e);r=e.target,i=n.noDrag,In(r,"."+Mi+", ."+Li)||i&&In(r,i)||!t&&e.button||(b.isBusy()?er(e,!0):(u=t?x:window,s=m.is([4,5]),o=null,p(u,Gi,O,to),p(u,Vi,M,to),v.cancel(),y.cancel(),D(e)))}var r,i}function O(t){if(m.is(6)||(m.set(6),f("drag")),t.cancelable)if(s){v.translate(r+N(t)/(L&&e.is(Ui)?5:1));var i=I(t)>200,o=L!==(L=A());(i||o)&&D(t),l=!0,f("dragging"),er(t)}else(function(e){return fr(N(e))>fr(N(e,!0))})(t)&&(s=function(e){var t=n.dragMinThreshold,r=xn(t),i=r&&t.mouse||0,o=(r?t.touch:+t)||10;return fr(N(e))>(z(e)?o:i)}(t),er(t))}function M(r){m.is(6)&&(m.set(3),f("dragged")),s&&(!function(r){var i=function(t){if(e.is(qi)||!L){var n=I(t);if(n&&n<200)return N(t)/n}return 0}(r),o=function(e){return _()+vr(e)*cr(fr(e)*(n.flickPower||600),a?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(i),s=n.rewind&&n.rewindByDrag;w(!1),a?b.scroll(o,0,n.snap):e.is(Zi)?b.go(S(vr(i))<0?s?"<":"-":s?">":"+"):e.is(Ui)&&L&&s?b.go(A(!0)?">":"<"):b.go(b.toDest(o),!0);w(!0)}(r),er(r)),g(u,Gi,O),g(u,Vi,M),s=!1}function P(e){!c&&l&&er(e,!0)}function D(e){o=i,i=e,r=_()}function N(e,t){return R(e,t)-R(F(e),t)}function I(e){return ir(e)-ir(F(e))}function F(e){return i===e&&o||i}function R(e,t){return(z(e)?e.changedTouches[0]:e)["page"+C(t?"Y":"X")]}function z(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function j(e){c=e}return{mount:function(){p(x,Gi,vn,to),p(x,Vi,vn,to),p(x,$i,E,to),p(x,"click",P,{capture:!0}),p(x,"dragstart",er),h([Cr,Dr],T)},disable:j,isDragging:function(){return s}}},Keyboard:function(e,t,n){var r,i,o=Vr(e),a=o.on,s=o.bind,l=o.unbind,c=e.root,u=t.Direction.resolve;function d(){var e=n.keyboard;e&&(r="global"===e?window:c,s(r,io,p))}function h(){l(r,io)}function f(){var e=i;i=!0,mn((function(){i=e}))}function p(t){if(!i){var n=ro(t);n===u(Zr)?e.go("<"):n===u(Kr)&&e.go(">")}}return{mount:function(){d(),a(Dr,h),a(Dr,d),a(_r,f)},destroy:h,disable:function(e){i=e}}},LazyLoad:function(e,t,n){var r=Vr(e),i=r.on,o=r.off,a=r.bind,s=r.emit,l="sequential"===n.lazyLoad,c=[Ar,Rr],u=[];function d(){fn(u),t.Slides.forEach((function(e){nr(e.slide,so).forEach((function(t){var r=qn(t,oo),i=qn(t,ao);if(r!==t.src||i!==t.srcset){var o=n.classes.spinner,a=t.parentElement,s=Rn(a,"."+o)||$n("span",o,a);u.push([t,e,s]),t.src||Vn(t,"none")}}))})),l?g():(o(c),i(c,h),h())}function h(){(u=u.filter((function(t){var r=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,r)||f(t)}))).length||o(c)}function f(e){var t=e[0];Pn(e[1].slide,Hi),a(t,"load error",gn(p,e)),Xn(t,"src",qn(t,oo)),Xn(t,"srcset",qn(t,ao)),Wn(t,oo),Wn(t,ao)}function p(e,t){var n=e[0],r=e[1];rr(r.slide,Hi),"error"!==t.type&&(Jn(e[2]),Vn(n,""),s(Wr,n,r),s(Nr)),l&&g()}function g(){u.length&&f(u.shift())}return{mount:function(){n.lazyLoad&&(d(),i(Pr,d))},destroy:gn(fn,u),check:h}},Pagination:function(e,t,n){var r,i,o=Vr(e),a=o.on,s=o.emit,l=o.bind,c=t.Slides,u=t.Elements,d=t.Controller,h=d.hasFocus,f=d.getIndex,p=d.go,g=t.Direction.resolve,m=u.pagination,v=[];function y(){r&&(Jn(m?pn(r.children):r),rr(r,i),fn(v),r=null),o.destroy()}function b(e){p(">"+e,!0)}function x(e,t){var n=v.length,r=ro(t),i=w(),o=-1;r===g(Kr,!1,i)?o=++e%n:r===g(Zr,!1,i)?o=(--e+n)%n:"Home"===r?o=0:"End"===r&&(o=n-1);var a=v[o];a&&(Un(a.button),p(">"+o),er(t,!0))}function w(){return n.paginationDirection||n.direction}function k(e){return v[d.toPage(e)]}function C(){var e=k(f(!0)),t=k(f());if(e){var n=e.button;rr(n,Fi),Wn(n,li),Xn(n,ii,-1)}if(t){var i=t.button;Pn(i,Fi),Xn(i,li,!0),Xn(i,ii,"")}s("pagination:updated",{list:r,items:v},e,t)}return{items:v,mount:function t(){y(),a([Dr,Pr,Gr],t);var o=n.pagination;m&&Vn(m,o?"":"none"),o&&(a([_r,Fr,Rr],C),function(){var t=e.length,o=n.classes,a=n.i18n,s=n.perPage,f=h()?d.getEnd()+1:hr(t/s);Pn(r=m||$n("ul",o.pagination,u.track.parentElement),i=Oi+"--"+w()),Xn(r,ri,"tablist"),Xn(r,ci,a.select),Xn(r,hi,w()===ei?"vertical":"");for(var p=0;p<f;p++){var g=$n("li",null,r),y=$n("button",{class:o.page,type:"button"},g),k=c.getIn(p).map((function(e){return e.slide.id})),C=!h()&&s>1?a.pageX:a.slideX;l(y,"click",gn(b,p)),n.paginationKeyboard&&l(y,"keydown",gn(x,p)),Xn(g,ri,"presentation"),Xn(y,ri,"tab"),Xn(y,ai,k.join(" ")),Xn(y,ci,yr(C,p+1)),Xn(y,ii,-1),v.push({li:g,button:y,page:p})}}(),C(),s("pagination:mounted",{list:r,items:v},k(e.index)))},destroy:y,getAt:k,update:C}},Sync:function(e,t,n){var r=n.isNavigation,i=n.slideFocus,o=[];function a(){var t,n;e.splides.forEach((function(t){t.isParent||(l(e,t.splide),l(t.splide,e))})),r&&(t=Vr(e),(n=t.on)(Lr,u),n(Xr,d),n([Cr,Dr],c),o.push(t),t.emit(Hr,e.splides))}function s(){o.forEach((function(e){e.destroy()})),fn(o)}function l(e,t){var n=Vr(e);n.on(_r,(function(e,n,r){t.go(t.is(qi)?r:e)})),o.push(n)}function c(){Xn(t.Elements.list,hi,n.direction===ei?"vertical":"")}function u(t){e.go(t.index)}function d(e,t){En(lo,ro(t))&&(u(e),er(t))}return{setup:gn(t.Media.set,{slideFocus:Sn(i)?r:i},!0),mount:a,destroy:s,remount:function(){s(),a()}}},Wheel:function(e,t,n){var r=Vr(e).bind,i=0;function o(r){if(r.cancelable){var o=r.deltaY,a=o<0,s=ir(r),l=n.wheelMinThreshold||0,c=n.wheelSleep||0;fr(o)>l&&s-i>c&&(e.go(a?"<":">"),i=s),function(r){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(r)}(a)&&er(r)}}return{mount:function(){n.wheel&&r(t.Elements.track,"wheel",o,to)}}},Live:function(e,t,n){var r=Vr(e).on,i=t.Elements.track,o=n.live&&!n.isNavigation,a=$n("span",Ni),s=Ur(90,gn(l,!1));function l(e){Xn(i,gi,e),e?(Dn(i,a),s.start()):(Jn(a),s.cancel())}function c(e){o&&Xn(i,pi,e?"off":"polite")}return{mount:function(){o&&(c(!t.Autoplay.isPaused()),Xn(i,mi,!0),a.textContent="…",r(Yr,gn(c,!0)),r(Br,gn(c,!1)),r([Ar,Rr],gn(l,!0))
2)},disable:c,destroy:function(){Wn(i,[pi,mi,gi]),Jn(a)}}}}),uo={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Xi,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function ho(e,t,n){var r=t.Slides;function i(){r.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){Vr(e).on([Cr,Pr],i)},start:function(e,t){r.style("transition","opacity "+n.speed+"ms "+n.easing),mn(t)},cancel:vn}}function fo(e,t,n){var r,i=t.Move,o=t.Controller,a=t.Scroll,s=t.Elements.list,l=gn(Gn,s,"transition");function c(){l(""),a.cancel()}return{mount:function(){Vr(e).bind(s,"transitionend",(function(e){e.target===s&&r&&(c(),r())}))},start:function(t,s){var c=i.toPosition(t,!0),u=i.getPosition(),d=function(t){var r=n.rewindSpeed;if(e.is(Ui)&&r){var i=o.getIndex(!0),a=o.getEnd();if(0===i&&t>=a||i>=a&&0===t)return r}return n.speed}(t);fr(c-u)>=1&&d>=1?n.useScroll?a.scroll(c,d,!1,s):(l("transform "+d+"ms "+n.easing),i.translate(c,!0),r=s):(i.jump(t),s())},cancel:c}}var po=function(){function e(t,n){this.event=Vr(),this.Components={},this.state=function(e){var t=e;return{set:function(e){t=e},is:function(e){return En(Ln(e),t)}}}(1),this.splides=[],this._o={},this._E={};var r=Cn(t)?tr(document,t):t;lr(r,r+" is invalid."),this.root=r,n=Yn({label:qn(r,ci)||"",labelledby:qn(r,ui)||""},uo,e.defaults,n||{});try{Yn(n,JSON.parse(qn(r,sr)))}catch(e){lr(!1,"Invalid JSON")}this._o=Object.create(Yn({},n))}var t,n,r,i=e.prototype;return i.mount=function(e,t){var n=this,r=this.state,i=this.Components;return lr(r.is([1,7]),"Already mounted!"),r.set(1),this._C=i,this._T=t||this._T||(this.is(Zi)?ho:fo),this._E=e||this._E,jn(Hn({},co,this._E,{Transition:this._T}),(function(e,t){var r=e(n,i,n._o);i[t]=r,r.setup&&r.setup()})),jn(i,(function(e){e.mount&&e.mount()})),this.emit(Cr),Pn(this.root,Ii),r.set(3),this.emit(Sr),this},i.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},i.go=function(e){return this._C.Controller.go(e),this},i.on=function(e,t){return this.event.on(e,t),this},i.off=function(e){return this.event.off(e),this},i.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(pn(arguments,1))),this},i.add=function(e,t){return this._C.Slides.add(e,t),this},i.remove=function(e){return this._C.Slides.remove(e),this},i.is=function(e){return this._o.type===e},i.refresh=function(){return this.emit(Pr),this},i.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?Vr(this).on(Sr,this.destroy.bind(this,e)):(jn(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(zr),t.destroy(),e&&fn(this.splides),n.set(7)),this},t=e,n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}],n&&un(t.prototype,n),r&&un(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),go=po;go.defaults={},go.STATES=hn;function mo(e,t,n){return Array.prototype.slice.call(e,t,n)}function vo(e){return e.bind.apply(e,[null].concat(mo(arguments,1)))}function yo(e){return requestAnimationFrame(e)}function bo(e,t){return typeof t===e}var xo=Array.isArray;function wo(e){return xo(e)?e:[e]}function ko(e,t){wo(e).forEach(t)}vo(bo,"function"),vo(bo,"string"),vo(bo,"undefined");var Co=Object.keys;function So(e){return mo(arguments,1).forEach((function(t){!function(e,t,n){if(e){var r=Co(e);r=n?r.reverse():r;for(var i=0;i<r.length;i++){var o=r[i];if("__proto__"!==o&&!1===t(e[o],o))break}}}(t,(function(n,r){e[r]=t[r]}))})),e}var _o=Math.min;var Ao="move",Lo="moved",To="updated",Eo="drag",Oo="dragged",Mo="scroll",Po="scrolled";function Do(e){var t=e?e.event.bus:document.createDocumentFragment(),n=function(){var e=[];function t(e,t,n){ko(e,(function(e){e&&ko(t,(function(t){t.split(" ").forEach((function(t){var r=t.split(".");n(e,r[0],r[1])}))}))}))}return{bind:function(n,r,i,o){t(n,r,(function(t,n,r){var a="addEventListener"in t,s=a?t.removeEventListener.bind(t,n,i,o):t.removeListener.bind(t,i);a?t.addEventListener(n,i,o):t.addListener(i),e.push([t,n,r,i,s])}))},unbind:function(n,r,i){t(n,r,(function(t,n,r){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==r||i&&e[3]!==i)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var r,i=!0;return"function"==typeof CustomEvent?r=new CustomEvent(t,{bubbles:i,detail:n}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,i,!1,n),e.dispatchEvent(r),r},destroy:function(){e.forEach((function(e){e[4]()})),e.length=0}}}();return e&&e.event.on("destroy",n.destroy),So(n,{bus:t,on:function(e,r){n.bind(t,wo(e).join(" "),(function(e){r.apply(r,xo(e.detail)?e.detail
2:[])}))},off:vo(n.unbind,t),emit:function(e){n.dispatch(t,e,mo(arguments,1))}})}function No(e,t,n,r){var i,o,a=Date.now,s=0,l=!0,c=0;function u(){if(!l){if(s=e?_o((a()-i)/e,1):1,n&&n(s),s>=1&&(t(),i=a(),r&&++c>=r))return d();yo(u)}}function d(){l=!0}function h(){o&&cancelAnimationFrame(o),s=0,o=0,l=!0}return{start:function(t){!t&&h(),i=a()-(t?s*e:0),l=!1,yo(u)},rewind:function(){i=a(),s=0,n&&n(s)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}var Io="slide";function Fo(e,t,n){return Array.prototype.slice.call(e,t,n)}function Ro(e){return e.bind(null,...Fo(arguments,1))}function zo(e,t){return typeof t===e}function jo(e){return!Bo(e)&&zo("object",e)}const Ho=Array.isArray;Ro(zo,"function"),Ro(zo,"string");const Yo=Ro(zo,"undefined");function Bo(e){return null===e}function Wo(e,t){var n;(n=e,Ho(n)?n:[n]).forEach(t)}const Xo=Object.keys;function $o(e,t,n){if(e){let r=Xo(e);r=n?r.reverse():r;for(let n=0;n<r.length;n++){const i=r[n];if("__proto__"!==i&&!1===t(e[i],i))break}}return e}function Go(e){return Fo(arguments,1).forEach((t=>{$o(t,((n,r)=>{e[r]=t[r]}))})),e}function Vo(e,t,n){jo(t)?$o(t,((t,n)=>{Vo(e,n,t)})):Wo(e,(e=>{Bo(n)||""===n?function(e,t){Wo(e,(e=>{Wo(t,(t=>{e&&e.removeAttribute(t)}))}))}(e,t):e.setAttribute(t,String(n))}))}const{min:Uo,max:qo,floor:Zo,ceil:Ko,abs:Jo}=Math;const Qo={speed:1,autoStart:!0,pauseOnHover:!0,pauseOnFocus:!0},ea={startScroll:"Start auto scroll",pauseScroll:"Pause auto scroll"};function ta(e,t,n){const{on:r,off:i,bind:o,unbind:a}=Do(e),{translate:s,getPosition:l,toIndex:c,getLimit:u}=t.Move,{setIndex:d,getIndex:h}=t.Controller,{orient:f}=t.Direction,{toggle:p}=t.Elements,{Live:g}=t,{root:m}=e,v=function(e,t){var n;return function(){n||(n=No(t||0,(function(){e(),n=null}),null,1)).start()}}(t.Arrows.update,500);let y,b,x,w,k,C,S={};function _(){e.is("fade")||y||!1===n.autoScroll||(y=No(0,M),function(){S.pauseOnHover&&o(m,"mouseenter mouseleave",(e=>{x="mouseenter"===e.type,O()}));S.pauseOnFocus&&o(m,"focusin focusout",(e=>{w="focusin"===e.type,O()}));S.useToggleButton&&o(p,"click",(()=>{b?T():E()}));r(To,L),r([Ao,Eo,Mo],(()=>{k=!0,E(!1)})),r([Lo,Oo,Po],(()=>{k=!1,O()}))}(),S.autoStart&&("complete"===document.readyState?T():o(window,"load",T)))}function A(){y&&(y.cancel(),y=null,C=void 0,i([Ao,Eo,Mo,Lo,Po]),a(m,"mouseenter mouseleave focusin focusout"),a(p,"click"))}function L(){const{autoScroll:e}=n;!1!==e?(S=Go({},S,jo(e)?e:{}),_()):A(),y&&!Yo(C)&&s(C)}function T(){D()&&(y.start(!0),g.disable(!0),w=x=b=!1,P())}function E(e=!0){b||(b=e,P(),D()||(y.pause(),g.disable(!1)))}function O(){b||(x||w||k?E(!1):T())}function M(){const r=l(),i=function(t){const n=S.speed||1;t+=f(n),e.is(Io)&&(t=function(e,t,n){const r=Uo(t,n),i=qo(t,n);return Uo(qo(r,e),i)}(t,u(!1),u(!0)));return t}(r);r!==i?(s(i),function(r){const{length:i}=e,o=(c(r)+i)%i;o!==h()&&(d(o),t.Slides.update(),t.Pagination.update(),"nearby"===n.lazyLoad&&t.LazyLoad.check())}(C=l())):(E(!1),S.rewind&&e.go(S.speed>0?0:t.Controller.getEnd())),v()}function P(){if(p){const i=b?"startScroll":"pauseScroll";t="is-active",r=!b,(e=p)&&Wo(t,(t=>{t&&e.classList[r?"add":"remove"](t)})),Vo(p,"aria-label",n.i18n[i]||ea[i])}var e,t,r}function D(){return!y||y.isPaused()}return{setup:function(){const{autoScroll:e}=n;S=Go({},Qo,jo(e)?e:{})},mount:_,destroy:A,play:T,pause:E,isPaused:D}}var na=n(5072),ra=n.n(na),ia=n(3780),oa={insert:"head",singleton:!1};ra()(ia.A,oa);ia.A.locals;n(8470);r.default.use(s()),r.default.use(Nt()),r.default.use(o()),r.default.use(Pt),r.default.use(Rt()),c().defaults.headers.common["X-Requested-With"]="XMLHttpRequest",c().defaults.headers.common["X-CSRF-TOKEN"]=Laravel.csrfToken,r.default.component("v-select",jt()),r.default.component("flash-message",n(2306).A),r.default.component("tags-field",n(7731).A),r.default.component("type-and-tags-fields",n(3023).A),r.default.component("checkout",n(6989).A),r.default.component("variant-assets",n(1425).A),r.default.component("variant-thumbnail",n(9809).A),r.default.component("country-select",n(2825).A),r.default.component("calendar",n(2509).A),r.default.component("seller-dashboard-metrics",n(5979).A),r.default.component("account-licenses",n(6900).A),r.default.component("account-license-subscriptions",n(3813).A),r.default.component("site-licenses",n(5891).A),r.default.component("site-domains-field",n(9592).A),r.default.component("partner-form",n(8123).A),r.default.component("partner-include-on-calls",n(7475).A),r.default.component("partner-update-discord",
2n(8927).A),r.default.component("specialties-field",n(7683).A),r.default.component("expertise-field",n(8182).A),r.default.component("seller-github-oauth",n(6854).A),r.default.component("seller-github-repository",n(2177).A),r.default.component("seller-stripe-connect-oauth",n(6731).A),r.default.component("seller-email-blast-preview",n(1794).A),r.default.component("register-form",n(9319).A),r.default.component("buckshot-player",n(2136).A);var aa=new r.default;window.SVGInjector=new(Yt()),window.Cookies=Jt,window.ApexCharts=en(),window.SimpleMDE=rn(),Object.defineProperties(r.default.prototype,{$bus:{get:function(){return aa}},$user:{get:function(){return Laravel.currentUser}},$flash:{get:function(){return It}}}),window.CodeMirror=an(),document.addEventListener("DOMContentLoaded",(function(){if(go.defaults={type:"loop",drag:"free",perPage:4,speed:2e3,autoScroll:{speed:1,autoStart:!0,pauseOnHover:!1},breakpoints:{640:{perPage:2},1040:{perPage:3},1200:{perPage:4}}},document.querySelector(".splide")){var e=new go("#splide-1"),t=new go("#splide-2",{autoScroll:{speed:-1,autoStart:!0,pauseOnHover:!1}});e.mount({AutoScroll:ta}),t.mount({AutoScroll:ta})}})),r.default.config.ignoredElements=[/^ui-/],new r.default({el:"#app",mounted:function(){Ut("[data-zoomable]",{margin:64,background:"#191A1B"}),Zt()(document.querySelectorAll(".elastic"))}}),document.addEventListener("DOMContentLoaded",cn()),document.addEventListener("alpine:init",(function(){window.Alpine.data("SiteCart",k),window.Alpine.data("LocalizedDate",(function(){return{get localizedDate(){var e=this.$el.dataset.timestamp,t=new Date(1e3*e),n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Intl.DateTimeFormat("en",{month:"long",day:"numeric",year:"numeric",timeZone:n}).format(t),i=new Intl.DateTimeFormat("en",{hour:"numeric",minute:"2-digit",timeZone:n}).format(t);return"".concat(r," at ").concat(i)}}})),window.Alpine.data("StatamicSparkline",(function(){var e,t,n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{series:null!==(e=r.series)&&void 0!==e?e:[],label:null!==(t=r.label)&&void 0!==t?t:"",color:null!==(n=r.color)&&void 0!==n?n:"#6D28D9",chart:null,get hasSpark(){return(0,tn.D)(this.series)},init:function(){if(this.hasSpark&&this.$refs.spark){var e=(0,tn.U)({series:this.series,label:this.label,color:this.color});this.chart=new(en())(this.$refs.spark,e),this.chart.render()}},destroy:function(){this.chart&&(this.chart.destroy(),this.chart=null)}}})),window.Alpine.data("DioramaParallax",(function(){return{enabled:window.matchMedia("(pointer: fine)").matches&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches,move:function(e){if(this.enabled){var t=this.$el.getBoundingClientRect();this.$el.style.setProperty("--par-x",((e.clientX-t.left)/t.width-.5).toFixed(3)),this.$el.style.setProperty("--par-y",((e.clientY-t.top)/t.height-.5).toFixed(3))}},reset:function(){this.$el.style.setProperty("--par-x",0),this.$el.style.setProperty("--par-y",0)}}}))})),document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("snowfall-container");if(e&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches)for(var t=0;t<30;t++){var n=document.createElement("div");n.className="snowflake",n.textContent="❄️",n.style.left=100*Math.random()+"%",n.style.animationDuration=10*Math.random()+10+"s",n.style.animationDelay=10*Math.random()+"s",n.style.fontSize=.5*Math.random()+.75+"em",e.appendChild(n)}}))},3782:(e,t,n)=>{"use strict";function r(e){var t=e.series,n=e.label,r=e.color,i=void 0===r?"#FF269E":r,o=e.formatValue;return{series:[{name:n,data:t}],chart:{type:"area",width:"100%",height:52,sparkline:{enabled:!0},animations:{enabled:!1}},grid:{padding:{top:6,bottom:10,left:0,right:0}},yaxis:{show:!1,labels:{show:!1},axisBorder:{show:!1},axisTicks:{show:!1},tooltip:{enabled:!1},max:function(e){if(null!=e&&Number.isFinite(Number(e))){var t=Number(e);if(!(t<=0))return t+Math.max(.12*t,2)}},min:function(e){if(null!=e&&Number.isFinite(Number(e))){var t=Number(e);return t>0?t-Math.max(.06*t,1):0}}},stroke:{width:2,curve:"smooth",colors:[i]},fill:{type:"gradient",gradient:{shade:"light",type:"vertical",shadeIntensity:.4,gradientToColors:[i],inverseColors:!1,opacityFrom:.45,opacityTo:0,stops:[0,100]}},tooltip:{enabled:!0,fixed:{enabled:!1},x:{show:!1},y:{formatter:void 0===o?function(e){return Math.round(Number(e)).toLocaleStr
2ing()}:o,title:{formatter:function(){return"".concat(n,": ")}}},marker:{show:!1}}}}function i(e){return Array.isArray(e)&&e.length>1&&e.some((function(e){return Number(e)>0}))}n.d(t,{D:()=>i,U:()=>r})},7834:function(e,t,n){"use strict";var r,i,o;function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}i=[n(4692),n(5093)],void 0===(o="function"==typeof(r=function(e,t){function n(n){var r=this;this.settings=n,this.calIsOpen=!1,this.presetIsOpen=!1,this.sameDayRange=n.same_day_range||!1,this.element=n.element||e(".daterange"),this.selected=null,this.type=this.element.hasClass("daterange--single")?"single":"double",this.required=0!=n.required,this.format=n.format||{},this.format.input=n.format&&n.format.input||"MMMM D, YYYY",this.format.preset=n.format&&n.format.preset||"ll",this.format.jump_month=n.format&&n.format.jump_month||"MMMM",this.format.jump_year=n.format&&n.format.jump_year||"YYYY",this.placeholder=n.placeholder||this.format.input,this.days_array=n.days_array&&7==n.days_array.length?n.days_array:t.weekdaysMin(),this.orig_start_date=null,this.orig_end_date=null,this.orig_current_date=null,this.earliest_date=n.earliest_date?t(n.earliest_date):t("1900-01-01","YYYY-MM-DD"),this.latest_date=n.latest_date?t(n.latest_date):t("2900-12-31","YYYY-MM-DD"),this.end_date=n.end_date?t(n.end_date):"double"==this.type?t():null,this.start_date=n.start_date?t(n.start_date):"double"==this.type?this.end_date.clone().subtract(1,"month"):null,this.current_date=n.current_date?t(n.current_date):"single"==this.type?t():null,this.presets=0!=n.presets&&"single"!=this.type,this.callback=n.callback||this.calendarSetDates,this.calendarHTML(this.type),e(".dr-presets",this.element).click((function(){r.presetToggle()})),e(".dr-list-item",this.element).click((function(){var t=e(".dr-item-aside",this).data("start"),n=e(".dr-item-aside",this).data("end");r.start_date=r.calendarCheckDate(t),r.end_date=r.calendarCheckDate(n),r.calendarSetDates(),r.presetToggle(),r.calendarSaveDates()})),e(".dr-date",this.element).on({click:function(){r.calendarOpen(this)},keyup:function(e){9!=e.keyCode||r.calIsOpen||r.start_date||r.end_date||r.calendarOpen(this)},keydown:function(n){switch(n.keyCode){case 9:e(r.selected).hasClass("dr-date-start")?(n.preventDefault(),r.calendarCheckDates(),r.calendarSetDates(),e(".dr-date-end",r.element).trigger("click")):(r.calendarCheckDates(),r.calendarSetDates(),r.calendarSaveDates(),r.calendarClose("force"));break;case 13:n.preventDefault(),r.calendarCheckDates(),r.calendarSetDates(),r.calendarSaveDates(),r.calendarClose("force");break;case 27:r.calendarSetDates(),r.calendarClose("force");break;case 38:n.preventDefault();var i="day";n.shiftKey&&(i="week"),n.metaKey&&(i="month");var o=t(r.current_date).subtract(1,i);e(this).html(o.format(r.format.input)),r.current_date=o;break;case 40:n.preventDefault(),i="day",n.shiftKey&&(i="week"),n.metaKey&&(i="month");var a=t(r.current_date).add(1,i);e(this).html(a.format(r.format.input)),r.current_date=a}}}),e(".dr-month-switcher i",this.element).click((function(){var n=e(".dr-month-switcher span",r.element).data("month"),i=e(".dr-year-switcher span",r.element).data("year"),o=t([i,n,1]),a=o.clone().subtract(1,"month"),s=o.clone().add(1,"month").startOf("day");e(this).hasClass("dr-left")?r.calendarOpen(r.selected,a):e(this).hasClass("dr-right")&&r.calendarOpen(r.selected,s)})),e(".dr-year-switcher i",this.element).click((function(){var n=e(".dr-month-switcher span",r.element).data("month"),i=e(".dr-year-switcher span",r.element).data("year"),o=t([i,n,1]),a=o.clone().subtract(1,"year"),s=o.clone().add(1,"year").startOf("day");e(this).hasClass("dr-left")?r.calendarOpen(r.selected,a):e(this).hasClass("dr-right")&&r.calendarOpen(r.selected,s)})),e(".dr-dates-dash",this.element).click((function(){e(".dr-date-start",r.element).trigger("click")})),this.element.on("click",(function(){document.addEventListener("click",(function(t){e(t.target).parents(".daterange").length||(r.presetIsOpen&&r.presetToggle(),r.calIsOpen&&(e(r.selected).hasClass("dr-date-end")&&r.calendarSaveDates(),r.calendarSetDates(),r.calendarClose("force")))}))}))}return n.prototype.presetToggle=function(){0==this.presetIsOpen?(this.orig_start_date=this.start_date,this.orig_end_date=this.end_date,this.orig_current_date=this.current_date,this.presetIsOpen=!0):this.presetIsOpen&&(this.presetIsOpen=!1),1==this.calIsOpen&&this.calendarClose(),e(".dr-preset-list",this.element).slideToggle(200),e(".dr-input",this.element).toggleClass("dr-active"),e(".dr-presets",this.element).toggleClass("dr-active"),this.element.toggleClass("dr-active")},n.prototype.presetCreate=function(){var n=this,r=e('<ul class="dr-preset-list" style="display: none;"></ul>'),i="object"===a(n.settings.presets)?n.settings.presets:[{label:"Last 30 days",start:t(n.latest_date).subtract(29,"days"),end:n.latest_date},{label:"Last month",start:t(n.latest_date).subtract(1,"month").startOf("month"),end:t(n.latest_date).subtract(1,"month").endOf("month")},{label:"Last 3 months",start:t(n.latest_date).subtract(3,"month").startOf("month"),end:t(n.latest_date).subtract(1,"month").endOf("month")},{label:"Last 6 months",start:t(n.latest_date).subtract(6,"month").startOf("month"),end:t(n.latest_date).subtract(1,"month").endOf("month")},{label:"Last year",start:t(n.latest_date).subtract(1,"year").startOf("year"),end:t(n.latest_date).subtract(1,"year").endOf("year")},{label:"All time",start:n.earliest_date,end:n.latest_date}];return t(n.latest_date).diff(t(n.latest_date).startOf("month"),"days")>=6&&"object"!==a(n.settings.presets)&&i.splice(1,0,{label:"This month",start:t(n.latest_date).startOf("month"),end:n.latest_date}),e.each(i,(function(i,o){t(o.start).isBefore(n.earliest_date)&&(o.start=n.earliest_date),t(o.start).isAfter(n.latest_date)&&(o.start=n.latest_date),t(o.end).isBefore(n.earliest_date)&&(o.end=n.earliest_date),t(o.end).isAfter(n.latest_date)&&(o.end=n.latest_date);var a=t(o.start).toISOString(),s=t(o.end).toISOString(),l=t(o.start).format(n.format.preset)+" &ndash; "+t(o.end).format(n.format.preset);if(e(".dr-preset-list",n.element).length){var c=e(".dr-preset-list .dr-list-item:nth-of-type("+(i+1)+") .dr-item-aside",n.element);c.data("start",a),c.data("end",s),c.html(l)}else r.append('<li class="dr-list-item">'+o.label+'<span class="dr-item-aside" data-start="'+a+'" data-end="'+s+'">'+l+"</span></li>")})),r},n.prototype.calendarSetDates=function(){if(e(".dr-date-start",this.element).html(t(this.start_date).format(this.format.input)),e(".dr-date-end",this.element).html(t(this.end_date).format(this.format.input)),!this.start_date&&!this.end_date){var n=e(".dr-date",this.element).html(),r=t(this.current_date).format(this.format.input);0!==n.length||this.required||(r=""),n!=r&&e(".dr-date",this.element).html(r)}},n.prototype.calendarSaveDates=function(){if("double"===this.type){if(!t(this.orig_end_date).isSame(this.end_date)||!t(this.orig_start_date).isSame(this.start_date))return this.callback()}else if(!this.required||!t(this.orig_current_date).isSame(this.current_date))return this.callback()},n.prototype.calendarCheckDate=function(e){if("today"===e||"now"===e)return t().isAfter(this.latest_date)?this.latest_date:t().isBefore(this.earliest_date)?this.earliest_date:t();if("earliest"===e)return this.earliest_date;if("latest"===e)return this.latest_date;if(e&&(/\bago\b/.test(e)||/\bahead\b/.test(e)))return this.stringToDate(e);var n=/(?:\d)((?:st|nd|rd|th)?,?)/,r=e?e.replace(n,"").split(" "):[];2==r.length&&(r.push(t().format(this.format.jump_year)),e=r.join(" "));var i=this.parseDate(e);return i.isValid()?i:t(e)},n.prototype.calendarCheckDates=function(){var n,r,i=e(".dr-date-start",this.element).html(),o=e(".dr-date-end",this.element).html(),a=this.calendarCheckDate(e(this.selected).html());if("ytd"===i||"ytd"===o?(n=t().startOf("year"),r=t().endOf("year")):(n=this.calendarCheckDate(i),r=this.calendarCheckDate(o)),a.isBefore(this.earliest_date)&&(a=this.earliest_date),n.isBefore(this.earliest_date)&&(n=this.earliest_date),(r.isBefore(this.earliest_date)||r.isBefore(n))&&(r=n.clone().add(6,"day")),a.isAfter(this.latest_date)&&(a=this.latest_date),r.isAfter(this.latest_date)&&(r=this.latest_date),(n.isAfter(this.latest_date)||n.isAfter(r))&&(n=r.clone().subtract(6,"day")),"double"===this.type){if(n.isSame(r)&&!this.sameDayRange)return this.calendarSetDates();this.start_date=n.isValid()?n:this.start_date,this.end_date=r.isValid()?r:this.end_date}this.current_date=a.isValid()?a:this.current_date},n.prototype.stringToDate=function(e){var n=e.split(" ");return"ago"===n[2]?t(this.current_date).subtract(n[0],n[1]):"ahead"===n[2]?t(this.current_date).add(n[0],n[1]):this.current_date},n.prototype.calendarOpen=function(n,r){var i,o=this,a=e(".dr-dates",this.element).innerWidth()-8;this.selected=n||this.selected,1==this.presetIsOpen&&this.presetToggle(),1==this.calIsOpen?this.calendarClose(r?"switcher":void 0):e(this.selected).html().length&&(this.orig_start_date=this.start_date,this.orig_end_date=this.end_date,this.orig_current_date=this.current_date),this.calendarCheckDates(),this.calendarCreate(r),this.calendarSetDates();var s=t(r||this.current_date).add(1,"month").startOf("month").startOf("day"),l=t(r||this.current_date).subtract(1,"month").endOf("month"),c=t(r||this.current_date).add(1,"year").startOf("month").startOf("day"),u=t(r||this.current_date).subtract(1,"year").endOf("month"),d=t(r||this.current_date);e(".dr-month-switcher span",this.element).data("month",d.month()).html(d.format(this.format.jump_month)),e(".dr-year-switcher span",this.element).data("year",d.year()).html(d.format(this.format.jump_year)),e(".dr-switcher i",this.element).removeClass("dr-disabled"),s.isAfter(this.latest_date)&&e(".dr-month-switcher .dr-right",this.element).addClass("dr-disabled"),l.isBefore(this.earliest_date)&&e(".dr-month-switcher .dr-left",this.element).addClass("dr-disabled"),c.isAfter(this.latest_date)&&e(".dr-year-switcher .dr-right",this.element).addClass("dr-disabled"),u.isBefore(this.earliest_date)&&e(".dr-year-switcher .dr-left",this.element).addClass("dr-disabled"),e(".dr-day",this.element).on({mouseenter:function(){var n=e(this);function r(r){i=void 0,o.range(42).forEach((function(a){var s=n.next().data("date"),l=n.prev().data("date"),c=n.data("date");if(!c)return!1;if(l||(l=c),s||(s=c),"start"==r){if(t(s).isSame(o.end_date)||o.sameDayRange&&t(c).isSame(o.end_date))return!1;if(t(c).isAfter(o.end_date)&&(i=i||t(c).add(6,"day").startOf("day"),a>5||s&&t(s).isAfter(o.latest_date)))return e(n).addClass("dr-end"),i=t(c),!1;n=n.next().addClass("dr-maybe")}else if("end"==r){if(t(l).isSame(o.start_date)||o.sameDayRange&&t(c).isSame(o.start_date))return!1;if(t(c).isBefore(o.start_date)&&(i=i||t(c).subtract(6,"day"),a>5||l&&t(l).isBefore(o.earliest_date)))return e(n).addClass("dr-start"),i=t(c),!1;n=n.prev().addClass("dr-maybe")}}))}t(o.start_date),t(o.end_date),t(o.current_date),e(o.selected).hasClass("dr-date-start")&&(n.addClass("dr-hover dr-hover-before"),e(".dr-start",o.element).css({border:"none","padding-left":"0.3125rem"}),r("start")),e(o.selected).hasClass("dr-date-end")&&(n.addClass("dr-hover dr-hover-after"),e(".dr-end",o.element).css({border:"none","padding-right":"0.3125rem"}),r("end")),o.start_date||o.end_date||n.addClass("dr-maybe"),e(".dr-selected",o.element).css("background-color","transparent")},mouseleave:function(){e(this).hasClass("dr-hover-before dr-end")&&e(this).removeClass("dr-end"),e(this).hasClass("dr-hover-after dr-start")&&e(this).removeClass("dr-start"),e(this).removeClass("dr-hover dr-hover-before dr-hover-after"),e(".dr-start, .dr-end",o.element).css({border:"",padding:""}),e(".dr-maybe:not(.dr-current)",o.element).removeClass("dr-start dr-end"),e(".dr-day",o.element).removeClass("dr-maybe"),e(".dr-selected",o.element).css("background-color","")}}),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream?(e(".dr-day",this.element).on({touchstart:function(){o.selectOneDate(i,o,e(this).data("date"))}}),e("div[contenteditable]",this.element).removeAttr("contenteditable")):e(".dr-day",this.element).on({mousedown:function(){o.selectOneDate(i,o,e(this).data("date"))}}),e(".dr-calendar",this.element).css("width",a).slideDown(200),e(".dr-input",this.element).addClass("dr-active"),e(n).addClass("dr-active").focus(),this.element.addClass("dr-active"),this.calIsOpen=!0},n.prototype.calendarClose=function(t){var n=this;if(!this.calIsOpen||this.presetIsOpen||"force"==t?e(".dr-calendar",this.element).slide
2Up(200,(function(){e(".dr-day",n.element).remove()})):e(".dr-day",this.element).remove(),"switcher"==t)return!1;e(".dr-input, .dr-date",this.element).removeClass("dr-active"),this.element.removeClass("dr-active"),this.calIsOpen=!1},n.prototype.calendarCreate=function(t){var n=this;this.calendarArray(this.start_date,this.end_date,this.current_date,t).forEach((function(t,r){var i="dr-day";t.fade&&(i+=" dr-fade"),t.start&&(i+=" dr-start"),t.end&&(i+=" dr-end"),t.current&&(i+=" dr-current"),t.selected&&(i+=" dr-selected"),t.outside&&(i+=" dr-outside"),e(".dr-day-list",n.element).append('<li class="'+i+'" data-date="'+t.date+'">'+t.str+"</li>")}))},n.prototype.calendarArray=function(e,n,r,i){var o=this;r=t(r||e||n).startOf("day");for(var a=i||r||e||n,s=t(a).startOf("month").startOf("week"),l=t(s).add(41,"days").endOf("day"),c=[],u=t(s);u.isBefore(l);)c.push({str:+u.format("D"),start:e&&u.isSame(e,"day"),end:n&&u.isSame(n,"day"),current:r&&u.isSame(r,"day"),selected:e&&n&&u.isBetween(e,n),date:u.toISOString(),outside:u.isBefore(o.earliest_date)||u.isAfter(o.latest_date),fade:!u.isSame(a,"month")}),u.add(1,"d");return c},n.prototype.calendarHTML=function(n){var r=e('<ul class="dr-days-of-week-list"></ul>'),i=this.days_array.splice(t.localeData().firstDayOfWeek()).concat(this.days_array.splice(0,t.localeData().firstDayOfWeek()));return e.each(i,(function(e,t){r.append('<li class="dr-day-of-week">'+t+"</li>")})),"double"==n?this.element.append('<div class="dr-input"><div class="dr-dates"><div class="dr-date dr-date-start" contenteditable>'+t(this.start_date).format(this.format.input)+'</div><span class="dr-dates-dash">&ndash;</span><div class="dr-date dr-date-end" contenteditable>'+t(this.end_date).format(this.format.input)+"</div></div>"+(this.presets?'<div class="dr-presets"><span class="dr-preset-bar"></span><span class="dr-preset-bar"></span><span class="dr-preset-bar"></span></div>':"")+'</div><div class="dr-selections"><div class="dr-calendar" style="display: none;"><div class="dr-range-switcher"><div class="dr-switcher dr-month-switcher"><i class="dr-left"></i><span>April</span><i class="dr-right"></i></div><div class="dr-switcher dr-year-switcher"><i class="dr-left"></i><span>2015</span><i class="dr-right"></i></div></div>'+r[0].outerHTML+'<ul class="dr-day-list"></ul></div>'+(this.presets?this.presetCreate()[0].outerHTML:"")+"</div>"):this.element.append('<div class="dr-input"><div class="dr-dates"><div class="dr-date" contenteditable placeholder="'+this.placeholder+'">'+(this.settings.current_date?t(this.current_date).format(this.format.input):"")+'</div></div></div><div class="dr-selections"><div class="dr-calendar" style="display: none;"><div class="dr-range-switcher"><div class="dr-switcher dr-month-switcher"><i class="dr-left"></i><span></span><i class="dr-right"></i></div><div class="dr-switcher dr-year-switcher"><i class="dr-left"></i><span></span><i class="dr-right"></i></div></div>'+r[0].outerHTML+'<ul class="dr-day-list"></ul></div></div>')},n.prototype.parseDate=function(e){return null!==t.defaultZone&&t.hasOwnProperty("tz")?t.tz(e,this.format.input,t.defaultZone.name):t(e,this.format.input)},n.prototype.range=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=n;return t},n.prototype.selectOneDate=function(n,r,i){var o=t(i).format(r.format.input);n&&e(".dr-date",r.element).not(r.selected).html(n.format(r.format.input)),e(r.selected).html(o),r.calendarOpen(r.selected),e(r.selected).hasClass("dr-date-start")?e(".dr-date-end",r.element).trigger("click"):(r.calendarSaveDates(),r.calendarClose("force"))},n})?r.apply(t,i):r)||(e.exports=o)},9210:function(e,t,n){var r,i,o;i=[e,n(618)],r=function(e,t){"use strict";var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){o(this,e),this.resolveOptions(t),this.initSelection()}return a(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}}
2,{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=r+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=s},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},8187:function(e,t,n){var r,i,o;i=[e,n(9210),n(1504),n(9539)],r=function(e,t,n,r){"use strict";var i=s(t),o=s(n),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(e,n){c(this,t);var r=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return h(t,e),u(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return p("action",e)}},{key:"defaultTarget",value:function(e){var t=p("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return p("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(o.default);function p(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=f},void 0===(o="function"==typeof r?r.apply(t,i):r)||(e.exports=o)},8375:(e,t,n)=>{"use strict";var r=n(6407);function i(e){"function"==typeof(e=e||{}).codeMirrorInstance&&"function"==typeof e.codeMirrorInstance.defineMode?(String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),e.codeMirrorInstance.defineMode("spell-checker",(function(t){if(!i.aff_loading){i.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){4===n.readyState&&200===n.status&&(i.aff_data=n.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},n.send(null)}if(!i.dic_loading){i.dic_loading=!0;var o=new XMLHttpRequest;o.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),o.onload=function(){4===o.readyState&&200===o.status&&(i.dic_data=o.responseText,i.num_loaded++,2==i.num_loaded&&(i.typo=new r("en_US",i.aff_data,i.dic_data,{platform:"any"})))},o.send(null)}var a='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',s={token:function(e){var t=e.peek(),n="";if(a.includes(t))return e.next(),null;for(;null!=(t=e.peek())&&!a.includes(t);)n+=t,e.next();return i.typo&&!i.typo.check(n)?"spell-error":null}},l=e.codeMirrorInstance.getMode(t,t.backdrop||"text/plain");return e.codeMirrorInstance.overlayMode(l,s,!0)}))):console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`")}i.num_loaded=0,i.aff_loading=!1,i.dic_loading=!1,i.aff_data="",i.dic_data="",i.typo,e.exports=i},6865:(e,t,n)=>{!function(e){"use strict";function t(t,r){function i(){t.display.wrapper.offsetHeight?(n(t,r),t.display.lastWrapHeight!=t.display.wrapper.clientHeight&&t.refresh()):r.timeout=setTimeout(i,r.delay)}r.timeout=setTimeout(i,r.delay),r.hurry=function(){clearTimeout(r.timeout),r.timeout=setTimeout(i,50)},e.on(window,"mouseup",r.hurry),e.on(window,"keyup",r.hurry)}function n(t,n){clearTimeout(n.timeout),e.off(window,"mouseup",n.hurry),e.off(window,"keyup",
2n.hurry)}e.defineOption("autoRefresh",!1,(function(e,r){e.state.autoRefresh&&(n(e,e.state.autoRefresh),e.state.autoRefresh=null),r&&0==e.display.wrapper.offsetHeight&&t(e,e.state.autoRefresh={delay:r.delay||250})}))}(n(5237))},7374:(e,t,n)=>{!function(e){"use strict";function t(e){var t=e.getWrapperElement();e.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:t.style.width,height:t.style.height},t.style.width="",t.style.height="auto",t.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",e.refresh()}function n(e){var t=e.getWrapperElement();t.className=t.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var n=e.state.fullScreenRestore;t.style.width=n.width,t.style.height=n.height,window.scrollTo(n.scrollLeft,n.scrollTop),e.refresh()}e.defineOption("fullScreen",!1,(function(r,i,o){o==e.Init&&(o=!1),!o!=!i&&(i?t(r):n(r))}))}(n(5237))},202:(e,t,n)=>{!function(e){function t(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function n(e){t(e);var n=e.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=e.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var r=e.getOption("placeholder");"string"==typeof r&&(r=document.createTextNode(r)),n.appendChild(r),e.display.lineSpace.insertBefore(n,e.display.lineSpace.firstChild)}function r(e){setTimeout((function(){var r=!1;if(1==e.lineCount()){var i=e.getInputField();r="TEXTAREA"==i.nodeName?!e.getLine(0).length:!/[^\u200b]/.test(i.querySelector(".CodeMirror-line").textContent)}r?n(e):t(e)}),20)}function i(e){a(e)&&n(e)}function o(e){var r=e.getWrapperElement(),i=a(e);r.className=r.className.replace(" CodeMirror-empty","")+(i?" CodeMirror-empty":""),i?n(e):t(e)}function a(e){return 1===e.lineCount()&&""===e.getLine(0)}e.defineOption("placeholder","",(function(n,a,s){var l=s&&s!=e.Init;if(a&&!l)n.on("blur",i),n.on("change",o),n.on("swapDoc",o),e.on(n.getInputField(),"compositionupdate",n.state.placeholderCompose=function(){r(n)}),o(n);else if(!a&&l){n.off("blur",i),n.off("change",o),n.off("swapDoc",o),e.off(n.getInputField(),"compositionupdate",n.state.placeholderCompose),t(n);var c=n.getWrapperElement();c.className=c.className.replace(" CodeMirror-empty","")}a&&!n.hasFocus()&&i(n)}))}(n(5237))},5218:(e,t,n)=>{!function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,(function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))}));var i={Backspace:l,Enter:c};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(e){return function(t){return h(t,e)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var c=f(t,a[l].head);if(!c||o.indexOf(c)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var u=a[l].head;t.replaceRange("",n(u.line,u.ch-1),n(u.line,u.ch+1),"+delete")}}function c(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var l=f(t,o[a].head);if(!l||i.indexOf(l)%2!=0)return e.Pass}t.operation((function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),u(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}}))}function u(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function d(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function h(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),l=a.indexOf(i);if(-1==l)return e.Pass;for(var c,h=r(o,"closeBefore"),f=r(o,"triples"),g=a.charAt(l+1)==i,m=t.listSelections(),v=l%2==0,y=0;y<m.length;y++){var b,x=m[y],w=x.head,k=t.getRange(w,n(w.line,w.ch+1));if(v&&!x.empty())b="surround";else if(!g&&v||k!=i)if(g&&w.ch>1&&f.indexOf(i)>=0&&t.getRange(n(w.line,w.ch-2),w)==i+i){if(w.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(w.line,w.ch-2))))return e.Pass;b="addFour"}else if(g){var C=0==w.ch?" ":t.getRange(n(w.line,w.ch-1),w);if(e.isWordChar(k)||C==i||e.isWordChar(C))return e.Pass;b="both"}else{if(!v||!(0===k.length||/\s/.test(k)||h.indexOf(k)>-1))return e.Pass;b="both"}else b=g&&p(t,w)?"both":f.indexOf(i)>=0&&t.getRange(w,n(w.line,w.ch+3))==i+i+i?"skipThree":"skip";if(c){if(c!=b)return e.Pass}else c=b}var S=l%2?a.charAt(l-1):i,_=l%2?i:a.charAt(l+1);t.operation((function(){if("skip"==c)u(t,1);else if("skipThree"==c)u(t,3);else if("surround"==c){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=S+e[n]+_;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=d(e[n]);t.setSelections(e)}else"both"==c?(t.replaceSelection(S+_,null),t.triggerElectric(S+_),u(t,-1)):"addFour"==c&&(t.replaceSelection(S+S+S+S,"before"),u(t,1))}))}function f(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function p(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")}(n(5237))},7382:(e,t,n)=>{!function(e){"use strict";var t=/^(\s*)(>
2[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,n=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,r=/[*+-]\s/;function i(e,n){var r=n.line,i=0,o=0,a=t.exec(e.getLine(r)),s=a[1];do{var l=r+(i+=1),c=e.getLine(l),u=t.exec(c);if(u){var d=u[1],h=parseInt(a[3],10)+i-o,f=parseInt(u[3],10),p=f;if(s!==d||isNaN(f)){if(s.length>d.length)return;if(s.length<d.length&&1===i)return;o+=1}else h===f&&(p=f+1),h>f&&(p=h+1),e.replaceRange(c.replace(t,d+p+u[4]+u[5]),{line:l,ch:0},{line:l,ch:c.length})}}while(u)}e.commands.newlineAndIndentContinueMarkdownList=function(o){if(o.getOption("disableInput"))return e.Pass;for(var a=o.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l].head,u=o.getStateAfter(c.line),d=e.innerMode(o.getMode(),u);if("markdown"!==d.mode.name&&"markdown"!==d.mode.helperType)return void o.execCommand("newlineAndIndent");var h=!1!==(u=d.state).list,f=0!==u.quote,p=o.getLine(c.line),g=t.exec(p),m=/^\s*$/.test(p.slice(0,c.ch));if(!a[l].empty()||!h&&!f||!g||m)return void o.execCommand("newlineAndIndent");if(n.test(p)){var v=f&&/>\s*$/.test(p),y=!/>\s*$/.test(p);(v||y)&&o.replaceRange("",{line:c.line,ch:0},{line:c.line,ch:c.ch+1}),s[l]="\n"}else{var b=g[1],x=g[5],w=!(r.test(g[2])||g[2].indexOf(">")>=0),k=w?parseInt(g[3],10)+1+g[4]:g[2].replace("x"," ");s[l]="\n"+b+k+x,w&&i(o,c)}}o.replaceSelections(s)}}(n(5237))},7923:(e,t,n)=>{!function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,c=o&&o.afterCursor;null==c&&(c=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var u=i(o),d=!c&&l>=0&&u.test(s.text.charAt(l))&&r[s.text.charAt(l)]||u.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var h=">"==d.charAt(1)?1:-1;if(o&&o.strict&&h>0!=(l==t.ch))return null;var f=e.getTokenTypeAt(n(t.line,l+1)),p=a(e,n(t.line,l+(h>0?1:0)),h,f,o);return null==p?null:{from:n(t.line,l),to:p&&p.pos,match:p&&p.ch==d.charAt(0),forward:h>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,c=s&&s.maxScanLines||1e3,u=[],d=i(s),h=o>0?Math.min(t.line+c,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-c),f=t.line;f!=h;f+=o){var p=e.getLine(f);if(p){var g=o>0?0:p.length-1,m=o>0?p.length:-1;if(!(p.length>l))for(f==t.line&&(g=t.ch-(o<0?1:0));g!=m;g+=o){var v=p.charAt(g);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(f,g+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)u.push(v);else{if(!u.length)return{pos:n(f,g),ch:v};u.pop()}}}}}return f-o!=(o>
vendor: 6,005 bytes, line 2
20?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],c=e.listSelections(),u=0;u<c.length;u++){var d=c[u].empty()&&o(e,c[u].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var h=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:h})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:h}))}}if(l.length){t&&e.state.focused&&e.focus();var f=function(){e.operation((function(){for(var e=0;e<l.length;e++)l[e].clear()}))};if(!r)return f;setTimeout(f,800)}}function l(e){e.operation((function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)}))}function c(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,(function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",c),c(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",c))})),e.defineExtension("matchBrackets",(function(){s(this,!0)})),e.defineExtension("findMatchingBracket",(function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)})),e.defineExtension("scanForBracket",(function(e,t,n,r){return a(this,e,t,n,r)}))}(n(5237))},2580:(e,t,n)=>{!function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n,r){return t.indent(e.base,n,r)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){var i,o;return t.blankLine&&(i=t.blankLine(e.base)),n.blankLine&&(o=n.blankLine(e.overlay)),null==o?i:r&&null!=i?i+" "+o:o}}}}(n(5237))},3653:(e,t,n)=>{!function(e){"use strict";var t,n,r=e.Pos;function i(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}function o(e,t){for(var n=i(e),r=n,o=0;o<t.length;o++)-1==r.indexOf(t.charAt(o))&&(r+=t.charAt(o));return n==r?e:new RegExp(e.source,r)}function a(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function s(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.lastLine();i<=s;i++,a=0){t.lastIndex=a;var l=e.getLine(i),c=t.exec(l);if(c)return{from:r(i,c.index),to:r(i,c.index+c[0].length),match:c}}}function l(e,t,n){if(!a(t))return s(e,t,n);t=o(t,"gm");for(var i,l=1,c=n.line,u=e.lastLine();c<=u;){for(var d=0;d<l&&!(c>u);d++){var h=e.getLine(c++);i=null==i?h:i+"\n"+h}l*=2,t.lastIndex=n.ch;var f=t.exec(i);if(f){var p=i.slice(0,f.index).split("\n"),g=f[0].split("\n"),m=n.line+p.length-1,v=p[p.length-1].length;return{from:r(m,v),to:r(m+g.length-1,1==g.length?v+g[0].length:g[g.length-1].length),match:f}}}}function c(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=o(t,"g");for(var i=n.line,a=n.ch,s=e.firstLine();i>=s;i--,a=-1){var l=e.getLine(i),u=c(l,t,a<0?0:l.length-a);if(u)return{from:r(i,u.index),to:r(i,u.index+u[0].length),match:u}}}function d(e,t,n){if(!a(t))return u(e,t,n);t=o(t,"gm");for(var i,s=1,l=e.getLine(n.line).length-n.ch,d=n.line,h=e.firstLine();d>=h;){for(var f=0;f<s&&d>=h;f++){var p=e.getLine(d--);i=null==i?p:p+"\n"+i}s*=2;var g=c(i,t,l);if(g){var m=i.slice(0,g.index).split("\n"),v=g[0].split("\n"),y=d+m.length,b=m[m.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:g}}}}function h(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.lastLine()+1-l.length;c<=d;c++,u=0){var f=e.getLine(c).slice(u),p=s(f);if(1==l.length){var g=p.indexOf(l[0]);if(-1==g)continue e;return o=h(f,p,g,s)+u,{from:r(c,h(f,p,g,s)+u),to:r(c,h(f,p,g+l[0].length,s)+u)}}var m=p.length-l[0].length;if(p.slice(m)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(c+v))!=l[v])continue e;var y=e.getLine(c+l.length-1),b=s(y),x=l[l.length-1];if(b.slice(0,x.length)==x)return{from:r(c,h(f,p,m,s)+u),to:r(c+l.length-1,h(y,b,x.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var c=o.line,u=o.ch,d=e.firstLine()-1+l.length;c>=d;c--,u=-1){var f=e.getLine(c);u>-1&&(f=f.slice(0,u));var p=s(f);if(1==l.length){var g=p.lastIndexOf(l[0]);if(-1==g)continue e;return{from:r(c,h(f,p,g,s)),to:r(c,h(f,p,g+l[0].length,s))}}var m=l[l.length-1];if(p.slice(0,m.length)==m){var v=1;for(o=c-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(c+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(c+1-l.length,h(y,b,y.length-l[0].length,s)),to:r(c,h(f,p,m.length,s))}}}}function g(e,t,n,i){var a;
2this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof i?a=i.caseFold:(a=i,i=null),"string"==typeof t?(null==a&&(a=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,a)}):(t=o(t,"gm"),i&&!1===i.multiline?this.matches=function(n,r){return(n?u:s)(e,t,r)}:this.matches=function(n,r){return(n?d:l)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),g.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,n){return new g(this.doc,e,t,n)})),e.defineDocExtension("getSearchCursor",(function(e,t,n){return new g(this,e,t,n)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(5237))},9533:(e,t,n)=>{!function(e){"use strict";function t(e){e.state.markedSelection&&e.operation((function(){c(e)}))}function n(e){e.state.markedSelection&&e.state.markedSelection.length&&e.operation((function(){s(e)}))}e.defineOption("styleSelectedText",!1,(function(r,i,o){var a=o&&o!=e.Init;i&&!a?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",l(r),r.on("cursorActivity",t),r.on("change",n)):!i&&a&&(r.off("cursorActivity",t),r.off("change",n),s(r),r.state.markedSelection=r.state.markedSelectionStyle=null)}));var r=8,i=e.Pos,o=e.cmpPos;function a(e,t,n,a){if(0!=o(t,n))for(var s=e.state.markedSelection,l=e.state.markedSelectionStyle,c=t.line;;){var u=c==t.line?t:i(c,0),d=c+r,h=d>=n.line,f=h?n:i(d,0),p=e.markText(u,f,{className:l});if(null==a?s.push(p):s.splice(a++,0,p),h)break;c=d}}function s(e){for(var t=e.state.markedSelection,n=0;n<t.length;++n)t[n].clear();t.length=0}function l(e){s(e);for(var t=e.listSelections(),n=0;n<t.length;n++)a(e,t[n].from(),t[n].to())}function c(e){if(!e.somethingSelected())return s(e);if(e.listSelections().length>1)return l(e);var t=e.getCursor("start"),n=e.getCursor("end"),i=e.state.markedSelection;if(!i.length)return a(e,t,n);var c=i[0].find(),u=i[i.length-1].find();if(!c||!u||n.line-t.line<=r||o(t,u.to)>=0||o(n,c.from)<=0)return l(e);for(;o(t,c.from)>0;)i.shift().clear(),c=i[0].find();for(o(t,c.from)<0&&(c.to.line-t.line<r?(i.shift().clear(),a(e,t,c.to,0)):a(e,t,c.from,0));o(n,u.to)<0;)i.pop().clear(),u=i[i.length-1].find();o(n,u.to)>0&&(n.line-u.from.line<r?(i.pop().clear(),a(e,u.from,n)):a(e,u.to,n))}}(n(5237))},8208:(e,t,n)=>{!function(e){"use strict";var t=e.commands,n=e.Pos;function r(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,c=l,u=i<0?0:o.length,d=0;c!=u;c+=i,d++){var h=o.charAt(i<0?c-1:c),f="_"!=h&&e.isWordChar(h)?"w":"o";if("w"==f&&h.toUpperCase()==h&&(f="W"),"start"==s)"o"!=f?(s="in",a=f):l=c+i;else if("in"==s&&a!=f){if("w"==a&&"W"==f&&i<0&&c--,"W"==a&&"w"==f&&i>0){if(c==l+1){a="w";continue}c--}break}}return n(r.line,c)}function i(e,t){e.extendSelectionsBy((function(n){return e.display.shift||e.doc.extend||n.empty()?r(e.doc,n.head,t):t<0?n.from():n.to()}))}function o(t,r){if(t.isReadOnly())return e.Pass;t.operation((function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)})),t.execCommand("indentAuto")}function a(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function s(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}function l(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}t.goSubwordLeft=function(e){i(e,-1)},t.goSubwordRight=function(e){i(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())}
vendor: 10,775 bytes, line 2
2,t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return o(e,!1)},t.insertLineBefore=function(e){return o(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=a(t,r);if(!s.word)return;t.setSelection(s.from,s.to),o=!0}else{var c=t.getRange(r,i),u=o?new RegExp("\\b"+c+"\\b"):c,d=t.getSearchCursor(u,i),h=d.findNext();if(h||(h=(d=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!h||l(t.listSelections(),d.from(),d.to()))return;t.addSelection(d.from(),d.to())}o&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter((function(e){return e.anchor!=r||e.head!=i})))},t.addCursorToPrevLine=function(e){s(e,-1)},t.addCursorToNextLine=function(e){s(e,1)};var c="(){}[]";function u(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],s=a.head,l=t.scanForBracket(s,-1);if(!l)return!1;for(;;){var u=t.scanForBracket(s,1);if(!u)return!1;if(u.ch==c.charAt(c.indexOf(l.ch)+1)){var d=n(l.pos.line,l.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(u.pos,a.to())){i.push({anchor:d,head:u.pos});break}if(!(l=t.scanForBracket(l.pos,-1)))return!1}s=n(u.pos.line,u.pos.ch+1)}}return t.setSelections(i),!0}function d(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function h(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var c=a[l];if(!c.empty()){for(var u=c.from().line,d=c.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(u,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation((function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],c=s[a+1],u=n(l,0),d=n(c),h=t.getRange(u,d,!1);r?h.sort((function(e,t){return e<t?-i:e==t?0:i})):h.sort((function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i})),t.replaceRange(h,u,d),o&&e.push({anchor:u,head:n(c+1,0)})}o&&t.setSelections(e,0)}))}function f(t,n){t.operation((function(){for(var r=t.listSelections(),i=[],o=[],s=0;s<r.length;s++)(c=r[s]).empty()?(i.push(s),o.push("")):o.push(n(t.getRange(c.from(),c.to())));var l;for(t.replaceSelections(o,"around","case"),s=i.length-1;s>=0;s--){var c=r[i[s]];if(!(l&&e.cmpPos(c.head,l)>0)){var u=a(t,c.head);l=u.from,t.replaceRange(n(u.word),u.from,u.to)}}}))}function p(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=a(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function g(e,t){var r=p(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){u(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!u(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy((function(r){var i=t.scanForBracket(r.head,1,d(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,d(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head}))},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],c=l.from().line-1,u=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--u,c>o?i.push(c,u):i.length&&(i[i.length-1]=u),o=u}t.operation((function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()}))},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,c=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,c):i.length&&(i[i.length-1]=c),o=c}t.operation((function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()}))},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation((function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),c=s.start;c<=s.end;c++){var u=c-t;c==s.end&&(a=n(u,e.getLine(u).length+1)),u<e.lastLine()&&(e.replaceRange(" ",n(u),n(u+1,/^\s*/.exec(e.getLine(u+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)}))},t.duplicateLine=function(e){e.operation((function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()}))},t.sortLines=function(e){h(e,!0,1)},t.reverseSortLines=function(e){h(e,!0,-1)},t.sortLinesInsensitive=function(e){h(e,!1,1)},t.reverseSortLinesInsensitive=function(e){h(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation((function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),c=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var u=new n(a.line,e.findColumn(s,l-i,i));u.ch!=a.ch&&(c=u)}t.replaceRange("",c,a,"+delete")}}))},t.delLineRight=function(e){e.operation((function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()}))},t.upcaseAtCursor=function(e){f(e,(function(e){return e.toUpperCase()}))},t.downcaseAtCursor=function(e){f(e,(function(e){return e.toLowerCase()}))},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){g(e,!0)},t.findUnderPrevious=function(e){g(e,!1)},t.findAllUnder=function(e){var t=p(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var m=e.keyMap;m.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-
vendor: 4,604 bytes, line 2
2]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(m.macSublime),m.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(m.pcSublime);var v=m.default==m.macDefault;m.sublime=v?m.macSublime:m.pcSublime}(n(5237),n(3653),n(7923))},5237:function(e){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),c=l&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\/(\d+)/.exec(e),d=u&&+u[1],h=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),g=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),x=/\bCrOS\b/.test(e),w=/win/i.test(t),k=h&&e.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(h=!1,l=!0);var C=b&&(c||h&&(null==k||k<12.11)),S=n||a&&s>=9;function _(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,L=function(e,t){var n=e.className,r=_(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function E(e,t){return T(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function M(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function D(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(e){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function N(e,t){var n=e.className;_(t).test(n)||(e.className+=(n?" ":"")+t)}function I(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!_(n[r]).test(t)&&(t+=" "+n[r]);return t}A=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var F=function(e){e.select()};function R(e){return e.display.wrapper.ownerDocument}function z(e){return j(e.display.wrapper)}function j(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function H(e){return R(e).defaultView}
vendor: 7,397 bytes, line 2
2function Y(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function B(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function W(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?F=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(F=function(e){try{e.select()}catch(e){}});var X=function(){this.id=null,this.f=null,this.time=0,this.handler=Y(this.onTimeout,this)};function $(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}X.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},X.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var G=50,V={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},q={origin:"*mouse"},Z={origin:"+move"};function K(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var J=[""];function Q(e){for(;J.length<=e;)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ne(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}function re(){}function ie(e,t){var n;return Object.create?n=Object.create(e):(re.prototype=e,n=new re),t&&B(t,n),n}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ae(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ce=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ue(e){return e.charCodeAt(0)>=768&&ce.test(e)}function de(e,t,n){for(;(n<0?t>0:t<e.length)&&ue(e.charAt(t));)t+=n;return t}function he(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function fe(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function ge(e,t,n){var r;pe=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var me=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var u=e.length,d=[],h=0;h<u;++h)d.push(n(e.charCodeAt(h)));for(var f=0,p=c;f<u;++f){var g=d[f];"m"==g?d[f]=p:p=g}for(var m=0,v=c;m<u;++m){var y=d[m];"1"==y&&"r"==v?d[m]="n":o.test(y)&&(v=y,"r"==y&&(d[m]="R"))}for(var b=1,x=d[0];b<u-1;++b){var w=d[b];"+"==w&&"1"==x&&"1"==d[b+1]?d[b]="1":","!=w||x!=d[b+1]||"1"!=x&&"n"!=x||(d[b]=x),x=w}for(var k=0;k<u;++k){var C=d[k];if(","==C)d[k]="N";else if("%"==C){var S=void 0;for(S=k+1;S<u&&"%"==d[S];++S);for(var _=k&&"!"==d[k-1]||S<u&&"1"==d[S]?"1":"N",A=k;A<S;++A)d[A]=_;k=S-1}}for(var L=0,T=c;L<u;++L){var E=d[L];"L"==T&&"1"==E?d[L]="L":o.test(E)&&(T=E)}for(var O=0;O<u;++O)if(i.test(d[O])){var M=void 0;for(M=O+1;M<u&&i.test(d[M]);++M);for(var P="L"==(O?d[O-1]:c),D=P==("L"==(M<u?d[M]:c))?P?"L":"R":c,N=O;N<M;++N)d[N]=D;O=M-1}for(var I,F=[],R=0;R<u;)if(a.test(d[R])){var z=R;for(++R;R<u&&a.test(d[R]);++R);F.push(new l(0,z,R))}else{var j=R,H=F.length,Y="rtl"==t?1:0;for(++R;R<u&&"L"!=d[R];++R);for(var B=j;B<R;)if(s.test(d[B])){j<B&&(F.splice(H,0,new l(1,j,B)),H+=Y);var W=B;for(++B;B<R&&s.test(d[B]);++B);F.splice(H,0,new l(2,W,B)),H+=Y,j=B}else++B;j<R&&F.splice(H,0,new l(1,j,R))}return"ltr"==t&&(1==F[0].level&&(I=e.match(/^\s+/))&&(F[0].from=I[0].length,F.unshift(new l(0,0,I[0].length))),1==ee(F).level&&(I=e.match(/\s+$/))&&(ee(F).to-=I[0].length,F.push(new l(0,u-I[0].length,u)))),"rtl"==t?F.reverse():F}}();function ve(e,t){var n=e.order;return null==n&&(n=e.order=me(e.text,t)),n}var ye=[],be=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ye).concat(n)}};function xe(e,t){return e._handlers&&e._handlers[t]||ye}function we(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=$(i,n);o>
vendor: 13,586 bytes, line 2
2-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ke(e,t){var n=xe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function Ce(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ke(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function Se(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==$(n,t[r])&&n.push(t[r])}function _e(e,t){return xe(e,t).length>0}function Ae(e){e.prototype.on=function(e,t){be(this,e,t)},e.prototype.off=function(e,t){we(this,e,t)}}function Le(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Te(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){Le(e),Te(e)}function Me(e){return e.target||e.srcElement}function Pe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,Ne,Ie=function(){if(a&&s<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Fe(e){if(null==De){var t=O("span","​");E(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=De?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Re(e){if(null!=Ne)return Ne;var t=E(e,document.createTextNode("AخA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return T(e),!(!n||n.left==n.right)&&(Ne=r.right-n.right<3)}var ze,je=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ye="oncopy"in(ze=O("div"))||(ze.setAttribute("oncopy","return;"),"function"==typeof ze.oncopy),Be=null;function We(e){if(null!=Be)return Be;var t=E(e,O("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Be=Math.abs(n.left-r.left)>1}var Xe={},$e={};function Ge(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Xe[e]=t}function Ve(e,t){$e[e]=t}function Ue(e){if("string"==typeof e&&$e.hasOwnProperty(e))e=$e[e];else if(e&&"string"==typeof e.name&&$e.hasOwnProperty(e.name)){var t=$e[e.name];"string"==typeof t&&(t={name:t}),(e=ie(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=Ue(t);var n=Xe[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(Ze.hasOwnProperty(t.name)){var i=Ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ze={};function Ke(e,t){B(t,Ze.hasOwnProperty(e)?Ze[e]:Ze[e]={})}function Je(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function et(e,t,n){return!e.startState||e.startState(t,n)}var tt=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function nt(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function rt(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function it(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function ot(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function at(e){if(null==e.parent)return null;for(var t=e.parent,n=$(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function st(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function lt(e,t){return t>=e.first&&t<e.first+e.size}function ct(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function ut(e,t,n){if(void 0===n&&(n=null),!(this instanceof ut))return new ut(e,t,n);this.line=e,this.ch=t,this.sticky=n}function dt(e,t){return e.line-t.line||e.ch-t.ch}function ht(e,t){return e.sticky==t.sticky&&0==dt(e,t)}function ft(e){return ut(e.line,e.ch)}function pt(e,t){return dt(e,t)<0?t:e}function gt(e,t){return dt(e,t)<0?e:t}function mt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function vt(e,t){if(t.line<e.first)return ut(e.first,0);var n=e.first+e.size-1;return t.line>n?ut(n,nt(e,n).text.length):yt(t,nt(e,t.line).text.length)}function yt(e,t){var n=e.ch;return null==n||n>t?ut(e.line,t):n<0?ut(e.line,0):e}function bt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=vt(e,t[r]);return n}tt.prototype.eol=function(){return this.pos>=this.string.length},tt.prototype.sol=function(){return this.pos==this.lineStart},tt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tt.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},tt.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},tt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},tt.prototype.skipToEnd=function(){this.pos=this.string.length},tt.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},tt.prototype.backUp=function(e){this.pos-=e},tt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},tt.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},tt.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},tt.prototype.current=function(){return this.string.slice(this.start,this.pos)},tt.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},tt.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},tt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var xt=function(e,t){this.state=e,this.lookAhead=t},wt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function kt(e,t,n,r){var i=[e.state.modeGen],o={};Mt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,c=0;n.state=!0,Mt(e,t.text,s.mode,n,(function(e,t){for(var n=l;c<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Ct(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=St(e,at(t)),i=t.text.length>e.options.maxHighlightLength&&Je(e.doc.mode,r.state),o=kt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function St(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new wt(r,!0,t);var o=Pt(e,t,n),a=o>r.first&&nt(r,o-1).stateAfter,s=a?wt.fromSaved(r,a,o):new wt(r,et(r.mode),o);return r.iter(o,t,(function(n){_t(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function _t(e,t,n,r){var i=e.doc.mode,o=new tt(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&At(i,n.state);!o.eol();)Lt(i,o,n.state),o.start=o.pos}function At(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Qe(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function Lt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Qe(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}wt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},wt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},wt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},wt.fromSaved=function(e,t,n){return t instanceof xt?new wt(e,Je(e.mode,t.state),n,t.lookAhead):new wt(e,Je(e.mode,t),n)},wt.prototype.save=function(e){var t=!1!==e?Je(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new xt(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=nt(a,(t=vt(a,t)).line),c=St(e,t.line,n),u=new tt(l.text,e.options.tabSize,c);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=Lt(s,u,c.state),r&&o.push(new Tt(u,i,Je(a.mode,c.state)));return r?o:new Tt(u,i,c.state)}function Ot(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Mt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,c=0,u=null,d=new tt(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&Ot(At(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&_t(e,t,r,d.pos),d.pos=t.length,l=null):l=Ot(Lt(n,d,r.state,h),o),h){var f=h[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<d.start;)i(c=Math.min(d.start,c+5e3),u);u=l}d.start=d.pos}for(;c<d.pos;){var p=Math.min(d.pos,c+5e3);i(p,u),c=p}}function Pt(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=nt(o,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof xt?c.lookAhead:0)<=o.modeFrontier))return s;var u=W(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}function Dt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=nt(e,r).stateAfter;if(i&&(!(i instanceof xt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var Nt=!1,It=!1;function Ft(){Nt=!0}function Rt(){It=!0}function zt(e,t,n){this.marker=e,this.from=t,this.to=n}function jt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Ht(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Yt(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Bt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new zt(a,o.from,s?null:o.to))}}return r}function Wt(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new zt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Xt(e,t){if(t.full)return null;var n=lt(e,t.from.line)&&nt(e,t.from.line).markedSpans,r=lt(e,t.to.line)&&nt(e,t.to.line).markedSpans;if(!n&&!r)return null;
vendor: 9,649 bytes, line 2
2var i=t.from.ch,o=t.to.ch,a=0==dt(t.from,t.to),s=Bt(n,i,a),l=Wt(r,o,a),c=1==t.text.length,u=ee(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var h=s[d];if(null==h.to){var f=jt(l,h.marker);f?c&&(h.to=null==f.to?null:f.to+u):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=u),null==g.from?jt(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=$t(s)),l&&l!=s&&(l=$t(l));var m=[s];if(!c){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new zt(s[b].marker,null,null));for(var x=0;x<y;++x)m.push(v);m.push(l)}return m}function $t(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Gt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=$(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(dt(c.to,s.from)<0||dt(c.from,s.to)>0)){var u=[l,1],d=dt(c.from,s.from),h=dt(c.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-3}}return i}function Vt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ut(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function qt(e){return e.inclusiveLeft?-1:0}function Zt(e){return e.inclusiveRight?1:0}function Kt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=dt(r.from,i.from)||qt(e)-qt(t);if(o)return-o;var a=dt(r.to,i.to)||Zt(e)-Zt(t);return a||t.id-e.id}function Jt(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Kt(n,i.marker)<0)&&(n=i.marker);return n}function Qt(e){return Jt(e,!0)}function en(e){return Jt(e,!1)}function tn(e,t){var n,r=It&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Kt(n,o.marker)<0)&&(n=o.marker)}return n}function nn(e,t,n,r,i){var o=nt(e,t),a=It&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=dt(c.from,n)||qt(l.marker)-qt(i),d=dt(c.to,r)||Zt(l.marker)-Zt(i);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?dt(c.to,n)>=0:dt(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?dt(c.from,r)<=0:dt(c.from,r)<0)))return!0}}}function rn(e){for(var t;t=Qt(e);)e=t.find(-1,!0).line;return e}function on(e){for(var t;t=en(e);)e=t.find(1,!0).line;return e}function an(e){for(var t,n;t=en(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function sn(e,t){var n=nt(e,t),r=rn(n);return n==r?t:at(r)}function ln(e,t){if(t>e.lastLine())return t;var n,r=nt(e,t);if(!cn(e,r))return t;for(;n=en(r);)r=n.find(1,!0).line;return at(r)+1}function cn(e,t){var n=It&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&un(e,t,r))return!0}}function un(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return un(e,r.line,jt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&un(e,t,i))return!0}function dn(e){for(var t=0,n=(e=rn(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function hn(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Qt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=en(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function fn(e){var t=e.display,n=e.doc;t.maxLine=nt(n,n.first),t.maxLineLength=hn(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=hn(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var pn=function(e,t,n){this.text=e,Ut(this,t),this.height=n?n(this):1};function gn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),Ut(e,n);var i=r?r(e):1;i!=e.height&&ot(e,i)}function mn(e){e.parent=null,Vt(e)}pn.prototype.lineNo=function(){return at(this)},Ae(pn);var vn={},yn={};function bn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?yn:vn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function xn(e,t){var n=M("span",null,null,l?"padding-right: .1px":null),r={pre:M("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=kn,Re(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=Sn(r.addToken,a)),r.map=[],An(o,r,Ct(e,o,t!=e.display.externalMeasured&&at(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=I(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=I(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Fe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ke(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=I(r.pre.className,r.textClass||"")),r}function wn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function kn(e,t,n,r,i,o,l){if(t){var c,u=e.splitSpaces?Cn(t,e.trailingSpace):t,d=e.cm.state.specialChars,h=!1;if(d.test(t)){c=document.createDocumentFragment();for(var f=0;;){d.lastIndex=f;var p=d.exec(t),g=p?p.index-f:t.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));a&&s<9?c.appendChild(O("span",[m])):c.appendChild(m),e.map.push(e.pos,e.pos+g,m),e.col+=g,e.pos+=g}if(!p)break;f+=g+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=c.appendChild(O("span",Q(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==p[0]||"\n"==p[0]?((v=c.appendChild(O("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?c.appendChild(O("span",[v])):c.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),a&&s<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||h||o||l){var x=n||"";r&&(x+=r),i&&(x+=i);var w=O("span",[c],x,o);if(l)for(var k in l)l.hasOwnProperty(k)&&"style"!=k&&"class"!=k&&w.setAttribute(k,l[k]);return e.content.appendChild(w)}e.content.appendChild(c)}}function Cn(e,t){if(e.length>1&&!/  /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}function Sn(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,h=0;h<t.length&&!((d=t[h]).to>c&&d.from<=c);h++);if(d.to>=u)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-c),i,o,null,s,l),o=null,r=r.slice(d.to-c),c=d.to}}}function _n(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function An(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,c,u,d,h,f=i.length,p=0,g=1,m="",v=0;;){if(v==p){l=c=u=s="",h=null,d=null,v=1/0;for(var y=[],b=void 0,x=0;x<r.length;++x){var w=r[x],k=w.marker;if("bookmark"==k.type&&w.from==p&&k.widgetNode)y.push(k);else if(w.from<=p&&(null==w.to||w.to>p||k.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&v>w.to&&(v=w.to,c=""),k.className&&(l+=" "+k.className),k.css&&(s=(s?s+";":"")+k.css),k.startStyle&&w.from==p&&(u+=" "+k.startStyle),k.endStyle&&w.to==v&&(b||(b=[])).push(k.endStyle,w.to),k.title&&((h||(h={})).title=k.title),k.attributes)for(var C in k.attributes)(h||(h={}))[C]=k.attributes[C];k.collapsed&&(!d||Kt(d.marker,k)<0)&&(d=w)}else w.from>p&&v>w.from&&(v=w.from)}if(b)for(var S=0;S<b.length;S+=2)b[S+1]==v&&(c+=" "+b[S]);if(!d||d.from==p)for(var _=0;_<y.length;++_)_n(t,0,y[_]);if(d&&(d.from||0)==p){if(_n(t,(null==d.to?f+1:d.to)-p,d.marker,null==d.from),null==d.to)return;d.to==p&&(d=!1)}}if(p>=f)break;for(var A=Math.min(f,v);;){if(m){var L=p+m.length;if(!d){var T=L>A?m.slice(0,A-p):m;t.addToken(t,T,a?a+l:l,u,p+T.length==v?c:"",s,h)}if(L>=A){m=m.slice(A-p),p=A;break}p=L,u=""}m=i.slice(o,o=n[g++]),a=bn(n[g++],t.cm.options)}}else for(var E=1;E<n.length;E+=2)t.addToken(t,i.slice(o,o=n[E]),bn(n[E+1],t.cm.options))}function Ln(e,t,n){this.line=t,this.rest=an(t),this.size=this.rest?at(ee(this.rest))-n+1:1,this.node=this.text=null,this.hidden=cn(e,t)}
vendor: 4,486 bytes, line 2
2function Tn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new Ln(e.doc,nt(e.doc,o),o);r=o+a.size,i.push(a)}return i}var En=null;function On(e){En?En.ops.push(e):e.ownsGroup=En={ops:[e],delayedCallbacks:[]}}function Mn(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}function Pn(e,t){var n=e.ownsGroup;if(n)try{Mn(n)}finally{En=null,t(n)}}var Dn=null;function Nn(e,t){var n=xe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);En?r=En.delayedCallbacks:Dn?r=Dn:(r=Dn=[],setTimeout(In,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function In(){var e=Dn;Dn=null;for(var t=0;t<e.length;++t)e[t]()}function Fn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Hn(e,t):"gutter"==o?Bn(e,t,n,r):"class"==o?Yn(e,t):"widget"==o&&Wn(e,t,r)}t.changes=null}function Rn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function zn(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Rn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function jn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):xn(e,t)}function Hn(e,t){var n=t.text.className,r=jn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Yn(e,t)):n&&(t.text.className=n)}function Yn(e,t){zn(e,t),t.line.wrapClass?Rn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Bn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=Rn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=Rn(t),s=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(O("div",ct(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var c=e.display.gutterSpecs[l].className,u=o.hasOwnProperty(c)&&o[c];u&&s.appendChild(O("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function Wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=_("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);$n(e,t,n)}function Xn(e,t,n,r){var i=jn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),Yn(e,t),Bn(e,t,n,r),$n(e,t,r),t.node}function $n(e,t,n){if(Gn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Gn(e,t.rest[r],t,n,!1)}function Gn(e,t,n,r,i){if(t.widgets)for(var o=Rn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],c=O("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Vn(l,c,n,r),e.display.input.setUneditable(c),i&&l.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),Nn(l,"redraw")}}function Vn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);
vendor: 4,138 bytes, line 2
2var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Un(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),E(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function qn(e,t){for(var n=Me(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Zn(e){return e.lineSpace.offsetTop}function Kn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Jn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=E(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Qn(e){return G-e.display.nativeBarWidth}function er(e){return e.display.scroller.clientWidth-Qn(e)-e.display.barWidth}function tr(e){return e.display.scroller.clientHeight-Qn(e)-e.display.barHeight}function nr(e,t,n){var r=e.options.lineWrapping,i=r&&er(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function rr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(at(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function ir(e,t){var n=at(t=rn(t)),r=e.display.externalMeasured=new Ln(e.doc,t,n);r.lineN=n;var i=r.built=xn(e,r);return r.text=i.pre,E(e.display.lineMeasure,i.pre),r}function or(e,t,n,r){return lr(e,sr(e,t),n,r)}function ar(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Yr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function sr(e,t){var n=at(t),r=ar(e,n);r&&!r.text?r=null:r&&r.changes&&(Fn(e,r,n,Fr(e)),e.curOp.forceUpdate=!0),r||(r=ir(e,t));var i=rr(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function lr(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(nr(e,t.view,t.rect),t.hasHeights=!0),(o=fr(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var cr,ur={left:0,right:0,top:0,bottom:0};function dr(e,t,n){for(var r,i,o,a,s,l,c=0;c<e.length;c+=3)if(s=e[c],l=e[c+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(c==e.length-3||t==l&&e[c+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==l-s)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function hr(e,t){var n=ur;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function fr(e,t,n,r){var i,o=dr(t.map,n,r),l=o.node,c=o.start,u=o.end,d=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;c&&ue(t.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+u<o.coverEnd&&ue(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==c&&u==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():hr(A(l,c,u).getClientRects(),r)).left||i.right||0==c)break;u=c,c-=1,d="right"}
vendor: 46,717 bytes, line 2
2a&&s<11&&(i=pr(e.display.measure,i))}else{var f;c>0&&(d=r="right"),i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Ir(e.display),top:p.top,bottom:p.bottom}:ur}for(var g=i.top-t.rect.top,m=i.bottom-t.rect.top,v=(g+m)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var x=b?y[b-1]:0,w=y[b],k={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(k.bogus=!0),e.options.singleCursorHeightPerLine||(k.rtop=g,k.rbottom=m),k}function pr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!We(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function gr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function mr(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)gr(e.display.view[t])}function vr(e){mr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function yr(e){return u&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function br(e){return u&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function xr(e){var t=rn(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Un(t[r]));return n}function wr(e,t,n,r,i){if(!i){var o=xr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=dn(t);if("local"==r?a+=Zn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:br(R(e)));var l=s.left+("window"==r?0:yr(R(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function kr(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=yr(R(e)),i-=br(R(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Cr(e,t,n,r,i){return r||(r=nt(e.doc,t.line)),wr(e,r,or(e,r,t.ch,i),n)}function Sr(e,t,n,r,i,o){function a(t,a){var s=lr(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,wr(e,r,s,n)}r=r||nt(e.doc,t.line),i||(i=sr(e,r));var s=ve(r,e.doc.direction),l=t.ch,c=t.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=ge(s,l,c),h=pe,f=u(l,d,"before"==c);return null!=h&&(f.other=u(l,h,"before"!=c)),f}function _r(e,t){var n=0;t=vt(e.doc,t),e.options.lineWrapping||(n=Ir(e.display)*t.ch);var r=nt(e.doc,t.line),i=dn(r)+Zn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ar(e,t,n,r,i){var o=ut(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Lr(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Ar(r.first,0,null,-1,-1);var i=st(r,n),o=r.first+r.size-1;if(i>o)return Ar(r.first+r.size-1,nt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=nt(r,i);;){var s=Mr(e,a,i,t,n),l=tn(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==i)return c;a=nt(r,i=c.line)}}function Tr(e,t,n,r){r-=xr(t);var i=t.text.length,o=he((function(t){return lr(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=he((function(t){return lr(e,n,t).top>r}),o,i)}}function Er(e,t,n,r){return n||(n=sr(e,t)),Tr(e,t,n,wr(e,t,lr(e,n,r),"line").top)}function Or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Mr(e,t,n,r,i){i-=dn(t);var o=sr(e,t),a=xr(t),s=0,l=t.text.length,c=!0,u=ve(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?Dr:Pr)(e,t,n,o,u,r,i);s=(c=1!=d.level)?d.from:d.to-1,l=c?d.to:d.from-1}var h,f,p=null,g=null,m=he((function(t){var n=lr(e,o,t);return n.top+=a,n.bottom+=a,!!Or(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,g=n),!0)}),s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==c;m=p+(b?0:1),f=b?"after":"before",h=y?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==t.text.length?"before":lr(e,o,m-(c?1:0)).bottom+a<=i==c?"after":"before";var x=Sr(e,ut(n,m,f),"line",t,o);h=x.left,v=i<x.top?-1:i>=x.bottom?1:0}return Ar(n,m=de(t.text,m,1),f,v,r-h)}function Pr(e,t,n,r,i,o,a){var s=he((function(s){var l=i[s],c=1!=l.level;return Or(Sr(e,ut(n,c?l.to:l.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var c=1!=l.level,u=Sr(e,ut(n,c?l.from:l.to,c?"after":"before"),"line",t,r);Or(u,o,a,!0)&&u.top>a&&(l=i[s-1])}return l}function Dr(e,t,n,r,i,o,a){var s=Tr(e,t,r,a),l=s.begin,c=s.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,h=0;h<i.length;h++){var f=i[h];if(!(f.from>=c||f.to<=l)){var p=lr(e,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,g=p<o?o-p+1e9:p-o;(!u||d>g)&&(u=f,d=g)}}return u||(u=i[i.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function Nr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==cr){cr=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)cr.appendChild(document.createTextNode("x")),cr.appendChild(O("br"));cr.appendChild(document.createTextNode("x"))}E(e.measure,cr);var n=cr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),T(e.measure),n||1}function Ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");E(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Rr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Rr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function zr(e){var t=Nr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Ir(e.display)-3);return function(i){if(cn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function jr(e){var t=e.doc,n=zr(e);t.iter((function(e){var t=n(e);t!=e.height&&ot(e,t)}))}function Hr(e,t,n,r){var i=e.display;if(!n&&"true"==Me(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var l,c=Lr(e,o,a);if(r&&c.xRel>0&&(l=nt(e.doc,c.line).text).length==c.ch){var u=W(l,l.length,e.options.tabSize)-l.length;c=ut(c.line,Math.max(0,Math.round((o-Jn(e.display).left)/Ir(e.display))-u))}return c}function Yr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function Br(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)It&&sn(e.doc,t)<i.viewTo&&Xr(e);else if(n<=i.viewFrom)It&&ln(e.doc,n+r)>i.viewFrom?Xr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Xr(e);else if(t<=i.viewFrom){var o=$r(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Xr(e)}else if(n>=i.viewTo){var a=$r(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Xr(e)}else{var s=$r(e,t,t,-1),l=$r(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Xr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function Wr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Yr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==$(a,n)&&a.push(n)}}}function Xr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function $r(e,t,n,r){var i,o=Yr(e,t),a=e.display.view;if(!It||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;sn(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Gr(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Yr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(Tn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Yr(e,n)))),r.viewTo=n}function Vr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function Ur(e){e.display.input.showSelection(e.display.input.prepareSelection())}function qr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var c=l.empty();if(a){var u=a(e,l);u&&Zr(e,u,i)}else(c||e.options.showCursorWhenSelecting)&&Zr(e,l.head,i);c||Jr(e,l,o)}}return r}function Zr(e,t,n){var r=Sr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Cr(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Kr(e,t){return e.top-t.top||e.left-t.left}function Jr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Jn(e.display),s=a.left,l=Math.max(r.sizerWidth,er(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n                             top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n                             height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=nt(i,t),h=d.text.length;function f(n,r){return Cr(e,ut(t,n),"div",d,r)}function p(t,n,r){var i=Er(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return f("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var g=ve(d,i.direction);return fe(g,n||0,null==r?h:r,(function(e,t,i,d){var m="ltr"==i,v=f(e,m?"left":"right"),y=f(t-1,m?"right":"left"),b=null==n&&0==e,x=null==r&&t==h,w=0==d,k=!g||d==g.length-1;if(y.top-v.top<=3){var C=(c?x:b)&&k,S=(c?b:x)&&w?s:(m?v:y).left,_=C?l:(m?y:v).right;u(S,v.top,_-S,v.bottom)}else{var A,L,T,E;m?(A=c&&b&&w?s:v.left,L=c?l:p(e,i,"before"),T=c?s:p(t,i,"after"),E=c&&x&&k?l:y.right):(A=c?p(e,i,"before"):s,L=!c&&b&&w?l:v.right,T=!c&&x&&k?s:y.left,E=c?p(t,i,"after"):l),u(A,v.top,L-A,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(T,y.top,E-T,y.bottom)}(!o||Kr(v,o)<0)&&(o=v),Kr(y,o)<0&&(o=y),(!a||Kr(v,a)<0)&&(a=v),Kr(y,a)<0&&(a=y)})),{start:o,end:a}}var h=t.from(),f=t.to();if(h.line==f.line)d(h.line,h.ch,f.ch);else{var p=nt(i,h.line),g=nt(i,f.line),m=rn(p)==rn(g),v=d(h.line,h.ch,m?p.text.length+1:null).end,y=d(f.line,m?0:null,f.ch).start;m&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(o)}function Qr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||ri(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ei(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ni(e))}function ti(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ri(e))}),100)}function ni(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ke(e,"focus",e,t),e.state.focused=!0,N(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Qr(e))}function ri(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ke(e,"blur",e,t),e.state.focused=!1,L(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ii(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var c=t.view[l],u=e.options.lineWrapping,d=void 0,h=0;if(!c.hidden){if(i+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;d=f-n,n=f}else{var p=c.node.getBoundingClientRect();d=p.bottom-p.top,!u&&c.text.firstChild&&(h=c.text.firstChild.getBoundingClientRect().right-p.left-1)}var g=c.line.height-d;if((g>.005||g<-.005)&&(i<r&&(o-=g),ot(c.line,d),oi(c.line),c.rest))for(var m=0;m<c.rest.length;m++)oi(c.rest[m]);if(h>e.display.sizerWidth){var v=Math.ceil(h/Ir(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=c.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function oi(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ai(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Zn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=st(t,r),a=st(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=st(t,dn(nt(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=st(t,dn(nt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function si(e,t){if(!Ce(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!g){var a=O("div","​",null,"position: absolute;\n                         top: "+(t.top-n.viewOffset-Zn(e.display))+"px;\n                         height: "+(t.bottom-t.top+Qn(e)+n.barHeight)+"px;\n                         left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function li(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ut(t.line,t.ch+1,"before"):t,t=t.ch?ut(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Sr(e,t),l=n&&n!=t?Sr(e,n):s,c=ui(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(vi(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(bi(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function ci(e,t){var n=ui(e,t);null!=n.scrollTop&&vi(e,n.scrollTop),null!=n.scrollLeft&&bi(e,n.scrollLeft)}function ui(e,t){var n=e.display,r=Nr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=tr(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Kn(n),l=t.top<r,c=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(c?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,f=er(e)-n.gutters.offsetWidth,p=t.right-t.left>f;return p&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.left<h?a.scrollLeft=Math.max(0,t.left+d-(p?0:10)):t.right>f+h-3&&(a.scrollLeft=t.right+(p?0:10)-f),a}function di(e,t){null!=t&&(gi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function hi(e){gi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fi(e,t,n){null==t&&null==n||gi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function pi(e,t){gi(e),e.curOp.scrollToPos=t}function gi(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,mi(e,_r(e,t.from),_r(e,t.to),t.margin))}function mi(e,t,n,r){var i=ui(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});fi(e,i.scrollLeft,i.scrollTop)}function vi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ui(e,{top:t}),yi(e,t,!0),n&&Ui(e),Hi(e,100))}function yi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function bi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Ji(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function xi(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Kn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Qn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var wi=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),be(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),be(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};wi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},wi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},wi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},wi.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new X,this.disableVert=new X},wi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},wi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ki=function(){};function Ci(e,t){t||(t=xi(e));var n=e.display.barWidth,r=e.display.barHeight;Si(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ii(e),Si(e,xi(e)),n=e.display.barWidth,r=e.display.barHeight}function Si(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}ki.prototype.update=function(){return{bottom:0,right:0}},ki.prototype.setScrollLeft=function(){},ki.prototype.setScrollTop=function(){},ki.prototype.clear=function(){};var _i={native:wi,null:ki};function Ai(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new _i[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),be(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?bi(e,t):vi(e,t)}),e),e.display.scrollbars.addClass&&N(e.display.wrapper,e.display.scrollbars.addClass)}var Li=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Li,markArrays:null},On(e.curOp)}function Ei(e){var t=e.curOp;t&&Pn(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Oi(e)}))}function Oi(e){for(var t=e.ops,n=0;n<t.length;n++)Mi(t[n]);for(var r=0;r<t.length;r++)Pi(t[r]);for(var i=0;i<t.length;i++)Di(t[i]);for(var o=0;o<t.length;o++)Ni(t[o]);for(var a=0;a<t.length;a++)Ii(t[a])}function Mi(e){var t=e.cm,n=t.display;Wi(t),e.updateMaxLine&&fn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Bi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Pi(e){e.updatedDisplay=e.mustUpdate&&Gi(e.cm,e.update)}function Di(e){var t=e.cm,n=t.display;e.updatedDisplay&&ii(t),e.barMeasure=xi(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=or(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Qn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-er(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Ni(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&bi(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==D(z(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ci(t,e.barMeasure),e.updatedDisplay&&Ki(t,e.barMeasure),e.selectionChanged&&Qr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&ei(e.cm)}function Ii(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&Vi(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&yi(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&bi(t,e.scrollLeft,!0,!0),e.scrollToPos&&si(t,li(t,vt(r,e.scrollToPos.from),vt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||ke(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&ke(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ke(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Fi(e,t){if(e.curOp)return t();Ti(e);try{return t()}finally{Ei(e)}}function Ri(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Ti(e);try{return t.apply(e,arguments)}finally{Ei(e)}}}function zi(e){return function(){if(this.curOp)return e.apply(this,arguments);Ti(this);try{return e.apply(this,arguments)}finally{Ei(this)}}}function ji(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Ti(t);try{return e.apply(this,arguments)}finally{Ei(t)}}}function Hi(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,Y(Yi,e))}function Yi(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=St(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Je(t.mode,r.state):null,l=kt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var c=o.styleClasses,u=l.classes;u?o.styleClasses=u:c&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),h=0;!d&&h<a.length;++h)d=a[h]!=o.styles[h];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&_t(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return Hi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Fi(e,(function(){for(var t=0;t<i.length;t++)Wr(e,i[t],"text")}))}}var Bi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ai(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=er(e),this.force=n,this.dims=Fr(e),this.events=[]};function Wi(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Qn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Qn(e)+"px",t.scrollbarsClipped=!0)}function Xi(e){if(e.hasFocus())return null;var t=D(z(e));if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=H(e).getSelection();r.anchorNode&&r.extend&&P(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function $i(e){if(e&&e.activeElt&&e.activeElt!=D(j(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}function Gi(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Xr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Vr(e))return!1;Qi(e)&&(Xr(e),t.dims=Fr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),It&&(o=sn(e.doc,o),a=ln(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gr(e,o,a),n.viewOffset=dn(nt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=Vr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Xi(e);return l>4&&(n.lineDiv.style.display="none"),qi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,$i(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Hi(e,400)),n.updateLineNumbers=null,!0}function Vi(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=er(e))r&&(t.visible=ai(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Kn(e.display)-tr(e),n.top)}),t.visible=ai(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Gi(e,t))break;ii(e);var i=xi(e);Ur(e),Ci(e,i),Ki(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new Bi(e,t);if(Gi(e,n)){ii(e),Vi(e,n);var r=xi(e);Ur(e),Ci(e,r),Ki(e,r),n.finish()}}function qi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var h=c[d];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;a!=h.node;)a=s(a);var f=i&&null!=t&&t<=u&&h.lineNumber;h.changes&&($(h.changes,"gutter")>-1&&(f=!1),Fn(e,h,u,n)),f&&(T(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(ct(e.options,u)))),a=h.node.nextSibling}else{var p=Xn(e,h,u,n);o.insertBefore(p,a)}u+=h.size}for(;a;)a=s(a)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",Nn(e,"gutterChanged",e)}function Ki(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Qn(e)+"px"}function Ji(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Rr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function Qi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=ct(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Zi(e.display),!0}return!1}function eo(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function to(e){var t=e.gutters,n=e.gutterSpecs;T(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(O("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Zi(e)}function no(e){to(e.display),Br(e),Ji(e)}function ro(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=M("div",null,"CodeMirror-code"),o.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=O("div",null,"CodeMirror-cursors"),o.measure=O("div",null,"CodeMirror-measure"),o.lineMeasure=O("div",null,"CodeMirror-measure"),o.lineSpace=M("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var c=M("div",[o.lineSpace],"CodeMirror-lines");o.mover=O("div",[c],null,"position: relative"),o.sizer=O("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=O("div",null,null,"position: absolute; height: "+G+"px; width: 1px;"),o.gutters=O("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=O("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=O("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),u&&d>=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=eo(i.gutters,i.lineNumbers),to(o),r.init(o)}Bi.prototype.signal=function(e,t){_e(e,t)&&this.events.push(arguments)},Bi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ke.apply(null,this.events[e])};var io=0,oo=null;function ao(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function so(e){var t=ao(e);return t.x*=oo,t.y*=oo,t}function lo(e,t){u&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout((function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""}),100));var r=ao(t),i=r.x,o=r.y,a=oo;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,c=s.scroller,f=c.scrollWidth>c.clientWidth,p=c.scrollHeight>c.clientHeight;if(i&&f||o&&p){if(o&&b&&l)e:for(var g=t.target,m=s.view;g!=c;g=g.parentNode)for(var v=0;v<m.length;v++)if(m[v].node==g){e.display.currentWheelTarget=g;break e}if(i&&!n&&!h&&null!=a)return o&&p&&vi(e,Math.max(0,c.scrollTop+o*a)),bi(e,Math.max(0,c.scrollLeft+i*a)),(!o||o&&p)&&Le(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,x=e.doc.scrollTop,w=x+s.wrapper.clientHeight;y<0?x=Math.max(0,x+y-50):w=Math.min(e.doc.height,w+y+50),Ui(e,{top:x,bottom:w})}io<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=c.scrollLeft,s.wheelStartY=c.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout((function(){if(null!=s.wheelStartX){var e=c.scrollLeft-s.wheelStartX,t=c.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(oo=(oo*io+n)/(io+1),++io)}}),200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?oo=-.53:n?oo=15:u?oo=-.7:f&&(oo=-1/3);var co=function(e,t){this.ranges=e,this.primIndex=t};co.prototype.primary=function(){return this.ranges[this.primIndex]},co.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!ht(n.anchor,r.anchor)||!ht(n.head,r.head))return!1}return!0},co.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new uo(ft(this.ranges[t].anchor),ft(this.ranges[t].head));return new co(e,this.primIndex)},co.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},co.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(dt(t,r.from())>=0&&dt(e,r.to())<=0)return n}return-1};var uo=function(e,t){this.anchor=e,this.head=t};function ho(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return dt(e.from(),t.from())})),n=$(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=dt(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=gt(s.from(),a.from()),u=pt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new uo(d?u:c,d?c:u))}}return new co(t,n)}function fo(e,t){return new co([new uo(e,t||e)],0)}function po(e){return e.text?ut(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function go(e,t){if(dt(e,t.from)<0)return e;if(dt(e,t.to)<=0)return po(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=po(t).ch-t.to.ch),ut(n,r)}function mo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new uo(go(i.anchor,t),go(i.head,t)))}return ho(e.cm,n,e.sel.primIndex)}function vo(e,t,n){return e.line==t.line?ut(n.line,e.ch-t.ch+n.ch):ut(n.line+(e.line-t.line),e.ch)}function yo(e,t,n){for(var r=[],i=ut(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=vo(s.from,i,o),c=vo(po(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=dt(u.head,u.anchor)<0;r[a]=new uo(d?c:l,d?l:c)}else r[a]=new uo(l,l)}return new co(r,e.sel.primIndex)}function bo(e){e.doc.mode=qe(e.options,e.doc.modeOption),xo(e)}function xo(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Hi(e,100),e.state.modeGen++,e.curOp&&Br(e)}function wo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==ee(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ko(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){gn(e,n,i,r),Nn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new pn(c[o],i(o),r));return n}var s=t.from,l=t.to,c=t.text,u=nt(e,s.line),d=nt(e,l.line),h=ee(c),f=i(c.length-1),p=l.line-s.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(wo(e,t)){var g=a(0,c.length-1);o(d,d.text,f),p&&e.remove(s.line,p),g.length&&e.insert(s.line,g)}else if(u==d)if(1==c.length)o(u,u.text.slice(0,s.ch)+h+u.text.slice(l.ch),f);else{var m=a(1,c.length-1);m.push(new pn(h+u.text.slice(l.ch),f,r)),o(u,u.text.slice(0,s.ch)+c[0],i(0)),e.insert(s.line+1,m)}else if(1==c.length)o(u,u.text.slice(0,s.ch)+c[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,p);else{o(u,u.text.slice(0,s.ch)+c[0],i(0)),o(d,h+d.text.slice(l.ch),f);var v=a(1,c.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}Nn(e,"change",e,t)}function Co(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function So(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,jr(e),bo(e),_o(e),e.options.direction=t.direction,e.options.lineWrapping||fn(e),e.options.mode=t.modeOption,Br(e)}function _o(e){("rtl"==e.doc.direction?N:L)(e.display.lineDiv,"CodeMirror-rtl")}function Ao(e){Fi(e,(function(){_o(e),Br(e)}))}function Lo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function To(e,t){var n={from:ft(t.from),to:po(t),text:rt(e,t.from,t.to)};return Io(e,n,t.from.line,t.to.line+1),Co(e,(function(e){return Io(e,n,t.from.line,t.to.line+1)}),!0),n}function Eo(e){for(;e.length&&ee(e).ranges;)e.pop()}function Oo(e,t){return t?(Eo(e.done),ee(e.done)):e.done.length&&!ee(e.done).ranges?ee(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function Mo(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(i,i.lastOp==r)))a=ee(o.changes),0==dt(t.from,t.to)&&0==dt(t.from,a.to)?a.to=po(t):o.changes.push(To(e,t));else{var l=ee(i.done);for(l&&l.ranges||No(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ke(e,"historyAdded")}function Po(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Do(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Po(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:No(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Eo(i.undone)}function No(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Io(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Fo(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ro(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Fo(n[i]));return r}function zo(e,t){var n=Ro(e,t),r=Xt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function jo(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?co.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&$(t,Number(u[1]))>-1&&(ee(s)[d]=c[d],delete c[d])}}}return r}function Ho(e,t,n,r){if(r){var i=e.anchor;if(n){var o=dt(t,i)<0;o!=dt(n,i)<0?(i=t,t=n):o!=dt(t,n)<0&&(t=n)}return new uo(i,t)}return new uo(n||t,t)}function Yo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new co([Ho(e.sel.primary(),t,n,i)],0),r)}function Bo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Ho(e.sel.ranges[o],t[o],null,i);Vo(e,ho(e.cm,r,e.sel.primIndex),n)}function Wo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Vo(e,ho(e.cm,i,e.sel.primIndex),r)}function Xo(e,t,n,r){Vo(e,fo(t,n),r)}function $o(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new uo(vt(e,t[n].anchor),vt(e,t[n].head))},origin:n&&n.origin};return ke(e,"beforeSelectionChange",e,r),e.cm&&ke(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ho(e.cm,r.ranges,r.ranges.length-1):t}function Go(e,t,n){var r=e.history.done,i=ee(r);i&&i.ranges?(r[r.length-1]=t,Uo(e,t,n)):Vo(e,t,n)}function Vo(e,t,n){Uo(e,t,n),Do(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Uo(e,t,n){(_e(e,"beforeSelectionChange")||e.cm&&_e(e.cm,"beforeSelectionChange"))&&(t=$o(e,t,n));var r=n&&n.bias||(dt(t.primary().head,e.sel.primary().head)<0?-1:1);qo(e,Ko(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||hi(e.cm)}function qo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Se(e.cm)),Nn(e,"cursorActivity",e))}function Zo(e){qo(e,Ko(e,e.sel,null,!1))}function Ko(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=Qo(e,a.anchor,s&&s.anchor,n,r),c=a.head==a.anchor?l:Qo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new uo(l,c))}return i?ho(e.cm,i,t.primIndex):t}function Jo(e,t,n,r,i){var o=nt(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(ke(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),h=void 0;if((r<0?u:c)&&(d=ea(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(h=dt(d,n))&&(r<0?h<0:h>0))return Jo(e,d,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=ea(e,f,r,f.line==t.line?o:null)),f?Jo(e,f,t,r,i):null}}return t}function Qo(e,t,n,r,i){var o=r||1,a=Jo(e,t,n,o,i)||!i&&Jo(e,t,n,o,!0)||Jo(e,t,n,-o,i)||!i&&Jo(e,t,n,-o,!0);return a||(e.cantEdit=!0,ut(e.first,0))}function ea(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?vt(e,ut(t.line-1)):null:n>0&&t.ch==(r||nt(e,t.line)).text.length?t.line<e.first+e.size-1?ut(t.line+1,0):null:new ut(t.line,t.ch+n)}function ta(e){e.setSelection(ut(e.firstLine(),0),ut(e.lastLine()
vendor: 7,005 bytes, line 2
2),U)}function na(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=vt(e,t)),n&&(r.to=vt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),ke(e,"beforeChange",e,r),e.cm&&ke(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ra(e,t,n){if(e.cm){if(!e.cm.curOp)return Ri(e.cm,ra)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"))||(t=na(e,t,!0))){var r=Nt&&!n&&Gt(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ia(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ia(e,t)}}function ia(e,t){if(1!=t.text.length||""!=t.text[0]||0!=dt(t.from,t.to)){var n=mo(e,t);Mo(e,t,n,e.cm?e.cm.curOp.id:NaN),sa(e,t,n,Xt(e,t));var r=[];Co(e,(function(e,n){n||-1!=$(r,e.history)||(ha(e.history,t),r.push(e.history)),sa(e,t,null,Xt(e,t))}))}}function oa(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,c=0;c<s.length&&(i=s[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(No(i,l),n&&!i.equals(e.sel))return void Vo(e,i,{clearRedo:!1});a=i}var u=[];No(a,l),l.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=_e(e,"beforeChange")||e.cm&&_e(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,d&&!na(e,r,!1))return s.length=0,{};u.push(To(e,r));var o=n?mo(e,r):ee(s);sa(e,r,o,zo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:po(r)});var a=[];Co(e,(function(e,t){t||-1!=$(a,e.history)||(ha(e.history,r),a.push(e.history)),sa(e,r,null,zo(e,r))}))},f=i.changes.length-1;f>=0;--f){var p=h(f);if(p)return p.v}}}}function aa(e,t){if(0!=t&&(e.first+=t,e.sel=new co(te(e.sel.ranges,(function(e){return new uo(ut(e.anchor.line+t,e.anchor.ch),ut(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Br(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)Wr(e.cm,r,"gutter")}}function sa(e,t,n,r){if(e.cm&&!e.cm.curOp)return Ri(e.cm,sa)(e,t,n,r);if(t.to.line<e.first)aa(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);aa(e,i),t={from:ut(e.first,0),to:ut(t.to.line+i,t.to.ch),text:[ee(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:ut(o,nt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=rt(e,t.from,t.to),n||(n=mo(e,t)),e.cm?la(e.cm,t,r):ko(e,t,r),Uo(e,n,U),e.cantEdit&&Qo(e,ut(e.firstLine(),0))&&(e.cantEdit=!1)}}function la(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=at(rn(nt(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&Se(e),ko(r,t,n,zr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=hn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),Dt(r,o.line),Hi(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?Br(e):o.line!=a.line||1!=t.text.length||wo(e.doc,t)?Br(e,o.line,a.line+1,c):Wr(e,o.line,"text");var u=_e(e,"changes"),d=_e(e,"change");if(d||u){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&Nn(e,"change",e,h),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function ca(e,t,n,r,i){var o;r||(r=n),dt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),ra(e,{from:n,to:r,text:t,origin:i})}function ua(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function da(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)ua(o.ranges[s].anchor,t,n,r),ua(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var c=o.changes[l];if(n<c.from.line)c.from=ut(c.from.line+r,c.from.ch),c.to=ut(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ha(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;da(e.done,n,r,i),da(e.undone,n,r,i)}function fa(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=nt(e,mt(e,t)):i=at(t),null==i?null:(r(o,i)&&e.cm&&Wr(e.cm,i,n),o)}function pa(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ga(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}uo.prototype.from=function(){return gt(this.anchor,this.head)},uo.prototype.to=function(){return pt(this.anchor,this.head)},uo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},pa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,mn(i),Nn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ga.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof pa))){var s=[];this.collapse(s),this.children=[new pa(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new pa(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new ga(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=$(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new ga(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;
vendor: 12,364 bytes, line 2
2if(0==(t-=a))break;e=0}else e-=o}}};var ma=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function va(e,t,n){dn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&di(e,n)}function ya(e,t,n,r){var i=new ma(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),fa(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!cn(e,t)){var r=dn(t)<e.scrollTop;ot(t,t.height+Un(i)),r&&di(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&Nn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:at(t)),i}ma.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=at(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Un(this);ot(n,Math.max(0,n.height-o)),e&&(Fi(e,(function(){va(e,n,-o),Wr(e,r,"widget")})),Nn(e,"lineWidgetCleared",e,this,r))}},ma.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Un(this)-t;i&&(cn(this.doc,r)||ot(r,r.height+i),n&&Fi(n,(function(){n.curOp.forceUpdate=!0,va(n,r,i),Nn(n,"lineWidgetChanged",n,e,at(r))})))},Ae(ma);var ba=0,xa=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ba};function wa(e,t,n,r,i){if(r&&r.shared)return Ca(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return Ri(e.cm,wa)(e,t,n,r,i);var o=new xa(e,i),a=dt(t,n);if(r&&B(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=M("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(nn(e,t.line,t,n,o)||t.line!=n.line&&nn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Rt()}o.addToHistory&&Mo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&rn(r)==c.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&ot(r,0),Yt(r,new zt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){cn(e,t)&&ot(t,0)})),o.clearOnEnter&&be(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Ft(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ba,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)Br(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)Wr(c,u,"text");o.atomic&&Zo(c.doc),Nn(c,"markerAdded",c,o)}return o}xa.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),_e(this,"clear")){var n=this.find();n&&Nn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=jt(a.markedSpans,this);e&&!this.collapsed?Wr(e,at(a),"text"):e&&(null!=s.to&&(i=at(a)),null!=s.from&&(r=at(a))),a.markedSpans=Ht(a.markedSpans,s),null==s.from&&this.collapsed&&!cn(this.doc,a)&&e&&ot(a,Nr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=rn(this.lines[l]),u=hn(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Br(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Zo(e.doc)),e&&Nn(e,"markerCleared",e,this,r,i),t&&Ei(e),this.parent&&this.parent.clear()}},xa.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=jt(o.markedSpans,this);if(null!=a.from&&(n=ut(t?o:at(o),a.from),-1==e))return n;if(null!=a.to&&(r=ut(t?o:at(o),a.to),1==e))return r}return n&&{from:n,to:r}},xa.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Fi(r,(function(){var i=t.line,o=at(t.line),a=ar(r,o);if(a&&(gr(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!cn(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var l=Un(n)-s;l&&ot(i,i.height+l)}Nn(r,"markerChanged",r,e)}))},xa.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=$(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},xa.prototype.detachLine=function(e){if(this.lines.splice($(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ae(xa);var ka=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Ca(e,t,n,r,i){(r=B(r)).shared=!1;var o=[wa(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Co(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(wa(e,vt(e,t),vt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=ee(o)})),new ka(o,a)}function Sa(e){return e.findMarks(ut(e.first,0),e.clipPos(ut(e.lastLine())),(function(e){return e.parent}))}function _a(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(dt(o,a)){var s=wa(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function Aa(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Co(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==$(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}ka.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Nn(this,"clear")}},ka.prototype.find=function(e,t){return this.primary.find(e,t)},Ae(ka);var La=0,Ta=function(e,t,n,r,i){if(!(this instanceof Ta))return new Ta(e,t,n,r,i);null==n&&(n=0),ga.call(this,[new pa([new pn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=ut(n,0);this.sel=fo(o),this.history=new Lo(null),this.id=++La,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),ko(this,{from:o,to:o,text:e}),Vo(this,fo(o),U)};Ta.prototype=ie(ga.prototype,{constructor:Ta,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=it(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ji((function(e){var t=ut(this.first,0),n=this.first+this.size-1;ra(this,{from:t,to:ut(n,nt(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&fi(this.cm,0,0),Vo(this,fo(t),U)})),replaceRange:function(e,t,n,r){ca(this,e,t=vt(this,t),n=n?vt(this,n):t,r)},getRange:function(e,t,n){var r=rt(this,vt(this,e),vt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(lt(this,e))return nt(this,e)},getLineNumber:function(e){return at(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=nt(this,e)),rn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return vt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ji((function(e,t,n){Xo(this,vt(this,"number"==typeof e?ut(e,t||0):e),null,n)})),setSelection:ji((function(e,t,n){Xo(this,vt(this,e),vt(this,t||e),n)})),extendSelection:ji((function(e,t,n){Yo(this,vt(this,e),t&&vt(this,t),n)})),extendSelections:ji((function(e,t){Bo(this,bt(this,e),t)})),extendSelectionsBy:ji((function(e,t){Bo(this,bt(this,te(this.sel.ranges,e)),t)})),setSelections:ji((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new uo(vt(this,e[i].anchor),vt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Vo(this,ho(this.cm,r,t),n)}})),addSelection:ji((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new uo(vt(this,e),vt(this,t||e))),Vo(this,ho(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=rt(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=rt(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ji((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&yo(this,r,t),l=r.length-1;l>=0;l--)ra(this,r[l]);s?Go(this,s):this.cm&&hi(this.cm)})),undo:ji((function(){oa(this,"undo")})),redo:ji((function(){oa(this,"redo")})),undoSelection:ji((function(){oa(this,"undo",!0)})),redoSelection:ji((function(){oa(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Lo(this.history),Co(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:jo(this.history.done),undone:jo(this.history.undone)}},setHistory:function(e){var t=this.history=new Lo(this.history);t.done=jo(e.done.slice(0),null,!0),t.undone=jo(e.undone.slice(0),null,!0)},setGutterMarker:ji((function(e,t,n){return fa(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&le(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ji((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&fa(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,le(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!lt(this,e))return null;if(t=e,!(e=nt(this,e)))return null}else if(null==(t=at(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ji((function(e,t,n){return fa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(_(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ji((function(e,t,n){return fa(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(_(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ji((function(e,t,n){return ya(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return wa(this,vt(this,e),vt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return wa(this,e=vt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=nt(this,(e=vt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>
vendor: 4,246 bytes, line 2
2=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=vt(this,e),t=vt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),vt(this,ut(n,t))},indexFromPos:function(e){var t=(e=vt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ta(it(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ta(it(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],_a(r,Sa(this)),r},unlinkDoc:function(e){if(e instanceof Bs&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Aa(Sa(this));break}if(e.history==this.history){var n=[e.id];Co(e,(function(e){return n.push(e.id)}),!0),e.history=new Lo(null),e.history.done=jo(this.history.done,n),e.history.undone=jo(this.history.undone,n)}},iterLinkedDocs:function(e){Co(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):je(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ji((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Ao(this.cm))}))}),Ta.prototype.eachLine=Ta.prototype.iter;var Ea=0;function Oa(e){var t=this;if(Da(t),!Ce(t,e)&&!qn(t.display,e)){Le(e),a&&(Ea=+new Date);var n=Hr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&Ri(t,(function(){var e={from:n=vt(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ra(t.doc,e),Go(t.doc,fo(vt(t.doc,n),vt(t.doc,po(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==$(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),Uo(t.doc,fo(n,n)),h)for(var f=0;f<h.length;++f)ca(t.doc,"",h[f].anchor,h[f].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ma(e,t){if(a&&(!e.state.draggingText||+new Date-Ea<100))Oe(t);else if(!Ce(e,t)&&!qn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}function Pa(e,t){var n=Hr(e,t);if(n){var r=document.createDocumentFragment();
vendor: 7,592 bytes, line 2
2Zr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),E(e.display.dragCursor,r)}}function Da(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Na(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Ia=!1;function Fa(){Ia||(Ra(),Ia=!0)}function Ra(){var e;be(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Na(za)}),100))})),be(window,"blur",(function(){return Na(ri)}))}function za(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var ja={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ha=0;Ha<10;Ha++)ja[Ha+48]=ja[Ha+96]=String(Ha);for(var Ya=65;Ya<=90;Ya++)ja[Ya]=String.fromCharCode(Ya);for(var Ba=1;Ba<=12;Ba++)ja[Ba+111]=ja[Ba+63235]="F"+Ba;var Wa={};function Xa(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function $a(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=te(n.split(" "),Xa),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ga(e,t,n,r){var i=(t=Za(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ga(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ga(e,t.fallthrough[o],n,r);if(a)return a}}}function Va(e){var t="string"==typeof e?e:ja[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Ua(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function qa(e,t){if(h&&34==e.keyCode&&e.char)return!1;var n=ja[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Ua(n,e,t))}function Za(e){return"string"==typeof e?Wa[e]:e}function Ka(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&dt(o.from,ee(r).to)<=0;){var a=r.pop();if(dt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Fi(e,(function(){for(var t=r.length-1;t>=0;t--)ca(e.doc,"",r[t].from,r[t].to,"+delete");hi(e)}))}function Ja(e,t,n){var r=de(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Qa(e,t,n){var r=Ja(e,t.ch,n);return null==r?null:new ut(t.line,r,n<0?"after":"before")}function es(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=sr(t,n);a=i<0?n.text.length-1:0;var u=lr(t,c,a).top;a=he((function(e){return lr(t,c,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Ja(n,a,1))}else a=i<0?s.to:s.from;return new ut(r,a,l)}}return new ut(r,i<0?n.text.length:0,i<0?"before":"after")}function ts(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Qa(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ge(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Qa(t,n,r);var s,l=function(e,n){return Ja(t,e instanceof ut?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(s=s||sr(e,t),Er(e,t,s,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,h=l(n,d?1:-1);if(null!=h&&(d?h<=a.to&&h<=u.end:h>=a.from&&h>=u.begin)){var f=d?"before":"after";return new ut(n.line,h,f)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ut(n.line,l(e,1),"before"):new ut(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return o(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return o(c,s)}},g=p(o+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==t.text.length||!(g=p(r>0?0:i.length-1,r,c(m)))?null:g}Wa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wa.default=b?Wa.macDefault:Wa.pcDefault;var ns={selectAll:ta,singleSelection:function(e){return e.setSelection(e.getCursor("anch
2or"),e.getCursor("head"),U)},killLine:function(e){return Ka(e,(function(t){if(t.empty()){var n=nt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:ut(t.head.line+1,0)}:{from:t.head,to:ut(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Ka(e,(function(t){return{from:ut(t.from().line,0),to:vt(e.doc,ut(t.to().line+1,0))}}))},delLineLeft:function(e){return Ka(e,(function(e){return{from:ut(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Ka(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Ka(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(ut(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ut(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return rs(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return os(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return is(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),Z)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),Z)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?os(e,t.head):r}),Z)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=W(e.getLine(o.line),o.ch,r);t.push(Q(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Fi(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=nt(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new ut(i.line,i.ch-1)),i.ch>0)i=new ut(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ut(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=nt(e.doc,i.line-1).text;a&&(i=new ut(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ut(i.line-1,a.length-1),i,"+transpose"))}n.push(new uo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Fi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);hi(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function rs(e,t){var n=nt(e.doc,t),r=rn(n);return r!=n&&(t=at(r)),es(!0,e,r,t,1)}function is(e,t){var n=nt(e.doc,t),r=on(n);return r!=n&&(t=at(r)),es(!0,e,n,t,-1)}function os(e,t){var n=rs(e,t.line),r=nt(e.doc,n.line),i=ve(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return ut(n.line,a?0:o,n.sticky)}return n}function as(e,t,n){if("string"==typeof t&&!(t=ns[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=V}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function ss(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ga(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ga(t,e.options.extraKeys,n,e)||Ga(t,e.options.keyMap,n,e)}var ls=new X;function cs(e,t,n,r){var i=e.state.keySeq;if(i){if(Va(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ls.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),us(e,i+" "+t,n,r))return!0}return us(e,t,n,r)}function us(e,t,n,r){var i=ss(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&Nn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Le(n),Qr(e)),!!i}function ds(e,t){var n=qa(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?cs(e,"Shift-"+n,t,(function(t){return as(e,t,!0)}))||cs(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return as(e,t)})):cs(e,n,t,(function(t){return as(e,t)})))}function hs(e,t,n){return cs(e,"'"+n+"'",t,(function(t){return as(e,t,!0)}))}var fs=null;function ps(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=D(z(t)),Ce(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ds(t,e);h&&(fs=i?r:null,i||88!=r||Ye||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||gs(t)}}
vendor: 1,767 bytes, line 2
2function gs(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(L(t,"CodeMirror-crosshair"),we(document,"keyup",n),we(document,"mouseover",n))}N(t,"CodeMirror-crosshair"),be(document,"keyup",n),be(document,"mouseover",n)}function ms(e){16==e.keyCode&&(this.doc.sel.shift=!1),Ce(this,e)}function vs(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||qn(t.display,e)||Ce(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(h&&n==fs)return fs=null,void Le(e);if(!h||e.which&&!(e.which<10)||!ds(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(hs(t,e,i)||t.display.input.onKeyPress(e))}}}var ys,bs,xs=400,ws=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ks(e,t){var n=+new Date;return bs&&bs.compare(n,e,t)?(ys=bs=null,"triple"):ys&&ys.compare(n,e,t)?(bs=new ws(n,e,t),ys=null,"double"):(ys=new ws(n,e,t),bs=null,"single")}function Cs(e){var t=this,n=t.display;if(!(Ce(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,qn(n,e))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ps(t,e)){var r=Hr(t,e),i=Pe(e),o=r?ks(r,i):"single";H(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&Ss(t,i,r,o,e)||(1==i?r?As(t,r,o,e):Me(e)==n.scroller&&Le(e):2==i?(r&&Yo(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(S?t.display.input.onContextMenu(e):ti(t)))}}function Ss(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),cs(e,Ua(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ns[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=V}finally{e.state.suppressEdits=!1}return r}))}
vendor: 4,546 bytes, line 2
2function _s(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=x?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}function As(e,t,n,r){a?setTimeout(Y(ei,e),0):e.curOp.focus=D(z(e));var i,o=_s(e,n,r),s=e.doc.sel;e.options.dragDrop&&Ie&&!e.isReadOnly()&&"single"==n&&(i=s.contains(t))>-1&&(dt((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(dt(i.to(),t)>0||t.xRel<0)?Ls(e,r,t,o):Es(e,r,t,o)}function Ls(e,t,n,r){var i=e.display,o=!1,c=Ri(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ti(e)),we(i.wrapper.ownerDocument,"mouseup",c),we(i.wrapper.ownerDocument,"mousemove",u),we(i.scroller,"dragstart",d),we(i.scroller,"drop",c),o||(Le(t),r.addNew||Yo(e.doc,n,null,null,r.extend),l&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,be(i.wrapper.ownerDocument,"mouseup",c),be(i.wrapper.ownerDocument,"mousemove",u),be(i.scroller,"dragstart",d),be(i.scroller,"drop",c),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ts(e,t,n){if("char"==n)return new uo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new uo(ut(t.line,0),vt(e.doc,ut(t.line+1,0)));var r=n(e,t);return new uo(r.from,r.to)}function Es(e,t,n,r){a&&ti(e);var i=e.display,o=e.doc;Le(t);var s,l,c=o.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?u[l]:new uo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new uo(n,n)),n=Hr(e,t,!0,!0),l=-1;else{var d=Ts(e,n,r.unit);s=r.extend?Ho(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=u.length,Vo(o,ho(e,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Vo(o,ho(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Wo(o,l,s,q):(l=0,Vo(o,new co([s],0),q),c=o.sel);var h=n;function f(t){if(0!=dt(h,t))if(h=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=W(nt(o,n.line).text,n.ch,a),d=W(nt(o,t.line).text,t.ch,a),f=Math.min(u,d),p=Math.max(u,d),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var v=nt(o,g).text,y=K(v,f,a);f==p?i.push(new uo(ut(g,y),ut(g,y))):v.length>y&&i.push(new uo(ut(g,y),ut(g,K(v,p,a))))}i.length||i.push(new uo(n,n)),Vo(o,ho(e,c.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=s,w=Ts(e,t,r.unit),k=x.anchor;dt(w.anchor,k)>0?(b=w.head,k=gt(x.from(),w.anchor)):(b=w.anchor,k=pt(x.to(),w.head));var C=c.ranges.slice(0);C[l]=Os(e,new uo(vt(o,k),b)),Vo(o,ho(e,C,l),q)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(t){var n=++g,a=Hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=dt(a,h)){e.curOp.focus=D(z(e)),f(a);var s=ai(i,o);(a.line>=s.to||a.line<s.from)&&setTimeout(Ri(e,(function(){g==n&&m(t)})),150)}else{var l=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;l&&setTimeout(Ri(e,(function(){g==n&&(i.scroller.scrollTop+=l,m(t))})),50)}}function v(t){e.state.selectingText=!1,g=1/0,t&&(Le(t),i.input.focus()),we(i.wrapper.ownerDocument,"mousemove",y),we(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var y=Ri(e,(function(e){0!==e.buttons&&Pe(e)?m(e):v(e)})),b=Ri(e,v);e.state.selectingText=b,be(i.wrapper.ownerDocument,"mousemove",y),be(i.wrapper.ownerDocument,"mouseup",b)}function Os(e,t){var n=t.anchor,r=t.head,i=nt(e.doc,n.line);if(0==dt(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=ge(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=ge(o,r.ch,r.sticky),d=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?d<0:d>0}var h=o[c+(l?-1:0)],f=l==(1==h.level),p=f?h.from:h.to,g=f?"after":"before";return n.ch==p&&n.sticky==g?t:new uo(new ut(n.line,p,g),r)}function Ms(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>
vendor: 1,043 bytes, line 2
2=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Le(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!_e(e,n))return Ee(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=i)return ke(e,n,e,st(e.doc,o),e.display.gutterSpecs[l].className,t),Ee(t)}}function Ps(e,t){return Ms(e,t,"gutterClick",!0)}function Ds(e,t){qn(e.display,t)||Ns(e,t)||Ce(e,t,"contextmenu")||S||e.display.input.onContextMenu(t)}function Ns(e,t){return!!_e(e,"gutterContextMenu")&&Ms(e,t,"gutterContextMenu",!1)}function Is(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),vr(e)}ws.prototype.compare=function(e,t,n){return this.time+xs>e&&0==dt(t,this.pos)&&n==this.button};var Fs={toString:function(){return"CodeMirror.Init"}},Rs={},zs={};function js(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Fs&&i(e,t,n
vendor: 29,463 bytes, line 2
2)}:i)}e.defineOption=n,e.Init=Fs,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,bo(e)}),!0),n("indentUnit",2,bo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){xo(e),vr(e),Br(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ut(r,o))}r++}));for(var i=n.length-1;i>=0;i--)ca(e.doc,t,n[i],ut(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Fs&&e.refresh()})),n("specialCharPlaceholder",wn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Is(e),no(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Za(t),i=n!=Fs&&Za(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ys,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=eo(t,e.options.lineNumbers),no(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Rr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ci(e)}),!0),n("scrollbarStyle","native",(function(e){Ai(e),Ci(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=eo(e.options.gutters,t),no(e)}),!0),n("firstLineNumber",1,no,!0),n("lineNumberFormatter",(function(e){return e}),no,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ri(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Hs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,xo,!0),n("addModeClass",!1,xo,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,xo,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Hs(e,t,n){if(!t!=!(n&&n!=Fs)){var r=e.display.dragFunctions,i=t?be:we;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ys(e){e.options.lineWrapping?(N(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),fn(e)),jr(e),Br(e),vr(e),setTimeout((function(){return Ci(e)}),100)}function Bs(e,t){var n=this;if(!(this instanceof Bs))return new Bs(e,t);this.options=t=t?B(t):{},B(Rs,t,!1);var r=t.value;"string"==typeof r?r=new Ta(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Bs.inputStyles[t.inputStyle](this),o=this.display=new ro(e,r,i,t);for(var c in o.wrapper.CodeMirror=this,Is(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ai(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new X,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Ws(this),Fa(),Ti(this),this.curOp.forceUpdate=!0,So(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ni(n)}),20):ri(this),zs)zs.hasOwnProperty(c)&&zs[c](this,t[c],Fs);Qi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<Xs.length;++u)Xs[u](this);Ei(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ws(e){var t=e.display;be(t.scroller,"mousedown",Ri(e,Cs)),be(t.scroller,"dblclick",a&&s<11?Ri(e,(function(t){if(!Ce(e,t)){var n=Hr(e,t);if(n&&!Ps(e,t)&&!qn(e.display,t)){Le(t);var r=e.findWordAt(n);Yo(e.doc,r.anchor,r.head)}}})):function(t){return Ce(e,t)||Le(t)}),be(t.scroller,"contextmenu",(function(t){return Ds(e,t)})),be(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ds(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}be(t.scroller,"touchstart",(function(i){if(!Ce(e,i)&&!o(i)&&!Ps(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),be(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),be(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new uo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new uo(ut(a.line,0),vt(e.doc,ut(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Le(n)}i()})),be(t.scroller,"touchcancel",i),be(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(vi(e,t.scroller.scrollTop),bi(e,t.scroller.scrollLeft,!0),ke(e,"scroll",e))})),be(t.scroller,"mousewheel",(function(t){return lo(e,t)})),be(t.scroller,"DOMMouseScroll",(function(t){return lo(e,t)})),be(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Ce(e,t)||Oe(t)},over:function(t){Ce(e,t)||(Pa(e,t),Oe(t))},start:function(t){return Ma(e,t)},drop:Ri(e,Oa),leave:function(t){Ce(e,t)||Da(e)}};var c=t.input.getField();be(c,"keyup",(function(t){return ms.call(e,t)})),be(c,"keydown",Ri(e,ps)),be(c,"keypress",Ri(e,vs)),be(c,"focus",(function(t){return ni(e,t)})),be(c,"blur",(function(t){return ri(e,t)}))}Bs.defaults=Rs,Bs.optionHandlers=zs;var Xs=[];function $s(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=St(e,t).state:n="prev");var a=e.options.tabSize,s=nt(o,t),l=W(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=o.mode.indent(i,s.text.slice(u.length),s.text))==V||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?W(nt(o,t-1).text,null,a):0:"add"==n?c=l+e.options.indentUnit:"subtract"==n?c=l-e.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)h+=a,d+="\t";if(h<c&&(d+=Q(c-h)),d!=u)return ca(o,d,ut(t,0),ut(t,u.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==t&&g.head.ch<u.length){var m=ut(t,u.length);Wo(o,p,new uo(m,m));break}}}Bs.defineInitHook=function(e){return Xs.push(e)};var Gs=null;function Vs(e){Gs=e}function Us(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=je(t),c=null;if(s&&r.ranges.length>1)if(Gs&&Gs.text.join("\n")==t){if(r.ranges.length%Gs.text.length==0){c=[];for(var u=0;u<Gs.text.length;u++)c.push(o.splitLines(Gs.text[u]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=te(l,(function(e){return[e]})));for(var d=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var f=r.ranges[h],p=f.from(),g=f.to();f.empty()&&(n&&n>0?p=ut(p.line,p.ch-n):e.state.overwrite&&!s?g=ut(g.line,Math.min(nt(o,g.line).text.length,g.ch+ee(l).length)):s&&Gs&&Gs.lineWise&&Gs.text.join("\n")==l.join("\n")&&(p=g=ut(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};ra(e.doc,m),Nn(e,"inputRead",e,m)}t&&!s&&Zs(e,t),hi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Fi(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Zs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=$s(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(nt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=$s(e,i.head.line,"smart"));a&&Nn(e,"electricInput",e,i.head.line)}}}function Ks(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:ut(i,0),head:ut(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Js(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Qs(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),t}function el(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){H(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Ri(this,t[e])(this,n,i),ke(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Za(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:zi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");ne(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Br(this)})),removeOverlay:zi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Br(this)}})),indentLine:zi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),lt(this.doc,e)&&$s(this,e,t,n)})),indentSelection:zi((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&($s(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&hi(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)$s(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&Wo(this.doc,r,new uo(o,c[r].to()),U)}}})),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,ut(e),t,!0)},getTokenTypeAt:function(e){e=vt(this.doc,e);var t,n=Ct(this,nt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var c=i._global[l];c.pred(o,this)&&-1==$(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return St(this,(e=mt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Sr(this,null==e?n.head:"object"==typeof e?vt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Cr(this,vt(this.doc,e),t||"page")},coordsChar:function(e,t){return Lr(this,(e=kr(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=kr(this,{top:e,left:0},t||"page").top,st(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=nt(this.doc,e)}else r=e;return wr(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-dn(r):0)},defaultTextHeight:function(){return Nr(this.display)},defaultCharWidth:function(){return Ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Sr(this,vt(this.doc,e))).bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&ci(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:zi(ps),triggerOnKeyPress:zi(vs),triggerOnKeyUp:ms,triggerOnMouseDown:zi(Cs),execCommand:function(e){if(ns.hasOwnProperty(e))return ns[e].call(null,this)},triggerElectric:zi((function(e){Zs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=vt(this.doc,e),a=0;a<t&&!(o=tl(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:zi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?tl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),Z)})),deleteH:zi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Ka(this,(function(n){var i=tl(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=vt(this.doc,e),s=0;s<t;++s){var l=Sr(this,a,"div");if(null==o?o=l.left:l.left=o,(a=nl(this,l,i,n)).hitSide)break}return a},moveV:zi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Sr(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=nl(n,s,e,t);return"page"==t&&a==r.sel.primary()&&di(n,Cr(n,l,"div").top-s.top),l}),Z),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=nt(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=se(o,i)?function(e){return se(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!se(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new uo(ut(e.line,n),ut(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?N(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==D(z(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:zi((function(e,t){fi(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Qn(this)-this.display.barHeight,width:e.scrollWidth-Qn(this)-this.display.barWidth,clientHeight:tr(this),clientWidth:er(this)}},scrollIntoView:zi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:ut(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?pi(this,e):mi(this,e.from,e.to,e.margin)})),setSize:zi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&mr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){Wr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,ke(this,"refresh",this)})),operation:function(e){return Fi(this,e)},startOperation:function(){return Ti(this)},endOperation:function(){return Ei(this)},refresh:zi((function(){var e=this.display.cachedTextHeight;Br(this),this.curOp.forceUpdate=!0,vr(this),fi(this,this.doc.scrollLeft,this.doc.scrollTop),Zi(this.display),(null==e||Math.abs(e-Nr(this.display))>.5||this.options.lineWrapping)&&jr(this),ke(this,"refresh",this)})),swapDoc:zi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),So(this,e),vr(this),this.display.input.reset(),fi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Nn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ae(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function tl(e,t,n,r,i){var o=t,a=n,s=nt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function c(){var n=t.line+l;return!(n<e.first||n>=e.first+e.size)&&(t=new ut(n,t.ch,t.sticky),s=nt(e,n))}function u(o){var a;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var d=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new ut(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?ts(e.cm,s,t,n):Qa(s,t,n);if(null==a){if(o||!c())return!1;t=es(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var d=null,h="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var g=s.text.charAt(t.ch)||"\n",m=se(g,f)?"w":h&&"\n"==g?"n":!h||/\s/.test(g)?null:"p";if(!h||p||m||(m="s"),d&&d!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(d=m),n>0&&!u(!p))break}var v=Qo(e,t,o,a,!0);return ht(o,v)&&(v.hitSide=!0),v}function nl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,H(e).innerHeight||a(e).documentElement.clientHeight),c=Math.max(l-.5*Nr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Lr(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var rl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new X,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function il(e,t){var n=ar(e,t.line);if(!n||n.hidden)return null;var r=nt(e.doc,t.line),i=rr(n,r,t.line),o=ve(r,e.doc.direction),a="left";o&&(a=ge(o,t.ch)%2?"right":"left");var s=dr(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ol(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function al(e,t){return t&&(e.bad=!0),e}function sl(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function c(e){return function(t){return t.id==e}}function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(u(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(ut(r,0),ut(i+1,0),c(+f));return void(p.length&&(o=p[0].find(0))&&d(rt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var g=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;g&&u();for(var m=0;m<t.childNodes.length;m++)h(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),g&&(a=!0)}else 3==t.nodeType&&d(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,l=!1;return o}function ll(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return al(e.clipPos(ut(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return cl(o,t,n)}}function cl(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!P(r,t))return al(ut(at(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?ee(e.rest):e.line;return al(ut(at(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,c=l.maps;function u(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?l.map:c[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=at(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),ut(u,d)}}}var d=u(a,s,n);if(d)return al(d,i);for(var h=s.nextSibling,f=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(d=u(h,h.firstChild,0))return al(ut(d.line,d.ch-f),i);f+=h.textContent.length}for(var p=s.previousSibling,g=n;p;p=p.previousSibling){if(d=u(p,p.firstChild,-1))return al(ut(d.line,d.ch+g),i);g+=p.textContent.length}}rl.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!Ce(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,U),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Gs.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Qs(),l=s.firstChild;Js(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Gs.text.join("\n");var c=D(j(i));F(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Js(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),be(i,"paste",(function(e){!o(e)||Ce(r,e)||qs(e,r)||s<=11&&setTimeout(Ri(r,(function(){return t.updateFromDOM()})),20)})),be(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),be(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),be(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),be(i,"touchstart",(function(){return n.forceCompositionEnd()})),be(i,"input",(function(){t.composing||t.readFromDOMSoon()})),be(i,"copy",a),be(i,"cut",a)},rl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},rl.prototype.prepareSelection=function(){var e=qr(this.cm,!1);return e.focus=D(j(this.div))==this.div,e},rl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},rl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=ll(t,e.anchorNode,e.anchorOffset),s=ll(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=dt(gt(a,s),i)||0!=dt(pt(a,s),o)){var l=t.display.view,c=i.line>=t.display.viewFrom&&il(t,i)||{node:l[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&il(t,o);if(!u){var d=l[l.length-1].measure,h=d.maps?d.maps[d.maps.length-1]:d.map;u={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&u){var f,p=e.rangeCount&&e.getRangeAt(0);try{f=A(c.node,c.offset,u.offset,u.node)}catch(e){}f&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),f.collapsed||(e.removeAllRanges(),e.addRange(f))):(e.removeAllRanges(),e.addRange(f)),p&&null==e.anchorNode?e.addRange(p):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},rl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},rl.prototype.showMultipleSelections=function(e){E(this.cm.display.cursorDiv,e.cursors),E(this.cm.display.selectionDiv,e.selection)},rl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},rl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},rl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&D(j(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},rl.prototype.blur=function(){this.div.blur()},rl.prototype.getField=function(){return this.div},rl.prototype.supportsTouch=function(){return!0},rl.prototype.receivedFocus=function(){var e=this,t=this;function n(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,n))}this.selectionInEditor()?setTimeout((function(){return e.pollSelection()}),20):Fi(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,n)},rl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},rl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&ol(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ll(t,e.anchorNode,e.anchorOffset),r=ll(t,e.focusNode,e.focusOffset);n&&r&&Fi(t,(function(){Vo(t.doc,fo(n,r),U),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},rl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=ut(a.line-1,nt(r.doc,a.line-1).length)),s.ch==nt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=ut(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=Yr(r,a.line))?(t=at(i.view[0].line),n=i.view[0].node):(t=at(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,c,u=Yr(r,s.line);
vendor: 4,284 bytes, line 2
2if(u==i.view.length-1?(l=i.viewTo-1,c=i.lineDiv.lastChild):(l=at(i.view[u+1].line)-1,c=i.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(sl(r,n,c,t,l)),h=rt(r.doc,ut(t,0),ut(l,nt(r.doc,l).text.length));d.length>1&&h.length>1;)if(ee(d)==ee(h))d.pop(),h.pop(),l--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),t++}for(var f=0,p=0,g=d[0],m=h[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var y=ee(d),b=ee(h),x=Math.min(y.length-(1==d.length?f:0),b.length-(1==h.length?f:0));p<x&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==d.length&&1==h.length&&t==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)f--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(f).replace(/\u200b+$/,"");var w=ut(t,f),k=ut(l,h.length?ee(h).length-p:0);return d.length>1||d[0]||dt(w,k)?(ca(r.doc,d,w,k,"+input"),!0):void 0},rl.prototype.ensurePolled=function(){this.forceCompositionEnd()},rl.prototype.reset=function(){this.forceCompositionEnd()},rl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},rl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},rl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Fi(this.cm,(function(){return Br(e.cm)}))},rl.prototype.setUneditable=function(e){e.contentEditable="false"},rl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ri(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},rl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},rl.prototype.onContextMenu=function(){},rl.prototype.resetPosition=function(){},rl.prototype.needsContentAttribute=!0;var ul=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new X,this.hasSelection=!1,this.composing=null,this.resetting=!1};function dl(e,t){if((t=t?B(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=D(j(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(be(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(we(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Bs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function hl(e){e.off=we,e.on=be,e.wheelEventPixels=so,e.Doc=Ta,e.splitLines=je,e.countColumn=W,e.findColumn=K,e.isWordChar=ae,e.Pass=V,e.signal=ke,e.Line=pn,e.changeEnd=po,e.scrollbarModel=_i,e.Pos=ut,e.cmpPos=dt,e.modes=Xe,e.mimeModes=$e,e.resolveMode=Ue,e.getMode=qe,e.modeExtensions=Ze,e.extendMode=Ke,e.copyState=Je,e.startState=et,e.innerMode=Qe,e.commands=ns,e.keyMap=Wa,e.keyName=qa,e.isModifierKey=Va,e.lookupKey=Ga,e.normalizeKeyMap=$a,e.StringStream=tt,e.SharedTextMarker=ka,e.TextMarker=xa,e.LineWidget=ma,e.e_preventDefault=Le,e.e_stopPropagation=Te,e.e_stop=Oe,e.addClass=N,e.contains=P,e.rmClass=L,e.keyNames=ja}ul.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Ce(r,e)){if(r.somethingSelected())Vs({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ks(r);Vs({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",i.value=t.text.join("\n"),F(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),be(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}
vendor: 25,652 bytes, line 2
2)),be(i,"paste",(function(e){Ce(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),be(i,"cut",o),be(i,"copy",o),be(e.scroller,"paste",(function(t){if(!qn(e,t)&&!Ce(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),be(e.lineSpace,"selectstart",(function(t){qn(e,t)||Le(t)})),be(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),be(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ul.prototype.createField=function(e){this.wrapper=Qs(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Js(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ul.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ul.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=qr(e);if(e.options.moveInputWithCursor){var i=Sr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ul.prototype.showSelection=function(e){var t=this.cm.display;E(t.cursorDiv,e.cursors),E(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ul.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&F(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ul.prototype.getField=function(){return this.textarea},ul.prototype.supportsTouch=function(){return!1},ul.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D(j(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},ul.prototype.blur=function(){this.textarea.blur()},ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ul.prototype.receivedFocus=function(){this.slowPoll()},ul.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ul.prototype.fastPoll=function(){var e=!1,t=this;function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ul.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||He(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,i.length);l<c&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return Fi(t,(function(){Us(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ul.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ul.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Hr(n,e),c=r.scroller.scrollTop;if(o&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&Ri(n,Vo)(n.doc,fo(o),U);var u,d=i.style.cssText,f=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),S){Oe(e);var g=function(){we(window,"mouseup",g),setTimeout(v,20)};be(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&m();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Ri(n,ta)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ul.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ul.prototype.setUneditable=function(){},ul.prototype.needsContentAttribute=!1,js(Bs),el(Bs);var fl="iter insert remove copy getEditor constructor".split(" ");for(var pl in Ta.prototype)Ta.prototype.hasOwnProperty(pl)&&$(fl,pl)<0&&(Bs.prototype[pl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[pl]));return Ae(Ta),Bs.inputStyles={textarea:ul,contenteditable:rl},Bs.defineMode=function(e){Bs.defaults.mode||"null"==e||(Bs.defaults.mode=e),Ge.apply(this,arguments)},Bs.defineMIME=Ve,Bs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Bs.defineMIME("text/plain","null"),Bs.defineExtension=function(e,t){Bs.prototype[e]=t},Bs.defineDocExtension=function(e,t){Ta.prototype[e]=t},Bs.fromTextArea=dl,hl(Bs),Bs.version="5.65.18",Bs}()},1764:(e,t,n)=>{!function(e){"use strict";var t=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;e.defineMode("gfm",(function(n,r){var i=0;function o(e){return e.code=!1,null}var a={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,n){if(n.combineTokens=null,n.codeBlock)return e.match(/^```+/)?(n.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(n.code=!1),e.sol()&&e.match(/^```+/))return e.skipToEnd(),n.codeBlock=!0,null;if("`"===e.peek()){e.next();var o=e.pos;e.eatWhile("`");var a=1+e.pos-o;return n.code?a===i&&(n.code=!1):(i=a,n.code=!0),null}if(n.code)return e.next(),null;if(e.eatSpace())return n.ateSpace=!0,null;if((e.sol()||n.ateSpace)&&(n.ateSpace=!1,!1!==r.gitHubSpice)){if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return n.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return n.combineTokens=!0,"link"}return e.match(t)&&"]("!=e.string.slice(e.start-2,e.start)&&(0==e.start||/\W/.test(e.string.charAt(e.start-1)))?(n.combineTokens=!0,"link"):(e.next(),null)},blankLine:o},s={taskLists:!0,strikethrough:!0,emoji:!0};for(var l in r)s[l]=r[l];return s.name="markdown",e.overlayMode(e.getMode(n,s),a)}),"markdown"),e.defineMIME("text/x-gfm","gfm")}(n(5237),n(7216),n(2580))},7216:(e,t,n)=>{!function(e){"use strict";e.defineMode("markdown",(function(t,n){var r=e.getMode(t,"text/html"),i="null"==r.name;function o(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1),void 0===n.emoji&&(n.emoji=!1),void 0===n.fencedCodeBlockHighlighting&&(n.fencedCodeBlockHighlighting=!0),void 0===n.fencedCodeBlockDefaultMode&&(n.fencedCodeBlockDefaultMode="text/plain"),void 0===n.xml&&(n.xml=!0),void 0===n.tokenTypeOverrides&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var s in a)a.hasOwnProperty(s)&&n.tokenTypeOverrides[s]&&(a[s]=n.tokenTypeOverrides[s]);var l=/^([*\-_])(?:\s*\1){2,}\s*$/,c=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,u=/^\[(x| )\](?=\s)/i,d=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,h=/^ {0,3}(?:\={1,}|-{2,})\s*$/,f=/^[^#!\[\]*_\\<>` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,g=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,v="    ";function y(e,t,n){return t.f=t.inline=n,n(e,t)}function b(e,t,n){return t.f=t.block=n,n(e,t)}function x(e){return!e||!/\S/.test(e.string)}function w(t){if(t.linkTitle=!1,t.linkHref=!1,t.linkText=!1,t.em=!1,t.strong=!1,t.strikethrough=!1,t.quote=0,t.indentedCode=!1,t.f==C){var n=i;if(!n){var o=e.innerMode(r,t.htmlState);n="xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText}n&&(t.f=L,t.block=k,t.htmlState=null)}return t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.prevLine=t.thisLine,t.thisLine={stream:null},null}function k(t,r){var i=t.column()===r.indentation,s=x(r.prevLine.stream),f=r.indentedCode,m=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var w=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){for(r.list=null;w<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=w-r.listStack[r.listStack.length-1])}var k=!(s||m||r.prevLine.header||v&&f||r.prevLine.fencedCodeEnd),C=(!1===r.list||m||s)&&r.indentation<=b&&t.match(l),A=null;if(r.indentationDiff>=4&&(f||r.prevLine.fencedCodeEnd||r.prevLine.header||s))return t.skipToEnd(),r.indentedCode=!0,a.code;if(t.eatSpace())return null;if(i&&r.indentation<=b&&(A=t.match(d))&&A[1].length<=6)return r.quote=0,r.header=A[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,_(r);if(r.indentation<=b&&t.eat(">"))return r.quote=i?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),t.eatSpace(),_(r);if(!C&&!r.setext&&i&&r.indentation<=b&&(A=t.match(c))){var L=A[1]?"ol":"ul";return r.indentation=w+t.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&t.match(u,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+L]),_(r)}return i&&r.indentation<=b&&(A=t.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(A[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&o(A[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=e.startState(r.localMode)),r.f=r.block=S,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,_(r)):r.setext||!(k&&v||r.quote||!1!==r.list||r.code||C||g.test(t.string))&&(A=t.lookAhead(1))&&(A=A.match(h))?(r.setext?(r.header=r.setext,r.setext=0,t.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==A[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,_(r)):C?(t.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===t.peek()?y(t,r,P):y(t,r,r.inline)}function C(t,n){var o=r.token(t,n.htmlState);if(!i){var a=e.innerMode(r,n.htmlState);("xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText||n.md_inside&&t.current().indexOf(">")>-1)&&(n.f=L,n.block=k,n.htmlState=null)}return o}function S(e,t){var r,i=t.listStack[t.listStack.length-1]||0,o=t.indentation<i,s=i+3;return t.fencedEndRE&&t.indentation<=s&&(o||e.match(t.fencedEndRE))?(n.highlightFormatting&&(t.formatting="code-block"),o||(r=_(t)),t.localMode=t.localState=null,t.block=k,t.f=L,t.fencedEndRE=null,t.code=0,t.thisLine.fencedCodeEnd=!0,o?b(e,t,t.block):r):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),a.code)}function _(e){var t=[];if(e.formatting){t.push(a.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(a.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(a.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.formatting+"-"+e.formatting[r]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref?t.push(a.linkHref,"url"):(e.strong&&t.push(a.strong),e.em&&t.push(a.em),e.strikethrough&&t.push(a.strikethrough),e.emoji&&t.push(a.emoji),e.linkText&&t.push(a.linkText),e.code&&t.push(a.code),e.image&&t.push(a.image),e.imageAltText&&t.push(a.imageAltText,"link"),e.imageMarker&&t.push(a.imageMarker)),e.header&&t.push(a.header,a.header+"-"+e.header),e.quote&&(t.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?t.push(a.quote+"-"+e.quote):t.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==e.list){var i=(e.listStack.length-1)%3;i?1===i?t.push(a.list2):t.push(a.list3):t.push(a.list1)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function A(e,t){if(e.match(f,!0))return _(t)}function L(t,i){var o=i.text(t,i);if(void 0!==o)return o;if(i.list)return i.list=null,_(i);if(i.taskList)return" "===t.match(u,!0)[1]?i.taskOpen=!0:i.taskClosed=!0,n.highlightFormatting&&(i.formatting="task"),i.taskList=!1,_(i);if(i.taskOpen=!1,i.taskClosed=!1,i.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(i.formatting="header"),_(i);var s=t.next();if(i.linkTitle){i.linkTitle=!1;var l=s;"("===s&&(l=")");var c="^\\s*(?:[^"+(l=(l+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(t.match(new RegExp(c),!0))return a.linkHref}if("`"===s){var d=i.formatting;n.highlightFormatting&&(i.formatting="code"),t.eatWhile("`");var h=t.current().length;if(0!=i.code||i.quote&&1!=h){if(h==i.code){var f=_(i);return i.code=0,f}return i.formatting=d,_(i)}return i.code=h,_(i)}if(i.code)return _(i);if("\\"===s&&(t.next(),n.highlightFormatting)){var p=_(i),g=a.formatting+"-escape";return p?p+" "+g:g}if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return i.imageMarker=!0,i.image=!0,n.highlightFormatting&&(i.formatting="image"),_(i);if("["===s&&i.imageMarker&&t.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return i.imageMarker=!1,i.imageAltText=!0,n.highlightFormatting&&(i.formatting="image"),_(i);if("]"===s&&i.imageAltText){n.highlightFormatting&&(i.formatting="image");var p=_(i);return i.imageAltText=!1,i.image=!1,i.inline=i.f=E,p}if("["===s&&!i.image)return i.linkText&&t.match(/^.*?\]/)||(i.linkText=!0,n.highlightFormatting&&(i.formatting="link")),_(i);if("]"===s&&i.linkText){n.highlightFormatting&&(i.formatting="link");var p=_(i);return i.linkText=!1,i.inline=i.f=t.match(/\(.*?\)| ?\[.*?\]/,!1)?E:L,p}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link"),(p=_(i))?p+=" ":p="",p+a.linkInline;if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return i.f=i.inline=T,n.highlightFormatting&&(i.formatting="link"),(p=_(i))?p+=" ":p="",p+a.linkEmail;if(n.xml&&"<"===s&&t.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=t.string.indexOf(">",t.pos);if(-1!=v){var y=t.string.substring(t.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(y)&&(i.md_inside=!0)}return t.backUp(1),i.htmlState=e.startState(r),b(t,i,C)}if(n.xml&&"<"===s&&t.match(/^\/\w*?>/))return i.md_inside=!1,"tag";if("*"===s||"_"===s){for(var x=1,w=1==t.pos?" ":t.string.charAt(t.pos-2);x<3&&t.eat(s);)x++;var k=t.peek()||" ",S=!/\s/.test(k)&&(!m.test(k)||/\s/.test(w)||m.test(w)),A=!/\s/.test(w)&&(!m.test(w)||/\s/.test(k)||m.test(k)),O=null,M=null;if(x%2&&(i.em||!S||"*"!==s&&A&&!m.test(w)?i.em!=s||!A||"*"!==s&&S&&!m.test(k)||(O=!1):O=!0),x>1&&(i.strong||!S||"*"!==s&&A&&!m.test(w)?i.strong!=s||!A||"*"!==s&&S&&!m.test(k)||(M=!1):M=!0),null!=M||null!=O)return n.highlightFormatting&&(i.formatting=null==O?"strong":null==M?"em":"strong em"),!0===O&&(i.em=s),!0===M&&(i.strong=s),f=_(i),!1===O&&(i.em=!1),!1===M&&(i.strong=!1),f}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return _(i);t.backUp(1)}if(n.strikethrough)if("~"===s&&t.eatWhile(s)){if(i.strikethrough)return n.highlightFormatting&&(i.formatting="strikethrough"),f=_(i),i.strikethrough=!1,f;if(t.match(/^[^\s]/,!1))return i.strikethrough=!0,n.highlightFormatting&&(i.formatting="strikethrough"),_(i)}else if(" "===s&&t.match("~~",!0)){if(" "===t.peek())return _(i);t.backUp(2)}if(n.emoji&&":"===s&&t.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){i.emoji=!0,n.highlightFormatting&&(i.formatting="emoji");var P=_(i);return i.emoji=!1,P}return" "===s&&(t.match(/^ +$/,!1)?i.trailingSpace++:i.trailingSpace&&(i.trailingSpaceNewLine=!0)),_(i)}function T(e,t){if(">"===e.next()){t.f=t.inline=L,n.highlightFormatting&&(t.formatting="link");var r=_(t);return r?r+=" ":r="",r+a.linkInline}return e.match(/^[^>]+/,!0),a.linkInline}function E(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=M("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,_(t)):"error"}var O={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function M(e){return function(t,r){if(t.next()===e){r.f=r.inline=L,n.highlightFormatting&&(r.formatting="link-string");var i=_(r);return r.linkHref=!1,i}return t.match(O[e]),r.linkHref=!0,_(r)}}function P(e,t){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(t.f=D,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,_(t)):y(e,t,L)}function D(e,t){if(e.match("]:",!0)){t.f=t.inline=N,n.highlightFormatting&&(t.formatting="link");var r=_(t);return t.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),t.f=t.inline=L,a.linkHref+" url")}var I={startState:function(){return{f:k,prevLine:{stream:null},thisLine:{stream:null},block:k,htmlState:null,indentation:0,inline:L,text:A,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(t){return{f:t.f,prevLine:t.prevLine,thisLine:t.thisLine,block:t.block,htmlState:t.htmlState&&e.copyState(r,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkText:t.linkText,linkTitle:t.linkTitle,linkHref:t.linkHref,code:t.code,em:t.em,strong:t.strong,strikethrough:t.strikethrough,emoji:t.emoji,header:t.header,setext:t.setext,hr:t.hr,taskList:t.taskList,list:t.list,listStack:t.listStack.slice(0),quote:t.quote,indentedCode:t.indentedCode,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside,fencedEndRE:t.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return w(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=C)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g,v).length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==C?{state:e.htmlState,mode:r}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:I}},indent:function(t,n,i){return t.block==C&&r.indent?r.indent(t.htmlState,n,i):t.localState&&t.localMode.indent?t.localMode.indent(t.localState,n,i):e.Pass},blankLine:w,getType:_,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return I}),"xml"),e.defineMIME("text/markdown","markdown"),e.defineMIME("text/x-markdown","markdown")}(n(5237),n(576),n(2602))},2602:(e,t,n)=>{!function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]}
vendor: 4,638 bytes, line 2
2,{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]}
vendor: 10,819 bytes, line 2
2,{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<e.modeInfo.length;t++){var n=e.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}e.findModeByMIME=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.mime==t)return r;if(r.mimes)for(var i=0;i<r.mimes.length;i++)if(r.mimes[i]==t)return r}return/\+xml$/.test(t)?e.findModeByMIME("application/xml"):/\+json$/.test(t)?e.findModeByMIME("application/json"):void 0},e.findModeByExtension=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.ext)for(var i=0;i<r.ext.length;i++)if(r.ext[i]==t)return r}},e.findModeByFileName=function(t){for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.file&&r.file.test(t))return r}var i=t.lastIndexOf("."),o=i>-1&&t.substring(i+1,t.length);if(o)return e.findModeByExtension(o)},e.findModeByName=function(t){t=t.toLowerCase();for(var n=0;n<e.modeInfo.length;n++){var r=e.modeInfo[n];if(r.name.toLowerCase()==t)return r;if(r.alias)for(var i=0;i<r.alias.length;i++)if(r.alias[i].toLowerCase()==t)return r}}}(n(5237))},576:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},c=i.htmlMode?t:n;for(var u in c)l[u]=c[u];for(var u in i)l[u]=i[u];function d(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(g(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=h,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function h(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=d,o=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return o="equals",null;if("<"==n){t.tokenize=d,t.state=x,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=f(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=h;break}return"string"};return t.isInAttribute=!0,t}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=d;break}n.next()}return e}}function g(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=g(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=d;break}return n.tokenize=g(e-1),n.tokenize(t,n)}}return"meta"}}function m(e){return e&&e.toLowerCase()}function v(e,t,n){this.prev=e.context,this.tagName=t||"",this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function y(e){e.context&&(e.context=e.context.prev)}function b(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(m(n))||!l.contextGrabbers[m(n)].hasOwnProperty(m(t)))return;y(e)}}function x(e,t,n){return"openTag"==e?(n.tagStart=t.column(),w):"closeTag"==e?k:x}function w(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",_):l.allowMissingTagName&&"endTag"==e?(a="tag bracket",_(e,t,n)):(a="error",w)}function k(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(m(n.context.tagName))&&y(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",C):(a="tag error",S)}return l.allowMissingTagName&&"endTag"==e?(a="tag bracket",C(e,t,n)):(a="error",S)}function C(e,t,n){return"endTag"!=e?(a="error",C):(y(n),x)}function S(e,t,n){return a="error",C(e,t,n)}function _(e,t,n){if("word"==e)return a="attribute",A;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(m(r))?b(n,r):(b(n,r),n.context=new v(n,r,i==n.indented)),x}return a="error",_}function A(e,t,n){return"equals"==e?L:(l.allowMissing||(a="error"),_(e,t,n))}function L(e,t,n){return"string"==e?T:"word"==e&&l.allowUnquoted?(a="string",_):(a="error",_(e,t,n))}function T(e,t,n){return"string"==e?T:_(e,t,n)}return d.isInText=!0,{startState:function(e){var t={tokenize:d,state:x,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;
2if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=h&&t.tokenize!=d)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var o=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(m(i.tagName)))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[m(i.tagName)];if(!a||!a.hasOwnProperty(m(o[2])))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:t.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==L&&(e.state=_)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)t.push(n.tagName);return t.reverse()}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(5237))},3036:e=>{if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},7512:(e,t,n)=>{var r=n(3036);function i(e,t,n,r,i){var a=o.apply(this,arguments);return e.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}function o(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,o)})))}},8116:(e,t)=>{t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},9539:(e,t,n)=>{var r=n(8116),i=n(7512);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}
vendor: 5,557 bytes, line 2
2(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},7206:e=>{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},4692:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var C="3.7.1",S=/HTML$/i,_=function(e,t){return new _.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}_.fn=_.prototype={jquery:C,constructor:_,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=_.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return _.each(this,e)},map:function(e){return this.pushStack(_.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(_.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(_.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},_.extend=_.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,a[t]=_.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},_.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=a(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(A(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=_.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?_.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!S.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(A(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=o[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var T=o.pop,E=o.sort,O=o.splice,M="[\\x20\\t\\r\\n\\f]",P=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g");_.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}_.escapeSelector=function(e){return(e+"").replace(D,N)};var I=b,F=c;!function(){var e,t,n,i,a,l,c,d,h,p,g=F,v=_.expando,y=0,b=0,x=ee(),w=ee(),k=ee(),C=ee(),S=function(e,t){return e===t&&(
vendor: 22,045 bytes, line 2
2a=!0),0},A="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+M+"*("+D+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+M+"*\\]",R=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",z=new RegExp(M+"+","g"),j=new RegExp("^"+M+"*,"+M+"*"),H=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),Y=new RegExp(M+"|>"),B=new RegExp(R),W=new RegExp("^"+D+"$"),X={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+A+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,U=/[+~]/,q=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),Z=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},K=function(){le()},J=he((function(e){return!0===e.disabled&&L(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=s.call(I.childNodes),I.childNodes),o[I.childNodes.length].nodeType}catch(e){g={apply:function(e,t){F.apply(e,s.call(t))},call:function(e){F.apply(e,s.call(arguments,1))}}}function Q(e,t,n,r){var i,o,a,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,d)){if(11!==y&&(c=V.exec(e)))if(i=c[1]){if(9===y){if(!(a=t.getElementById(i)))return n;if(a.id===i)return g.call(n,a),n}else if(p&&(a=p.getElementById(i))&&Q.contains(t,a)&&a.id===i)return g.call(n,a),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((i=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(i)),n}if(!(C[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(Y.test(e)||H.test(e))){for((p=U.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=_.escapeSelector(s):t.setAttribute("id",s=v)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+de(u[o]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(t){C(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(P,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return L(t,"input")&&t.type===e}}function ie(e){return function(t){return(L(t,"input")||L(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ae(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:I;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,d=!_.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&I!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=ne((function(e){return c.appendChild(e).id=_.expando,!l.getElementsByName||!l.getElementsByName(_.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(q,Z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(q,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+M+"*(?:value|"+A+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),S=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==I&&Q.contains(I,e)?-1:t===l||t.ownerDocument==I&&Q.contains(I,t)?1:i?u.call(i,e)-u.call(i,t):0:4&n?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),d&&!C[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),_.contains(e,t)},Q.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&f.call(t.attrHandle,n.toLowerCase())?r(e,n,!d):void 0;return void 0!==i?i:e.getAttribute(n)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},_.uniqueSort=function(e){var t,n=[],r=0,o=0;if(a=!m.sortStable,i=!m.sortStable&&s.call(e,0),E.call(e,S),a){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)O.call(e,n[r],1)}return i=null,e},_.fn.uniqueSort=function(){return this.pushStack(_.uniqueSort(s.apply(this)))},t=_.expr={cacheLength:50,createPseudo:te,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(q,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(q,Z),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Q.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Q.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&B.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(q,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return L(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Q.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,x=!1;if(g){if(o){for(;p;){for(d=t;d=d[p];)if(s?L(d,m):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&b){for(x=(h=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[p]||(x=h=0)||f.pop();)if(1===d.nodeType&&++x&&d===t){u[e]=[y,h,x];break}}else if(b&&(x=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===x)for(;(d=++h&&d&&d[p]||(x=h=0)||f.pop())&&(!(s?L(d,m):1===d.nodeType)||!++x||(b&&((u=d[v]||(d[v]={}))[e]=[y,x]),d!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),a=o.length;a--;)e[r=u.call(e,o[a])]=!(t[r]=o[a])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(P,"$1"));return r[v]?te((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(q,Z),function(t){return(t.textContent||_.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(q,Z).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return L(e,"input")&&!!e.checked||L(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return L(e,"input")&&"button"===e.type||L(e,"button")},text:function(e){var t;return L(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ae((function(){return[0]})),last:ae((function(e,t){return[t-1]})),eq:ae((function(e,t,n){return[n<0?n+t:n]})),even:ae((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ae((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ae((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ae((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ce(){}function ue(e,n){var r,i,o,a,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(a in r&&!(i=j.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=H.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(P," ")}),s=s.slice(r.length)),t.filter)!(i=X[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?Q.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=t[v]||(t[v]={}),i&&L(t,i))t=t[r]||t;else{if((c=u[o])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[o]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function ge(e,t,n,r,i,o){return r&&!r[v]&&(r=ge(r)),i&&!i[v]&&(i=ge(i,o)),te((function(o,a,s,l){var c,d,h,f,p=[],m=[],v=a.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Q(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?y:pe(y,p,e,s,l);if(n?n(b,f=i||(o?e:v||r)?[]:a,s,l):f=b,r)for(c=pe(f,m),r(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[m[d]]=!(b[m[d]]=h));if(o){if(i||e){if(i){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);i(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=i?u.call(o,h):p[d])>-1&&(o[c]=!(a[c]=h))}}else f=pe(f===a?f.splice(v,f.length):f),i?i(null,a,f,l):g.apply(a,f)}))}function me(e){for(var r,i,o,a=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===r}),l,!0),h=he((function(e){return u.call(r,e)>-1}),l,!0),f=[function(e,t,i){var o=!s&&(i||t!=n)||((r=t).nodeType?d(e,t,i):h(e,t,i));return r=null,o}];c<a;c++)if(i=t.relative[e[c].type])f=[he(fe(f),i)];else{if((i=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(o=++c;o<a&&!t.relative[e[o].type];o++);return ge(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(P,"$1"),i,c<o&&me(e.slice(c,o)),o<a&&me(e=e.slice(o)),o<a&&de(e))}f.push(i)}return fe(f)}function ve(e,r){var i,o=[],a=[],s=k[e+" "];if(!s){for(r||(r=ue(e)),i=r.length;i--;)(s=me(r[i]))[v]?o.push(s):a.push(s);s=k(e,function(e,r){var i=r.length>0,o=e.length>0,a=function(a,s,c,u,h){var f,p,m,v=0,b="0",x=a&&[],w=[],k=n,C=a||o&&t.find.TAG("*",h),S=y+=null==k?1:Math.random()||.1,A=C.length;for(h&&(n=s==l||s||h);b!==A&&null!=(f=C[b]);b++){if(o&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);m=e[p++];)if(m(f,s||l,c)){g.call(u,f);break}h&&(y=S)}i&&((f=!m&&f)&&v--,a&&x.push(f))}if(v+=b,i&&b!==v){for(p=0;m=r[p++];)m(x,w,s,c);if(a){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=T.call(u));w=pe(w)}g.apply(u,w),h&&!a&&w.length>0&&v+r.length>1&&_.uniqueSort(u)}return h&&(y=S,n=k),x};return i?te(a):a}(a,o)),s.selector=e}return s}function ye(e,n,r,i){var o,a,s,l,c,u="function"==typeof e&&e,h=!i&&ue(e=u.selector||e);if(r=r||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&d&&t.relative[a[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(q,Z),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(a.shift().value.length)}for(o=X.needsContext.test(e)?0:a.length;o--&&(s=a[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(i=c(s.matches[0].replace(q,Z),U.test(a[0].type)&&se(n.parentNode)||n))){if(a.splice(o,1),!(e=i.length&&de(a)))return g.apply(r,i),r;break}}return(u||ve(e,h))(i,n,!d,r,!n||U.test(e)&&se(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(S).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),_.find=Q,_.expr[":"]=_.expr.pseudos,_.unique=_.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ue,Q.escape=_.escapeSelector,Q.getText=_.text,Q.isXML=_.isXMLDoc,Q.selectors=_.expr,Q.support=_.support,Q.uniqueSort=_.uniqueSort}();var R=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&_(e).is(n))break;r.push(e)}return r},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=_.expr.match.needsContext,H=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Y(e,t,n){return v(t)?_.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?_.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?_.grep(e,(function(e){return u.call(t,e)>-1!==n})):_.filter(t,e,n)}_.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?_.find.matchesSelector(r,e)?[r]:[]:_.find.matches(e,_.grep(t,(function(e){return 1===e.nodeType})))},_.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(_(e).filter((function(){for(t=0;t<r;t++)if(_.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)_.find(e,i[t],n);return r>1?_.uniqueSort(n):n},filter:function(e){return this.pushStack(Y(this,e||[],!1))},not:function(e){return this.pushStack(Y(this,e||[],!0))},is:function(e){return!!Y(this,"string"==typeof e&&j.test(e)?_(e):e||[],!1).length}});var B,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof _?t[0]:t,_.merge(this,_.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),H.test(r[1])&&_.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(_):_.makeArray(e,this)}).prototype=_.fn,B=_(b);var X=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function G(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}_.fn.extend({has:function(e){var t=_(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(_.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&_(e);if(!j.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&_.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(_(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),_.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return G(e,"nextSibling")},prev:function(e){return G(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),_.merge([],e.childNodes))}},(function(e,t){_.fn[e]=function(n,r){var i=_.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=_.filter(r,i)),this.length>1&&($[e]||_.uniqueSort(i),X.test(e)&&i.reverse()),this.pushStack(i)}}));var V=/[^\x20\t\r\n\f]+/g;function U(e){return e}function q(e){throw e}function Z(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}_.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return _.each(e.match(V)||[],(function(e,n){t[n]=!0})),t}(e):_.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){_.each(n,(function(n,r){v(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return _.each(arguments,(function(e,t){for(var n;(n=_.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?_.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},_.extend({Deferred:function(e){var t=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return _.Deferred((function(n){_.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self
2-resolution");c=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(c)?i?c.call(r,a(o,t,U,i),a(o,t,q,i)):(o++,c.call(r,a(o,t,U,i),a(o,t,q,i),a(o,t,U,t.notifyWith))):(n!==U&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,u.error),e+1>=o&&(n!==q&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(_.Deferred.getErrorHook?u.error=_.Deferred.getErrorHook():_.Deferred.getStackHook&&(u.error=_.Deferred.getStackHook()),r.setTimeout(u))}}return _.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:U,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:U)),t[2][3].add(a(0,r,v(n)?n:q))})).promise()},promise:function(e){return null!=e?_.extend(e,i):i}},o={};return _.each(t,(function(e,r){var a=r[2],s=r[5];i[r[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=_.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(Z(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)Z(i[n],a(n),o.reject);return o.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&K.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){r.setTimeout((function(){throw e}))};var J=_.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),r.removeEventListener("load",Q),_.ready()}_.fn.ready=function(e){return J.then(e).catch((function(e){_.readyException(e)})),this},_.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==e&&--_.readyWait>0||J.resolveWith(b,[_]))}}),_.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(_.ready):(b.addEventListener("DOMContentLoaded",Q),r.addEventListener("load",Q));var ee=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===k(n))for(s in i=!0,n)ee(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(_(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=_.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(V)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||_.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!_.isEmptyObject(t)}};var se=new ae,le=new ae,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),_.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=ie(r.slice(5)),de(o,r,i[r]));se.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=de(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,_.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=_.queue(e,t),r=n.length,i=n.shift(),o=_._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){_.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:_.Callbacks("once memory").add((function(){se.remove(e,[t+"queue",n])}))})}}),_.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?_.queue(this[0],e):void 0===t?this:this.each((function(){var n=_.queue(this,e,t);_._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&_.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){_.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=_.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=se.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});
vendor: 53,215 bytes, line 2
2var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return _.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===_.css(e,"display")};function be(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return _.css(e,t,"")},l=s(),c=n&&n[3]||(_.cssNumber[t]?"":"px"),u=e.nodeType&&(_.cssNumber[t]||"px"!==c&&+l)&&fe.exec(_.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)_.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,_.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=xe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=_.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),xe[r]=i,i)}function ke(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=se.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=we(r))):"none"!==n&&(i[o]="none",se.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}_.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?_(this).show():_(this).hide()}))}});var Ce,Se,_e=/^(?:checkbox|radio)$/i,Ae=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Le=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),Ce.appendChild(Se),m.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",m.option=!!Ce.lastChild;var Te={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ee(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?_.merge([e],n):n}function Oe(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}Te.tbody=Te.tfoot=Te.colgroup=Te.caption=Te.thead,Te.th=Te.td,m.option||(Te.optgroup=Te.option=[1,"<select multiple='multiple'>","</select>"]);var Me=/<|&#?\w+;/;function Pe(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((o=e[f])||0===o)if("object"===k(o))_.merge(h,o.nodeType?[o]:o);else if(Me.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(Ae.exec(o)||["",""])[1].toLowerCase(),l=Te[s]||Te._default,a.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;_.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(t.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(r&&_.inArray(o,r)>-1)i&&i.push(o);else if(c=me(o),a=Ee(d.appendChild(o),"script"),c&&Oe(a),n)for(u=0;o=a[u++];)Le.test(o.type||"")&&n.push(o);return d}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Ie(){return!1}function Fe(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Fe(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ie;else if(!i)return e;return 1===o&&(a=i,i=function(e){return _().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=_.guid++)),e.each((function(){_.event.add(this,t,i,r,n)}))}function Re(e,t,n){n?(se.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,_.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===se.get(e,t)&&_.event.add(e,t,Ne)}_.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(ge,i),n.guid||(n.guid=_.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==_&&_.event.triggered!==t.type?_.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(V)||[""]).length;c--;)f=g=(s=De.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=_.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=_.event.special[f]||{},u=_.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),_.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,h,f,p,g,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(V)||[""]).length;c--;)if(f=g=(s=De.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=_.event.special[f]||{},h=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!i&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,m.handle)||_.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)_.event.remove(e,f+t[c],n,r,!0);_.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=_.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=_.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,c),t=0;(i=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((_.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?_(i,this).index(c)>-1:_.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(_.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[_.expando]?e:new _.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return _e.test(t.type)&&t.click&&L(t,"input")&&Re(t,"click",!0),!1},trigger:function(e){var t=this||e;return _e.test(t.type)&&t.click&&L(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return _e.test(t.type)&&t.click&&L(t,"input")&&se.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},_.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},_.Event=function(e,t){if(!(this instanceof _.Event))return new _.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&_.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=_.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else _.event.simulate(t,e.target,_.event.fix(e))}_.event.special[e]={setup:function(){var r;if(Re(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Re(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=se.get(i,t)-1;o?se.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(i,t))}}})),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){_.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||_.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),_.fn.extend({on:function(e,t,n,r){return Fe(this,e,t,n,r)},one:function(e,t,n,r){return Fe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,_(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ie),this.each((function(){_.event.remove(this,e,n,t)}))}});var ze=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,He=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ye(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Xe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(i in se.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)_.event.add(t,i,s[i][n]);le.hasData(e)&&(o=le.access(e),a=_.extend({},o),le.set(t,a))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&_e.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ge(e,t,n,r){t=l(t);var i,o,a,s,c,u,d=0,h=e.length,f=h-1,p=t[0],g=v(p);if(g||h>1&&"string"==typeof p&&!m.checkClone&&je.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),Ge(o,t,n,r)}));if(h&&(o=(i=Pe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(Ee(i,"script"),Be)).length;d<h;d++)c=i,d!==f&&(c=_.clone(c,!0,!0),s&&_.merge(a,Ee(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,_.map(a,We),d=0;d<s;d++)c=a[d],Le.test(c.type||"")&&!se.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&!c.noModule&&_._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(He,""),c,u))}return e}function Ve(e,t,n){for(var r,i=t?_.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||_.cleanData(Ee(r)),r.parentNode&&(n&&me(r)&&Oe(Ee(r,"script")),r.parentNode.removeChild(r));return e}_.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||_.isXMLDoc(e)))for(a=Ee(s),r=0,i=(o=Ee(e)).length;r<i;r++)$e(o[r],a[r]);if(t)if(n)for(o=o||Ee(e),a=a||Ee(s),r=0,i=o.length;r<i;r++)Xe(o[r],a[r]);else Xe(e,s);return(a=Ee(s,"script")).length>0&&Oe(a,!l&&Ee(e,"script")),s},cleanData:function(e){for(var t,n,r,i=_.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),_.fn.extend({detach:function(e){return Ve(this,e,!0)},remove:function(e){return Ve(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ge(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ye(this,e).appendChild(e)}))},prepend:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ye(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(_.cleanData(Ee(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return _.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Te[(Ae.exec(e)||["",""])[1].toLowerCase()]){e=_.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(_.cleanData(Ee(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ge(this,arguments,(function(t){var n=this.parentNode;_.inArray(this,e)<0&&(_.cleanData(Ee(this)),n&&n.replaceChild(t,this))}),e)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){_.fn[e]=function(e){for(var n,r=[],i=_(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),_(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),qe=/^--/,Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ke=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Je=new RegExp(pe.join("|"),"i");function Qe(e,t,n){var r,i,o,a,s=qe.test(t),l=e.style;return(n=n||Ze(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(P,"$1")||void 0),""!==a||me(e)||(a=_.style(e,t)),!m.pixelBoxStyles()&&Ue.test(a)&&Je.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==a?a+"":a}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ge.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),s}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){var t=_.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},st={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=fe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ct(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=_.css(e,n+pe[a],!0,i)),r?("content"===n&&(l-=_.css(e,"padding"+pe[a],!0,i)),"margin"!==n&&(l-=_.css(e,"border"+pe[a]+"Width",!0,i))):(l+=_.css(e,"padding"+pe[a],!0,i),"padding"!==n?l+=_.css(e,"border"+pe[a]+"Width",!0,i):s+=_.css(e,"border"+pe[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function ut(e,t,n){var r=Ze(e),i=(!m.boxSizingReliable()||n)&&"border-box"===_.css(e,"boxSizing",!1,r),o=i,a=Qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&L(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===_.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===_.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ct(e,t,n||(i?"border":"content"),o,r,a)+"px"}function dt(e,t,n,r,i){return new dt.prototype.init(e,t,n,r,i)}_.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie(t),l=qe.test(t),c=e.style;if(l||(t=it(s)),a=_.cssHooks[t]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=fe.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(_.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=ie(t);return qe.test(t)||(t=it(s)),(a=_.cssHooks[t]||_.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Qe(e,t,r)),"normal"===i&&t in st&&(i=st[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),_.each(["height","width"],(function(e,t){_.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,r):Ke(e,at,(function(){return ut(e,t,r)}))},set:function(e,n,r){var i,o=Ze(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===_.css(e,"boxSizing",!1,o),l=r?ct(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ct(e,t,"border",!1,o)-.5)),l&&(i=fe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),lt(0,n,l)}}})),_.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(e,t){_.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+pe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(_.cssHooks[e+t].set=lt)})),_.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ze(e),i=t.length;a<i;a++)o[t[a]]=_.css(e,t[a],!1,r);return o}return void 0!==n?_.style(e,t,n):_.css(e,t)}),e,t,arguments.length>1)}}),_.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||_.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(_.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=_.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=_.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){_.fx.step[e.prop]?_.fx.step[e.prop](e):1!==e.elem.nodeType||!_.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},_.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},_.fx=dt.prototype.init,_.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(mt):r.setTimeout(mt,_.fx.interval),_.fx.tick())}function vt(){return r.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=pe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function xt(e,t,n){var r,i,o=0,a=xt.prefilters.length,s=_.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,a=c.tweens.length;o<a;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=_.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=_.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,c.opts.specialEasing);o<a;o++)if(r=xt.prefilters[o].call(c,e,u,c.opts))return v(r.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return _.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(V);for(var n,r=0,i=e.length;r<i;r++)n=e[r],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,g=e.nodeType&&ye(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(a=_._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always((function(){h.always((function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],pt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||_.style(e,r)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=_.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=_.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&ke([e],!0),h.done((function(){for(r in g||ke([e]),se.remove(e,"fxshow"),f)_.style(e,r,f[r])}))),l=bt(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),_.speed=function(e,t,n){var r=e&&"object"==typeof e?_.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return _.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in _.fx.speeds?r.duration=_.fx.speeds[r.duration]:r.duration=_.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&_.dequeue(this,r.queue)},r},_.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=_.isEmptyObject(e),o=_.speed(t,n,r),a=function(){var t=xt(this,_.extend({},e),o);(i||se.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=_.timers,a=se.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&gt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||_.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=se.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=_.timers,a=r?r.length:0;for(n.finish=!0,_.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),_.each(["toggle","show","hide"],(function(e,t){var n=_.fn[t];_.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}})),_.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){_.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),_.timers=[],_.fx.tick=function(){var e,t=0,n=_.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),ht=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){ft||(ft=!0,mt())},_.fx.stop=function(){ft=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,t){return e=_.fx&&_.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var wt,kt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return ee(this,_.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){_.removeAttr(this,e)}))}}),_.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?_.prop(e,t,n):(1===o&&_.isXMLDoc(e)||(i=_.attrHooks[t.toLowerCase()]||(_.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void _.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=_.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(V);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?_.removeAttr(e,n):e.setAttribute(n,n),n}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||_.find.attr;kt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=kt[a],kt[a]=i,i=null!=n(e,t,r)?a:null,kt[a]=o),i}}));var Ct=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function _t(e){return(e.match(V)||[]).join(" ")}function At(e){return e.getAttribute&&e.getAttribute("class")||""}function Lt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(V)||[]}_.fn.extend({prop:function(e,t){return ee(this,_.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[_.propFix[e]||e]}))}}),_.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(e)||(t=_.propFix[t]||t,i=_.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=_.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(_.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){_(this).addClass(e.call(this,t,At(this)))})):(t=Lt(e)).length?this.each((function(){if(r=At(this),n=1===this.nodeType&&" "+_t(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=_t(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return v(e)?this.each((function(t){_(this).removeClass(e.call(this,t,At(this)))})):arguments.length?(t=Lt(e)).length?this.each((function(){if(r=At(this),n=1===this.nodeType&&" "+_t(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=_t(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return v(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,At(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Lt(e),this.each((function(){if(s)for(o=_(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=At(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+_t(At(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;_.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,_(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=_.map(i,(function(e){return null==e?"":e+""}))),(t=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=_.valHooks[i.type]||_.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Tt,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:_t(_.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=_(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=_.makeArray(t),a=i.length;a--;)((r=i[a]).selected=_.inArray(_.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=_.inArray(_(e).val(),t)>-1}},m.checkOn||(_.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Et=r.location,Ot={guid:Date.now()},Mt=/\?/;_.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||_.error("Invalid XML: "+(n?_.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Pt=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,n,i){var o,a,s,l,c,u,d,h,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(a=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Pt.test(g+_.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[_.expando]?e:new _.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:_.makeArray(t,[e]),d=_.event.special[g]||{},i||!d.trigger||!1!==d.trigger.apply(n,t))){if(!i&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,Pt.test(l+g)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)h=a,e.type=o>1?l:d.bindType||g,(u=(se.get(a,"events")||Object.create(null))[e.type]&&se.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&oe(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!oe(n)||c&&v(n[g])&&!y(n)&&((s=n[c])&&(n[c]=null),_.event.triggered=g,e.isPropagationStopped()&&h.addEventListener(g,Dt),n[g](),e.isPropagationStopped()&&h.removeEventListener(g,Dt),_.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=_.extend(new _.Event,n,{type:e,isSimulated:!0});_.event.trigger(r,null,t)}}),_.fn.extend({trigger:function(e,t){return this.each((function(){_.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return _.event.trigger(e,t,n,!0)}});var Nt=/\[\]$/,It=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function zt(e,t,n,r){var i;if(Array.isArray(t))_.each(t,(function(t,i){n||Nt.test(e)?r(e,i):zt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(i in t)zt(e+"["+i+"]",t[i],n,r)}_.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!_.isPlainObject(e))_.each(e,(function(){i(this.name,this.value)}));else for(n in e)zt(n,e[n],t,i);return r.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=_.prop(this,"elements");return e?_.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!_(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!_e.test(e))})).map((function(e,t){var n=_(this).val();return null==n?null:Array.isArray(n)?_.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var jt=/%20/g,Ht=/#.*$/,Yt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Xt=/^\/\//,$t={},Gt={},Vt="*/".concat("*"),Ut=b.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(V)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Zt(e,t,n,r){var i={},o=e===Gt;function a(s){var l;return i[s]=!0,_.each(e[s]||[],(function(e,s){var c=s(t,n,r);return"string"!=typeof c||o||i[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Kt(e,t){var n,r,i=_.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&_.extend(!0,e,r),e}Ut.href=Et.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Vt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,_.ajaxSettings),t):Kt(_.ajaxSettings,e)},ajaxPrefilter:qt($t),ajaxTransport:qt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,c,u,d,h,f=_.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?_(p):_.event,m=_.Deferred(),v=_.Callbacks("once memory"),y=f.statusCode||{},x={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Bt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),S(0,t),this}};if(m.promise(C),f.url=((e||f.url||Et.href)+"").replace(Xt,Et.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(V)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ut.protocol+"//"+Ut.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Zt($t,f,t,C),c)return C;for(d in(u=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),i=f.url.replace(Ht,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(h=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Mt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Yt,"$1"),h=(Mt.test(i)?"&":"?")+"_="+Ot.guid+++h),f.url=i+h),f.ifModified&&(_.lastModified[i]&&C.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&C.setRequestHeader("If-None-Match",_.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Vt+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,C,f)||c))return C.abort();if(k="abort",v.add(f.complete),C.done(f.success),C.fail(f.error),n=Zt(Gt,f,t,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,f]),c)return C;f.async&&f.timeout>0&&(s=r.setTimeout((function(){C.abort("timeout")}),f.timeout));try{c=!1,n.send(x,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,l){var d,h,b,x,w,k=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,C,a)),!d&&_.inArray("script",f.dataTypes)>-1&&_.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(f,x,C,d),d?(f.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(_.etag[i]=w)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=x.state,h=x.data,d=!(b=x.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(t||k)+"",d?m.resolveWith(p,[h,k,C]):m.rejectWith(p,[C,k,b]),C.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,f,d?h:b]),v.fireWith(p,[C,k]),u&&(g.trigger("ajaxComplete",[C,f]),--_.active||_.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return _.get(e,t,n,"json")},getScript:function(e,t){return _.get(e,void 0,t,"script")}}),_.each(["get","post"],(function(e,t){_[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),_.ajax(_.extend({url:e,type:t,dataType:i,data:n,success:r},_.isPlainObject(e)&&e))}})),_.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),_._evalUrl=function(e,t,n){return _.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){_.globalEval(e,t,n)}})},_.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=_(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){_(this).wrapInner(e.call(this,t))})):this.each((function(){var t=_(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){_(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(e){return!_.expr.pseudos.visible(e)},_.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=_.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,_.ajaxTransport((function(e){var t,n;if(m.cors||Qt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),_.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return _.globalEval(e),e}}}),_.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),_.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=_("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||_.expando+"_"+Ot.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Mt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||_.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?_(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),_.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=H.exec(e))?[t.createElement(i[1])]:(i=Pe([e],t,o),o&&o.length&&_(o).remove(),_.merge([],i.childNodes)));var r,i,o},_.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=_t(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&_.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?_("<div>").append(_.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},_.expr.pseudos.animated=function(e){return _.grep(_.timers,(function(t){return e===t.elem})).length},_.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=_.css(e,"position"),u=_(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=_.css(e,"top"),l=_.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,_.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},_.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){_.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),i.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-_.css(r,"marginTop",!0),left:t.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||ge}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;_.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),_.each(["top","left"],(function(e,t){_.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),Ue.test(n)?_(e).position()[t]+"px":n}))})),_.each({Height:"height",Width:"width"},(function(e,t){_.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){_.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?_.css(t,n,s):_.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){_.fn[t]=function(e){return this.on(t,e)}})),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){_.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));
vendor: 5,259 bytes, line 2
2var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||_.guid++,i},_.holdReady=function(e){e?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=L,_.isFunction=v,_.isWindow=y,_.camelCase=ie,_.type=k,_.now=Date.now,_.isNumeric=function(e){var t=_.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},_.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return _}.apply(t,[]))||(e.exports=n);var on=r.jQuery,an=r.$;return _.noConflict=function(e){return r.$===_&&(r.$=an),e&&r.jQuery===_&&(r.jQuery=on),_},void 0===i&&(r.jQuery=r.$=_),_}))},3780:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6798),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".splide__container{box-sizing:border-box;position:relative}.splide__list{backface-visibility:hidden;display:-ms-flexbox;display:flex;height:100%;margin:0!important;padding:0!important}.splide.is-initialized:not(.is-active) .splide__list{display:block}.splide__pagination{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;justify-content:center;margin:0;pointer-events:none}.splide__pagination li{display:inline-block;line-height:1;list-style-type:none;margin:0;pointer-events:auto}.splide:not(.is-overflow) .splide__pagination{display:none}.splide__progress__bar{width:0}.splide{position:relative;visibility:hidden}.splide.is-initialized,.splide.is-rendered{visibility:visible}.splide__slide{-ms-flex-negative:0;backface-visibility:hidden;box-sizing:border-box;flex-shrink:0;list-style-type:none!important;margin:0;position:relative}.splide__slide img{vertical-align:bottom}.splide__spinner{animation:splide-loading 1s linear infinite;border:2px solid #999;border-left-color:transparent;border-radius:50%;bottom:0;contain:strict;display:inline-block;height:20px;left:0;margin:auto;position:absolute;right:0;top:0;width:20px}.splide__sr{clip:rect(0 0 0 0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.splide__toggle.is-active .splide__toggle__play,.splide__toggle__pause{display:none}.splide__toggle.is-active .splide__toggle__pause{display:inline}.splide__track{overflow:hidden;position:relative;z-index:0}@keyframes splide-loading{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.splide__track--draggable{-webkit-touch-callout:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.splide__track--fade>.splide__list>.splide__slide{margin:0!important;opacity:0;z-index:0}.splide__track--fade>.splide__list>.splide__slide.is-active{opacity:1;z-index:1}.splide--rtl{direction:rtl}.splide__track--ttb>.splide__list{display:block}.splide__arrow{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;background:#ccc;border:0;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:2em;justify-content:center;opacity:.7;padding:0;position:absolute;top:50%;transform:translateY(-50%);width:2em;z-index:1}.splide__arrow svg{fill:#000;height:1.2em;width:1.2em}.splide__arrow:hover:not(:disabled){opacity:.9}.splide__arrow:disabled{opacity:.3}.splide__arrow:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide__arrow--prev{left:1em}.splide__arrow--prev svg{transform:scaleX(-1)}.splide__arrow--next{right:1em}.splide.is-focus-in .splide__arrow:focus{outline:3px solid #0bf;outline-offset:3px}.splide__pagination{bottom:.5em;left:0;padding:0 1em;position:absolute;right:0;z-index:1}.splide__pagination__page{background:#ccc;border:0;border-radius:50%;display:inline-block;height:8px;margin:3px;opacity:.7;padding:0;position:relative;transition:transform .2s linear;width:8px}.splide__pagination__page.is-active{background:#fff;transform:scale(1.4);z-index:1}.splide__pagination__page:hover{cursor:pointer;opacity:.9}.splide__pagination__page:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__pagination__page:focus{outline:3px solid #0bf;outline-offset:3px}.splide__progress__bar{background:#ccc;height:3px}.splide__slide{-webkit-tap-highlight-color:rgba(0,0,0,0)}.splide__slide:focus{outline:0}@supports(outline-offset:-3px){.splide__slide:focus-visible{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide__slide:focus-visible{border:3px solid #0bf}}@supports(outline-offset:-3px){.splide.is-focus-in .splide__slide:focus{outline:3px solid #0bf;outline-offset:-3px}}@media screen and (-ms-high-contrast:none){.splide.is-focus-in .splide__slide:focus{border:3px solid #0bf}.splide.is-focus-in .splide__track>.splide__list>.splide__slide:focus{border-color:#0bf}}.splide__toggle{cursor:pointer}.splide__toggle:focus-visible{outline:3px solid #0bf;outline-offset:3px}.splide.is-focus-in .splide__toggle:focus{outline:3px solid #0bf;outline-offset:3px}.splide__track--nav>.splide__list>.splide__slide{border:3px solid transparent;cursor:pointer}.splide__track--nav>.splide__list>.splide__slide.is-active{border:3px solid #000}.splide__arrows--rtl .splide__arrow--prev{left:auto;right:1em}
2.splide__arrows--rtl .splide__arrow--prev svg{transform:scaleX(1)}.splide__arrows--rtl .splide__arrow--next{left:1em;right:auto}.splide__arrows--rtl .splide__arrow--next svg{transform:scaleX(-1)}.splide__arrows--ttb .splide__arrow{left:50%;transform:translate(-50%)}.splide__arrows--ttb .splide__arrow--prev{top:1em}.splide__arrows--ttb .splide__arrow--prev svg{transform:rotate(-90deg)}.splide__arrows--ttb .splide__arrow--next{bottom:1em;top:auto}.splide__arrows--ttb .splide__arrow--next svg{transform:rotate(90deg)}.splide__pagination--ttb{bottom:0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;left:auto;padding:1em 0;right:.5em;top:0}",""]);const o=i},1221:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6798),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,":host,:root{--vs-colors--lightest:rgba(60,60,60,.26);--vs-colors--light:rgba(60,60,60,.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,.15);--vs-search-input-color:inherit;--vs-search-input-bg:#fff;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#5897fb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-0.115,0.975,0.855);--vs-transition-duration:150ms}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,0.5,0.8,1);--vs-transition-duration:0.15s}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--vs-search-input-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}
2.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:rgba(60,60,60,.45);font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}",""]);const o=i},7275:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6798),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".dd-ghost[data-v-3d22006d]{opacity:.4}.dd-chosen[data-v-3d22006d]{cursor:grabbing}.dd-drag[data-v-3d22006d]{border-radius:.375rem;box-shadow:0 8px 20px rgba(0,0,0,.15);opacity:1!important}",""]);const o=i},8276:(e,t,n)=>{"use strict";n.d(t,{A:()=>
vendor: 12,721 bytes, line 2
2o});var r=n(6798),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".email-blast-markdown-editor{display:flex;flex-direction:column}.email-blast-markdown-editor .CodeMirror,.email-blast-markdown-editor .CodeMirror-scroll{flex:1 1 auto;height:auto!important;min-height:180px}",""]);const o=i},6798:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},5580:(e,t,n)=>{var r=n(6110)(n(9325),"DataView");e.exports=r},1549:(e,t,n)=>{var r=n(2032),i=n(3862),o=n(6721),a=n(2749),s=n(5749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},79:(e,t,n)=>{var r=n(3702),i=n(80),o=n(4739),a=n(8655),s=n(1175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},8223:(e,t,n)=>{var r=n(6110)(n(9325),"Map");e.exports=r},3661:(e,t,n)=>{var r=n(3040),i=n(7670),o=n(289),a=n(4509),s=n(2949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,e.exports=l},2804:(e,t,n)=>{var r=n(6110)(n(9325),"Promise");e.exports=r},6545:(e,t,n)=>{var r=n(6110)(n(9325),"Set");e.exports=r},8859:(e,t,n)=>{var r=n(3661),i=n(1380),o=n(1459);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},7217:(e,t,n)=>{var r=n(79),i=n(1420),o=n(938),a=n(3605),s=n(9817),l=n(945);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},1873:(e,t,n)=>{var r=n(9325).Symbol;e.exports=r},7828:(e,t,n)=>{var r=n(9325).Uint8Array;e.exports=r},8303:(e,t,n)=>{var r=n(6110)(n(9325),"WeakMap");e.exports=r},1033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},9770:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},695:(e,t,n)=>{var r=n(8096),i=n(2428),o=n(6449),a=n(3656),s=n(361),l=n(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),d=!n&&!u&&a(e),h=!n&&!u&&!d&&l(e),f=n||u||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,g))||p.push(m);return p}},4932:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},4528:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},8567:(e,t,n)=>{var r=n(3007),i=n(7410);e.exports=function(e){return i(r(e))}},4248:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7805:(e,t,n)=>{var r=n(3360),i=n(5288);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},6547:(e,t,n)=>{var r=n(3360),i=n(5288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},6025:(e,t,n)=>{var r=n(5288);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},3360:(e,t,n)=>{var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},9344:(e,t,n)=>{var r=n(3805),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},2523:e=>{e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},6649:(e,t,n)=>{var r=n(3221)();e.exports=r},7422:(e,t,n)=>{var r=n(1769),i=n(7797);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},2199:(e,t,n)=>{var r=n(4528),i=n(6449);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},2552:(e,t,n)=>{var r=n(1873),i=n(659),o=n(9350),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},8077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7534:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},270:(e,t,n)=>{var r=n(7068),i=n(346);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},7068:(e,t,n)=>{var r=n(7217),i=n(5911),o=n(1986),a=n(689),s=n(5861),l=n(6449),c=n(3656),u=n(7167),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,v){var y=l(e),b=l(t),x=y?h:s(e),w=b?h:s(t),k=(x=x==d?f:x)==f,C=(w=w==d?f:w)==f,S=x==w;if(S&&c(e)){if(!c(t))return!1;y=!0,k=!1}if(S&&!k)return v||(v=new r),y||u(e)?i(e,t,n,g,m,v):o(e,t,x,n,g,m,v);if(!(1&n)){var _=k&&p.call(e,"__wrapped__"),A=C&&p.call(t,"__wrapped__");if(_||A){var L=_?e.value():e,T=A?t.value():t;return v||(v=new r),m(L,T,n,g,v)}}return!!S&&(v||(v=new r),a(e,t,n,g,m,v))}},1799:(e,t,n)=>{var r=n(7217),i=n(270);e.exports=function(e,t,n,o){var a=n.length,s=a,l=!o;if(null==e)return!s;for(e=Object(e);a--;){var c=n[a];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){var u=(c=n[a])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new r;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,o,f):p))return!1}}return!0}},5083:(e,t,n)=>{var r=n(1882),i=n(7296),o=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},4901:(e,t,n)=>{var r=n(2552),i=n(294),o=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},5389:(e,t,n)=>{var r=n(3663),i=n(7978),o=n(3488),a=n(6449),s=n(583);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},8984:(e,t,n)=>{var r=n(5527),i=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},2903:(e,t,n)=>{var r=n(3805),i=n(5527),o=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},3663:(e,t,n)=>{var r=n(1799),i=n(776),o=n(7197);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},7978:(e,t,n)=>{var r=n(270),i=n(8156),o=n(631),a=n(8586),s=n(756),l=n(7197),c=n(7797);e.exports=function(e,t){return a(e)&&s(t)?l(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,3)}}},5250:(e,t,n)=>{var r=n(7217),i=n(7805),o=n(6649),a=n(2824),s=n(3805),l=n(7241),c=n(4974);e.exports=function e(t,n,u,d,h){t!==n&&o(n,(function(o,l){if(h||(h=new r),s(o))a(t,n,l,u,e,d,h);else{var f=d?d(c(t,l),o,l+"",t,n,h):void 0;void 0===f&&(f=o),i(t,l,f)}}),l)}},2824:(e,t,n)=>{var r=n(7805),i=n(3290),o=n(1961),a=n(3007),s=n(5529),l=n(2428),c=n(6449),u=n(3693),d=n(3656),h=n(1882),f=n(3805),p=n(1331),g=n(7167),m=n(4974),v=n(9884);e.exports=function(e,t,n,y,b,x,w){var k=m(e,n),C=m(t,n),S=w.get(C);if(S)r(e,n,S);else{var _=x?x(k,C,n+"",e,t,w):void 0,A=void 0===_;if(A){var L=c(C),T=!L&&d(C),E=!L&&!T&&g(C);_=C,L||T||E?c(k)?_=k:u(k)?_=a(k):T?(A=!1,_=i(C,!0)):E?(A=!1,_=o(C,!0)):_=[]:p(C)||l(C)?(_=k,l(k)?_=v(k):f(k)&&!h(k)||(_=s(C))):A=!1}A&&(w.set(C,_),b(_,C,y,x,w),w.delete(C)),r(e,n,_)}}},7237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},7255:(e,t,n)=>{var r=n(7422);e.exports=function(e){return function(t){return r(t,e)}}},3195:e=>{var t=Math.floor,n=Math.random;e.exports=function(e,r){return e+t(n()*(r-e+1))}},9302:(e,t,n)=>{var r=n(3488),i=n(6757),o=n(2865);e.exports=function(e,t){return o(i(e,t,r),e+"")}},9570:(e,t,n)=>{var r=n(7334),i=n(3243),o=n(3488),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},4171:(e,t,n)=>{var r=n(7410),i=n(5880);e.exports=function(e){return r(i(e))}},8096:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7556:(e,t,n)=>{var r=n(1873),i=n(4932),o=n(6449),a=n(4394),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4128:(e,t,n)=>{var r=n(1800),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},7301:e=>{e.exports=function(e){return function(t){return e(t)}}},514:(e,t,n)=>{var r=n(4932);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},9219:e=>{e.exports=function(e,t){return e.has(t)}},1769:(e,t,n)=>{var r=n(6449),i=n(8586),o=n(1802),a=n(3222);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},9653:(e,t,n)=>{var r=n(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3290:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},1961:(e,t,n)=>{var r=n(9653);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},3007:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1791:(e,t,n)=>{var r=n(6547),i=n(3360);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=o?o(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?i(n,c,u):r(n,c,u)}return n}},5481:(e,t,n)=>{var r=n(9325)["__core-js_shared__"];e.exports=r},999:(e,t,n)=>{var r=n(9302),i=n(6800);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var l=n[r];l&&e(t,l,r,a)}return t}))}},3221:e=>{e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}},2006:(e,t,n)=>{var r=n(5389),i=n(4894),o=n(5950);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var l=r(n,3);t=o(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[l?t[c]:c]:void 0}}},3243:(e,t,n)=>{var r=n(6110),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},5911:(e,t,n)=>{var r=n(8859),i=n(4248),o=n(9219);e.exports=function(e,t,n,a,s,l){var c=1&n,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var v=e[p],y=t[p];if(a)var b=c?a(y,v,p,t,e,l):a(v,y,p,e,t,l);if(void 0!==b){if(b)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(v===e||s(v,e,n,a,l)))return m.push(t)}))){g=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},1986:(e,t,n)=>{var r=n(1873),i=n(7828),o=n(5288),a=n(5911),s=n(317),l=n(4247),c=r?r.prototype:void 0,u=c?c.valueOf
vendor: 2,674 bytes, line 2
2:void 0;e.exports=function(e,t,n,r,c,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var p=1&r;if(f||(f=l),e.size!=t.size&&!p)return!1;var g=h.get(e);if(g)return g==t;r|=2,h.set(e,t);var m=a(f(e),f(t),r,c,d,h);return h.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},689:(e,t,n)=>{var r=n(2),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,o,a,s){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<u;){var v=e[h=c[d]],y=t[h];if(o)var b=l?o(y,v,h,t,e,s):o(v,y,h,e,t,s);if(!(void 0===b?v===y||a(v,y,n,o,s):b)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(g=!1)}return s.delete(e),s.delete(t),g}},4840:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2:(e,t,n)=>{var r=n(2199),i=n(4664),o=n(5950);e.exports=function(e){return r(e,o,i)}},2651:(e,t,n)=>{var r=n(4218);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},776:(e,t,n)=>{var r=n(756),i=n(5950);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},6110:(e,t,n)=>{var r=n(5083),i=n(392);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},8879:(e,t,n)=>{var r=n(4335)(Object.getPrototypeOf,Object);e.exports=r},659:(e,t,n)=>{var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},4664:(e,t,n)=>{var r=n(9770),i=n(3345),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return o.call(e,t)})))}:i;e.exports=s},5861:(e,t,n)=>{var r=n(5580),i=n(8223),o=n(2804),a=n(6545),s=n(8303),l=n(2552),c=n(7473),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=c(r),m=c(i),v=c(o),y=c(a),b=c(s),x=l;
vendor: 9,494 bytes, line 2
2(r&&x(new r(new ArrayBuffer(1)))!=p||i&&x(new i)!=u||o&&x(o.resolve())!=d||a&&x(new a)!=h||s&&x(new s)!=f)&&(x=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return p;case m:return u;case v:return d;case y:return h;case b:return f}return t}),e.exports=x},392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9326:(e,t,n)=>{var r=n(1769),i=n(2428),o=n(6449),a=n(361),s=n(294),l=n(7797);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&s(u)&&a(h,u)&&(o(e)||i(e))}},2032:(e,t,n)=>{var r=n(1042);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},2749:(e,t,n)=>{var r=n(1042),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},5749:(e,t,n)=>{var r=n(1042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5529:(e,t,n)=>{var r=n(9344),i=n(8879),o=n(5527);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800:(e,t,n)=>{var r=n(5288),i=n(4894),o=n(361),a=n(3805);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},8586:(e,t,n)=>{var r=n(6449),i=n(4394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},4218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296:(e,t,n)=>{var r,i=n(5481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},756:(e,t,n)=>{var r=n(3805);e.exports=function(e){return e==e&&!r(e)}},3702:e=>{e.exports=function(){this.__data__=[],this.size=0}},80:(e,t,n)=>{var r=n(6025),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},4739:(e,t,n)=>{var r=n(6025);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8655:(e,t,n)=>{var r=n(6025);e.exports=function(e){return r(this.__data__,e)>-1}},1175:(e,t,n)=>{var r=n(6025);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},3040:(e,t,n)=>{var r=n(1549),i=n(79),o=n(8223);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},7670:(e,t,n)=>{var r=n(2651);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},289:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).get(e)}},4509:(e,t,n)=>{var r=n(2651);e.exports=function(e){return r(this,e).has(e)}},2949:(e,t,n)=>{var r=n(2651);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},7197:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},2224:(e,t,n)=>{var r=n(104);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},1042:(e,t,n)=>{var r=n(6110)(Object,"create");e.exports=r},3650:(e,t,n)=>{var r=n(4335)(Object.keys,Object);e.exports=r},181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},6009:(e,t,n)=>{e=n.nmd(e);var r=n(4840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6757:(e,t,n)=>{var r=n(1033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),l=Array(s);++a<s;)l[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(l),r(e,this,c)}}},9325:(e,t,n)=>{var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},4974:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},1380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1459:e=>{e.exports=function(e){return this.__data__.has(e)}},4247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},2865:(e,t,n)=>{var r=n(9570),i=n(1811)(r);e.exports=i},1811:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7410:(e,t,n)=>{var r=n(3195);e.exports=function(e,t){var n=-1,i=e.length,o=i-1;for(t=void 0===t?i:t;++n<t;){var a=r(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}},1420:(e,t,n)=>{var r=n(79);e.exports=function(){this.__data__=new r,this.size=0}},938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},3605:e=>{e.exports=function(e){return this.__data__.get(e)}},9817:e=>{e.exports=function(e){return this.__data__.has(e)}},945:(e,t,n)=>{var r=n(79),i=n(8223),o=n(3661);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(e,t),this.size=n.size,this}},1802:(e,t,n)=>{var r=n(2224),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(o,"$1"):n||e)})),t}));e.exports=a},7797:(e,t,n)=>{var r=n(4394);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},7473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},7334:e=>{e.exports=function(e){return function(){return e}}},5288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},7309:(e,t,n)=>{var r=n(2006)(n(4713));e.exports=r},4713:(e,t,n)=>{var r=n(2523),i=n(5389),o=n(1489),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:o(n);return l<0&&(l=a(s+l,0)),r(e,i(t,3),l)}},8156:(e,t,n)=>{var r=n(7422);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},631:(e,t,n)=>{var r=n(8077),i=n(9326);e.exports=function(e,t){return null!=e&&i(e,t,r)}},3488:e=>{e.exports=function(e){return e}},2428:(e,t,n)=>{var r=n(7534),i=n(346),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449:e=>{var t=Array.isArray;e.exports=t},4894:(e,t,n)=>{var r=n(1882),i=n(294);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3693:(e,t,n)=>{var r=n(4894),i=n(346);e.exports=function(e){return i(e)&&r(e)}},3656:(e,t,n)=>{e=n.nmd(e);var r=n(9325),i=n(9935),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||i;e.exports=l},2404:(e,t,n)=>{var r=n(270);e.exports=function(e,t){return r(e,t)}},1882:(e,t,n)=>{var r=n(2552),i=n(3805);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1331:(e,t,n)=>{var r=n(2552),i=n(8879),o=n(346),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},4394:(e,t,n)=>{var r=n(2552),i=n(346);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},7167:(e,t,n)=>{var r=n(4901),i=n(7301),o=n(6009),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},5950:(e,t,n)=>{var r=n(695),i=n(8984),o=n(4894);e.exports=function(e){return o(e)?r(e):i(e)}},7241:(e,t,n)=>{var r=n(695),i=n(2903),o=n(4894);e.exports=function(e){return o(e)?r(e,!0):i(e)}}
2,104:(e,t,n)=>{var r=n(3661);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},5364:(e,t,n)=>{var r=n(5250),i=n(999)((function(e,t,n){r(e,t,n)}));e.exports=i},583:(e,t,n)=>{var r=n(7237),i=n(7255),o=n(8586),a=n(7797);e.exports=function(e){return o(e)?r(a(e)):i(e)}},6049:(e,t,n)=>{var r=n(8567),i=n(4171),o=n(6449);e.exports=function(e){return(o(e)?r:i)(e)}},3345:e=>{e.exports=function(){return[]}},9935:e=>{e.exports=function(){return!1}},7400:(e,t,n)=>{var r=n(9374),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},1489:(e,t,n)=>{var r=n(7400);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},9374:(e,t,n)=>{var r=n(4128),i=n(3805),o=n(4394),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9884:(e,t,n)=>{var r=n(1791),i=n(7241);e.exports=function(e){return r(e,i(e))}},3222:(e,t,n)=>{var r=n(7556);e.exports=function(e){return null==e?"":r(e)}},5880:(e,t,n)=>{var r=n(514),i=n(5950);e.exports=function(e){return null==e?[]:r(e,i(e))}},133:function(e,t,n){!function(){"use strict";var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:p,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:p,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:p,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links={},this.options=e||m.defaults,this.rules=t.normal,this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,t.def=u(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=u(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=u(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="(?!(?: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",t.html=u(t.html).replace("comment",/<!--[\s\S]*?-->/).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/<tag(?:"[^"]*"|'[^']*'|\s[^'"\/>\s]*)*?\/?>/).replace(/tag/g,t._tag).getRegex(),t.paragraph=u(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag","<"+t._tag).getRegex(),t.blockquote=u(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=g({},t),t.gfm=g({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=u(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=g({},t.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g,"    ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var r,i,o,a,s,l,c,u,d,h,f;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(n&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center"
2:/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;u<l.cells.length;u++)l.cells[u]=l.cells[u].split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,n),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),f=(a=o[2]).length>1,this.tokens.push({type:"list_start",ordered:f,start:f?+a:""}),r=!1,h=(o=o[0].match(this.rules.item)).length,u=0;u<h;u++)c=(l=o[u]).length,~(l=l.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(c-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&u!==h-1&&(a===(s=t.bullet.exec(o[u+1])[0])||a.length>1&&s.length>1||(e=o.slice(u+1).join("\n")+e,u=h-1)),i=r||/\n\n(?!\s*$)/.test(l),u!==h-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(n&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),d=o[1].toLowerCase(),this.tokens.links[d]||(this.tokens.links[d]={href:o[2],title:o[3]});else if(n&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center":/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;
2u<l.cells.length;u++)l.cells[u]=l.cells[u].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(n&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var r={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:p,tag:/^<!--[\s\S]*?-->|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:p,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};function i(e,t){if(this.options=t||m.defaults,this.links=e,this.rules=r.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=r.breaks:this.rules=r.gfm:this.options.pedantic&&(this.rules=r.pedantic)}function o(e){this.options=e||{}}function a(){}function s(e){this.tokens=[],this.token=null,this.options=e||m.defaults,this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function l(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function u(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){return h[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?h[" "+e]=e+"/":h[" "+e]=e.replace(/[^/]*$/,"")),e=h[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,r._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])?)+(?![-_])/,r.autolink=u(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex(),r._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,r._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,r.link=u(r.link).replace("inside",r._inside).replace("href",r._href).getRegex(),r.reflink=u(r.reflink).replace("inside",r._inside).getRegex(),r.normal=g({},r),r.pedantic=g({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),r.gfm=g({},r.normal,{escape:u(r.escape).replace("])","~|])").getRegex(),url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",r._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(r.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),r.breaks=g({},r.gfm,{br:u(r.br).replace("{2,}","*").getRegex(),text:u(r.gfm.text).replace("{2,}","*").getRegex()}),i.rules=r,i.output=function(e,t,n){return new i(t,n).output(e)},i.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),r="@"===i[2]?"mailto:"+(n=l(this.mangle(i[1]))):n=l(i[1]),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):l(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(l(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(l(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else i[0]=this.rules._backpedal.exec(i[0])[0],e=e.substring(i[0].length),"@"===i[2]?r="mailto:"+(n=l(i[0])):(n=l(i[0]),r="www."===i[1]?"http://"+n:n),o+=this.renderer.link(r,null,n);return o},i.prototype.outputLink=function(e,t){var n=l(t.href),r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+l(t,!0)+'">'+(n?e:l(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:l(e,!0))+"\n</code></pre>"},o.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},o.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},o.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},o.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},o.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},o.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},o.prototype.strong=function(e){return"<strong>"+e+"</strong>"},o.prototype.em=function(e){return"<em>"+e+"</em>"},o.prototype.codespan=function(e){return"<code>"+e+"</code>"},o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.prototype.del=function(e){return"<del>"+e+"</del>"},o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(c(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));var i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},o.prototype.image=function(e,t,n){this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},o.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},s.parse=function(e,t){return new s(t).parse(e)},s.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,g({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},s.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();
2case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a,s);case"list_item_start":for(o="";"list_item_end"!==this.next().type;)o+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(o);case"loose_item_start":for(o="";"list_item_end"!==this.next().type;)o+=this.tok();return this.renderer.listitem(o);case"html":var l=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(l);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var h={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(){}function g(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function m(e,t,r){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(r||"function"==typeof t){r||(r=t,t=null);var i,o,a=(t=g({},m.defaults,t||{})).highlight,c=0;try{i=n.lex(e,t)}catch(e){return r(e)}o=i.length;var u=function(e){if(e)return t.highlight=a,r(e);var n;try{n=s.parse(i,t)}catch(t){e=t}return t.highlight=a,e?r(e):r(null,n)};if(!a||a.length<3)return u();if(delete t.highlight,!o)return u();for(;c<i.length;c++)!function(e){"code"!==e.type?--o||u():a(e.text,e.lang,(function(t,n){return t?u(t):null==n||n===e.text?--o||u():(e.text=n,e.escaped=!0,void(--o||u()))}))}(i[c])}else try{return t&&(t=g({},m.defaults,t)),s.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||m.defaults).silent)return"<p>An error occurred:</p><pre>"+l(e.message+"",!0)+"</pre>";throw e}}p.exec=p,m.options=m.setOptions=function(e){return g(m.defaults,e),m},m.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new o,xhtml:!1,baseUrl:null},m.Parser=s,m.parser=s.parse,m.Renderer=o,m.TextRenderer=a,m.Lexer=n,m.lexer=n.lex,m.InlineLexer=i,m.inlineLexer=i.output,m.parse=m,e.exports=m}(this||("undefined"!=typeof window?window:n.g))},6679:()=>{},1137:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=1137,e.exports=t},5093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(l(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function h(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function g(e,t,n,r){return qn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 16,222 bytes, line 2
2dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=v(e),n=r.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function b(e){var t=g(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var x=i.momentProperties=[],w=!1;function k(e,t){var n,r,i,o=x.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=v(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=x[n]])||(e[r]=i);return e}function C(e){k(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,i.updateOffset(this),w=!1)}function S(e){return e instanceof C||null!=e&&null!=e._isAMomentObject}function _(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function A(e,t){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,o,a,s=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])l(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];s.push(r)}_(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var L,T={};function E(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(_(t),T[e]=!0)}function O(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)l(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function P(e,t){var n,r=p({},e);for(n in t)l(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)l(e,n)&&!l(t,n)&&s(e[n])&&(r[n]=p({},r[n]));return r}function D(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,L=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return O(r)?r.call(t,n):r}function F(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},H={};function Y(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return F(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function B(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function W(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)H[r[t]]?r[t]=H[r[t]]:r[t]=B(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=O(r[i])?r[i].call(t,e):r[i];return o}}function X(e,t){return e.isValid()?(t=$(t,e.localeData()),j[t]=j[t]||W(t),j[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;n>=0&&z.test(e);)e=e.replace(z,r),z.lastIndex=0,n-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var U="Invalid date";function q(){return this._invalidDate}var Z="%d",K=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,r){var i=this._relativeTime[n];return O(i)?i(e,t,n,r):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function re(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)l(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ae(e){var t,n=[];for(t in e)l(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var se,le=/\d/,ce=/\d\d/,ue=/\d{3}/,de=/\d{4}/,he=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ve=/\d{1,4}/,ye=/[+-]?\d{1,6}/,be=/\d+/,xe=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Se=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,_e=/^[1-9]\d?/,Ae=/^([1-9]\d|\d)/;function Le(e,t,n){se[e]=O(t)?t:function(e,r){return e&&n?n:t}}function Te(e,t){return l(se,e)?se[e](t._strict,t._locale):new RegExp(Ee(e))}function Ee(e){return Oe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Oe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Me(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Me(t)),n}se={};var De={};function Ne(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=Pe(e)}),r=e.length,n=0;n<r;n++)De[e[n]]=i}function Ie(e,t){Ne(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Fe(e,t,n){null!=t&&l(De,e)&&De[e](t,n._a,n,e)}function Re(e){return e%4==0&&e%100!=0||e%400==0}var ze=0,je=1,He=2,Ye=3,Be=4,We=5,Xe=6,$e=7,Ge=8;function Ve(e){return Re(e)?366:365}Y("Y",0,0,(function(){var e=this.year();return e<=9999?F(e,4):"+"+e})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),Le("Y",xe),Le("YY",fe,ce),Le("YYYY",ve,de),Le("YYYYY",ye,he),Le("YYYYYY",ye,he),Ne(["YYYYY","YYYYYY"],ze),Ne("YYYY",(function(e,t){t[ze]=2===e.length?i.parseTwoDigitYear(e):Pe(e)})),Ne("YY",(function(e,t){t[ze]=i.parseTwoDigitYear(e)})),Ne("Y",(function(e,t){t[ze]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var Ue,qe=Ke("FullYear",!0);function Ze(){return Re(this.year())}function Ke(e,t){return function(n){return null!=n?(Qe(this,e,n),i.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Qe(e,t,n){var r,i,o,a,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,a=e.month(),s=29!==(s=e.date())||1!==a||Re(o)?s:28,i?r.setUTCFullYear(o,a,s):r.setFullYear(o,a,s)}}function et(e){return O(this[e=re(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,r=ae(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(O(this[e=re(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function rt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?Re(e)?29:28:31-n%7%2}Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),Y("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Le("M",fe,_e),Le("MM",fe,ce),Le("MMM",(function(e,t){return t.monthsShortRegex(e)})),Le("MMMM",(function(e,t){return t.monthsRegex(e)})),Ne(["M","MM"],(function(e,t){t[je]=Pe(e)-1})),Ne(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[je]=i:v(n).invalidMonth=e}));var it="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,st=Se,lt=Se;function ct(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ut(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=g([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ue.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,a))||-1!==(i=Ue.call(this._longMonthsParse,a))?i:null:-1!==(i=Ue.call(this._longMonthsParse,a))||-1!==(i=Ue.call(this._shortMonthsParse,a))?i:null}function ht(e,t,n){var r,i,o;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=g([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!d(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,rt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),i.updateOffset(this,!0),this):Je(this,"Month")}function gt(){return rt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=st),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function vt(e){return this._monthsParseExact?(l(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=lt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],a=[],s=[];for(t=0;t<12;t++)n=g([2e3,t]),r=Oe(this.monthsShort(n,"")),i=Oe(this.months(n,"")),o.push(r),a.push(i),s.push(i),s.push(r);o.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function bt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function xt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+xt(e,0,r).getUTCDay()-t)%7+r-1}function kt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return s<=0?a=Ve(o=e-1)+s:s>Ve(e)?(o=e+1,a=s-Ve(e)):(o=e,a=s),{year:o,dayOfYear:a}}function Ct(e,t,n){var r,i,o=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function St(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(Ve(e)-r+i)/7}function _t(e){return Ct(e,this._week.dow,this._week.doy).week}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),Le("w",fe,_e),Le("ww",fe,ce),Le("W",fe,_e),Le("WW",fe,ce),Ie(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Pe(e)}));var At={dow:0,doy:6};function Lt(){return this._week.dow}function Tt(){return this._week.doy}function Et(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=Ct(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Mt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Dt(e,t){return e.slice(t,7).concat(e.slice(0,t))}Y("d",0,"do","day"),Y("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),Y("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),Y("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),Le("d",fe),Le("e",fe),Le("E",fe),Le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Le("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ie(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._str
vendor: 5,018 bytes, line 2
2ict);null!=i?t.d=i:v(n).invalidWeekday=e})),Ie(["d","e","E"],(function(e,t,n,r){t[r]=Pe(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),It="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Se,zt=Se,jt=Se;function Ht(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Dt(n,this._week.dow):e?n[e.day()]:n}function Yt(e){return!0===e?Dt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Bt(e){return!0===e?Dt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Wt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=g([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._shortWeekdaysParse,a))||-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,a))||-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,a))||-1!==(i=Ue.call(this._weekdaysParse,a))||-1!==(i=Ue.call(this._shortWeekdaysParse,a))?i:null}function Xt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Wt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=g([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function $t(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Ut(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function qt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=zt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Zt(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=g([2e3,1]).day(t),r=Oe(this.weekdaysMin(n,"")),i=Oe(this.weekdaysShort(n,"")),o=Oe(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),c.push(r),c.push(i),c.push(o);a.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){Y(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,Qt),Y("hmm",0,0,(function(){return""+Jt.apply(this)+F(this.minutes(),2)}
vendor: 26,794 bytes, line 2
2)),Y("hmmss",0,0,(function(){return""+Jt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),en("a",!0),en("A",!1),Le("a",tn),Le("A",tn),Le("H",fe,Ae),Le("h",fe,_e),Le("k",fe,_e),Le("HH",fe,ce),Le("hh",fe,ce),Le("kk",fe,ce),Le("hmm",pe),Le("hmmss",ge),Le("Hmm",pe),Le("Hmmss",ge),Ne(["H","HH"],Ye),Ne(["k","kk"],(function(e,t,n){var r=Pe(e);t[Ye]=24===r?0:r})),Ne(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ne(["h","hh"],(function(e,t,n){t[Ye]=Pe(e),v(n).bigHour=!0})),Ne("hmm",(function(e,t,n){var r=e.length-2;t[Ye]=Pe(e.substr(0,r)),t[Be]=Pe(e.substr(r)),v(n).bigHour=!0})),Ne("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ye]=Pe(e.substr(0,r)),t[Be]=Pe(e.substr(r,2)),t[We]=Pe(e.substr(i)),v(n).bigHour=!0})),Ne("Hmm",(function(e,t,n){var r=e.length-2;t[Ye]=Pe(e.substr(0,r)),t[Be]=Pe(e.substr(r))})),Ne("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ye]=Pe(e.substr(0,r)),t[Be]=Pe(e.substr(r,2)),t[We]=Pe(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=Ke("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var sn,ln={calendar:N,longDateFormat:G,invalidDate:U,ordinal:Z,dayOfMonthOrdinalParse:K,relativeTime:Q,months:it,monthsShort:ot,week:At,weekdays:Nt,weekdaysMin:Ft,weekdaysShort:It,meridiemParse:rn},cn={},un={};function dn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function hn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=hn(e[o]).split("-")).length,n=(n=hn(e[o+1]))?n.split("-"):null;t>0;){if(r=gn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&dn(i,n)>=t-1)break;t--}o++}return sn}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function gn(t){var r=null;if(void 0===cn[t]&&e&&e.exports&&pn(t))try{r=sn._abbr,n(1137)("./"+t),mn(r)}catch(e){cn[t]=null}return cn[t]}function mn(e,t){var n;return e&&((n=u(t)?bn(e):vn(e,t))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),sn._abbr}function vn(e,t){if(null!==t){var n,r=ln;if(t.abbr=e,null!=cn[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=gn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new D(P(r,t)),un[e]&&un[e].forEach((function(e){vn(e.name,e.config)})),mn(e),cn[e]}return delete cn[e],null}function yn(e,t){if(null!=t){var n,r,i=ln;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(P(cn[e]._config,t)):(null!=(r=gn(e))&&(i=r._config),t=P(i,t),null==r&&(t.abbr=e),(n=new D(t)).parentLocale=cn[e],cn[e]=n),mn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===mn()&&mn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function bn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return sn;if(!a(e)){if(t=gn(e))return t;e=[e]}return fn(e)}function xn(){return L(cn)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[je]<0||n[je]>11?je:n[He]<1||n[He]>rt(n[ze],n[je])?He:n[Ye]<0||n[Ye]>24||24===n[Ye]&&(0!==n[Be]||0!==n[We]||0!==n[Xe])?Ye:n[Be]<0||n[Be]>59?Be:n[We]<0||n[We]>59?We:n[Xe]<0||n[Xe]>999?Xe:-1,v(e)._overflowDayOfYear&&(t<ze||t>He)&&(t=He),v(e)._overflowWeeks&&-1===t&&(t=$e),v(e)._overflowWeekday&&-1===t&&(t=Ge),v(e).overflow=t),e}var kn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,_n=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],An=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ln=/^\/?Date\((-?\d+)/i,Tn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function On(e){var t,n,r,i,o,a,s=e._i,l=kn.exec(s)||Cn.exec(s),c=_n.length,u=An.length;if(l){for(v(e).iso=!0,t=0,n=c;t<n;t++)if(_n[t][1].exec(l[1])){i=_n[t][0],r=!1!==_n[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(An[t][1].exec(l[3])){o=(l[2]||" ")+An[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Bn(e)}else e._isValid=!1}function Mn(e,t,n,r,i,o){var a=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Dn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(e,t,n){return!e||It.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function In(e,t,n){if(e)return En[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Fn(e){var t,n=Tn.exec(Dn(e._i));if(n){if(t=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],t,e))return;e._a=t,e._tzm=In(n[8],n[9],n[10]),e._d=xt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=Ln.exec(e._i);null===t?(On(e),!1===e._isValid&&(delete e._isValid,Fn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function zn(e,t,n){return null!=e?e:null!=t?t:n}function jn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Hn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=jn(e),e._w&&null==e._a[He]&&null==e._a[je]&&Yn(e),null!=e._dayOfYear&&(o=zn(e._a[ze],r[ze]),(e._dayOfYear>Ve(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=xt(o,0,e._dayOfYear),e._a[je]=n.getUTCMonth(),e._a[He]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ye]&&0===e._a[Be]&&0===e._a[We]&&0===e._a[Xe]&&(e._nextDay=!0,e._a[Ye]=0),e._d=(e._useUTC?xt:bt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ye]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Yn(e){var t,n,r,i,o,a,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=zn(t.GG,e._a[ze],Ct(Zn(),1,4).year),r=zn(t.W,1),((i=zn(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,c=Ct(Zn(),o,a),n=zn(t.gg,e._a[ze],c.year),r=zn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>St(n,o,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=kt(n,r,i,o,a),e._a[ze]=s.year,e._dayOfYear=s.dayOfYear)}function Bn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],v(e).empty=!0;var t,n,r,o,a,s,l,c=""+e._i,u=c.length,d=0;for(l=(r=$(e._f,e._locale).match(R)||[]).length,t=0;t<l;t++)o=r[t],(n=(c.match(Te(o,e))||[])[0])&&((a=c.substr(0,c.indexOf(n))).length>0&&v(e).unusedInput.push(a),c=c.slice(c.indexOf(n)+n.length),d+=n.length),H[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),Fe(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=u-d,c.length>0&&v(e).unusedInput.push(c),e._a[Ye]<=12&&!0===v(e).bigHour&&e._a[Ye]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ye]=Wn(e._locale,e._a[Ye],e._meridiem),null!==(s=v(e).era)&&(e._a[ze]=e._locale.erasConvertYear(s,e._a[ze])),Hn(e),wn(e)}else Fn(e);else On(e)}function Wn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Xn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=k({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Bn(t),y(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function $n(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Hn(e)}}function Gn(e){var t=new C(wn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||bn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new C(wn(t)):(h(t)?e._d=t:a(n)?Xn(e):n?Bn(e):Un(e),y(e)||(e._d=null),e))}function Un(e){var t=e._i;u(t)?e._d=new Date(i.now()):h(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):a(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),Hn(e)):s(t)?$n(e):d(t)?e._d=new Date(t):i.createFromInputFallback(e)}function qn(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&c(e)||a(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,Gn(o)}function Zn(e,t,n,r){return qn(e,t,n,r,!1)}i.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Kn=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Jn=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Qn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(l(e,t)&&(-1===Ue.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==Pe(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ar(){return Er(NaN)}function sr(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function lr(e){return e instanceof sr}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&Pe(e[r])!==Pe(t[r]))&&a++;return a+o}function dr(e,t){Y(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+F(~~(e/60),2)+t+F(~~e%60,2)}))}dr("Z",":"),dr("ZZ",""),Le("Z",ke),Le("ZZ",ke),Ne(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(ke,e)}));var hr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+Pe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(S(e)||h(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Zn(e).local()}function gr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=fr(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=gr(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Nr(this,Er(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:gr(this)}function vr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(gr(this),"m")),this}function xr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function kr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=Vn(t))._a?(e=t._isUTC?g(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function _r(){return!!this.isValid()&&this._isUTC}function Ar(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Lr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Tr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Er(e,t){var n,r,i,o=e,a=null;return lr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:d(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Lr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:Pe(a[He])*n,h:Pe(a[Ye])*n,m:Pe(a[Be])*n,s:Pe(a[We])*n,ms:Pe(cr(1e3*a[Xe]))*n}):(a=Tr.exec(e))?(n="-"===a[1]?-1:1,o={y:Or(a[2],n),M:Or(a[3],n),w:Or(a[4],n),d:Or(a[5],n),h:Or(a[6],n),m:Or(a[7],n),s:Or(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Pr(Zn(o.from),Zn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new sr(o),lr(e)&&l(e,"_locale")&&(r._locale=e._locale),lr(e)&&l(e,"_isValid")&&(r._isValid=e._isValid),r}function Or(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Dr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(E(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,Er(n,r),e),this}}function Nr(e,t,n,r){var o=t._milliseconds,a=cr(t._days),s=cr(t._months);e.isValid()&&(r=null==r||r,s&&ft(e,Je(e,"Month")+s*n),a&&Qe(e,"Date",Je(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&i.updateOffset(e,a||s))}Er.fn=sr.prototype,Er.invalid=ar;var Ir=Dr(1,"add"),Fr=Dr(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function zr(e){return S(e)||h(e)||Rr(e)||d(e)||Hr(e)||jr(e)||null==e}function jr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(t=0;t<a;t+=1)n=o[t],i=i||l(e,n);return r&&i}function Hr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!d(t)&&Rr(e)})).length),t&&n}function Yr(e){var t,n,r=s(e)&&!c(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||l(e,n);return r&&i}function Br(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Wr(e,t){1===arguments.length&&(arguments[0]?zr(arguments[0])?(e=arguments[0],t=void 0):Yr(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),r=pr(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=t&&(O(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,Zn(n)))}function Xr(){return new C(this)}function $r(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Gr(e,t){var n=S(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var i=S(e)?e:Zn(e),o=S(t)?t:Zn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Ur(e,t){var n,r=S(e)?e:Zn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Zr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Kr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Me(o)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?X(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",X(n,"Z")):X(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=X(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Er({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Zn(),e)}function oi(e,t){return this.isValid()&&(S(e)&&e.isValid()||Zn(e).isValid())?Er({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.to(Zn(),e)}function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var li=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ci(){return this._locale}var ui=1e3,di=60*ui,hi=60*di,fi=3506328*hi;function pi(e,t){return(e%t+t)%t}function gi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function mi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:gi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*di),hi);break;case"minute":t=this._d.valueOf(),t-=pi(t,di);break;case"second":t=this._d.valueOf(),t-=pi(t,ui)}return this._d.setTime(t),i.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:gi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hi-pi(t+(this._isUTC?0:this.utcOffset()*di),hi)-1;break;case"minute":t=this._d.valueOf(),t+=di-pi(t,di)-1;break;case"second":t=this._d.valueOf(),t+=ui-pi(t,ui)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function xi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function ki(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ci(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function _i(){return y(this)}function Ai(){return p({},v(this))}function Li(){return v(this).overflow}function Ti(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ei(e,t){var n,r,o,a=this._eras||bn("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=i(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=i(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Oi(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]}function Mi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Di(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ni(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ii(){var e,t,n,r,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,r=this.clone().startOf("day").valueOf(),o[e].since<=r&&r<=o[e].until||o[e].until<=r&&r<=o[e].since)return(this.year()-i(o[e].since).year())*n+o[e].offset;return this.year()}function Fi(e){return l(this,"_erasNameRegex")||Wi.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return l(this,"_erasAbbrRegex")||Wi.call(this),e?this._erasAbbrRegex:this._erasRegex}function zi(e){return l(this,"_erasNarrowRegex")||Wi.call(this),e?this._erasNarrowRegex:this._erasRegex}function ji(e,t){return t.erasAbbrRegex(e)}function Hi(e,t){return t.erasNameRegex(e)}function Yi(e,t){return t.erasNarrowRegex(e)}function Bi(e,t){return t._eraYearOrdinalRegex||be}function Wi(){var e,t,n,r,i,o=[],a=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=Oe(c[e].name),r=Oe(c[e].abbr),i=Oe(c[e].narrow),a.push(n),o.push(r),s.push(i),l.push(n),l.push(r),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Xi(e,t){Y(0,[e,e.length],0,t)}function $i(e){return Ki.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(e){return Ki.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vi(){return St(this.year(),1,4)}function Ui(){return St(this.isoWeekYear(),1,4)}function qi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Ki(e,t,n,r,i){var o;return null==e?Ct(this,r,i).year:(t>
vendor: 5,659 bytes, line 2
2(o=St(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=kt(e,t,n,r,i),a=xt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Le("N",ji),Le("NN",ji),Le("NNN",ji),Le("NNNN",Hi),Le("NNNNN",Yi),Ne(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Le("y",be),Le("yy",be),Le("yyy",be),Le("yyyy",be),Le("yo",Bi),Ne(["y","yy","yyy","yyyy"],ze),Ne(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ze]=n._locale.eraYearOrdinalParse(e,i):t[ze]=parseInt(e,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Xi("gggg","weekYear"),Xi("ggggg","weekYear"),Xi("GGGG","isoWeekYear"),Xi("GGGGG","isoWeekYear"),Le("G",xe),Le("g",xe),Le("GG",fe,ce),Le("gg",fe,ce),Le("GGGG",ve,de),Le("gggg",ve,de),Le("GGGGG",ye,he),Le("ggggg",ye,he),Ie(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Pe(e)})),Ie(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),Y("Q",0,"Qo","quarter"),Le("Q",le),Ne("Q",(function(e,t){t[je]=3*(Pe(e)-1)})),Y("D",["DD",2],"Do","date"),Le("D",fe,_e),Le("DD",fe,ce),Le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ne(["D","DD"],He),Ne("Do",(function(e,t){t[He]=Pe(e.match(fe)[0])}));var eo=Ke("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}Y("DDD",["DDDD",3],"DDDo","dayOfYear"),Le("DDD",me),Le("DDDD",ue),Ne(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Pe(e)})),Y("m",["mm",2],0,"minute"),Le("m",fe,Ae),Le("mm",fe,ce),Ne(["m","mm"],Be);var no=Ke("Minutes",!1);Y("s",["ss",2],0,"second"),Le("s",fe,Ae),Le("ss",fe,ce),Ne(["s","ss"],We);var ro,io,oo=Ke("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Le("S",me,le),Le("SS",me,ce),Le("SSS",me,ue),ro="SSSS";ro.length<=9;ro+="S")Le(ro,be);function ao(e,t){t[Xe]=Pe(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Ne(ro,ao);function so(){return this._isUTC?"UTC":""}function lo(){return this._isUTC?"Coordinated Universal Time":""}io=Ke("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var co=C.prototype;function uo(e){return Zn(1e3*e)}function ho(){return Zn.apply(null,arguments).parseZone()}function fo(e){return e}co.add=Ir,co.calendar=Wr,co.clone=Xr,co.diff=Kr,co.endOf=yi,co.format=ni,co.from=ri,co.fromNow=ii,co.to=oi,co.toNow=ai,co.get=et,co.invalidAt=Li,co.isAfter=$r,co.isBefore=Gr,co.isBetween=Vr,co.isSame=Ur,co.isSameOrAfter=qr,co.isSameOrBefore=Zr,co.isValid=_i,co.lang=li,co.locale=si,co.localeData=ci,co.max=Jn,co.min=Kn,co.parsingFlags=Ai,co.set=tt,co.startOf=vi,co.subtract=Fr,co.toArray=ki,co.toObject=Ci,co.toDate=wi,co.toISOString=ei,co.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Si,co.toString=Qr,co.unix=xi,co.valueOf=bi,co.creationData=Ti,co.eraName=Pi,co.eraNarrow=Di,co.eraAbbr=Ni,co.eraYear=Ii,co.year=qe,co.isLeapYear=Ze,co.weekYear=$i,co.isoWeekYear=Gi,co.quarter=co.quarters=Qi,co.month=pt,co.daysInMonth=gt,co.week=co.weeks=Et,co.isoWeek=co.isoWeeks=Ot,co.weeksInYear=qi,co.weeksInWeekYear=Zi,co.isoWeeksInYear=Vi,co.isoWeeksInISOWeekYear=Ui,co.date=eo,co.day=co.days=$t,co.weekday=Gt,co.isoWeekday=Vt,co.dayOfYear=to,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=io,co.utcOffset=mr,co.utc=yr,co.local=br,co.parseZone=xr,co.hasAlignedHourOffset=wr,co.isDST=kr,co.isLocal=Sr,co.isUtcOffset=_r,co.isUtc=Ar,co.isUTC=Ar,co.zoneAbbr=so,co.zoneName=lo,co.dates=A("dates accessor is deprecated. Use date instead.",eo),co.months=A("months accessor is deprecated. Use month instead",pt),co.years=A("years accessor is deprecated. Use year instead",qe),co.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),co.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cr);var po=D.prototype;function go(e,t,n,r){var i=bn(),o=g().set(r,t);return i[n](o,e)}function mo(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return go(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=go(e,r,n,"month");return i}function vo(e,t,n,r){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var i,o=bn(),a=e?o._week.dow:0,s=[];if(null!=n)return go(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=go(t,(i+a)%7,r,"day");return s}function yo(e,t){return mo(e,t,"months")}function bo(e,t){return mo(e,t,"monthsShort")}
vendor: 9,493 bytes, line 2
2function xo(e,t,n){return vo(e,t,n,"weekdays")}function wo(e,t,n){return vo(e,t,n,"weekdaysShort")}function ko(e,t,n){return vo(e,t,n,"weekdaysMin")}po.calendar=I,po.longDateFormat=V,po.invalidDate=q,po.ordinal=J,po.preparse=fo,po.postformat=fo,po.relativeTime=ee,po.pastFuture=te,po.set=M,po.eras=Ei,po.erasParse=Oi,po.erasConvertYear=Mi,po.erasAbbrRegex=Ri,po.erasNameRegex=Fi,po.erasNarrowRegex=zi,po.months=ct,po.monthsShort=ut,po.monthsParse=ht,po.monthsRegex=vt,po.monthsShortRegex=mt,po.week=_t,po.firstDayOfYear=Tt,po.firstDayOfWeek=Lt,po.weekdays=Ht,po.weekdaysMin=Bt,po.weekdaysShort=Yt,po.weekdaysParse=Xt,po.weekdaysRegex=Ut,po.weekdaysShortRegex=qt,po.weekdaysMinRegex=Zt,po.isPM=nn,po.meridiem=an,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=A("moment.lang is deprecated. Use moment.locale instead.",mn),i.langData=A("moment.langData is deprecated. Use moment.localeData instead.",bn);var Co=Math.abs;function So(){var e=this._data;return this._milliseconds=Co(this._milliseconds),this._days=Co(this._days),this._months=Co(this._months),e.milliseconds=Co(e.milliseconds),e.seconds=Co(e.seconds),e.minutes=Co(e.minutes),e.hours=Co(e.hours),e.months=Co(e.months),e.years=Co(e.years),this}function _o(e,t,n,r){var i=Er(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Ao(e,t){return _o(this,e,t,1)}function Lo(e,t){return _o(this,e,t,-1)}function To(e){return e<0?Math.floor(e):Math.ceil(e)}function Eo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*To(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=Me(o/1e3),l.seconds=e%60,t=Me(e/60),l.minutes=t%60,n=Me(t/60),l.hours=n%24,a+=Me(n/24),s+=i=Me(Oo(a)),a-=To(Mo(i)),r=Me(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Oo(e){return 4800*e/146097}function Mo(e){return 146097*e/4800}function Po(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Oo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Do(e){return function(){return this.as(e)}}var No=Do("ms"),Io=Do("s"),Fo=Do("m"),Ro=Do("h"),zo=Do("d"),jo=Do("w"),Ho=Do("M"),Yo=Do("Q"),Bo=Do("y"),Wo=No;function Xo(){return Er(this)}function $o(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Go(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vo=Go("milliseconds"),Uo=Go("seconds"),qo=Go("minutes"),Zo=Go("hours"),Ko=Go("days"),Jo=Go("months"),Qo=Go("years");function ea(){return Me(this.days()/7)}var ta=Math.round,na={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ra(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ia(e,t,n,r){var i=Er(e).abs(),o=ta(i.as("s")),a=ta(i.as("m")),s=ta(i.as("h")),l=ta(i.as("d")),c=ta(i.as("M")),u=ta(i.as("w")),d=ta(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,ra.apply(null,h)}function oa(e){return void 0===e?ta:"function"==typeof e&&(ta=e,!0)}function aa(e,t){return void 0!==na[e]&&(void 0===t?na[e]:(na[e]=t,"s"===e&&(na.ss=t-1),!0))}function sa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=na;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},na,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ia(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var la=Math.abs;function ca(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=la(this._milliseconds)/1e3,c=la(this._days),u=la(this._months),d=this.asSeconds();return d?(e=Me(l/60),t=Me(e/60),l%=60,e%=60,n=Me(u/12),u%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=ca(this._months)!==ca(d)?"-":"",a=ca(this._days)!==ca(d)?"-":"",s=ca(this._milliseconds)!==ca(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?a+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var da=sr.prototype;return da.isValid=or,da.abs=So,da.add=Ao,da.subtract=Lo,da.as=Po,da.asMilliseconds=No,da.asSeconds=Io,da.asMinutes=Fo,da.asHours=Ro,da.asDays=zo,da.asWeeks=jo,da.asMonths=Ho,da.asQuarters=Yo,da.asYears=Bo,da.valueOf=Wo,da._bubble=Eo,da.clone=Xo,da.get=$o,da.milliseconds=Vo,da.seconds=Uo,da.minutes=qo,da.hours=Zo,da.days=Ko,da.weeks=ea,da.months=Jo,da.years=Qo,da.humanize=sa,da.toISOString=ua,da.toString=ua,da.toJSON=ua,da.locale=si,da.localeData=ci,da.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),da.lang=li,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Le("x",xe),Le("X",Ce),Ne("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ne("x",(function(e,t,n){n._d=new Date(Pe(e))})),i.version="2.30.1",o(Zn),i.fn=co,i.min=er,i.max=tr,i.now=nr,i.utc=g,i.unix=uo,i.months=yo,i.isDate=h,i.locale=mn,i.invalid=b,i.duration=Er,i.isMoment=S,i.weekdays=xo,i.parseZone=ho,i.localeData=bn,i.isDuration=lr,i.monthsShort=bo,i.weekdaysMin=ko,i.defineLocale=vn,i.updateLocale=yn,i.locales=xn,i.weekdaysShort=wo,i.normalizeUnits=re,i.relativeTimeRounding=oa,i.relativeTimeThreshold=aa,i.calendarFormat=Br,i.prototype=co,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},5606:e=>{var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,l=[],c=!1,u=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=p,r.addListener=p,r.once=p,r.off=p,r.removeListener=p,r.removeAllListeners=p,r.emit=p,r.prependListener=p,r.prependOnceListener=p,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},618:e=>{e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},4526:(e,t,n)=>{var r=n(5237);r.commands.tabAndIndentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentMore");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var n=Array(e.options.tabSize+1).join(" ");e.replaceSelection(n)}},r.commands.shiftTabAndUnindentMarkdownList=function(e){var t=e.listSelections()[0].head;if(!1!==e.getStateAfter(t.line).list)e.execCommand("indentLess");else if(e.options.indentWithTabs)e.execCommand("insertTab");else{var n=Array(e.options.tabSize+1).join(" ");e.replaceSelection(n)}}},2080:(e,t,n)=>{"use strict";var r=n(5237);n(7382),n(4526),n(7374),n(7216),n(2580),n(202),n(9533),n(1764),n(576);var i=n(8375),o=n(133),a=/Mac/.test(navigator.platform),s={toggleBold:g,toggleItalic:m,drawLink:T,toggleHeadingSmaller:x,toggleHeadingBigger:w,drawImage:E,toggleBlockquote:b,toggleOrderedList:A,toggleUnorderedList:_,toggleCodeBlock:y,togglePreview:I,toggleStrikethrough:v,toggleHeading1:k,toggleHeading2:C,toggleHeading3:S,cleanBlock:L,drawTable:O,drawHorizontalRule:M,und
vendor: 6,760 bytes, line 2
2o:P,redo:D,toggleSideBySide:N,toggleFullScreen:p},l={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"};function c(e){return e=a?e.replace("Ctrl","Cmd"):e.replace("Cmd","Ctrl")}function u(e,t,n){e=e||{};var r=document.createElement("a");return t=null==t||t,e.title&&t&&(r.title=function(e,t,n){var r,i=e;t&&n[r=function(e){for(var t in s)if(s[t]===e)return t;return null}(t)]&&(i+=" ("+c(n[r])+")");return i}(e.title,e.action,n),a&&(r.title=r.title.replace("Ctrl","⌘"),r.title=r.title.replace("Alt","⌥"))),r.tabIndex=-1,r.className=e.className,r}function d(){var e=document.createElement("i");return e.className="separator",e.innerHTML="|",e}function h(e,t){t=t||e.getCursor("start");var n=e.getTokenAt(t);if(!n.type)return{};for(var r,i,o=n.type.split(" "),a={},s=0;s<o.length;s++)"strong"===(r=o[s])?a.bold=!0:"variable-2"===r?(i=e.getLine(t.line),/^\s*\d+\.\s/.test(i)?a["ordered-list"]=!0:a["unordered-list"]=!0):"atom"===r?a.quote=!0:"em"===r?a.italic=!0:"quote"===r?a.quote=!0:"strikethrough"===r?a.strikethrough=!0:"comment"===r?a.code=!0:"link"===r?a.link=!0:"tag"===r?a.image=!0:r.match(/^header(\-[1-6])?$/)&&(a[r.replace("header","heading")]=!0);return a}var f="";function p(e){var t=e.codemirror;t.setOption("fullScreen",!t.getOption("fullScreen")),t.getOption("fullScreen")?(f=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=f;var n=t.getWrapperElement();/fullscreen/.test(n.previousSibling.className)?n.previousSibling.className=n.previousSibling.className.replace(/\s*fullscreen\b/,""):n.previousSibling.className+=" fullscreen";var r=e.toolbarElements.fullscreen;/active/.test(r.className)?r.className=r.className.replace(/\s*active\s*/g,""):r.className+=" active";var i=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(i.className)&&N(e)}function g(e){j(e,"bold",e.options.blockStyles.bold)}function m(e){j(e,"italic",e.options.blockStyles.italic)}function v(e){j(e,"strikethrough","~~")}function y(e){var t=e.options.blockStyles.code;function n(e){if("object"!=typeof e)throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof e+": "+e;return e.styles&&e.styles[2]&&-1!==e.styles[2].indexOf("formatting-code-block")}function r(e){return e.state.base.base||e.state.base}function i(e,t,i,o,a){i=i||e.getLineHandle(t),o=o||e.getTokenAt({line:t,ch:1}),a=a||!!i.text&&e.getTokenAt({line:t,ch:i.text.length-1});var s=o.type?o.type.split(" "):[];return a&&r(a).indentedCode?"indented":-1!==s.indexOf("comment")&&(r(o).fencedChars||r(a).fencedChars||n(i)?"fenced":"single")}var o,a,s,l=e.codemirror,c=l.getCursor("start"),u=l.getCursor("end"),d=l.getTokenAt({line:c.line,ch:c.ch||1}),h=l.getLineHandle(c.line),f=i(l,c.line,h,d);if("single"===f){var p=h.text.slice(0,c.ch).replace("`",""),g=h.text.slice(c.ch).replace("`","");l.replaceRange(p+g,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),c.ch--,c!==u&&u.ch--,l.setSelection(c,u),l.focus()}else if("fenced"===f)if(c.line!==u.line||c.ch!==u.ch){for(o=c.line;o>=0&&!n(h=l.getLineHandle(o));o--);var m,v,y,b,x=r(l.getTokenAt({line:o,ch:1})).fencedChars;n(l.getLineHandle(c.line))?(m="",v=c.line):n(l.getLineHandle(c.line-1))?(m="",v=c.line-1):(m=x+"\n",v=c.line),n(l.getLineHandle(u.line))?(y="",b=u.line,0===u.ch&&(b+=1)):0!==u.ch&&n(l.getLineHandle(u.line+1))?(y="",b=u.line+1):(y=x+"\n",b=u.line+1),0===u.ch&&(b-=1),l.operation((function(){l.replaceRange(y,{line:b,ch:0},{line:b+(y?0:1),ch:0}),l.replaceRange(m,{line:v,ch:0},{line:v+(m?0:1),ch:0})})),l.setSelection({line:v+(m?1:0),ch:0},{line:b+(m?1:-1),ch:0}),l.focus()}else{var w=c.line;if(n(l.getLineHandle(c.line))&&("fenced"===i(l,c.line+1)?(o=c.line,w=c.line+1):(a=c.line,w=c.line-1)),void 0===o)for(o=w;o>=0&&!n(h=l.getLineHandle(o));o--);if(void 0===a)for(s=l.lineCount(),a=w;a<s&&!n(h=l.getLineHandle(a));a++);l.operation((function(){l.replaceRange("",{line:o,ch:0},{line:o+1,ch:0}),l.replaceRange("",{line:a-1,ch:0},{line:a,ch:0})})),l.focus()}else if("indented"===f){if(c.line!==u.line||c.ch!==u.ch)o=c.line,a=u.line,0===u.ch&&a--;else{for(o=c.line;o>=0;o--)if(!(h=l.getLineHandle(o)).text.match(/^\s*$/)&&"indented"!==i(l,o,h)){o+=1;break}for(s=l.lineCount(),a=c.line;a<s;a++)if(!(h=l.getLineHandle(a)).text.match(/^\s*$/)&&"indented"!==i(l,a,h)){a-=1;break}}var k=l.getLineHandle(a+1),C=k&&l.getTokenAt({line:a+1,ch:k.text.length-1});C&&r(C).indentedCode&&l.replaceRange("\n",{line:a+1,ch:0});for(var S=o;S<=a;S++)l.indentLine(S,"subtract");l.focus()}else{var _=c.line===u.line&&c.ch===u.ch&&0===c.ch,A=c.line!==u.line;_||A?function(e,t,n,r){var i=t.line+1,o=n.line+1,a=t.line!==n.line,s=r+"\n",l="\n"+r;a&&o++,a&&0===n.ch&&(l=r+"\n",o--),F(e,!1,[s,l]),e.setSelection({line:i,ch:0},{line:o,ch:0})}(l,c,u,t):F(l,!1,["`","`"])}}function b(e){z(e.codemirror,"quote")}function x(e){R(e.codemirror,"smaller")}function w(e){R(e.codemirror,"bigger")}function k(e){R(e.codemirror,void 0,1)}function C(e){R(e.codemirror,void 0,2)}function S(e){R(e.codemirror,void 0,3)}function _(e){z(e.codemirror,"unordered-list")}function A(e){z(e.codemirror,"ordered-list")}function L(e){!function(e){if(/editor-preview-active/.test(e.getWrapperElement().lastChild.className))return;for(var t,n=e.getCursor("start"),r=e.getCursor("end"),i=n.line;i<=r.line;i++)t=(t=e.getLine(i)).replace(/^[ ]*([# ]+|\*|\-|[> ]+|[0-9]+(.|\)))[ ]*/,""),e.replaceRange(t,{line:i,ch:0},{line:i,ch:99999999999999})}(e.codemirror)}function T(e){var t=e.codemirror,n=h(t),r=e.options,i="http://";if(r.promptURLs&&!(i=prompt(r.promptTexts.link)))return!1;F(t,n.link,r.insertTexts.link,i)}function E(e){var t=e.codemirror,n=h(t),r=e.options,i="http://";if(r.promptURLs&&!(i=prompt(r.promptTexts.image)))return!1;F(t,n.image,r.insertTexts.image,i)}function O(e){var t=e.codemirror,n=h(t),r=e.options;F(t,n.table,r.insertTexts.table)}function M(e){var t=e.codemirror,n=h(t),r=e.options;F(t,n.image,r.insertTexts.horizontalRule)}function P(e){var t=e.codemirror;t.undo(),t.focus()}function D(e){var t=e.codemirror;t.redo(),t.focus()}function N(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.nextSibling,i=e.toolbarElements["side-by-side"],o=!1;/editor-preview-active-side/.test(r.className)?(r.className=r.className.replace(/\s*editor-preview-active-side\s*/g,""),i.className=i.className.replace(/\s*active\s*/g,""),n.className=n.className.replace(/\s*CodeMirror-sided\s*/g," ")):(setTimeout((function(){t.getOption("fullScreen")||p(e),r.className+=" editor-preview-active-side"}
2),1),i.className+=" active",n.className+=" CodeMirror-sided",o=!0);var a=n.lastChild;if(/editor-preview-active/.test(a.className)){a.className=a.className.replace(/\s*editor-preview-active\s*/g,"");var s=e.toolbarElements.preview,l=n.previousSibling;s.className=s.className.replace(/\s*active\s*/g,""),l.className=l.className.replace(/\s*disabled-for-preview*/g,"")}t.sideBySideRenderingFunction||(t.sideBySideRenderingFunction=function(){r.innerHTML=e.options.previewRender(e.value(),r)}),o?(r.innerHTML=e.options.previewRender(e.value(),r),t.on("update",t.sideBySideRenderingFunction)):t.off("update",t.sideBySideRenderingFunction),t.refresh()}function I(e){var t=e.codemirror,n=t.getWrapperElement(),r=n.previousSibling,i=!!e.options.toolbar&&e.toolbarElements.preview,o=n.lastChild;o&&/editor-preview/.test(o.className)||((o=document.createElement("div")).className="editor-preview",n.appendChild(o)),/editor-preview-active/.test(o.className)?(o.className=o.className.replace(/\s*editor-preview-active\s*/g,""),i&&(i.className=i.className.replace(/\s*active\s*/g,""),r.className=r.className.replace(/\s*disabled-for-preview*/g,""))):(setTimeout((function(){o.className+=" editor-preview-active"}),1),i&&(i.className+=" active",r.className+=" disabled-for-preview")),o.innerHTML=e.options.previewRender(e.value(),o);var a=t.getWrapperElement().nextSibling;/editor-preview-active-side/.test(a.className)&&N(e)}function F(e,t,n,r){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){var i,o=n[0],a=n[1],s=e.getCursor("start"),l=e.getCursor("end");r&&(a=a.replace("#url#",r)),t?(o=(i=e.getLine(s.line)).slice(0,s.ch),a=i.slice(s.ch),e.replaceRange(o+a,{line:s.line,ch:0})):(i=e.getSelection(),e.replaceSelection(o+i+a),s.ch+=o.length,s!==l&&(l.ch+=o.length)),e.setSelection(s,l),e.focus()}}function R(e,t,n){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var r=e.getCursor("start"),i=e.getCursor("end"),o=r.line;o<=i.line;o++)!function(r){var i=e.getLine(r),o=i.search(/[^#]/);i=void 0!==t?o<=0?"bigger"==t?"###### "+i:"# "+i:6==o&&"smaller"==t?i.substr(7):1==o&&"bigger"==t?i.substr(2):"bigger"==t?i.substr(1):"#"+i:1==n?o<=0?"# "+i:o==n?i.substr(o+1):"# "+i.substr(o+1):2==n?o<=0?"## "+i:o==n?i.substr(o+1):"## "+i.substr(o+1):o<=0?"### "+i:o==n?i.substr(o+1):"### "+i.substr(o+1),e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})}(o);e.focus()}}function z(e,t){if(!/editor-preview-active/.test(e.getWrapperElement().lastChild.className)){for(var n=h(e),r=e.getCursor("start"),i=e.getCursor("end"),o={quote:/^(\s*)\>\s+/,"unordered-list":/^(\s*)(\*|\-|\+)\s+/,"ordered-list":/^(\s*)\d+\.\s+/},a={quote:"> ","unordered-list":"* ","ordered-list":"1. "},s=r.line;s<=i.line;s++)!function(r){var i=e.getLine(r);i=n[t]?i.replace(o[t],"$1"):a[t]+i,e.replaceRange(i,{line:r,ch:0},{line:r,ch:99999999999999})}(s);e.focus()}}function j(e,t,n,r){if(!/editor-preview-active/.test(e.codemirror.getWrapperElement().lastChild.className)){r=void 0===r?n:r;var i,o=e.codemirror,a=h(o),s=n,l=r,c=o.getCursor("start"),u=o.getCursor("end");a[t]?(s=(i=o.getLine(c.line)).slice(0,c.ch),l=i.slice(c.ch),"bold"==t?(s=s.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),l=l.replace(/(\*\*|__)/,"")):"italic"==t?(s=s.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),l=l.replace(/(\*|_)/,"")):"strikethrough"==t&&(s=s.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),l=l.replace(/(\*\*|~~)/,"")),o.replaceRange(s+l,{line:c.line,ch:0},{line:c.line,ch:99999999999999}),"bold"==t||"strikethrough"==t?(c.ch-=2,c!==u&&(u.ch-=2)):"italic"==t&&(c.ch-=1,c!==u&&(u.ch-=1))):(i=o.getSelection(),"bold"==t?i=(i=i.split("**").join("")).split("__").join(""):"italic"==t?i=(i=i.split("*").join("")).split("_").join(""):"strikethrough"==t&&(i=i.split("~~").join("")),o.replaceSelection(s+i+l),c.ch+=n.length,u.ch=c.ch+i.length),o.setSelection(c,u),o.focus()}}function H(e,t){for(var n in t)t.hasOwnProperty(n)&&(t[n]instanceof Array?e[n]=t[n].concat(e[n]instanceof Array?e[n]:[]):null!==t[n]&&"object"==typeof t[n]&&t[n].constructor===Object?e[n]=H(e[n]||{},t[n]):e[n]=t[n]);return e}function Y(e){for(var t=1;t<arguments.length;t++)e=H(e,arguments[t]);return e}function B(e){var t=e.match(/[a-zA-Z0-9_\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g),n=0;if(null===t)return n;for(var r=0;r<t.length;r++)t[r].charCodeAt(0)>=19968?n+=t[r].length:n+=1;return n}var W={bold:{name:"bold",action:g,className:"fa fa-bold",title:"Bold",default:!0},italic:{name:"italic",action:m,className:"fa fa-italic",title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:v,className:"fa fa-strikethrough",title:"Str
2ikethrough"},heading:{name:"heading",action:x,className:"fa fa-header",title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:x,className:"fa fa-header fa-header-x fa-header-smaller",title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:w,className:"fa fa-header fa-header-x fa-header-bigger",title:"Bigger Heading"},"heading-1":{name:"heading-1",action:k,className:"fa fa-header fa-header-x fa-header-1",title:"Big Heading"},"heading-2":{name:"heading-2",action:C,className:"fa fa-header fa-header-x fa-header-2",title:"Medium Heading"},"heading-3":{name:"heading-3",action:S,className:"fa fa-header fa-header-x fa-header-3",title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:y,className:"fa fa-code",title:"Code"},quote:{name:"quote",action:b,className:"fa fa-quote-left",title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:_,className:"fa fa-list-ul",title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:A,className:"fa fa-list-ol",title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:L,className:"fa fa-eraser fa-clean-block",title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:T,className:"fa fa-link",title:"Create Link",default:!0},image:{name:"image",action:E,className:"fa fa-picture-o",title:"Insert Image",default:!0},table:{name:"table",action:O,className:"fa fa-table",title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:M,className:"fa fa-minus",title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:I,className:"fa fa-eye no-disable",title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:N,className:"fa fa-columns no-disable no-mobile",title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:p,className:"fa fa-arrows-alt no-disable no-mobile",title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://simplemde.com/markdown-guide",className:"fa fa-question-circle",title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:P,className:"fa fa-undo no-disable",title:"Undo"},redo:{name:"redo",action:D,className:"fa fa-repeat no-disable",title:"Redo"}},X={link:["[","](#url#)"],image:["![](","#url#)"],table:["","\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text     | Text     | Text     |\n\n"],horizontalRule:["","\n\n-----\n\n"]},$={link:"URL for the link:",image:"URL of the image:"},G={bold:"**",code:"```",italic:"*"};function V(e){(e=e||{}).parent=this;var t=!0;if(!1===e.autoDownloadFontAwesome&&(t=!1),!0!==e.autoDownloadFontAwesome)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(t=!1);if(t){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(e.element)this.element=e.element;else if(null===e.element)return void console.log("SimpleMDE: Error. No element was found.");if(void 0===e.toolbar)for(var o in e.toolbar=[],W)W.hasOwnProperty(o)&&(-1!=o.indexOf("separator-")&&e.toolbar.push("|"),(!0===W[o].default||e.showIcons&&e.showIcons.constructor===Array&&-1!=e.showIcons.indexOf(o))&&e.toolbar.push(o));e.hasOwnProperty("status")||(e.status=["autosave","lines","words","cursor"]),e.previewRender||(e.previewRender=function(e){return this.parent.markdown(e)}),e.parsingConfig=Y({highlightFormatting:!0},e.parsingConfig||{}),e.insertTexts=Y({},X,e.insertTexts||{}),e.promptTexts=$,e.blockStyles=Y({},G,e.blockStyles||{}),e.shortcuts=Y({},l,e.shortcuts||{}),null!=e.autosave&&null!=e.autosave.unique_id&&""!=e.autosave.unique_id&&(e.autosave.uniqueId=e.autosave.unique_id),this.options=e,this.render(),!e.initialValue||this.options.autosave&&!0===this.options.autosave.foundSavedValue||this.value(e.initialValue)}function U(){if("object"!=typeof localStorage)return!1;try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch(e){return!1}return!0}V.prototype.markdown=function(e){if(o){var t={};return this.options&&this.options.renderingConfig&&!1===this.options.renderingConfig.singleLineBreaks?t.breaks=!1:t.breaks=!0,this.options&&this.options.renderingConfig&&!0===this.options.renderingConfig.codeSyntaxHighlighting&&window.hljs&&(t.highlight=function(e){return window.hljs.highlightAuto(e).value}),o.setOptions(t),o(e)}},V.prototype.render=function(e){if(e||(e=this.element||document.getElementsByTagName("textarea")[0]),!this._rendered||this._rendered!==e){this.element=e;var t,n,o=this.options,a=this,l={};for(var u in o.shortcuts)null!==o.shortcuts[u]&&null!==s[u]&&function(e){l[c(o.shortcuts[e])]=function(){s[e](a)}}(u);if(l.Enter="newlineAndIndentContinueMarkdownList",l.Tab="tabAndIndentMarkdownList",l["Shift-Tab"]="shiftTabAndUnindentMarkdownList",l.Esc=function(e){e.getOption("fullScreen")&&p(a)},document.addEventListener("keydown",(function(e){27==(e=e||window.event).keyCode&&a.codemirror.getOption("fullScreen")&&p(a)}),!1),!1!==o.spellChecker?(t="spell-checker",(n=o.parsingConfig).name="gfm",n.gitHubSpice=!1,i({codeMirrorInstance:r})):((t=o.parsingConfig).name="gfm",t.gitHubSpice=!1),this.codemirror=r.fromTextArea(e,{mode:t,backdrop:n,theme:"paper",tabSize:null!=o.tabSize?o.tabSize:2,indentUnit:null!=o.tabSize?o.tabSize:2,indentWithTabs:!1!==o.indentWithTabs,lineNumbers:!1,autofocus:!0===o.autofocus,extraKeys:l,lineWrapping:!1!==o.lineWrapping,allowDropFileTypes:["text/plain"],placeholder:o.placeholder||e.getAttribute("placeholder")||"",styleSelectedText:null==o.styleSelectedText||o.styleSelectedText}),!0===o.forceSync){var d=this.codemirror;d.on("change",(function(){d.save()}))}this.gui={},!1!==o.toolbar&&(this.gui.toolbar=this.createToolbar()),!1!==o.status&&(this.gui.statusbar=this.createStatusbar()),null!=o.autosave&&!0===o.autosave.enabled&&this.autosave(),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element;var h=this.codemirror;setTimeout(function(){h.refresh()}.bind(h),0)}},V.prototype.autosave=function(){if(U()){var e=this;if(null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to use the autosave feature");null!=e.element.form&&null!=e.element.form&&e.element.form.addEventListener("submit",(function(){localStorage.removeItem("smde_"+e.options.autosave.uniqueId)})),!0!==this.options.autosave.loaded&&("string"==typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&""!=localStorage.getItem("smde_"+this.options.autosave.uniqueId)&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foun
2dSavedValue=!0),this.options.autosave.loaded=!0),localStorage.setItem("smde_"+this.options.autosave.uniqueId,e.value());var t=document.getElementById("autosaved");if(null!=t&&null!=t&&""!=t){var n=new Date,r=n.getHours(),i=n.getMinutes(),o="am",a=r;a>=12&&(a=r-12,o="pm"),0==a&&(a=12),i=i<10?"0"+i:i,t.innerHTML="Autosaved: "+a+":"+i+" "+o}this.autosaveTimeoutId=setTimeout((function(){e.autosave()}),this.options.autosave.delay||1e4)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},V.prototype.clearAutosavedValue=function(){if(U()){if(null==this.options.autosave||null==this.options.autosave.uniqueId||""==this.options.autosave.uniqueId)return void console.log("SimpleMDE: You must set a uniqueId to clear the autosave value");localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("SimpleMDE: localStorage not available, cannot autosave")},V.prototype.createSideBySide=function(){var e=this.codemirror,t=e.getWrapperElement(),n=t.nextSibling;n&&/editor-preview-side/.test(n.className)||((n=document.createElement("div")).className="editor-preview-side",t.parentNode.insertBefore(n,t.nextSibling));var r=!1,i=!1;return e.on("scroll",(function(e){if(r)r=!1;else{i=!0;var t=e.getScrollInfo().height-e.getScrollInfo().clientHeight,o=parseFloat(e.getScrollInfo().top)/t,a=(n.scrollHeight-n.clientHeight)*o;n.scrollTop=a}})),n.onscroll=function(){if(i)i=!1;else{r=!0;var t=n.scrollHeight-n.clientHeight,o=parseFloat(n.scrollTop)/t,a=(e.getScrollInfo().height-e.getScrollInfo().clientHeight)*o;e.scrollTo(0,a)}},n},V.prototype.createToolbar=function(e){if((e=e||this.options.toolbar)&&0!==e.length){var t;for(t=0;t<e.length;t++)null!=W[e[t]]&&(e[t]=W[e[t]]);var n=document.createElement("div");n.className="editor-toolbar";var r,i,o=this,a={};for(o.toolbar=e,t=0;t<e.length;t++)if(("guide"!=e[t].name||!1!==o.options.toolbarGuideIcon)&&!(o.options.hideIcons&&-1!=o.options.hideIcons.indexOf(e[t].name)||("fullscreen"==e[t].name||"side-by-side"==e[t].name)&&(r=void 0,i=void 0,i=!1,r=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(r)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(r.substr(0,4)))&&(i=!0),i))){if("|"===e[t]){for(var s=!1,l=t+1;l<e.length;l++)"|"===e[l]||o.options.hideIcons&&-1!=o.options.hideIcons.indexOf(e[l].name)||(s=!0);if(!s)continue}!function(e){var t;t="|"===e?d():u(e,o.options.toolbarTips,o.options.shortcuts),e.action&&("function"==typeof e.action?t.oncl
2ick=function(t){t.preventDefault(),e.action(o)}:"string"==typeof e.action&&(t.href=e.action,t.target="_blank")),a[e.name||e]=t,n.appendChild(t)}(e[t])}o.toolbarElements=a;var c=this.codemirror;c.on("cursorActivity",(function(){var e=h(c);for(var t in a)!function(t){var n=a[t];e[t]?n.className+=" active":"fullscreen"!=t&&"side-by-side"!=t&&(n.className=n.className.replace(/\s*active\s*/g,""))}(t)}));var f=c.getWrapperElement();return f.parentNode.insertBefore(n,f),n}},V.prototype.createStatusbar=function(e){e=e||this.options.status;var t=this.options,n=this.codemirror;if(e&&0!==e.length){var r,i,o,a=[];for(r=0;r<e.length;r++)if(i=void 0,o=void 0,"object"==typeof e[r])a.push({className:e[r].className,defaultValue:e[r].defaultValue,onUpdate:e[r].onUpdate});else{var s=e[r];"words"===s?(o=function(e){e.innerHTML=B(n.getValue())},i=function(e){e.innerHTML=B(n.getValue())}):"lines"===s?(o=function(e){e.innerHTML=n.lineCount()},i=function(e){e.innerHTML=n.lineCount()}):"cursor"===s?(o=function(e){e.innerHTML="0:0"},i=function(e){var t=n.getCursor();e.innerHTML=t.line+":"+t.ch}):"autosave"===s&&(o=function(e){null!=t.autosave&&!0===t.autosave.enabled&&e.setAttribute("id","autosaved")}),a.push({className:s,defaultValue:o,onUpdate:i})}var l=document.createElement("div");for(l.className="editor-statusbar",r=0;r<a.length;r++){var c=a[r],u=document.createElement("span");u.className=c.className,"function"==typeof c.defaultValue&&c.defaultValue(u),"function"==typeof c.onUpdate&&this.codemirror.on("update",function(e,t){return function(){t.onUpdate(e)}}(u,c)),l.appendChild(u)}var d=this.codemirror.getWrapperElement();return d.parentNode.insertBefore(l,d.nextSibling),l}},V.prototype.value=function(e){return void 0===e?this.codemirror.getValue():(this.codemirror.getDoc().setValue(e),this)},V.toggleBold=g,V.toggleItalic=m,V.toggleStrikethrough=v,V.toggleBlockquote=b,V.toggleHeadingSmaller=x,V.toggleHeadingBigger=w,V.toggleHeading1=k,V.toggleHeading2=C,V.toggleHeading3=S,V.toggleCodeBlock=y,V.toggleUnorderedList=_,V.toggleOrderedList=A,V.cleanBlock=L,V.drawLink=T,V.drawImage=E,V.drawTable=O,V.drawHorizontalRule=M,V.undo=P,V.redo=D,V.togglePreview=I,V.toggleSideBySide=N,V.toggleFullScreen=p,V.prototype.toggleBold=function(){g(this)},V.prototype.toggleItalic=function(){m(this)},V.prototype.toggleStrikethrough=function(){v(this)},V.prototype.toggleBlockquote=function(){b(this)},V.prototype.toggleHeadingSmaller=function(){x(this)},V.prototype.toggleHeadingBigger=function(){w(this)},V.prototype.toggleHeading1=function(){k(this)},V.prototype.toggleHeading2=function(){C(this)},V.prototype.toggleHeading3=function(){S(this)},V.prototype.toggleCodeBlock=function(){y(this)},V.prototype.toggleUnorderedList=function(){_(this)},V.prototype.toggleOrderedList=function(){A(this)},V.prototype.cleanBlock=function(){L(this)},V.prototype.drawLink=function(){T(this)},V.prototype.drawImage=function(){E(this)},V.prototype.drawTable=function(){O(this)},V.prototype.drawHorizontalRule=function(){M(this)},V.prototype.undo=function(){P(this)},V.prototype.redo=function(){D(this)},V.prototype.togglePreview=function(){I(this)},V.prototype.toggleSideBySide=function(){N(this)},V.prototype.toggleFullScreen=function(){p(this)},V.prototype.isPreviewActive=function(){var e=this.codemirror.getWrapperElement().lastChild;return/editor-preview-active/.test(e.className)},V.prototype.isSideBySideActive=function(){var e=this.codemirror.getWrapperElement().nextSibling;return/editor-preview-active-side/.test(e.className)},V.prototype.isFullscreenActive=function(){return this.codemirror.getOption("fullScreen")},V.prototype.getState=function(){return h(this.codemirror)},V.prototype.toTextArea=function(){var e=this.codemirror,t=e.getWrapperElement();t.parentNode&&(this.gui.toolbar&&t.parentNode.removeChild(this.gui.toolbar),this.gui.statusbar&&t.parentNode.removeChild(this.gui.statusbar),this.gui.sideBySide&&t.parentNode.removeChild(this.gui.sideBySide)),e.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())},e.exports=V},246:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.r(t),n.d(t,{MultiDrag:()=>bt,Sortable:()=>He,Swap:()=>lt,default:()=>kt});function c(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var u=c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),d=c(/Edge/i),h=c(/firefox/i),f=c(/safari/i)&&
vendor: 4,497 bytes, line 2
2!c(/chrome/i)&&!c(/android/i),p=c(/iP(ad|od|hone)/i),g=c(/chrome/i)&&c(/android/i),m={capture:!1,passive:!1};function v(e,t,n){e.addEventListener(t,n,!u&&m)}function y(e,t,n){e.removeEventListener(t,n,!u&&m)}function b(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function x(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function w(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&b(e,t):b(e,t))||r&&e===n)return e;if(e===n)break}while(e=x(e))}return null}var k,C=/\s+/g;function S(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(C," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(C," ")}}function _(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function A(e,t){var n="";if("string"==typeof e)n=e;else do{var r=_(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function L(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function T(){var e=document.scrollingElement;return e||document.documentElement}function E(e,t,n,r,i){if(e.getBoundingClientRect||e===window){var o,a,s,l,c,d,h;if(e!==window&&e!==T()?(a=(o=e.getBoundingClientRect()).top,s=o.left,l=o.bottom,c=o.right,d=o.height,h=o.width):(a=0,s=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!u))do{if(i&&i.getBoundingClientRect&&("none"!==_(i,"transform")||n&&"static"!==_(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(_(i,"border-top-width")),s-=f.left+parseInt(_(i,"border-left-width")),l=a+o.height,c=s+o.width;break}}while(i=i.parentNode);if(r&&e!==window){var p=A(i||e),g=p&&p.a,m=p&&p.d;p&&(l=(a/=m)+(d/=m),c=(s/=g)+(h/=g))}return{top:a,left:s,bottom:l,right:c,width:h,height:d}}}function O(e,t,n){for(var r=I(e,!0),i=E(e)[t];r;){var o=E(r)[n];if(!("top"===n||"left"===n?i>=o:i<=o))return r;if(r===T())break;r=I(r,!1)}return!1}function M(e,t,n){for(var r=0,i=0,o=e.children;i<o.length;){if("none"!==o[i].style.display&&o[i]!==He.ghost&&o[i]!==He.dragged&&w(o[i],n.draggable,e,!1)){if(r===t)return o[i];r++}i++}return null}function P(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===_(n,"display")||t&&!b(n,t));)n=n.previousElementSibling;return n||null}function D(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!b(e,t)||n++;return n}function N(e){var t=0,n=0,r=T();if(e)do{var i=A(e),o=i.a,a=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function I(e,t){if(!e||!e.getBoundingClientRect)return T();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=_(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return T();if(r||t)return n;r=!0}}}while(n=n.parentNode);return T()}function F(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 R(e,t){return function(){if(!k){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),k=setTimeout((function(){k=void 0}),t)}}}function z(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function j(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function H(e,t){_(e,"position","absolute"),_(e,"top",t.top),_(e,"left",t.left),_(e,"width",t.width),_(e,"height",t.height)}function Y(e){_(e,"position",""),_(e,"top",""),_(e,"left",""),_(e,"width",""),_(e,"height","")}var B="Sortable"+(new Date).getTime();function W(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEac
vendor: 4,934 bytes, line 2
2h((function(e){if("none"!==_(e,"display")&&e!==He.ghost){t.push({target:e,rect:E(e)});var n=a({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=A(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var i=!1,o=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,s=E(n),l=n.prevFromRect,c=n.prevToRect,u=e.rect,d=A(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&F(l,s)&&!F(a,s)&&(u.top-s.top)/(u.left-s.left)==(a.top-s.top)/(a.left-s.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(u,l,c,r.options)),F(s,a)||(n.prevFromRect=a,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,o=Math.max(o,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),i?e=setTimeout((function(){"function"==typeof n&&n()}),o):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){_(e,"transition",""),_(e,"transform","");var i=A(this.el),o=i&&i.a,a=i&&i.d,s=(t.left-n.left)/(o||1),l=(t.top-n.top)/(a||1);e.animatingX=!!s,e.animatingY=!!l,_(e,"transform","translate3d("+s+"px,"+l+"px,0)"),function(e){e.offsetWidth}(e),_(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),_(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){_(e,"transition",""),_(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var X=[],$={initializeByDefault:!0},G={mount:function(e){for(var t in $)$.hasOwnProperty(t)&&!(t in e)&&(e[t]=$[t]);X.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+"Global";X.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](a({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](a({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var i in X.forEach((function(r){var i=r.pluginName;if(e.options[i]||r.initializeByDefault){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,o(n,a.defaults)}})),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);void 0!==a&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return X.forEach((function(r){"function"==typeof r.eventProperties&&o(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return X.forEach((function(i){e[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[t]&&(r=i.optionListeners[t].call(e[i.pluginName],n))})),r}};function V(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,l=e.fromEl,c=e.oldIndex,h=e.newIndex,f=e.oldDraggableIndex,p=e.newDraggableIndex,g=e.originalEvent,m=e.putSortable,v=e.extraEventProperties;if(t=t||n&&n[B]){var y,b=t.options,x="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||u||d?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=l||n,y.item=i||n,y.clone=o,y.oldIndex=c,y.newIndex=h,y.oldDraggableIndex=f,y.newDraggableIndex=p,y.originalEvent=g,y.pullMode=m?m.lastPutMode:void 0;var w=a({},v,G.getEventProperties(r,t));for(var k in w)y[k]=w[k];n&&n.dispatchEvent(y),b[x]&&b[x].call(t,y)}}var U=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,i=s(n,["evt"]);G.pluginEvent.bind(He)(e,t,a({dragEl:Z,parentEl:K,ghostEl:J,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:me,putSortable:ce,activeSortable:He.active,originalEvent:r,oldIndex:ie,oldDraggableIndex:ae,newIndex:oe,newDraggableIndex:se,hideGhostForTarget:Fe,unhideGhostForTarget:Re,cloneNowHidden:function(){re=!0},cloneNowShown:function(){re=!1},dispatchSortableEvent:function(e){q({sortable:t,name:e,originalEvent:r})}},i))};function q(e){V(a({putSortable:ce,cloneEl:ne,targetEl:Z,rootEl:Q,oldIndex:ie,oldDraggableIndex:ae,newIndex:oe,newDraggableIndex:se},e))}var Z,K,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,he,fe,pe,ge,me,ve,ye,be,xe,we=!1,ke=!1,Ce=[],Se=!1,_e=!1,Ae=[],Le=!1,Te=[],Ee="undefined"!=typeof document,Oe=p,Me=d||u?"cssFloat":"float",Pe=Ee&&!g&&!p&&"draggable"in document.createElement("div"),De=function(){if(Ee){if(u)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}
vendor: 8,288 bytes, line 2
2(),Ne=function(e,t){var n=_(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=M(e,0,t),o=M(e,1,t),a=i&&_(i),s=o&&_(o),l=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(i).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(o).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!o||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||l>=r&&"none"===n[Me]||o&&"none"===n[Me]&&l+c>r)?"vertical":"horizontal"},Ie=function(e){function t(e,n){return function(r,i,o,a){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,i,o,a),n)(r,i,o,a);var l=(n?r:i).options.group.name;return!0===e||"string"==typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var n={},i=e.group;i&&"object"==r(i)||(i={name:i}),n.name=i.name,n.checkPull=t(i.pull,!0),n.checkPut=t(i.put),n.revertClone=i.revertClone,e.group=n},Fe=function(){!De&&J&&_(J,"display","none")},Re=function(){!De&&J&&_(J,"display","")};Ee&&document.addEventListener("click",(function(e){if(ke)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ke=!1,!1}),!0);var ze=function(e){if(Z){e=e.touches?e.touches[0]:e;var t=(i=e.clientX,o=e.clientY,Ce.some((function(e){if(!P(e)){var t=E(e),n=e[B].options.emptyInsertThreshold,r=i>=t.left-n&&i<=t.right+n,s=o>=t.top-n&&o<=t.bottom+n;return n&&r&&s?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[B]._onDragOver(n)}}var i,o,a},je=function(e){Z&&Z.parentNode[B]._isOutsideThisEl(e.target)};function He(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=o({},t),e[B]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ne(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==He.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var r in G.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ie(t),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Pe,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?v(e,"pointerdown",this._onTapStart):(v(e,"mousedown",this._onTapStart),v(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(v(e,"dragover",this),v(e,"dragenter",this)),Ce.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),o(this,W())}function Ye(e,t,n,r,i,o,a,s){var l,c,h=e[B],f=h.options.onMove;return!window.CustomEvent||u||d?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||E(t),l.willInsertAfter=s,l.originalEvent=a,e.dispatchEvent(l),f&&(c=f.call(h,l,a)),c}function Be(e){e.draggable=!1}function We(){Le=!1}function Xe(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function $e(e){return setTimeout(e,0)}function Ge(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Z):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,l=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,c=r.filter;if(function(e){Te.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&Te.push(r)}}(n),!Z&&!(/mousedown|pointerdown/.test(o)&&0!==e.button||r.disabled||l.isContentEditable||(s=w(s,r.draggable,n,!1))&&s.animated||te===s)){if(ie=D(s),ae=D(s,r.draggable),"function"==typeof c){if(c.call(this,e,s,this))return q({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:n,fromEl:n}),U("filter",t,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(r){if(r=w(l,r.trim(),n,!1))return q({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),U("filter",t,{evt:e}),!0}))))return void(i&&e.cancelable&&e.preventDefault());r.handle&&!w(l,r.handle,n,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(e,t,n){var r,i=this,o=i.el,a=i.options,s=o.ownerDocument;if(n&&!Z&&n.parentNode===o){var l=E(n);if(Q=o,K=(Z=n).parentNode,ee=Z.nextSibling,te=n,le=a.group,He.dragged=Z,ue={target:Z,clientX:(t||e).clientX,clientY:(t||e).clientY},pe=ue.clientX-l.left,ge=ue.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Z.style["will-change"]="all",r=function(){U("delayEnded",i,{evt:e}),He.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!h&&i.nativeDraggable&&(Z.draggable=!0),i._triggerDragStart(e,t),q({sortable:i,name:"choose",originalEvent:e}),S(Z,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){L(Z,e.trim(),Be)})),v(s,"dragover",ze),v(s,"mousemove",ze),v(s,"touchmove",ze),v(s,"mouseup",i._onDrop),v(s,"touchend",i._onDrop),v(s,"touchcancel",i._onDrop),h&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Z.draggable=!0),U("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(d||u))r();else{if(He.eventCanceled)return void this._onDrop();v(s,"mouseup",i._disableDelayedDrag),v(s,"touchend",i._disableDelayedDrag),v(s,"touchcancel",i._disableDelayedDrag),v(s,"mousemove",i._delayedDragTouchMoveHandler),v(s,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&v(s,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(r,a.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(){Z&&Be(Z),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._disableDelayedDrag),y(e,"touchend",this._disableDelayedDrag),y(e,"touchcancel",this._disableDelayedDrag),y(e,"mousemove",this._delayedDragTouchMoveHandler),y(e,"touchmove",this._delayedDragTouchMoveHandler),y(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?v(document,"pointermove",this._onTouchMove):v(document,t?"touchmove":"mousemove",this._onTouchMove):(v(Z,"dragend",this),v(Q,"dragstart",this._onDragStart));try{document.selection?$e((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(we=!1,Q&&Z){U("dragStarted",this,{evt:t}),this.nativeDraggable&&v(document,"dragover",je);var n=this.options;!e&&S(Z,n.dragClass,!1),S(Z,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),q({
vendor: 4,433 bytes, line 2
2sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(de){this._lastX=de.clientX,this._lastY=de.clientY,Fe();for(var e=document.elementFromPoint(de.clientX,de.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(de.clientX,de.clientY))!==t;)t=e;if(Z.parentNode[B]._isOutsideThisEl(e),t)do{if(t[B]){if(t[B]._onDragOver({clientX:de.clientX,clientY:de.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Re()}},_onTouchMove:function(e){if(ue){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,o=J&&A(J,!0),a=J&&o&&o.a,s=J&&o&&o.d,l=Oe&&xe&&N(xe),c=(i.clientX-ue.clientX+r.x)/(a||1)+(l?l[0]-Ae[0]:0)/(a||1),u=(i.clientY-ue.clientY+r.y)/(s||1)+(l?l[1]-Ae[1]:0)/(s||1);if(!He.active&&!we){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){o?(o.e+=c-(he||0),o.f+=u-(fe||0)):o={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");_(J,"webkitTransform",d),_(J,"mozTransform",d),_(J,"msTransform",d),_(J,"transform",d),he=c,fe=u,de=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:Q,t=E(Z,!0,Oe,!0,e),n=this.options;if(Oe){for(xe=e;"static"===_(xe,"position")&&"none"===_(xe,"transform")&&xe!==document;)xe=xe.parentNode;xe!==document.body&&xe!==document.documentElement?(xe===document&&(xe=T()),t.top+=xe.scrollTop,t.left+=xe.scrollLeft):xe=T(),Ae=N(xe)}S(J=Z.cloneNode(!0),n.ghostClass,!1),S(J,n.fallbackClass,!0),S(J,n.dragClass,!0),_(J,"transition",""),_(J,"transform",""),_(J,"box-sizing","border-box"),_(J,"margin",0),_(J,"top",t.top),_(J,"left",t.left),_(J,"width",t.width),_(J,"height",t.height),_(J,"opacity","0.8"),_(J,"position",Oe?"absolute":"fixed"),_(J,"zIndex","100000"),_(J,"pointerEvents","none"),He.ghost=J,e.appendChild(J),_(J,"transform-origin",pe/parseInt(J.style.width)*100+"% "+ge/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;U("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(U("setupClone",this),He.eventCanceled||((ne=j(Z)).draggable=!1,ne.style["will-change"]="",this._hideClone(),S(ne,this.options.chosenClass,!1),He.clone=ne),n.cloneId=$e((function(){U("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,Z),n._hideClone(),q({sortable:n,name:"clone"}))})),!t&&S(Z,i.dragClass,!0),t?(ke=!0,n._loopId=setInterval(n._emulateDragOver,50)):(y(document,"mouseup",n._onDrop),y(document,"touchend",n._onDrop),y(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",i.setData&&i.setData.call(n,r,Z)),v(document,"drop",n),_(Z,"transform","translateZ(0)")),we=!0,n._dragStartId=$e(n._dragStarted.bind(n,t,e)),v(document,"selectstart",n),me=!0,f&&_(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,i,o=this.el,s=e.target,l=this.options,c=l.group,u=He.active,d=le===c,h=l.sort,f=ce||u,p=this,g=!1;if(!Le){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=w(s,l.draggable,o,!0),F("dragOver"),He.eventCanceled)return g;if(Z.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return j(!1);if(ke=!1,u&&!l.disabled&&(d?h||(r=!Q.contains(Z)):ce===this||(this.lastPutMode=le.checkPull(this,u,Z,e))&&c.checkPut(this,u,Z,e))){if(i="vertical"===this._getDirection(e,s),t=E(Z),F("dragOverValid"),He.eventCanceled)return g;if(r)return K=Q,R(),this._hideClone(),F("revert"),He.eventCanceled||(ee?Q.insertBefore(Z,ee):Q.appendChild(Z)),j(!0);var m=P(o,l.draggable);if(!m||function(e,t,n){var r=E(P(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}(e,i,this)&&!m.animated){if(m===Z)return j(!1);if(m&&o===e.target&&(s=m),s&&(n=E(s)),!1!==Ye(Q,o,Z,t,s,n,e,!!s))return R(),o.appendChild(Z),K=o,H(),j(!0)}else if(s.parentNode===o){n=E(s);var v,y,b,x=Z.parentNode!==o,k=!function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,o=n?e.width:e.height,a=n?t.left:t.top,s=n?t.right:t.bottom,l=n?t.width:t.height;return r===a||i===s||r+o/2===a+l/2}(Z.animated&&Z.toRect||t,s.animated&&s.toRect||n,i),C=i?"top":"left",A=O(s,"top","top")||O(Z,"top","top"),L=A?A.scrollTop:void 0;
vendor: 4,679 bytes, line 2
2if(ve!==s&&(y=n[C],Se=!1,_e=!k&&l.invertSwap||x),v=function(e,t,n,r,i,o,a,s){var l=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,h=!1;if(!a)if(s&&be<c*i){if(!Se&&(1===ye?l>u+c*o/2:l<d-c*o/2)&&(Se=!0),Se)h=!0;else if(1===ye?l<u+be:l>d-be)return-ye}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return function(e){return D(Z)<D(e)?1:-1}(t);if((h=h||a)&&(l<u+c*o/2||l>d-c*o/2))return l>u+c/2?1:-1;return 0}(e,s,n,i,k?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,_e,ve===s),0!==v){var T=D(Z);do{T-=v,b=K.children[T]}while(b&&("none"===_(b,"display")||b===J))}if(0===v||b===s)return j(!1);ve=s,ye=v;var M=s.nextElementSibling,N=!1,I=Ye(Q,o,Z,t,s,n,e,N=1===v);if(!1!==I)return 1!==I&&-1!==I||(N=1===I),Le=!0,setTimeout(We,30),R(),N&&!M?o.appendChild(Z):s.parentNode.insertBefore(Z,N?M:s),A&&z(A,0,L-A.scrollTop),K=Z.parentNode,void 0===y||_e||(be=Math.abs(y-E(s)[C])),H(),j(!0)}if(o.contains(Z))return j(!1)}return!1}function F(l,c){U(l,p,a({evt:e,isOwner:d,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:h,fromSortable:f,target:s,completed:j,onMove:function(n,r){return Ye(Q,o,Z,t,n,E(n),e,r)},changed:H},c))}function R(){F("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function j(t){return F("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==f&&(S(Z,ce?ce.options.ghostClass:u.options.ghostClass,!1),S(Z,l.ghostClass,!0)),ce!==p&&p!==He.active?ce=p:p===He.active&&ce&&(ce=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){F("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===Z&&!Z.animated||s===o&&!s.animated)&&(ve=null),l.dragoverBubble||e.rootEl||s===document||(Z.parentNode[B]._isOutsideThisEl(e.target),!t&&ze(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function H(){oe=D(Z),se=D(Z,l.draggable),q({sortable:p,name:"change",toEl:o,newIndex:oe,newDraggableIndex:se,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){y(document,"mousemove",this._onTouchMove),y(document,"touchmove",this._onTouchMove),y(document,"pointermove",this._onTouchMove),y(document,"dragover",ze),y(document,"mousemove",ze),y(document,"touchmove",ze)},_offUpEvents:function(){var e=this.el.ownerDocument;y(e,"mouseup",this._onDrop),y(e,"touchend",this._onDrop),y(e,"pointerup",this._onDrop),y(e,"touchcancel",this._onDrop),y(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;oe=D(Z),se=D(Z,n.draggable),U("drop",this,{evt:e}),K=Z&&Z.parentNode,oe=D(Z),se=D(Z,n.draggable),He.eventCanceled||(we=!1,_e=!1,Se=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ge(this.cloneId),Ge(this._dragStartId),this.nativeDraggable&&(y(document,"drop",this),y(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),f&&_(document.body,"user-select",""),_(Z,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===K||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),Z&&(this.nativeDraggable&&y(Z,"dragend",this),Be(Z),Z.style["will-change"]="",me&&!we&&S(Z,ce?ce.options.ghostClass:this.options.ghostClass,!1),S(Z,this.options.chosenClass,!1),q({sortable:this,name:"unchoose",toEl:K,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==K?(oe>=0&&(q({rootEl:K,name:"add",toEl:K,fromEl:Q,originalEvent:e}),q({sortable:this,name:"remove",toEl:K,originalEvent:e}),q({rootEl:K,name:"sort",toEl:K,fromEl:Q,originalEvent:e}),q({sortable:this,name:"sort",toEl:K,originalEvent:e})),ce&&ce.save()):oe!==ie&&oe>=0&&(q({sortable:this,name:"update",toEl:K,originalEvent:e}),q({sortable:this,name:"sort",toEl:K,originalEvent:e})),He.active&&(null!=oe&&-1!==oe||(oe=ie,se=ae),q({sortable:this,name:"end",toEl:K,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){U("nulling",this),Q=Z=K=J=ee=ne=te=re=ue=de=me=oe=se=ie=ae=ve=ye=ce=le=He.dragged=He.ghost=He.clone=He.active=null,Te.forEach((function(e){e.checked=!0})),Te.length=he=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Z&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,i=n.length,o=this.options;r<i;r++)w(e=n[r],o.draggable,this.el,!1)&&t.push(e.getAttribute(o.dataIdAttr)||Xe(e));return t},sort:function(e){var t={},n=this.el;
2this.toArray().forEach((function(e,r){var i=n.children[r];w(i,this.options.draggable,n,!1)&&(t[e]=i)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return w(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=G.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Ie(n)},destroy:function(){U("destroy",this);var e=this.el;e[B]=null,y(e,"mousedown",this._onTapStart),y(e,"touchstart",this._onTapStart),y(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(y(e,"dragover",this),y(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ce.splice(Ce.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(U("hideClone",this),He.eventCanceled)return;_(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(U("showClone",this),He.eventCanceled)return;Q.contains(Z)&&!this.options.group.revertClone?Q.insertBefore(ne,Z):ee?Q.insertBefore(ne,ee):Q.appendChild(ne),this.options.group.revertClone&&this.animate(Z,ne),_(ne,"display",""),re=!1}}else this._hideClone()}},Ee&&v(document,"touchmove",(function(e){(He.active||we)&&e.cancelable&&e.preventDefault()})),He.utils={on:v,off:y,css:_,find:L,is:function(e,t){return!!w(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:R,closest:w,toggleClass:S,clone:j,index:D,nextTick:$e,cancelNextTick:Ge,detectDirection:Ne,getChild:M},He.get=function(e){return e[B]},He.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(He.utils=a({},He.utils,e.utils)),G.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.10.2";var Ve,Ue,qe,Ze,Ke,Je,Qe=[],et=!1;function tt(){Qe.forEach((function(e){clearInterval(e.pid)})),Qe=[]}function nt(){clearInterval(Je)}var rt,it=R((function(e,t,n,r){if(t.scroll){var i,o=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=T(),u=!1;Ue!==n&&(Ue=n,tt(),Ve=t.scroll,i=t.scrollFn,!0===Ve&&(Ve=I(n,!0)));var d=0,h=Ve;do{var f=h,p=E(f),g=p.top,m=p.bottom,v=p.left,y=p.right,b=p.width,x=p.height,w=void 0,k=void 0,C=f.scrollWidth,S=f.scrollHeight,A=_(f),L=f.scrollLeft,O=f.scrollTop;f===c?(w=b<C&&("auto"===A.overflowX||"scroll"===A.overflowX||"visible"===A.overflowX),k=x<S&&("auto"===A.overflowY||"scroll"===A.overflowY||"visible"===A.overflowY)):(w=b<C&&("auto"===A.overflowX||"scroll"===A.overflowX),k=x<S&&("auto"===A.overflowY||"scroll"===A.overflowY));var M=w&&(Math.abs(y-o)<=s&&L+b<C)-(Math.abs(v-o)<=s&&!!L),P=k&&(Math.abs(m-a)<=s&&O+x<S)-(Math.abs(g-a)<=s&&!!O);if(!Qe[d])for(var D=0;D<=d;D++)Qe[D]||(Qe[D]={});Qe[d].vx==M&&Qe[d].vy==P&&Qe[d].el===f||(Qe[d].el=f,Qe[d].vx=M,Qe[d].vy=P,clearInterval(Qe[d].pid),0==M&&0==P||(u=!0,Qe[d].pid=setInterval(function(){r&&0===this.layer&&He.active._onTouchMove(Ke);var t=Qe[this.layer].vy?Qe[this.layer].vy*l:0,n=Qe[this.layer].vx?Qe[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(He.dragged.parentNode[B],n,t,e,Ke,Qe[this.layer].el)||z(Qe[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=I(h,!1)));et=u}}),30),ot=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=n||i;a();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function at(){}function st(){}function lt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;rt=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,o=e.changed,a=e.cancel;if(i.options.swap){var s=this.sortable.el,l=this.options;if(n&&n!==s){var c=rt;!1!==r(n)?(S(n,l.swapClass,!0),rt=n):rt=null,c&&c!==rt&&S(c,l.swapClass,!1)}o(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,o=this.options;rt&&S(rt,o.swapClass,!1),rt&&(o.swap||n&&n.options.swap)&&r!==rt&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),function(e,t){var n,r,i=e.parentNode,o=t.parentNode;if(!i||!o||i.isEqualNode(t)||o.isEqualNode(e))return;n=D(e),r=D(t),i.isEqualNode(o)&&n<r&&r++;i.insertBefore(t,i.children[n]),o.insertBefore(e,o.children[r])}(r,rt),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){rt=null}},o(e,{pluginName:"swap",eventProperties:function(){return{swapItem:rt}}})}at.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=M(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:ot},o(at,{pluginName:"revertOnSpill"}),st.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ot},o(st,{pluginName:"removeOnSpill"});var ct,ut,dt,ht,ft,pt=[],gt=[],mt=!1,vt=!1,yt=!1;function bt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?v(document,"pointerup",this._deselectMultiDrag):(v(d
2ocument,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag)),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";pt.length&&ut===e?pt.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;dt=t},delayEnded:function(){this.isMultiDrag=~pt.indexOf(dt)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<pt.length;r++)gt.push(j(pt[r])),gt[r].sortableIndex=pt[r].sortableIndex,gt[r].draggable=!1,gt[r].style["will-change"]="",S(gt[r],this.options.selectedClass,!1),pt[r]===dt&&S(gt[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pt.length&&ut===t&&(xt(!0,n),r("clone"),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(xt(!1,n),gt.forEach((function(e){_(e,"display","")})),t(),ft=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(gt.forEach((function(e){_(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ft=!0,r())},dragStartGlobal:function(e){e.sortable;!this.isMultiDrag&&ut&&ut.multiDrag._deselectMultiDrag(),pt.forEach((function(e){e.sortableIndex=D(e)})),pt=pt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),yt=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){pt.forEach((function(e){e!==dt&&_(e,"position","absolute")}));var r=E(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&H(e,r)})),vt=!0,mt=!0}n.animateAll((function(){vt=!1,mt=!1,t.options.animation&&pt.forEach((function(e){Y(e)})),t.options.sort&&wt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;vt&&~pt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;pt.length>1&&(pt.forEach((function(e){r.addAnimationState({target:e,rect:vt?E(e):i}),Y(e),e.fromRect=i,t.removeAnimationState(e)})),vt=!1,function(e,t){pt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,o=e.parentEl,a=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),mt=!1,s.animation&&pt.length>1&&(vt||!n&&!i.options.sort&&!a)){var l=E(dt,!1,!0,!0);pt.forEach((function(e){e!==dt&&(H(e,l),o.appendChild(e))})),vt=!0}if(!n)if(vt||wt(),pt.length>1){var c=ft;i._showClone(t),i.options.animation&&!ft&&c&&gt.forEach((function(e){i.addAnimationState({target:e,rect:ht}),e.fromRect=ht,e.thisAnimationDuration=null}))}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(pt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){ht=o({},t);var i=A(dt,!0);ht.top-=i.f,ht.left-=i.e}},dragOverAnimationComplete:function(){vt&&(vt=!1,wt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,o=e.dispatchSortableEvent,a=e.oldIndex,s=e.putSortable,l=s||this.sortable;if(t){var c=this.options,u=r.children;if(!yt)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(dt,c.selectedClass,!~pt.indexOf(dt)),~pt.indexOf(dt))pt.splice(pt.indexOf(dt),1),ct=null,V({sortable:i,rootEl:n,name:"deselect",targetEl:dt,originalEvt:t});else{if(pt.push(dt),V({sortable:i,rootEl:n,name:"select",targetEl:dt,originalEvt:t}),t.shiftKey&&ct&&i.el.contains(ct)){var d,h,f=D(ct),p=D(dt);if(~f&&~p&&f!==p)for(p>f?(h=f,d=p):(h=p,d=f+1);h<d;h++)~pt.indexOf(u[h])||(S(u[h],c.selectedClass,!0),pt.push(u[h]),V({sortable:i,rootEl:n,name:"select",targetEl:u[h],originalEvt:t}))}else ct=dt;ut=l}if(yt&&this.isMultiDrag){if((r[B].options.sort||r!==n)&&pt.length>1){var g=E(dt),m=D(dt,":not(."+this.options.selectedClass+")");if(!mt&&c.animation&&(dt.thisAnimationDuration=null),l.captureAnimationState(),!mt&&(c.animation&&(dt.fromRect=g,pt.forEach((function(e){if(e.thisAnimationDuration=null,e!==dt){var t=vt?E(e):g;e.fromRect=t,l.addAnimationState({target:e,rect:t})}}))),wt(),pt.forEach((function(e){u[m]?r.insertBefore(e,u[m]):r.appendChild(e),m++})),a===D(dt))){var v=!1;pt.forEach((function(e){e.sortableIndex===D(e)||(v=!0)})),v&&o("update")}pt.forEach((function(e){Y(e)}
2)),l.animateAll()}ut=l}(n===r||s&&"clone"!==s.lastPutMode)&&gt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=yt=!1,gt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),y(document,"pointerup",this._deselectMultiDrag),y(document,"mouseup",this._deselectMultiDrag),y(document,"touchend",this._deselectMultiDrag),y(document,"keydown",this._checkKeyDown),y(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==yt&&yt||ut!==this.sortable||e&&w(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;pt.length;){var t=pt[0];S(t,this.options.selectedClass,!1),pt.shift(),V({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},o(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[B];t&&t.options.multiDrag&&!~pt.indexOf(e)&&(ut&&ut!==t&&(ut.multiDrag._deselectMultiDrag(),ut=t),S(e,t.options.selectedClass,!0),pt.push(e))},deselect:function(e){var t=e.parentNode[B],n=pt.indexOf(e);t&&t.options.multiDrag&&~n&&(S(e,t.options.selectedClass,!1),pt.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return pt.forEach((function(r){var i;t.push({multiDragElement:r,index:r.sortableIndex}),i=vt&&r!==dt?-1:vt?D(r,":not(."+e.options.selectedClass+")"):D(r),n.push({multiDragElement:r,index:i})})),{items:l(pt),clones:[].concat(gt),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function xt(e,t){gt.forEach((function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)}))}function wt(){pt.forEach((function(e){e!==dt&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):this.options.supportPointer?v(document,"pointermove",this._handleFallbackAutoScroll):t.touches?v(document,"touchmove",this._handleFallbackAutoScroll):v(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):(y(document,"pointermove",this._handleFallbackAutoScroll),y(document,"touchmove",this._handleFallbackAutoScroll),y(document,"mousemove",this._handleFallbackAutoScroll)),nt(),tt(),clearTimeout(k),k=void 0},nulling:function(){Ke=Ue=Ve=et=Je=qe=Ze=null,Qe.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=document.elementFromPoint(r,i);if(Ke=e,t||d||u||f){it(e,this.options,o,t);var a=I(o,!0);!et||Je&&r===qe&&i===Ze||(Je&&nt(),Je=setInterval((function(){var o=I(document.elementFromPoint(r,i),!0);o!==a&&(a=o,tt()),it(e,n.options,o,t)}),10),qe=r,Ze=i)}else{if(!this.options.bubbleScroll||I(o,!0)===T())return void tt();it(e,this.options,I(o,!1),!1)}}},o(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(st,at);const kt=He},3944:(e,t,n)=>{"use strict";var r=n(5072),i=n.n(r),o=n(1221),a={insert:"head",singleton:!1};i()(o.A,a),o.A.locals},5072:(e,t,n)=>{"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;
2n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:m(h,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function h(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,g=0;function m(e,t){var n,r,i;if(t.singleton){var o=g++;n=p||(p=c(t)),r=h.bind(null,n,o,!1),i=h.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},2705:(e,t,n)=>{var r;!function(i,o){"use strict";var a=function(){function e(t){e.instanceCounter++,this.init(t)}var t,n,r,a,s,l,c,u,d,h,f,p,g,m,v,y,b,x,w,k,C,S,_,A,L,T,E,O,M,P,D="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xlink",I=["sprite"];return r=[],e.instanceCounter=0,e.prototype.init=function(e){e=e||{},t={},(l={}).isLocal="file:"===i.location.protocol,l.hasSvgSupport=o.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1"),n={count:0,elements:[]},a={},(s={}).evalScripts=e.evalScripts||"always",s.pngFallback=e.pngFallback||!1,s.svgFallbackDir=e.svgFallbackDir||!1,s.onlyInjectVisiblePart=e.onlyInjectVisiblePart||!0,s.keepStylesClass=void 0===e.keepStylesClass?"":e.keepStylesClass,s.spriteClassName=void 0===e.spriteClassName?"sprite":e.spriteClassName,s.spriteClassIdName=void 0===e.spriteClassIdName?"sprite--":e.spriteClassIdName,s.removeStylesClass=void 0===e.removeStylesClass?"icon":e.removeStylesClass,s.removeAllStyles=void 0!==e.removeAllStyles&&e.removeAllStyles,s.fallbackClassName=void 0===e.fallbackClassName?I:e.fallbackClassName,s.prefixStyleTags=void 0===e.prefixStyleTags||e.prefixStyleTags,s.spritesheetURL=void 0!==e.spritesheetURL&&""!==e.spritesheetURL&&e.spritesheetURL,s.prefixFragIdClass=s.spriteClassIdName,s.forceFallbacks=void 0!==e.forceFallbacks&&e.forceFallbacks,s.forceFallbacks&&(l.hasSvgSupport=!1),C(o.querySelector("html"),"no-svg",l.hasSvgSupport),l.hasSvgSupport&&void 0===e.removeStylesClass&&k(s.removeStylesClass)},e.prototype.inject=function(e,t,n){if(void 0!==e.length)if(0===e.length)t&&t(0);else{var r=0,i=this;E.call(e,(function(o){i.injectElement(o,(function(i){n&&"function"==typeof n&&n(i),t&&e.length===++r&&t(r)}))}))}else e?this.injectElement(e,(function(r){n&&"function"==typeof n&&n(r),t&&t(1),e=null})):t&&t(0)},P=e.prototype.injectElement=function(e,t){var r,i=e.getAttribute("data-src")||e.getAttribute("src");if(!i){if(!s.spritesheetURL)return;if(""===(r=v(e)))return;i=s.spritesheetURL+"#"+r}
2e.setAttribute("data-src",i);var o,a=i.split("#");if(1===a.length&&a.push(""),/\.svg/i.test(i))if(l.hasSvgSupport)L(s.fallbackClassName)&&u(e,a[1],s.fallbackClassName),-1===n.elements.indexOf(e)&&(n.elements.push(e),w(t,i,e));else{var d=e.getAttribute("data-fallback")||e.getAttribute("data-png");d?(e.setAttribute("src",d),t(null)):s.pngFallback?(a.length>1&&a[1]?(o=a[1]+".png",L(s.fallbackClassName)?c(e,a[1],s.fallbackClassName):A(s.fallbackClassName)?s.fallbackClassName(e,a[1]):"string"==typeof s.fallbackClassName?T(e,s.fallbackClassName):e.setAttribute("src",s.pngFallback+"/"+o)):(o=i.split("/").pop().replace(".svg",".png"),e.setAttribute("src",s.pngFallback+"/"+o)),t(null)):t("This browser does not support SVG and no PNG fallback was defined.")}else t("Attempted to inject a file with a non-svg extension: "+i)},e.prototype.getEnv=function(){return l},e.prototype.getConfig=function(){return s},c=function(e,t,n){var r=void 0===n?I:n.slice(0);E.call(r,(function(e,n){r[n]=e.replace("%s",t)})),T(e,r)},u=function(e,t,n){n=void 0===n?I.slice(0):n.slice(0);var r,i,o=e.getAttribute("class");null!=o&&(i=o.split(" "))&&(E.call(n,(function(e){e=e.replace("%s",t),(r=i.indexOf(e))>=0&&(i[r]="")})),e.setAttribute("class",_(i.join(" "))))},h=function(e,t,n,r){var i=0;return e.textContent=e.textContent.replace(/url\(('|")*#.+('|")*(?=\))/g,(function(e){return i++,e+"-"+t})),i},d=function(e,t){var n,r,i,o,a,s,l,c,u,d,h,f,p,g,m,v;E.call([{def:"linearGradient",attrs:["fill","stroke"]},{def:"radialGradient",attrs:["fill","stroke"]},{def:"clipPath",attrs:["clip-path"]},{def:"mask",attrs:["mask"]},{def:"filter",attrs:["filter"]},{def:"color-profile",attrs:["color-profile"]},{def:"cursor",attrs:["cursor"]},{def:"marker",attrs:["marker","marker-start","marker-mid","marker-end"]}],(function(y){for(r=e.querySelectorAll(y.def+"[id]"),o=0,i=r.length;o<i;o++){for(n=r[o].id+"-"+t,c=y.attrs,d=0,u=c.length;d<u;d++)for(a=e.querySelectorAll("["+c[d]+'="url(#'+r[o].id+')"]'),l=0,s=a.length;l<s;l++)a[l].setAttribute(c[d],"url(#"+n+")");for(h=e.querySelectorAll("[*|href]"),g=[],p=0,f=h.length;p<f;p++)h[p].getAttributeNS(N,"href").toString()==="#"+r[o].id&&g.push(h[p]);for(v=0,m=g.length;v<m;v++)g[v].setAttributeNS(N,"href","#"+n);r[o].id=n}}))},f=function(e,t,n){var r;void 0===n&&(n=["id","viewBox"]);for(var i=0;i<e.attributes.length;i++)r=e.attributes.item(i),n.indexOf(r.name)<0&&t.setAttribute(r.name,r.value)},p=function(e){var t=o.createElementNS(D,"svg");return E.call(e.childNodes,(function(e){t.appendChild(e.cloneNode(!0))})),f(e,t),t},g=function(e,t,n){var r,i,o,a,s,l,c=n.getAttribute("data-src").split("#"),u=e.textContent,d="",h=function(e,t,n){n[t]="."+o+" "+e};if(c.length>1)i=c[1],o=i+"-"+t,r=new RegExp("\\."+i+" ","g"),e.textContent=u.replace(r,"."+o+" ");else{for(a=c[0].split("/"),o=a[a.length-1].replace(".svg","")+"-"+t,r=new RegExp("([\\s\\S]*?){([\\s\\S]*?)}","g");null!==(s=r.exec(u));
2)(l=s[1].trim().split(", ")).forEach(h),d+=l.join(", ")+"{"+s[2]+"}\n";e.textContent=d}n.setAttribute("class",n.getAttribute("class")+" "+o)},m=function(e){var t=e.getAttribute("class");return t?t.trim().split(" "):[]},v=function(e){var t=m(e),n="";return E.call(t,(function(e){e.indexOf(s.spriteClassIdName)>=0&&(n=e.replace(s.spriteClassIdName,""))})),n},y=function(e,t,n){var r,i,o,a,s,l=null,c=!1,u=!1,d=null;if(void 0===n)r=l=t.cloneNode(!0),l.getAttribute("width")||t.getAttribute("width")||(u=!0);else if(!(r=t.getElementById(n)))return;if(i=r.getAttribute("viewBox").split(" "),!l){if(r instanceof SVGSymbolElement)l=p(r),u=c=!0;else if(r instanceof SVGViewElement){if(d=null,e.onlyInjectVisiblePart){var h='*[width="'+i[2]+'"][height="'+i[3]+'"]';o={},0===Math.abs(parseInt(i[0]))?h+=":not([x])":(o.x=i[0],h+='[x="'+i[0]+'"]'),0===Math.abs(parseInt(i[1]))?h+=":not([y])":(o.y=i[1],h+='[y="'+i[1]+'"]'),(s=t.querySelectorAll(h)).length,d=s[0]}if(d&&d instanceof SVGSVGElement)for(var f in l=d.cloneNode(!0),o)"width"!==f&&"height"!==f&&l.removeAttribute(f);else if(d&&d instanceof SVGUseElement){var g=t.getElementById(d.getAttributeNS(N,"href").substr(1));l=p(g),i=g.getAttribute("viewBox").split(" "),u=c=!0}else u=c=!0,l=t.cloneNode(!0)}a=m(l);var v=e.prefixFragIdClass+n;a.indexOf(v)<0&&(a.push(v),l.setAttribute("class",a.join(" ")))}return c&&l.setAttribute("viewBox",i.join(" ")),u&&(l.setAttribute("width",i[2]+"px"),l.setAttribute("height",i[3]+"px")),l.setAttribute("xmlns",D),l.setAttribute("xmlns:xlink",N),l},b=function(e,t,n,i){r[e]=r[e]||[],r[e].push({callback:n,fragmentId:t,element:i,name})},x=function(e){for(var t,n=0,i=r[e].length;n<i;n++)!function(n){setTimeout((function(){t=r[e][n],S(e,t.fragmentId,t.callback,t.element,t.name)}),0)}(n)},w=function(e,n,r){var o,a,s,c,u;if(o=n.split("#"),a=o[0],void 0!==(s=2===o.length?o[1]:void 0)&&(c=(u=a.split("/"))[u.length-1].replace(".svg","")),void 0!==t[a])t[a]instanceof SVGSVGElement?S(a,s,e,r,c):b(a,s,e,r);else{if(!i.XMLHttpRequest)return e("Browser does not support XMLHttpRequest"),!1;t[a]={},b(a,s,e,r);var d=new XMLHttpRequest;d.onreadystatechange=function(){if(4===d.readyState){if(404===d.status||null===d.responseXML)return e("Unable to load SVG file: "+a),!1;if(!(200===d.status||l.isLocal&&0===d.status))return e("There was a problem injecting the SVG: "+d.status+" "+d.statusText),!1;if(d.responseXML instanceof Document)t[a]=d.responseXML.documentElement;else if(DOMParser&&DOMParser instanceof Function){var r;try{r=(new DOMParser).parseFromString(d.responseText,"text/xml")}catch(e){r=void 0}if(!r||r.getElementsByTagName("parsererror").length)return e("Unable to parse SVG file: "+n),!1;t[a]=r.documentElement}x(a)}},d.open("GET",a),d.overrideMimeType&&d.overrideMimeType("text/xml"),d.send()}},k=function(e){var t="svg."+e+" {fill: currentColor;}",n=o.head||o.getElementsByTagName("head")[0],r=o.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=t:r.appendChild(o.createTextNode(t)),n.appendChild(r)},C=function(e,t,n){n?e.className.replace(t,""):e.className+=" "+t},S=function(e,r,o,l,c){var u,p,v,b,x,w,k;if(void 0===(u=y(s,t[e],r))||"string"==typeof u)return(b=!(!(b=l.getAttribute("data-fallback-svg"))&&!s.svgFallbackDir)&&s.svgFallbackDir+"/"+r+".svg")?(l.setAttribute("data-src",b),n.elements.splice(n.elements.indexOf(l),1),P(l,o)):o(u),!1;u.setAttribute("role","img"),E.call(u.children||[],(function(e){e instanceof SVGDefsElement||e instanceof SVGTitleElement||e instanceof SVGDescElement||e.setAttribute("role","presentation")})),l.getAttribute("aria-hidden")||u.getAttribute("aria-hidden")?(u.setAttribute("aria-hidden","true"),w=u.querySelector("title"),k=u.querySelector("desc"),w&&u.removeChild(w),k&&u.removeChild(k)):(v=O("desc",u,l,r,!1),p=O("title",u,l,r,!1),(v.length>0||p.length>0)&&(x=p+" "+v,u.setAttribute("aria-labelledby",x.trim()))),f(l,u,["class"]);var C=[].concat(u.getAttribute("class")||[],"injected-svg",l.getAttribute("class")||[]).join(" ");u.setAttribute("class",_(C)),d(u,n.count),u.removeAttribute("xmlns:a");for(var S,A,L=u.querySelectorAll("script"),T=[],M=0,D=L.length;M<D;M++)(A=L[M].getAttribute("type"))&&"application/ecmascript"!==A&&"application/javascript"!==A||(S=L[M].innerText||L[M].textContent,T.push(S),u.removeChild(L[M]));if(T.length>0&&("always"===s.evalScripts||"once"===s.evalScripts&&!a[e])){for(var N=0,I=T.length;N<I;N++)new Function(T[N])(i);a[e]=!0}var F=u.querySelectorAll("style");
2E.call(F,(function(e){var t=m(u),r=!0;(t.indexOf(s.removeStylesClass)>=0||s.removeAllStyles)&&t.indexOf(s.keepStylesClass)<0?e.parentNode.removeChild(e):(h(e,n.count)>0&&(r=!1),s.prefixStyleTags&&(g(e,n.count,u),r=!1),r&&(e.textContent+=""))})),l.parentNode.replaceChild(u,l),delete n.elements[n.elements.indexOf(l)],n.count++,o(u)},_=function(e){for(var t={},n=(e=e.split(" ")).length,r=[];n--;)t.hasOwnProperty(e[n])||(t[e[n]]=1,r.unshift(e[n]));return r.join(" ")},A=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},L=function(e){return"[object Array]"===Object.prototype.toString.call(e)},T=function(e,t){var n=e.getAttribute("class");n=n||"",L(t)&&(t=t.join(" ")),t=n+" "+t,e.setAttribute("class",_(t))},E=Array.prototype.forEach||function(e,t){if(null==this||"function"!=typeof e)throw new TypeError;var n,r=this.length>>>0;for(n=0;n<r;++n)n in this&&e.call(t,this[n],n,this)},O=function(e,t,r,i,o){var a,s=i?i+"-":"";return s+=e+"-"+n.count,(a=r.querySelector(e))?M(e,t,a.textContent,s,t.firstChild):(a=t.querySelector(e))?a.setAttribute("id",s):o?M(e,t,i,s,t.firstChild):s="",s},M=function(e,t,n,r,i){var a,s=t.querySelector(e);return(a=o.createElementNS(D,e)).appendChild(o.createTextNode(n)),a.setAttribute("id",r),t.insertBefore(a,i),s&&s.parentNode.removeChild(s),a},e}();"object"==typeof angular?angular.module("svginjector",[]).provider("svgInjectorOptions",(function(){var e={};return{set:function(t){e=t},$get:function(){return e}}})).factory("svgInjectorFactory",["svgInjectorOptions",function(e){return new a(e)}]).directive("svg",["svgInjectorFactory",function(e){var t=e.getConfig();return{restrict:"E",link:function(n,r,i){i.class&&i.class.indexOf(t.spriteClassIdName)>=0?i.$observe("class",(function(){e.inject(r[0])})):(i.dataSrc||i.src)&&e.inject(r[0])}}}]):"object"==typeof e.exports?e.exports=a:void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}(window,document)},1504:e=>{function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},6407:(e,t,n)=>{var r;!function(){"use strict";(r=function(e,t,n,r){r=r||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=r.flags||{},this.memoized={},this.loaded=!1;var i,o,a,s,l,c=this;function u(e,t){var n=c._readFile(e,null,r.asyncLoad);r.asyncLoad?n.then((function(e){t(e)})):t(n)}function d(e){t=e,n&&f()}function h(e){n=e,t&&f()}function f(){for(c.rules=c._parseAFF(t),c.compoundRuleCodes={},o=0,s=c.compoundRules.length;o<s;o++){var e=c.compoundRules[o];for(a=0,l=e.length;a<l;a++)c.compoundRuleCodes[e[a]]=[]}for(o in"ONLYINCOMPOUND"in c.flags&&(c.compoundRuleCodes[c.flags.ONLYINCOMPOUND]=[]),c.dictionaryTable=c._parseDIC(n),c.compoundRuleCodes)0===c.compoundRuleCodes[o].length&&delete c.compoundRuleCodes[o];for(o=0,s=c.compoundRules.length;o<s;o++){var i=c.compoundRules[o],u="";for(a=0,l=i.length;a<l;a++){var d=i[a];d in c.compoundRuleCodes?u+="("+c.compoundRuleCodes[d].join("|")+")":u+=d}c.compoundRules[o]=new RegExp(u,"i")}c.loaded=!0,r.asyncLoad&&r.loadedCallback&&r.loadedCallback(c)}return e&&(c.dictionary=e,t&&n?f():"undefined"!=typeof window&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(i=r.dictionaryPath?r.dictionaryPath:"typo/dictionaries",t||u(chrome.extension.getURL(i+"/"+e+"/"+e+".aff"),d),n||u(chrome.extension.getURL(i+"/"+e+"/"+e+".dic"),h)):(i=r.dictionaryPath?r.dictionaryPath:"//dictionaries",t||u(i+"/"+e+"/"+e+".aff",d),n||u(i+"/"+e+"/"+e+".dic",h))),this}).prototype={load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);return this},_readFile:function(e,t,r){if(t=t||"utf8","undefined"!=typeof XMLHttpRequest){var i,o=new XMLHttpRequest;return o.open("GET",e,r),r&&(i=new Promise((function(e,t){o.onload=function(){200===o.status?e(o.responseText):t(o.statusText)},o.onerror=function(){t(o.statusText)}}
vendor: 5,327 bytes, line 2
2))),o.overrideMimeType&&o.overrideMimeType("text/plain; charset="+t),o.send(null),r?i:o.responseText}var a=n(8986);try{if(a.existsSync(e))return a.readFileSync(e,t);console.log("Path "+e+" does not exist.")}catch(e){return console.log(e),""}},_parseAFF:function(e){var t,n,r,i,o,a,s,l={},c=e.split(/\r?\n/);for(i=0,a=c.length;i<a;i++)if(t=(t=this._removeAffixComments(c[i])).trim()){var u=t.split(/\s+/),d=u[0];if("PFX"==d||"SFX"==d){var h=u[1],f=u[2],p=[];for(o=i+1,s=i+1+(n=parseInt(u[3],10));o<s;o++){var g=(r=c[o].split(/\s+/))[2],m=r[3].split("/"),v=m[0];"0"===v&&(v="");var y=this.parseRuleCodes(m[1]),b=r[4],x={};x.add=v,y.length>0&&(x.continuationClasses=y),"."!==b&&(x.match="SFX"===d?new RegExp(b+"$"):new RegExp("^"+b)),"0"!=g&&(x.remove="SFX"===d?new RegExp(g+"$"):g),p.push(x)}l[h]={type:d,combineable:"Y"==f,entries:p},i+=n}else if("COMPOUNDRULE"===d){for(o=i+1,s=i+1+(n=parseInt(u[1],10));o<s;o++)r=(t=c[o]).split(/\s+/),this.compoundRules.push(r[1]);i+=n}else"REP"===d?3===(r=t.split(/\s+/)).length&&this.replacementTable.push([r[1],r[2]]):this.flags[d]=u[1]}return l},_removeAffixComments:function(e){return e.match(/^\s*#/,"")?"":e},_parseDIC:function(e){var t=(e=this._removeDicComments(e)).split(/\r?\n/),n={};function r(e,t){n.hasOwnProperty(e)||(n[e]=null),t.length>0&&(null===n[e]&&(n[e]=[]),n[e].push(t))}for(var i=1,o=t.length;i<o;i++){var a=t[i];if(a){var s=a.split("/",2),l=s[0];if(s.length>1){var c=this.parseRuleCodes(s[1]);"NEEDAFFIX"in this.flags&&-1!=c.indexOf(this.flags.NEEDAFFIX)||r(l,c);for(var u=0,d=c.length;u<d;u++){var h=c[u],f=this.rules[h];if(f)for(var p=this._applyRule(l,f),g=0,m=p.length;g<m;g++){var v=p[g];if(r(v,[]),f.combineable)for(var y=u+1;y<d;y++){var b=c[y],x=this.rules[b];if(x&&x.combineable&&f.type!=x.type)for(var w=this._applyRule(v,x),k=0,C=w.length;k<C;k++){r(w[k],[])}}}h in this.compoundRuleCodes&&this.compoundRuleCodes[h].push(l)}}else r(l.trim(),[])}}return n},_removeDicComments:function(e){return e=e.replace(/^\t.*$/gm,"")},parseRuleCodes:function(e){if(e){if("FLAG"in this.flags){if("long"===this.flags.FLAG){for(var t=[],n=0,r=e.length;n<r;n+=2)t.push(e.substr(n,2));return t}return"num"===this.flags.FLAG?e.split(","):"UTF-8"===this.flags.FLAG?Array.from(e):e.split("")}return e.split("")}return[]},_applyRule:function(e,t){for(var n=t.entries,r=[],i=0,o=n.length;i<o;i++){var a=n[i];if(!a.match||e.match(a.match)){var s=e;if(a.remove&&(s=s.replace(a.remove,"")),"SFX"===t.type?s+=a.add:s=a.add+s,r.push(s),"continuationClasses"in a)for(var l=0,c=a.continuationClasses.length;l<c;l++){var u=this.rules[a.continuationClasses[l]];u&&(r=r.concat(this._applyRule(s,u)))}}}return r},check:function(e){if(!this.loaded)throw"Dictionary not loaded.";if(!e)return!1;var t=e.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(t))return!0;if(t.toUpperCase()===t){var n=t[0]+t.substring(1).toLowerCase();if(this.hasFlag(n,"KEEPCASE"))return!1;if(this.checkExact(n))return!0;if(this.checkExact(t.toLowerCase()))return!0}var r=t[0].toLowerCase()+t.substring(1);if(r!==t){if(this.hasFlag(r,"KEEPCASE"))return!1;if(this.checkExact(r))return!0}return!1},checkExact:function(e){if(!this.loaded)throw"Dictionary not loaded.";var t,n,r=this.dictionaryTable[e];if(void 0===r){if("COMPOUNDMIN"in this.flags&&e.length>=this.flags.COMPOUNDMIN)for(t=0,n=this.compoundRules.length;t<n;t++)if(e.match(this.compoundRules[t]))return!0}else{if(null===r)return!0;if("object"==typeof r)for(t=0,n=r.length;t<n;t++)if(!this.hasFlag(e,"ONLYINCOMPOUND",r[t]))return!0}return!1},hasFlag:function(e,t,n){if(!this.loaded)throw"Dictionary not loaded.";return!(!(t in this.flags)||(void 0===n&&(n=Array.prototype.concat.apply([],this.dictionaryTable[e])),!n||-1===n.indexOf(this.flags[t])))},alphabet:"",suggest:function(e,t){if(!this.loaded)throw"Dictionary not loaded.";if(t=t||5,this.memoized.hasOwnProperty(e)){var n=this.memoized[e].limit;if(t<=n||this.memoized[e].suggestions.length<n)return this.memoized[e].suggestions.slice(0,t)}if(this.check(e))return[];for(var r=0,i=this.replacementTable.length;r<i;r++){var o=this.replacementTable[r];if(-1!==e.indexOf(o[0])){var a=e.replace(o[0],o[1]);if(this.check(a))return[a]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var s=this.alphabet.split("");s.sort();var l={};for(r=0;r<s.length;r++)l[s[r]]=!0;for(var r in this.alphabet="",l)this.alphabet+=r}var c=this;function u(e,t){var n,r,i,o,a={},s=c.alphabet.length;if("string"==typeof e){var l=e;(e={})[l]=!0}for(var l in e)for(n=0,i=l.length+1;n<i;n++){var u=[l.substring(0,n),l.substring(n)];if(u[1]&&(o=u[0]+u[1].substring(1),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)),u[1].length>1&&u[1][1]!==u[1][0]&&(o=u[0]+u[1][1]+u[1][0]+u[1].substring(2),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)),u[1]){var d=u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase";for(r=0;r<s;r++){var h=c.alphabet[r];"uppercase"===d&&(h=h.toUpperCase()),h!=u[1].substring(0,1)&&(o=u[0]+h+u[1].substring(1),t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1))}}if(u[1])for(r=0;r<s;r++){d=u[0].substring(-1).toUpperCase()===u[0].substring(-1)&&u[1].substring(0,1).toUpperCase()===u[1].substring(0,1)?"uppercase":"lowercase",h=c.alphabet[r];
2"uppercase"===d&&(h=h.toUpperCase()),o=u[0]+h+u[1],t&&!c.check(o)||(o in a?a[o]+=1:a[o]=1)}}return a}return this.memoized[e]={suggestions:function(e){var n,r=u(e),i=u(r,!0);for(var o in r)c.check(o)&&(o in i?i[o]+=r[o]:i[o]=r[o]);var a=[];for(n in i)i.hasOwnProperty(n)&&a.push([n,i[n]]);a.sort((function(e,t){var n=e[1],r=t[1];return n<r?-1:n>r?1:t[0].localeCompare(e[0])})).reverse();var s=[],l="lowercase";e.toUpperCase()===e?l="uppercase":e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()===e&&(l="capitalized");var d=t;for(n=0;n<Math.min(d,a.length);n++)"uppercase"===l?a[n][0]=a[n][0].toUpperCase():"capitalized"===l&&(a[n][0]=a[n][0].substr(0,1).toUpperCase()+a[n][0].substr(1)),c.hasFlag(a[n][0],"NOSUGGEST")||-1!=s.indexOf(a[n][0])?d++:s.push(a[n][0]);return s}(e),limit:t},this.memoized[e].suggestions}}}(),e.exports=r},7812:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Agile=void 0;var i=r(n(41)),o=function(e){e.component("agile",i.default)};t.default={install:o},t.Agile=i.default},function(e,t,n){e.exports=!n(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var r=n(16);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(7),i=n(6);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(11));t.default={name:"agile",props:{arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:3e3},dots:{type:Boolean,default:!0},fade:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},mobileFirst:{type:Boolean,default:!0},nextArrow:{type:String,default:'<svg x="0px" y="0px" viewBox="0 0 24 24"><path d="M7.8,21c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l7.4-7.3L7,4.7c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l8.8,8.7l-8.8,8.7C8.3,20.9,8,21,7.8,21z"/></svg>'},options:{type:Object,default:function(){return null}},pauseOnDotsHover:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},prevArrow:{type:String,default:'<svg x="0px" y="0px" viewBox="0 0 24 24"><path d="M16.2,21c0.3,0,0.5-0.1,0.7-0.3c0.4-0.4,0.4-1,0-1.4L9.6,12L17,4.7c0.4-0.4,0.4-1,0-1.4c-0.4-0.4-1-0.4-1.4,0L6.8,12l8.8,8.7C15.7,20.9,16,21,16.2,21z"/></svg>'},responsive:{type:Object,default:function(){return null}},show:{type:Boolean,default:!0},speed:{type:Number,default:300},timing:{type:String,default:"ease"},unagile:{type:Boolean,default:!1}},data:function(){return{slides:null,slidesCount:0,autoplayStatus:!1,autoplayTimeout:null,allSlidesCount:0,currentSlide:0,mouseDown:!1,dragStartX:0,dragStaryY:0,dragDistance:0,swipeDistance:50,transform:0,transitionDelay:0,width:{document:0,container:0,slide:0,track:0},slidesToShow:1,defaultSettings:{prevArrow:this.prevArrow,nextArrow:this.nextArrow,arrows:this.arrows,autoplay:this.autoplay,autoplaySpeed:this.autoplaySpeed,dots:this.dots,fade:this.fade,infinite:this.infinite,mobileFirst:this.mobileFirst,pauseOnDotsHover:this.pauseOnDotsHover,pauseOnHover:this.pauseOnHover,responsive:this.responsive,speed:this.speed,timing:this.timing,unagile:this.unagile},settings:{}}},created:function(){if(this.options)for(var e in this.options)this.defaultSettings[e]=this.options[e];this.defaultSettings.responsive&&this.defaultSettings.responsive.sort(this.compare),(0,i.default)(this.settings,this.defaultSettings)},mounted:function(){this.slides=this.$refs.track.children,this.slidesCount=this.slides.length;for(var e=0;e<this.slidesCount;++e)this.slides[e].classList.add("agile__slide"),this.settings.fade&&(this.slides[e].style.transition="opacity "+this.timing+" "+this.speed+"ms");window.addEventListener("resize",this.getWidth),"ontouchstart"in window?(this.$refs.track.addEventListener("touchstart",this.handleMouseDown),this.$refs.track.addEventListener("touchend",this.handleMouseUp),this.$refs.track.addEventListener("touchmove",this.handleMouseMove)):(this.$refs.track.addEventListener("mousedown",this.handleMouseDown),this.$refs.track.addEventListener("mouseup",this.handleMouseUp),this.$refs.track.addEventListener("mousemove",this.handleMouseMove)),this.getWidth()},beforeDestroy:function(){window.removeEventListener("resize",this.getWidth),"ontouchstart"in window?(this.$refs.track.removeEventListener("touchstart",this.handleMouseDown),this.$refs.track.removeEventListener("touchend",this.handleMouseUp),this.$refs.track.removeEventListener("touchmove",this.handleMouseMove)):(this.$refs.track.removeEventListener("mousedown",this.handleMouseDown),this.$refs.track.removeEventListener("mouseup",this.handleMouseUp),this.$refs.track.removeEventListener("mousemove",this.handleMouseMove)),this.disableAutoplayMode()},methods:{getWidth:function(){this.width={document:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,container:this.$refs.list.clientWidth,slide:this.settings.unagile?"auto":this.$refs.list.clientWidth/this.slidesToShow}},compare:function(e,t){return e.breakpoint<t.breakpoint?this.defaultSettings.mobileFirst?-1:1:e.breakpoint>t.breakpoint?this.defaultSettings.mobileFirst?1:-1:0},handleMouseDown:function(e){e.touches||e.preventDefault(),this.mouseDown=!0,this.dragStartX="ontouchstart"in window?e.touches[0].clientX:e.clientX,this.dragStartY="ontouchstart"in window?e.touches[0].clientY:e.clientY},handleMouseMove:function(e){var t="ontouchstart"in window?e.touches[0].clientX:e.clientX,n="ontouchstart"in window?e.touches[0].clientY:e.clientY;Math.abs(t-this.dragStartX)>3*Math.abs(n-this.dragStartY)&&(this.dragDistance=t-this.dragStartX,this.disableScroll())},handleMouseUp:function(){this.mouseDown=!1,this.enableScroll()},handleMouseOver:function(e){this.settings.autoplay&&("dot"===e&&this.settings.pauseOnDotsHover||"track"===e&&this.settings.pauseOnHover)&&this.disableAutoplayMode()},handleMouseOut:function(e){this.settings.autoplay&&("dot"===e&&this.settings.pauseOnDotsHover||"track"===e&&this.settings.pauseOnHover)&&this.enableAutoplayMode()},enableInfiniteMode:function(){if(!this.settings.fade&&!this.$refs.list.getElementsByClassName("agile__slide--cloned")[0]){var e=this.$refs.track.firstChild.cloneNode(!0),t=this.$refs.track.lastChild.cloneNode(!0);e.classList.add("agile__slide--cloned"),t.classList.add("agile__slide--cloned"),this.$refs.track.insertBefore(t,this.slides[0]),this.$refs.track.insertBefore(e,this.slides[this.slidesCount].nextSibling)}this.countSlides()},disableInfiniteMode:function(){for(var e=this.$refs.list.getElementsByClassName("agile__slide--cloned");e[0];)e[0].parentNode.removeChild(e[0]);this.countSlides()},enableAutoplayMode:function(){this.settings.infinite||(this.settings.infinite=!0,this.enableInfiniteMode()),this.stopAutoplay(),this.startAutoplay(),this.autoplayStatus=!0},disableAutoplayMode:function(){this.autoplayStatus=!1,this.stopAutoplay()},countSlides:function(){!this.settings.infinite||this.settings.fade||this.settings.unagile?this.allSlidesCount=this.slidesCount:this.allSlidesCount=this.slidesCount+2},disableScroll:function(){document.ontouchmove=function(e){e.preventDefault()}},enableScroll:function(){document.ontouchmove=function(e){return!0}},addActiveClass:function(e){this.slides[e].classList.add("agile__slide--active")},startAutoplay:function(){var e=this;this.autoplayTimeout=setTimeout((function(){return e.settings.autoplay?void e.nextSlide():(e.stopAutoplay(),e.disableAutoplayMode(),!1)}),this.autoplaySpeed)},stopAutoplay:function(){clearTimeout(this.autoplayTimeout)},setSlide:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.settings.unagile)return!1;if(this.settings.autoplay&&r&&(this.stopAutoplay(),this.startAutoplay()),this.settings.fade){!1===n&&(this.slides[e].style.transition="0ms",setTimeout((function(){t.slides[e].style.transition="opacity "+t.timing+" "+t.speed+"ms"}),10));for(var i=0;i<this.allSlidesCount;++i)this.slides[i].classList.remove("agile__slide--expiring");this.settings.infinite&&e<0?e=this.slidesCount-1:e>=this.slidesCount&&(e=0);var o=this.currentSlide;this.slides[o].classList.add("agile__slide--expiring"),setTimeout((function(){t.slides[o].classList.remove("agile__slide--expiring")}),this.settings.speed),this.transform=0}else this.transform=e*this.width.slide;for(var a=0;a<this.allSlidesCount;++a)this.slides[a].classList.remove("agile__slide--active");this.settings.infinite&&!this.settings.fade?(this.transform+=this.width.slide,this.addActiveClass(e+1)):this.addActiveClass(e),this.transitionDelay=n?this.speed:0,this.settings.infinite&&e<0?(this.currentSlide=this.slidesCount-1,setTimeout((function(){t.setSlide(t.slidesCount-1,!1)}),this.speed)):this.settings.infinite&&e>=this.slidesCount?(this.currentSlide=0,setTimeout((function(){t.setSlide(0,!1)}),this.settings.speed)):this.currentSlide=e},nextSlide:function(){this.setSlide(this.currentSlide+1)},prevSlide:function(){this.setSlide(this.currentSlide-1)},reload:function(){var e=this;if(this.defaultSettings.responsive){var t={};(0,i.default)(t,this.defaultSettings),t.responsive.forEach((function(n){if(e.defaultSettings.mobileFirst){if(n.breakpoint<e.width.document)for(var r in n.settings)t[r]=n.settings[r]}else if(n.breakpoint>e.width.document)for(var i in n.settings)t[i]=n.settings[i]})),(0,i.default)(this.settings,t)}!this.settings.infinite||this.settings.fade||this.settings.unagile?this.disableInfiniteMode():this.enableInfiniteMode(),this.settings.autoplay&&!this.autoplayStatus&&this.enableAutoplayMode(),(!this.settings.autoplay&&this.autoplayStatus||this.settings.unagile)&&this.disableAutoplayMode();for(var n=0;n<this.allSlidesCount;++n)this.slides[n].style.width=this.width.container+"px",this.settings.fade&&!this.settings.unagile?this.slides[n].style.transform="translate(-"+n*this.width.slide+"px)":this.slides[n].style.transform="translate(0)";this.settings.unagile?(this.width.track=this.width.container,this.transform=0):(this.width.track=this.width.container*this.allSlidesCount,this.setSlide(this.currentSlide,!1,!1))}},computed:{documentWidth:function(){return this.width.document}},watch:{show:function(){this.getWidth(),this.reload()},documentWidth:function(){this.reload()},dragDistance:function(){if(this.mouseDown){if(this.dragDistance>this.swipeDistance){if(!this.settings.infinite&&0===this.currentSlide)return;this.prevSlide(),this.handleMouseUp()}if(this.dragDistance<-1*this.swipeDistance){if(!this.settings.infinite&&this.currentSlide===this.slidesCount-1)return;this.nextSlide(),this.handleMouseUp()}}}}}},function(e,t,n){e.exports={default:n(12),__esModule:!0}},function(e,t,n){n(38),e.exports=n(5).Object.assign},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(4);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(9),i=n(34),o=n(33);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(13);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(4),i=n(3).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
2ing,toString,valueOf".split(",")},function(e,t,n){var r=n(3),i=n(5),o=n(17),a=n(22),s="prototype",l=function(e,t,n){var c,u,d,h=e&l.F,f=e&l.G,p=e&l.S,g=e&l.P,m=e&l.B,v=e&l.W,y=f?i:i[t]||(i[t]={}),b=y[s],x=f?r:p?r[t]:(r[t]||{})[s];for(c in f&&(n=t),n)(u=!h&&x&&void 0!==x[c])&&c in y||(d=u?x[c]:n[c],y[c]=f&&"function"!=typeof x[c]?n[c]:m&&u?o(d,r):v&&x[c]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(d):g&&"function"==typeof d?o(Function.call,d):d,g&&((y.virtual||(y.virtual={}))[c]=d,e&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(25),i=n(30);e.exports=n(1)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(1)&&!n(2)((function(){return 7!=Object.defineProperty(n(18)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(28),i=n(26),o=n(29),a=n(35),s=n(7),l=Object.assign;e.exports=!l||n(2)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=i.f,d=o.f;l>c;)for(var h,f=s(arguments[c++]),p=u?r(f).concat(u(f)):r(f),g=p.length,m=0;g>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:l},function(e,t,n){var r=n(14),i=n(23),o=n(36),a=Object.defineProperty;t.f=n(1)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(21),i=n(9),o=n(15)(!1),a=n(31)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(27),i=n(19);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(32)("keys"),i=n(37);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(3),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(8),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(8),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(6);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(4);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20);r(r.S+r.F,"Object",{assign:n(24)})},function(e,t,n){(e.exports=n(40)()).push([e.id,".agile{position:relative}.agile:active,.agile :active,.agile:focus,.agile :focus{outline:none}.agile__list{display:block;overflow:hidden;position:relative;width:100%}.agile__track{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start}.agile--disabled .agile__track,.agile__slide{display:block}.agile--fade .agile__slide{opacity:0;position:relative;z-index:0}.agile--fade .agile__slide--active{opacity:1;z-index:2}.agile--fade .agile__slide--expiring{opacity:1;transition-duration:0s;z-index:1}.agile__arrow[disabled]{cursor:default}.agile__dots{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;list-style:none;margin:0;padding:0;white-space:nowrap}
2.agile__dot button{cursor:pointer;display:block;font-size:0;line-height:0}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){var r,i;n(44),r=n(10);var o=n(42);i=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(i=r=r.default),"function"==typeof i&&(i=i.options),i.render=o.render,i.staticRenderFns=o.staticRenderFns,e.exports=r},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"agile",class:{"agile--fade":e.settings.fade&&!e.settings.unagile,"agile--disabled":e.settings.unagile}},[n("div",{ref:"list",staticClass:"agile__list"},[n("div",{ref:"track",staticClass:"agile__track",style:{width:e.width.track+"px",transform:"translate(-"+e.transform+"px)",transition:"transform "+e.settings.timing+" "+e.transitionDelay+"ms"},on:{mouseover:function(t){e.handleMouseOver("track")},mouseout:function(t){e.handleMouseOut("track")}}},[e._t("default")],2)]),e._v(" "),e.settings.dots&&!e.settings.unagile?n("ul",{ref:"dots",staticClass:"agile__dots"},e._l(e.slidesCount,(function(t){return n("li",{staticClass:"agile__dot",class:{"agile__dot--current":t-1===e.currentSlide},on:{mouseover:function(t){e.handleMouseOver("dot")},mouseout:function(t){e.handleMouseOut("dot")}}},[n("button",{attrs:{type:"button"},on:{click:function(n){e.setSlide(t-1)}}},[e._v(e._s(t))])])}))):e._e(),e._v(" "),e.settings.arrows&&!e.settings.unagile?n("button",{staticClass:"agile__arrow agile__arrow--prev",attrs:{disabled:0===e.currentSlide&&!e.settings.infinite},domProps:{innerHTML:e._s(e.settings.prevArrow)},on:{click:e.prevSlide}}):e._e(),e._v(" "),e.settings.arrows&&!e.settings.unagile?n("button",{staticClass:"agile__arrow agile__arrow--next",attrs:{disabled:e.currentSlide===e.slidesCount-1&&!e.settings.infinite},domProps:{innerHTML:e._s(e.settings.nextArrow)},on:{click:e.nextSlide}}):e._e()])},staticRenderFns:[]}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=d[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],t))}else{var a=[];for(o=0;o<r.parts.length;o++)a.push(l(r.parts[o],t));d[r.id]={id:r.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a={css:i[1],media:i[2],sourceMap:i[3]};n[o]?n[o].parts.push(a):t.push(n[o]={id:o,parts:[a]})}return t}function o(e,t){var n=p(),r=v[v.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),v.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=v.indexOf(e);t>=0&&v.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function l(e,t){var n,r,i;if(t.singleton){var o=m++;n=g||(g=s(t)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else n=s(t),r=u.bind(null,n),i=function(){a(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function c(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=y(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function u(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var d={},h=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},f=h((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),p=h((function(){return document.head||document.getElementsByTagName("head")[0]})),g=null,m=0,v=[];e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=f()),void 0===t.insertAt&&(t.insertAt="bottom");var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a];(l=d[s.id]).refs--,o.push(l)}for(e&&r(i(e),t),a=0;a<o.length;a++){var l;if(0===(l=o[a]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete d[l.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(39);"string"==typeof r&&(r=[[e.id,r,""]]),n(43)(r,{}),r.locals&&(e.exports=r.locals)}])},5681:(e,t,n)=>{var r=n(8187),i={install:function(e){e.directive("clipboard",{bind:function(e,t,n){if("success"===t.arg)e._v_clipboard_success=t.value;else if("error"===t.arg)e._v_clipboard_error=t.value;else{var i=new r(e,{text:function(){return t.value},action:function(){return"cut"===t.arg?"cut":"copy"}});i.on("success",(function(t){var n=e._v_clipboard_success;n&&n(t)})),i.on("error",(function(t){var n=e._v_clipboard_error;n&&n(t)})),e._v_clipboard=i}},update:function(e,t){"success"===t.arg?e._v_clipboard_success=t.value:"error"===t.arg?e._v_clipboard_error=t.value:(e._v_clipboard.text=function(){return t.value},e._v_clipboard.action=function(){return"cut"===t.arg?"cut":"copy"})},unbind:function(e,t){"success"===t.arg?delete e._v_clipboard_success:"error"===t.arg?delete e._v_clipboard_error:(e._v_clipboard.destroy(),delete e._v_clipboard)}})}};e.exports=i}
2,2498:(e,t,n)=>{window,e.exports=function(e){return r={},t.m=n=[function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(6).default)("24dd245c",r,!0,{})},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(4)(!1)).push([e.i,".vue-popover{display:block;position:absolute;background:#fff;box-shadow:0px 4px 20px 0px rgba(52,73,94,0.2);padding:5px;border-radius:5px;z-index:998}.vue-popover:before{display:block;position:absolute;width:0;height:0;content:''}.vue-popover.dropdown-position-bottom:before{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;top:-6px;left:calc(50% - 6px);filter:drop-shadow(0px -2px 2px rgba(52,73,94,0.1))}.vue-popover.dropdown-position-top:before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #fff;bottom:-6px;left:calc(50% - 6px);filter:drop-shadow(0px 2px 2px rgba(52,73,94,0.1))}.vue-popover.dropdown-position-left:before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #fff;right:-6px;top:calc(50% - 6px);filter:drop-shadow(2px 0px 2px rgba(52,73,94,0.1))}.vue-popover.dropdown-position-right:before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #fff;left:-6px;top:calc(50% - 6px);filter:drop-shadow(-2px 0px 2px rgba(52,73,94,0.1))}\n",""])},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];null!=a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){"use strict";n.r(t);var r=n(1),i=new(n.n(r).a);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={left:[-1,0],right:[1,0],top:[0,1],bottom:[0,-1]},u={name:"Popover",props:{name:{type:String,required:!0},delay:{type:Number,default:0},transition:{type:String},width:{type:Number,default:180},pointer:{type:Boolean,default:!0},event:{type:String,default:"click"},anchor:{type:Number,default:.5,validator:function(e){return 0<=e&&e<=1}}},data:function(){return{visible:!1,zIndex:1,positionClass:"",fixedParents:[],position:{left:0,top:0}}},mounted:function(){i.$on(this.showEventName,this.showEventListener),i.$on(this.hideEventName,this.hideEventListener)},beforeDestroy:function(){i.$off(this.showEventName,this.showEventListener),i.$off(this.hideEventName,this.hideEventListener)},computed:{showEventName:function(){return"show:".concat(this.event)},hideEventName:function(){return"hide:".concat(this.event)},className:function(){return["vue-popover",this.pointer&&this.positionClass]},style:function(){var e=this.width,t=this.zIndex,n=0<this.fixedParents.length,r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({width:"".concat(e,"px"),zIndex:t},this.position);return n&&(r.position="fixed"),r}},methods:{showEventListener:function(e){var t,n,r=this;this.visible?i.$emit(this.hideEventName):(t=e.name,n=e.position,t===this.name&&(this.timeout=setTimeout((function(){r.positionClass="dropdown-position-".concat(n),r.visible=!0,r.$nextTick((function(){r.$emit("show",e),r.$nextTick((function(){var t=r.getDropdownPosition(e);r.position={left:"".concat(t.left,"px"),top:"".concat(t.top,"px")}}))}))}),Math.max(this.delay,0))))},hideEventListener:function(e){this.timeout&&clearTimeout(this.timeout),this.visible&&(this.visible=!1,this.$emit("hide",e))},getDropdownPosition:function(e){var t,n=e.target,r=e.position,i=c[r],a=this.$refs.dropdown,s=n.getBoundingClientRect(),l=a.getBoundingClientRect();this.fixedParents=(t=[],function(e,t){for(var n=e;t&&n.parentNode&&"BODY"!==n.parentNode.tagName;)t(n),n=n.parentNode}(n,(function(e){"fixed"===window.getComputedStyle(e).position&&t.push(e)})),t);var u=e.zIndex?e.zIndex:function(e){return(0<arguments.length&&void 0!==e?e:[]).reduce((function(e,t){var n=parseInt(getComputedStyle(t)["z-index"])||1;return Math.max(e,n)}),1)}([n].concat(o(this.fixedParents)))+1;this.zIndex=u;var d,h,f=s.left,p=s.top;0===this.fixedParents.length&&(d=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,h=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft,f=s.left+h,p=s.top+d);var g=.5*(l.height+s.height),m=f-.5*(l.width-s.width),v=p+s.height-g,y=.5*i[0]*(l.width+s.width),b=i[1]*g;return this.pointer&&(y+=6*i[0],b+=6*i[1]),{left:Math.round(m+y),top:Math.round(v-b)}}}};function d(e,t,n,r,i,o,a,s){var l,c,u,d="function"==typeof e?e.options:e;return t&&(d.render=t,d.staticRenderFns=n,d._compiled=!0),r&&(d.functional=!0),o&&(d._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):i&&(l=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),l&&(d.functional?(d._injectStyles=l,c=d.render,d.render=function(e,t){return l.call(t),c(e,t)}):(u=d.beforeCreate,d.beforeCreate=u?[].concat(u,l):[l])),{exports:e,options:d}}n(2);var h=d(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.transition}},[e.visible?n("div",{ref:"dropdown",class:e.className,style:e.style,attrs:{"data-popover":this.name},on:{click:function(e){e.stopPropagation()}}},[e._t("default")],2):e._e()])}),[],!1,null,null,null).exports,f=d({name:"Tooltip",props:{event:{type:String,default:"hover"},pointer:{type:Boolean,default:!1},width:{type:Number,default:160}},data:function(){return{value:""}}},(function(){var e=this,t=e.$createElement;return(e._self._c||t)("popover",{attrs:{name:"tooltip",pointer:e.pointer,width:e.width,event:e.event},on:{show:function(t){e.value=t.value}}},[e._v("\n  "+e._s(e.value)+"\n")])}),[],!1,null,null,null).exports;function p(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e){var t,n=e.arg,r=void 0===n?"":n,i=e.modifiers,o=void 0===i?{}:i,a=e.value,s=void 0===a?{}:a,l=Object.keys(o);return{name:"object"===v(s)&&s.name?s.name:r,position:(t=l,(Array.isArray(t)&&0<t.length?t[0]:null)||s.position||"bottom"),value:s}}
2function b(e,t){function n(n){i.$emit("show:click",g(g({},t),{},{target:e,srcEvent:n})),document.addEventListener("click",(function n(r){i.$emit("hide:click",g(g({},t),{},{target:e,srcEvent:r})),document.removeEventListener("click",n)})),n.stopPropagation()}e.addEventListener("click",n),e.$popoverRemoveClickHandlers=function(){e.removeEventListener("click",n)}}function x(e,t){function n(n){i.$emit("show:hover",g(g({},t),{},{target:e,srcEvent:n}))}function r(n){i.$emit("hide:hover",g(g({},t),{},{target:e,srcEvent:n}))}e.addEventListener("mouseenter",n),e.addEventListener("mouseleave",r),e.$popoverRemoveHoverHandlers=function(){e.removeEventListener("mouseenter",n),e.removeEventListener("mouseleave",r)}}t.default={install:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};document.addEventListener("resize",(function(e){i.$emit("hide",{srcEvent:e})})),e.component("Popover",h),e.directive("popover",{bind:function(e,t){var n=y(t);b(e,n),x(e,n)},unbind:function(e){e.$popoverRemoveHoverHandlers(),e.$popoverRemoveClickHandlers()}}),n.tooltip&&e.component("Tooltip",f)}}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s={id:e+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(t),n.d(t,"default",(function(){return p}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(e,t,n,i){c=n,d=i||{};var a=r(e,t);return g(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}var l;for(t?g(a=r(e,t)):a=[],i=0;i<n.length;i++)if(0===(l=n[i]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}function g(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;
2i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(v(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function v(e){var t,n,r,i=document.querySelector("style["+h+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}return r=f?(t=l++,i=s=s||m(),n=x.bind(null,i,t,!1),x.bind(null,i,t,!0)):(i=m(),n=function(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,i),function(){i.parentNode.removeChild(i)}),n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else r()}}var y,b=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function x(e,t,n,r){var i,o,a=n?"":r.css;e.styleSheet?e.styleSheet.cssText=b(t,a):(i=document.createTextNode(a),(o=e.childNodes)[t]&&e.removeChild(o[t]),o.length?e.insertBefore(i,o[t]):e.appendChild(i))}}],t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=5);function t(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,r}(n(2893))},6900:(e,t,n)=>{"use strict";n.d(t,{A:()=>I});var r=n(2505),i=n.n(r);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c={props:{value:Object},computed:{filtered:function(){var e=this;return["search","assignment","updates","renewals","product","type","archived"].some((function(t){return e.value[t]}))},selects:function(){return[{key:"assignment",label:"Status",defaultLabel:"All",options:[{value:"assigned",label:"Assigned"},{value:"unassigned",label:"Unassigned"},{value:"archived",label:"Archived"}]},{key:"type",label:"Type",defaultLabel:"All",options:[{value:"core",label:"Core"},{value:"addon",label:"Addon"},{value:"starter-kit",label:"Starter Kit"},{value:"legacy",label:"Legacy"}]},{key:"updates",label:"Updates",defaultLabel:"All",options:[{value:"active",label:"Active"},{value:"expired",label:"Expired"},{value:"unactivated",label:"Unactivated"},{value:"perpetual",label:"No expiration"}]},{key:"renewals",label:"Auto-Renew",defaultLabel:"All",options:[{value:"on",label:"On"},{value:"off",label:"Off"}]}]}},methods:{selectedLabel:function(e){var t,n=this;return(null===(t=e.options.find((function(t){return String(t.value)===String(n.selectedValue(e.key))}
2)))||void 0===t?void 0:t.label)||e.defaultLabel},selectedValue:function(e){return"assignment"===e&&Number(this.value.archived)?"archived":this.value[e]||""},change:function(e,t){var n=s(s({},this.value),{},l(l({},e,t),"page",1));"assignment"===e&&(n.assignment="archived"===t?"":t,n.archived="archived"===t?"1":""),this.$emit("input",n)}}};var u=n(4486);const d=(0,u.A)(c,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-wrap items-center gap-2"},[t("label",{staticClass:"relative mr-auto w-full sm:w-64"},[t("svg",{staticClass:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-zinc-400",attrs:{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor"}},[t("circle",{attrs:{cx:"8.5",cy:"8.5",r:"5.5"}}),e._v(" "),t("path",{attrs:{d:"m13 13 4 4"}})]),e._v(" "),t("input",{staticClass:"h-9 w-full rounded-lg border-0 bg-white pl-9 pr-3 text-base ring-1 ring-black/10 focus:ring-purple sm:text-sm",attrs:{name:"search",type:"search","aria-label":"Search licenses",placeholder:"Search licenses…"},domProps:{value:e.value.search},on:{input:function(t){return e.$emit("search",t.target.value)}}})]),e._v(" "),e._l(e.selects,(function(n){return t("label",{key:n.key,staticClass:"relative inline-flex h-9 max-w-full items-center gap-1.5 rounded-lg px-3 text-sm ring-1 has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-purple",class:e.selectedValue(n.key)?"bg-purple/5 ring-purple/25 hover:bg-purple/10":"bg-white ring-black/10 hover:bg-zinc-50"},[t("span",{staticClass:"shrink-0 text-zinc-500"},[e._v(e._s(n.label)+":")]),e._v(" "),t("span",{staticClass:"max-w-40 truncate",class:e.selectedValue(n.key)?"font-medium text-purple":"text-zinc-500",attrs:{"aria-hidden":"true"}},[e._v("\n            "+e._s(e.selectedLabel(n))+"\n        ")]),e._v(" "),t("select",{staticClass:"absolute inset-0 h-full w-full cursor-pointer opacity-0",attrs:{name:n.key,"aria-label":n.label},domProps:{value:e.selectedValue(n.key)},on:{change:function(t){return e.change(n.key,t.target.value)}}},[t("option",{attrs:{value:""}}
vendor: 4,647 bytes, line 2
2,[e._v(e._s(n.defaultLabel))]),e._v(" "),e._l(n.options,(function(n){return t("option",{key:n.value,domProps:{value:n.value}},[e._v("\n                "+e._s(n.label)+"\n            ")])}))],2),e._v(" "),t("svg",{staticClass:"pointer-events-none ml-1 shrink-0 text-zinc-400",attrs:{viewBox:"0 0 8 5",width:"8",height:"5",fill:"none","aria-hidden":"true"}},[t("path",{attrs:{d:"m.5.5 3.5 3.5L7.5.5",stroke:"currentColor"}})])])})),e._v(" "),e.filtered?t("button",{staticClass:"rounded px-2 py-1 text-sm text-purple hover:underline",attrs:{type:"button"},on:{click:function(t){return e.$emit("clear")}}},[e._v("\n        Clear filters\n    ")]):e._e()],2)}),[],!1,null,null,null).exports;var h=n(5668),f=n(7348);function p(e){return p="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},p(e)}function g(){g=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};c(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,a)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==p(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?v:f,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(p(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,
vendor: 4,616 bytes, line 2
2c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),c(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function m(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(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 v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function b(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){y(o,r,i,a,s,"next",e)}function s(e){y(o,r,i,a,s,"throw",e)}a(void 0)}))}}const x={components:{LicenseModal:f.A},props:{license:Object,assignUrl:String},data:function(){return{mode:"Existing site",search:"",name:"",sites:[],loading:!1,busy:!1,error:"",page:1,hasMore:!1,version:0,timer:null}},mounted:function(){this.load(),this.focus()},beforeDestroy:function(){clearTimeout(this.timer),this.version++},methods:{focus:function(){var e="New site"===this.mode?this.$refs.name:this.$refs.search;this.$nextTick((function(){return null==e?void 0:e.focus()}))},schedule:function(){var e=this;clearTimeout(this.timer),this.version++,this.timer=setTimeout((function(){return e.load()}),250)},load:function(){var e=arguments,t=this;return b(g().mark((function n(){var r,o,a,s,l;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>
20&&void 0!==e[0]&&e[0],o=++t.version,a=r?t.page+1:1,t.loading=!0,t.error="",n.prev=5,n.next=8,i().get(t.license.sites_url,{params:{search:t.search,page:a}});case 8:if(s=n.sent,l=s.data,o===t.version){n.next=12;break}return n.abrupt("return");case 12:t.sites=r?[].concat(m(t.sites),m(l.sites)):l.sites,t.page=a,t.hasMore=l.has_more,n.next=20;break;case 17:n.prev=17,n.t0=n.catch(5),o===t.version&&(t.error="Could not load sites. Change your search to retry.");case 20:return n.prev=20,o===t.version&&(t.loading=!1),n.finish(20);case 23:case"end":return n.stop()}}),n,null,[[5,17,20,23]])})))()},save:function(e){var t=this;return b(g().mark((function n(){var r;return g().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.busy){n.next=2;break}return n.abrupt("return");case 2:return t.busy=!0,t.error="",n.prev=4,n.next=7,i().post(t.assignUrl,{site:e,licenses:[t.license.id],name:t.name.trim()});case 7:t.$emit("saved"),n.next=13;break;case 10:n.prev=10,n.t0=n.catch(4),t.error=Object.values((null===(r=n.t0.response)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.errors)||{}).flat()[0]||"Could not assign this license. Please try again.";case 13:return n.prev=13,t.busy=!1,n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[4,10,13,16]])})))()}}};const w=(0,u.A)(x,(function(){var e=this,t=e._self._c;return t("license-modal",{attrs:{title:"Assign to a site",description:e.license.product.name,busy:e.busy},on:{close:function(t){return e.$emit("close")}}},[t("div",{staticClass:"mb-4 grid grid-cols-2 gap-1 rounded-lg bg-[#faf8f7] p-1"},e._l(["Existing site","New site"],(function(n){return t("button",{key:n,staticClass:"rounded-md px-3 py-2 text-sm",class:e.mode===n?"bg-white text-black shadow-sm ring-1 ring-black/5":"text-zinc-500 hover:text-black",attrs:{type:"button","aria-pressed":e.mode===n,disabled:e.busy},on:{click:function(t){e.mode=n,e.focus()}}},[e._v("\n            "+e._s(n)+"\n        ")])})),0),e._v(" "),e.error?t("p",{staticClass:"mb-3 text-sm text-red",attrs:{role:"alert"}},[e._v(e._s(e.error))]):e._e(),e._v(" "),"Existing site"===e.mode?[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"mb-3 h-10 w-full rounded-lg border-0 px-3 text-base ring-1 ring-black/10 focus:ring-purple sm:text-sm",attrs:{name:"site_search",type:"search","aria-label":"Search sites",placeholder:"Search by name or domain…"},domProps:{value:e.search},on:{input:[function(t){t.target.composing||(e.search=t.target.value)},e.schedule]}}),e._v(" "),t("div",{staticClass:"space-y-2",attrs:{"aria-busy":e.loading}},[e._l(e.sites,(function(n){return t("button",{key:n.id,staticClass:"flex w-full items-center gap-3 rounded-lg p-3 text-left ring-1 disabled:cursor-default",class:n.conflict?"ring-red/30":"ring-black/10 enabled:hover:bg-[#faf8f7] enabled:hover:ring-purple/40",attrs:{type:"button",disabled:e.busy||!!n.conflict||n.current,title:n.conflict||(n.current?"Currently assigned here":"")},on:{click:function(t){return e.save(n.id)}}},[t("span",{staticClass:"flex size-9 shrink-0 items-center justify-center rounded-md bg-[#faf8f7]"},[n.favicon?t("img",{staticClass:"size-6 rounded",attrs:{src:n.favicon,alt:""},on:{error:function(e){e.target.style.display="none"}}}):t("svg",{staticClass:"size-5 text-zinc-400",attrs:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5"}},[t("rect",{attrs:{x:"4",y:"4",width:"16",height:"16",rx:"3"}}),t("path",{attrs:{d:"M4 9h16"}})])]),e._v(" "),t("span",{staticClass:"min-w-0 flex-1"},[t("span",{staticClass:"block text-sm font-medium"},[e._v(e._s(n.name))]),e._v(" "),t("span",{staticClass:"block truncate text-xs text-zinc-500"},[e._v(e._s(n.domain))]),e._v(" "),n.badge?t("span",{staticClass:"mt-1 inline-block rounded bg-zinc-100 px-1.5 py-0.5 text-[11px] text-zinc-500"},[e._v("\n                        "+e._s(n.badge)+"\n                    ")]):e._e()]),e._v(" "),n.current?t("span",{staticClass:"text-xs text-zinc-400"},[e._v("Current")]):t("span",{staticClass:"text-zinc-400",attrs:{"aria-hidden":"true"}},[e._v(e._s(n.conflict?"—":"›"))]),e._v(" "),n.conflict?t("span",{staticClass:"sr-only"}
vendor: 4,106 bytes, line 2
2,[e._v(e._s(n.conflict))]):e._e()])})),e._v(" "),e.sites.length||e.loading?e._e():t("p",{staticClass:"py-6 text-center text-sm text-zinc-500"},[e._v("No sites found.")]),e._v(" "),e.hasMore?t("button",{staticClass:"w-full rounded-md py-2 text-sm text-purple hover:bg-zinc-50",attrs:{type:"button",disabled:e.loading},on:{click:function(t){return e.load(!0)}}},[e._v("\n                Load more\n            ")]):e._e(),e._v(" "),e.loading?t("p",{staticClass:"py-2 text-center text-sm text-zinc-500",attrs:{role:"status"}},[e._v("Loading sites…")]):e._e()],2)]:t("form",{attrs:{id:"license-new-site"},on:{submit:function(t){return t.preventDefault(),e.save("new")}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],ref:"name",staticClass:"h-10 w-full rounded-lg border-0 px-3 text-base ring-1 ring-black/10 focus:ring-purple sm:text-sm",attrs:{name:"site_name",type:"text",required:"",maxlength:"255","aria-label":"Site name",placeholder:"e.g. Acme website"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}}),e._v(" "),t("p",{staticClass:"mt-2 text-sm text-zinc-500"},[e._v("Create a site and assign this license.")])]),e._v(" "),"New site"===e.mode?t("button",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white hover:bg-zinc-800 focus-visible:outline-purple disabled:opacity-40",attrs:{slot:"footer",type:"submit",form:"license-new-site",disabled:e.busy||!e.name.trim()},slot:"footer"},[e._v("\n        "+e._s(e.busy?"Assigning…":"Create & assign")+"\n    ")]):e._e()],2)}),[],!1,null,null,null).exports;var k=n(898),C=n(5006),S=n(1696);function _(e){return _="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 A(){A=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(D([])));k&&k!==n&&r.call(k,a)&&(x=k);var C=b.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==_(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=h;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?g:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 4,933 bytes, line 2
2(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(_(t)+" is not iterable")}return y.prototype=b,i(C,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(L.prototype),c(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function L(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function T(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){L(o,r,i,a,s,"next",e)}function s(e){L(o,r,i,a,s,"throw",e)}a(void 0)}))}}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}
2finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(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.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N={mixins:[C.A],components:{LicenseNotification:S.A,LicenseFilters:d,LicenseRow:h.A,LicenseModal:f.A,AssignmentModal:w,RenewalModal:k.A},props:{initialLicenses:Object,initialProducts:Array,initialFilters:Object,licensesUrl:String,assignUrl:String,unassignUrl:String,marketplaceUrl:String},data:function(){return{listing:this.listingFrom({licenses:this.initialLicenses,products:this.initialProducts}),filters:P({},this.initialFilters),loading:!1,error:"",actionError:null,busy:{},rowErrors:{},retries:{},assigning:null,renewing:null,archiving:null,version:0,timer:null,columns:[{key:"product",label:"Product"},{key:"site",label:"Site"},{key:"updates",label:"Expires"}]}},computed:{filtered:function(){var e=this;return["search","assignment","updates","renewals","product","type","archived"].some((function(t){return e.filters[t]}))}},mounted:function(){window.addEventListener("popstate",this.popstate)},beforeDestroy:function(){window.removeEventListener("popstate",this.popstate),clearTimeout(this.timer),this.version++},methods:{listingFrom:function(e){return{licenses:e.licenses.data,pagination:e.licenses,products:e.products}},params:function(){return Object.fromEntries(Object.entries(this.filters).filter((function(e){var t=E(e,2),n=t[0],r=t[1];return r&&!("page"===n&&1===Number(r))})))},filter:function(e){clearTimeout(this.timer),this.filters=e;var t=new URLSearchParams(this.params()).toString();history.pushState({},"",location.pathname+(t?"?"+t:"")),this.load()},search:function(e){var t=this;clearTimeout(this.timer),this.version++,this.$set(this.filters,"search",e),this.timer=setTimeout((function(){return t.filter(P(P({},t.filters),{},{page:1}))}),250)},popstate:function(){clearTimeout(this.timer),this.filters=Object.fromEntries(new URLSearchParams(location.search)),this.load()},sort:function(e){var t=this.sortedBy(e)&&"desc"!==this.filters.direction;this.filter(P(P({},this.filters),{},{sort:e,direction:t?"desc":"asc",page:1}))},sortedBy:function(e){return(this.filters.sort||"product")===e},sortState:function(e){return this.sortedBy(e)?"desc"===this.filters.direction?"descending":"ascending":"none"},page:function(e){this.filter(P(P({},this.filters),{},{page:this.listing.pagination.current_page+e}))},load:function(){var e=this;return T(A().mark((function t(){var n,r,o;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=++e.version,e.loading=!0,e.error="",t.prev=3,t.next=6,i().get(e.licensesUrl,{params:e.params()});case 6:if(r=t.sent,o=r.data,n===e.version){t.next=10;break}return t.abrupt("return");case 10:e.listing=e.listingFrom(o),o.licenses.current_page>o.licenses.last_page&&e.filter(P(P({},e.filters),{},{page:o.licenses.last_page})),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(3),n===e.version&&(e.error="Could not load licenses.");case 17:return t.prev=17,n===e.version&&(e.loading=!1),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[3,14,17,20]])})))()},action:function(e,t){switch(t){case"assign":this.assigning=e;break;case"archive":this.archiving=e;break;case"unassign":this.unassign(e);break;case"restore":this.restore(e)}},unassign:function(e){var t=this;this.run(e,T(A().mark((function n(){return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i().post(t.unassignUrl,{license:e.id});case 2:return n.next=4,t.load();case 4:case"end":return n.stop()}}),n)}))))},restore:function(e){var t=this;this.run(e,T(A().mark((function n(){return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i().post(e.restore_url);case 2:return n.next=4,t.load();case 4:case"end":return n.stop()}}),n)}))))},archive:function(){var e=this;this.run(this.archiving,T(A().mark((function t(){return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i().delete(e.archiving.archive_url);case 2:return e.archiving=null,t.next=5,e.load();case 5:case"end":return t.stop()}}),t)}))))}}};const I=(0,u.A)(N,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"wrapper py-8"},[t("license-filters",{staticClass:"mb-4",attrs:{value:e.filters},on:{input:e.filter,search:e.search,clear:function(t){return e.filter({})}}}),e._v(" "),e.error?t("p",{staticClass:"mb-3 text-sm text-red",attrs:{role:"alert"}},[e._v("\n        "+e._s(e.error)+"\n        "),t("button",{staticClass:"underline",attrs:{type:"button"},on:{click:e.load}}
2,[e._v("Retry")])]):e._e(),e._v(" "),t("div",{staticClass:"overflow-x-auto rounded-xl shadow-sm-soft ring-1 ring-black/5",attrs:{"aria-busy":e.loading}},[t("table",{staticClass:"table-card min-w-[760px]",class:{"opacity-60":e.loading}},[t("thead",[t("tr",[e._l(e.columns,(function(n){return t("th",{key:n.key,staticClass:"whitespace-nowrap",attrs:{"aria-sort":e.sortState(n.key)}},[t("button",{staticClass:"flex items-center gap-2 hover:text-black",attrs:{type:"button"},on:{click:function(t){return e.sort(n.key)}}},[e._v("\n                        "+e._s(n.label)+"\n                        "),(e.filters.sort||"product")===n.key?t("span",{staticClass:"text-zinc-400",attrs:{"aria-hidden":"true"}},[e._v("\n                            "+e._s("desc"===e.filters.direction?"↓":"↑")+"\n                        ")]):e._e()])])})),e._v(" "),t("th",{staticClass:"whitespace-nowrap"},[e._v("Auto-Renew")]),e._m(0)],2)]),e._v(" "),t("tbody",[e._l(e.listing.licenses,(function(n){return t("license-row",{key:n.id,attrs:{license:n,busy:!!e.busy[n.id]},on:{action:function(t){return e.action(n,t)},renew:function(t){return e.renew(n,t)}}})})),e._v(" "),e.listing.licenses.length?e._e():t("tr",[t("td",{staticClass:"!py-16 text-center",attrs:{colspan:"5"}},[t("div",{staticClass:"font-medium text-zinc-700"},[e._v("\n                            "+e._s(e.filtered?"No matching licenses":"Your licenses will live here")+"\n                        ")]),e._v(" "),t("p",{staticClass:"mt-1 text-sm text-zinc-500"},[e._v("\n                            "+e._s(e.filtered?"Try another search or clear your filters.":"Products you purchase will appear here, ready to manage.")+"\n                        ")]),e._v(" "),e.filtered?t("button",{staticClass:"mt-3 text-sm text-purple hover:underline",attrs:{type:"button"},on:{click:function(t){return e.filter({})}}},[e._v("\n                            Clear filters\n                        ")]):t("a",{staticClass:"mt-3 inline-block text-sm text-purple hover:underline",attrs:{href:e.marketplaceUrl}},[e._v("\n                            Browse the marketplace →\n                        ")])])])],2)])]),e._v(" "),t("footer",{staticClass:"mt-4 flex items-center justify-between gap-4 text-sm text-zinc-500"},[t("p",[e._v("\n            "+e._s(e.listing.pagination.total?e.listing.pagination.from+"–"+e.listing.pagination.to+" of "+e.listing.pagination.total:"0")+" licenses\n        ")]),e._v(" "),e.listing.pagination.last_page>1?t("nav",{staticClass:"flex items-center gap-3",attrs:{"aria-label":"License pages"}},[t("button",{staticClass:"rounded-md bg-white px-3 py-1.5 ring-1 ring-black/10 hover:bg-zinc-50 disabled:opacity-40",attrs:{type:"button",disabled:e.loading||e.listing.pagination.current_page<=1},on:{click:function(t){return e.page(-1)}}},[e._v("\n                Previous\n            ")]),e._v(" "),t("span",[e._v(e._s(e.listing.pagination.current_page)+" / "+e._s(e.listing.pagination.last_page))]),e._v(" "),t("button",{staticClass:"rounded-md bg-white px-3 py-1.5 ring-1 ring-black/10 hover:bg-zinc-50 disabled:opacity-40",attrs:{type:"button",disabled:e.loading||e.listing.pagination.current_page>=e.listing.pagination.last_page},on:{click:function(t){return e.page(1)}}},[e._v("\n                Next\n            ")])]):e._e()]),e._v(" "),!e.actionError||e.renewing||e.archiving||e.assigning?e._e():t("license-notification",{attrs:{error:e.actionError},on:{retry:function(t){return e.retry(e.actionError.license.id)},close:function(t){e.actionError=null}}}),e._v(" "),e.assigning?t("assignment-modal",{attrs:{license:e.assigning,"assign-url":e.assignUrl},on:{close:function(t){e.assigning=null},saved:function(t){e.assigning=null,e.load()}}}):e._e(),e._v(" "),e.renewing?t("renewal-modal",{attrs:{license:e.renewing.license,quote:e.renewing.quote,busy:!!e.busy[e.renewing.license.id],error:e.rowErrors[e.renewing.license.id]},on:{close:function(t){e.renewing=null},coupon:function(t){return e.quote(e.renewing.license,t)},confirm:function(t){return e.saveRenewal(e.renewing.license,!0,e.renewing.quote)}}}):e._e(),e._v(" "),e.archiving?t("license-modal",{attrs:{title:"Archive this license?",description:e.archiving.product.name,busy:!!e.busy[e.archiving.id]},on:{close:function(t){e.archiving=null}}},[t("p",{staticClass:"text-sm text-zinc-600"},[e._v("\n            Archiving also unassigns this license from its site. You can restore it later; its site\n            and Auto-Renew will stay off.\n        ")]),e._v(" "),e.rowErrors[e.archiving.id]?t("p",{staticClass:"mt-3 text-sm text-red",attrs:{role:"alert"}},[e._v("\n            "+e._s(e.rowErrors[e.archiving.id])+"\n        ")]):e._e(
2),e._v(" "),t("button",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white disabled:opacity-50",attrs:{slot:"footer",type:"button",disabled:!!e.busy[e.archiving.id]},on:{click:e.archive},slot:"footer"},[e._v("\n            Archive license\n        ")])]):e._e()],1)}),[function(){var e=this._self._c;return e("th",[e("span",{staticClass:"sr-only"},[this._v("Actions")])])}],!1,null,null,null).exports},7348:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:{title:String,description:String,busy:Boolean},mounted:function(){this.$refs.dialog.showModal()},beforeDestroy:function(){this.$refs.dialog.close()},methods:{cancel:function(e){e.preventDefault(),this.busy||this.$emit("close")},backdrop:function(e){if(e.target===this.$refs.dialog){var t=e.target.getBoundingClientRect();(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom)&&this.cancel(e)}}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("dialog",{ref:"dialog",staticClass:"m-auto w-[calc(100%_-_2rem)] max-w-lg overflow-hidden rounded-xl bg-white p-0 text-black shadow-xl ring-1 ring-black/10 backdrop:bg-black/30",attrs:{"aria-labelledby":"license-modal-"+e._uid},on:{cancel:e.cancel,click:e.backdrop}},[t("header",{staticClass:"flex items-start justify-between gap-4 p-5 pb-4"},[t("div",{staticClass:"min-w-0"},[t("h2",{staticClass:"text-xl font-semibold",attrs:{id:"license-modal-"+e._uid}},[e._v(e._s(e.title))]),e._v(" "),e.description?t("p",{staticClass:"mt-1 text-sm text-zinc-500"},[e._v(e._s(e.description))]):e._e()]),e._v(" "),t("button",{staticClass:"flex size-8 shrink-0 items-center justify-center rounded-md text-xl text-zinc-400 hover:bg-zinc-100 hover:text-black focus-visible:outline-purple",attrs:{type:"button","aria-label":"Close",disabled:e.busy},on:{click:function(t){return e.$emit("close")}}},[e._v("\n            ×\n        ")])]),e._v(" "),t("div",{staticClass:"max-h-[65vh] overflow-y-auto px-5 pb-5"},[e._t("default")],2),e._v(" "),t("footer",{staticClass:"flex items-center justify-between gap-3 bg-[#faf8f7] px-5 py-3"},[t("button",{staticClass:"rounded-md bg-white px-3 py-1.5 text-sm ring-1 ring-black/10 hover:bg-zinc-50 disabled:opacity-50",attrs:{type:"button",disabled:e.busy},on:{click:function(t){return e.$emit("close")}}},[e._v("\n            Cancel\n        ")]),e._v(" "),e._t("footer")],2)])}),[],!1,null,null,null).exports},1696:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:{error:Object}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"fixed bottom-4 right-4 z-[100] flex w-[calc(100%_-_2rem)] max-w-sm items-start gap-3 rounded-xl bg-white p-4 text-sm shadow-lg ring-1 ring-black/10 sm:bottom-6 sm:right-6",attrs:{role:"alert"}},[t("svg",{staticClass:"mt-0.5 size-5 shrink-0 text-red",attrs:{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor","stroke-width":"1.5","aria-hidden":"true"}},[t("circle",{attrs:{cx:"10",cy:"10",r:"8"}}),t("path",{attrs:{d:"M10 5.5v5M10 13v1.5"}})]),e._v(" "),t("div",{staticClass:"min-w-0 flex-1"},[t("p",{staticClass:"font-medium text-zinc-800"},[e._v("\n            "+e._s(e.error.license.product.name)+"\n            "),e.error.license.site?t("span",{staticClass:"font-normal text-zinc-500"},[e._v("\n                · "+e._s(e.error.license.site.name)+"\n            ")]):e._e()]),e._v(" "),t("p",{staticClass:"mt-1 text-zinc-600"},[e._v(e._s(e.error.message))]),e._v(" "),t("button",{staticClass:"mt-2 rounded text-purple hover:underline focus-visible:outline-purple",attrs:{type:"button"},on:{click:function(t){return e.$emit("retry")}}},[e._v("\n            Retry\n        ")])]),e._v(" "),t("button",{staticClass:"flex size-6 shrink-0 items-center justify-center rounded text-lg text-zinc-400 hover:bg-zinc-100 hover:text-black focus-visible:outline-purple",attrs:{type:"button","aria-label":"Dismiss notification"},on:{click:function(t){return e.$emit("close")}}},[e._v("\n        ×\n    ")])])}),[],!1,null,null,null).exports},5668:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:{license:Object,busy:Boolean,showSite:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0}},computed:{renewalTooltip:function(){return null===this.license.renewal_price?"See renewal pricing in the actions menu under Renewal details.":this.money(this.license.renewal_price)+"/year"}},methods:{money:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:2}).format(e/100)},toggle:function(e){var t=e.target.checked;e.target.checked=this.license.auto_renew,this.$emit("renew",t)},menu:function(){var e=this.$refs.menu,t=this.$refs.trigger.getBoundingClientRect();e.showPopover(),e.style.left=Math.max(8,t.right-e.offsetWidth)+"px",e.style.top=Math.max(8,Math.min(t.bottom+4,window.innerHeight-e.offsetHeight-8))+"px",this.$nextTick((function(){var t;return null===(t=e.querySelector("button:not(:disabled), a"))||void 0===t?void 0:t.focus()}))},closeMenu:function(){this.$refs.menu.hidePopover(),this.$refs.trigger.focus()}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("tr",[t("td",[t("div",{staticClass:"flex items-center gap-3"},[e.license.product.thumbnail?t("img",{staticClass:"size-9 shrink-0 rounded-md object-contain",attrs:{src:e.license.product.thumbnail,alt:""}}):t("span",{staticClass:"flex size-9 shrink-0 items-center justify-center rounded-md bg-purple/10 text-purple"},[e._v("\n                "+e._s(e.license.product.name.slice(0,1))+"\n            ")]),e._v(" "),t("div",{staticClass:"min-w-0"},[t("div",{staticClass:"font-medium text-black"},[e._v(e._s(e.license.product.name))]),e._v(" "),e.license.product.edition?t("div",{staticClass:"mt-0.5 text-xs text-zinc-500"}
2,[e._v(e._s(e.license.product.edition))]):e._e()])])]),e._v(" "),e.showSite?t("td",[e.license.site?t("a",{staticClass:"group flex items-center gap-2.5 rounded focus-visible:outline-purple",attrs:{href:e.license.site.url}},[t("div",{staticClass:"min-w-0"},[t("div",{staticClass:"font-medium text-zinc-700 group-hover:text-purple"},[e._v(e._s(e.license.site.name))]),e._v(" "),t("div",{staticClass:"mt-0.5 max-w-64 truncate text-xs text-zinc-500"},[e._v(e._s(e.license.site.domain))])])]):e.license.domain?t("span",{staticClass:"text-zinc-600"},[e._v(e._s(e.license.domain))]):e.license.actions.assign?t("button",{staticClass:"rounded bg-zinc-100 px-2 py-1 text-purple hover:bg-zinc-200 focus-visible:outline-purple",attrs:{type:"button",disabled:e.busy},on:{click:function(t){return e.$emit("action","assign")}}},[e._v("\n            Assign "),t("span",{attrs:{"aria-hidden":"true"}},[e._v("↗")])]):t("span",{staticClass:"text-zinc-400"},[e._v("Unassigned")])]):e._e(),e._v(" "),t("td",{staticClass:"whitespace-nowrap"},[e._t("coverage",(function(){return[e.license.updates.date?t("span",{staticClass:"inline-flex rounded-md px-2 py-1 text-xs",class:"Expired"===e.license.updates.status?"bg-zinc-100 text-zinc-500":"bg-emerald-50 text-emerald-700",attrs:{title:e.license.updates.status+" "+e.license.updates.date}},[t("span",{staticClass:"sr-only"},[e._v(e._s(e.license.updates.status)+" ")]),e._v(e._s(e.license.updates.date)+"\n        ")]):"Unactivated"===e.license.updates.status?t("span",{staticClass:"text-xs text-zinc-500"},[e._v("Unactivated")]):t("span",{staticClass:"text-zinc-400",attrs:{"aria-label":"No expiration"}},[e._v("—")])]}))],2),e._v(" "),t("td",{staticClass:"whitespace-nowrap"},[e.license.renewable?[t("label",{staticClass:"inline-flex min-h-9 cursor-pointer items-center gap-2.5",class:{"opacity-50":e.busy||!e.license.actions.toggle}},[t("span",{staticClass:"group relative inline-flex h-5 w-9 shrink-0 rounded-full bg-zinc-200 p-0.5 ring-1 ring-inset ring-black/5 has-[:checked]:bg-purple has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-purple"},[t("span",{staticClass:"size-4 rounded-full bg-white shadow-sm transition-transform group-has-[:checked]:translate-x-4"}),e._v(" "),t("input",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:e.renewalTooltip,trigger:"hover focus",html:!1},expression:"{ content: renewalTooltip, trigger: 'hover focus', html: false }"}],staticClass:"absolute inset-x-0 -inset-y-2 w-full cursor-pointer appearance-none focus:outline-none disabled:cursor-wait",attrs:{type:"checkbox",name:"auto_renew",role:"switch","aria-label":"Auto-Renew for "+e.license.product.name+", license "+e.license.id,disabled:e.busy||!e.license.actions.toggle},domProps:{checked:e.license.auto_renew},on:{change:e.toggle}})]),e._v(" "),t("span",{staticClass:"text-xs text-zinc-500"},[e._v("\n                    "+e._s(e.busy?"Saving…":e.license.auto_renew?"On":"Off")+"\n                ")])])]:t("span",{staticClass:"text-zinc-400",attrs:{"aria-label":"Auto-Renew not available"}},[e._v("—")])],2),e._v(" "),e.showActions?t("td",{staticClass:"w-12 text-right"},[e._t("actions",(function(){return[t("button",{ref:"trigger",staticClass:"flex size-8 items-center justify-center rounded-md text-xl text-zinc-500 hover:bg-zinc-100 focus-visible:outline-purple",attrs:{type:"button","aria-label":"Actions for "+e.license.product.name+", license "+e.license.id,"aria-haspopup":"menu",disabled:e.busy},on:{click:e.menu}},[e._v("\n            ⋯\n        ")]),e._v(" "),t("div",{ref:"menu",staticClass:"fixed m-0 w-60 rounded-lg border-0 bg-white p-1.5 text-left text-sm text-zinc-700 shadow-lg ring-1 ring-black/10",attrs:{popover:""},on:{click:e.closeMenu}},[e.license.actions.assign?t("button",{staticClass:"w-full rounded-md px-3 py-2 text-left hover:bg-zinc-100",attrs:{type:"button"},on:{click:function(t){return e.$emit("action","assign")}}},[e._v("\n                "+e._s(e.license.site||e.license.domain?"Change site":"Assign to a site")+"\n            ")]):e._e(),e._v(" "),e.license.actions.unassign?t("button",{staticClass:"w-full rounded-md px-3 py-2 text-left hover:bg-zinc-100",attrs:{type:"button"},on:{click:function(t){return e.$emit("action","unassign")}}}
2,[e._v("\n                Unassign\n            ")]):e._e(),e._v(" "),e.license.actions.renew?t("a",{staticClass:"block rounded-md px-3 py-2 hover:bg-zinc-100",attrs:{href:e.license.actions.renew}},[e._v("Renew once…")]):e._e(),e._v(" "),e.license.renewal_details_url?t("a",{staticClass:"block rounded-md px-3 py-2 hover:bg-zinc-100",attrs:{href:e.license.renewal_details_url}},[e._v("Renewal details")]):e._e(),e._v(" "),e.license.actions.payment_pending?t("button",{staticClass:"w-full rounded-md px-3 py-2 text-left hover:bg-zinc-100",attrs:{type:"button"},on:{click:function(t){return e.$emit("renew",!0)}}},[e._v("\n                Complete renewal payment…\n            ")]):e._e(),e._v(" "),e._l(e.license.actions.upgrades,(function(n){return t("a",{key:n.url,staticClass:"block rounded-md px-3 py-2 hover:bg-zinc-100",attrs:{href:n.url}},[e._v(e._s(n.label))])})),e._v(" "),e.license.actions.restore?t("button",{staticClass:"w-full rounded-md px-3 py-2 text-left hover:bg-zinc-100",attrs:{type:"button"},on:{click:function(t){return e.$emit("action","restore")}}},[e._v("\n                Restore\n            ")]):e._e(),e._v(" "),e.license.archived?e._e():t("button",{staticClass:"w-full rounded-md px-3 py-2 text-left hover:bg-zinc-100 disabled:text-zinc-400",attrs:{type:"button",disabled:!e.license.actions.archive},on:{click:function(t){return e.$emit("action","archive")}}},[e._v("\n                Archive"),e.license.actions.archive_reason?t("span",{staticClass:"mt-0.5 block text-xs"},[e._v(e._s(e.license.actions.archive_reason))]):e._e()])],2)]}),{license:e.license})],2):e._e()])}),[],!1,null,null,null).exports},898:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={components:{LicenseModal:n(7348).A},props:{license:Object,quote:Object,busy:Boolean,error:String},data:function(){return{coupon:this.quote.coupon_code||""}},computed:{confirmLabel:function(){return this.busy?"Saving…":this.quote.amount_due?"Pay "+this.money(this.quote.amount_due)+" & enable":"Enable Auto-Renew"}},methods:{money:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e/100)}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("license-modal",{attrs:{title:"Turn on Auto-Renew",description:e.license.product.name,busy:e.busy},on:{close:function(t){return e.$emit("close")}}},[t("div",{staticClass:"rounded-lg bg-[#faf8f7] p-4"},[t("div",{staticClass:"flex items-baseline justify-between gap-4"},[t("span",{staticClass:"text-sm text-zinc-500"},[e._v("Due today")]),e._v(" "),t("span",{staticClass:"text-2xl font-semibold tracking-tight"},[e._v(e._s(e.money(e.quote.amount_due)))])]),e._v(" "),t("p",{staticClass:"mt-3 text-sm text-zinc-600"},[e._v("\n            "+e._s(e.money(e.quote.annual_amount))+"/year starting "+e._s(e.quote.starts)+". Cancel anytime.\n        ")])]),e._v(" "),e.quote.payment_method?t("div",{staticClass:"mt-4 flex items-center justify-between gap-3 text-sm"},[t("span",{staticClass:"text-zinc-600"},[t("span",{staticClass:"capitalize"},[e._v(e._s(e.quote.payment_method.brand))]),e._v("\n            ending in "+e._s(e.quote.payment_method.last4)+"\n        ")]),e._v(" "),t("a",{staticClass:"text-purple hover:underline",attrs:{href:e.quote.billing_url}},[e._v("Change")])]):t("p",{staticClass:"mt-4 text-sm text-zinc-500"},[e._v("Add a payment method to continue.")]),e._v(" "),t("form",{staticClass:"mt-4 flex gap-2",on:{submit:function(t){return t.preventDefault(),e.$emit("coupon",e.coupon)}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.coupon,expression:"coupon"}],staticClass:"h-9 min-w-0 flex-1 rounded-md border-0 px-3 text-base ring-1 ring-black/10 focus:ring-purple sm:text-sm",attrs:{type:"text",name:"coupon_code","aria-label":"Discount code",placeholder:"Discount code"},domProps:{value:e.coupon},on:{input:function(t){t.target.composing||(e.coupon=t.target.value)}}}),e._v(" "),t("button",{staticClass:"rounded-md px-3 py-1.5 text-sm ring-1 ring-black/10 hover:bg-zinc-50 disabled:opacity-50",attrs:{type:"submit",disabled:e.busy}},[e._v("\n            Apply\n        ")])]),e._v(" "),e.error?t("p",{staticClass:"mt-3 text-sm text-red",attrs:{role:"alert"}}
2,[e._v(e._s(e.error))]):e._e(),e._v(" "),e.quote.payment_method?t("button",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white hover:bg-zinc-800 focus-visible:outline-purple disabled:opacity-50",attrs:{slot:"footer",type:"button",disabled:e.busy},on:{click:function(t){return e.$emit("confirm")}},slot:"footer"},[e._v("\n        "+e._s(e.confirmLabel)+"\n    ")]):t("a",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white",attrs:{slot:"footer",href:e.quote.billing_url},slot:"footer"},[e._v("\n        Add payment method\n    ")])])}),[],!1,null,null,null).exports},8182:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(3944);const r={props:{existingValues:Array},data:function(){return{values:this.existingValues}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("div",[t("v-select",{attrs:{multiple:"",taggable:"","no-drop":"","close-on-select":!1},model:{value:e.values,callback:function(t){e.values=t},expression:"values"}}),e._v(" "),e._l(e.values,(function(e){return t("input",{key:e,attrs:{type:"hidden",name:"expertise[]"},domProps:{value:e}})}))],2)}),[],!1,null,null,null).exports},7683:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(3944);const r={props:{tags:Array,existingSelections:Array},data:function(){var e=this;return{value:this.existingSelections.map((function(t){return e.tags.find((function(e){return e.id===t}))}))}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("div",[t("v-select",{attrs:{multiple:"","close-on-select":!1,options:e.tags,label:"name"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),e._v(" "),e._l(e.value,(function(e){return t("input",{key:e.id,attrs:{type:"hidden",name:"specialties[]"},domProps:{value:e.id}})}))],2)}),[],!1,null,null,null).exports},9592:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(432);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={components:{draggable:n.n(r)()},props:{initialDomains:Array},data:function(){var e=this;return{domains:(this.initialDomains||[]).map((function(t,n){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:e._uid+"-"+n},t)})),nextId:(this.initialDomains||[]).length}},watch:{domains:function(e){0===e.length&&this.add()}},methods:{add:function(){var e=this;this.domains.push({id:this._uid+"-"+this.nextId++,url:"",environment:0===this.domains.length?"production":"testing"}),this.$nextTick((function(){e.$el.querySelectorAll("input")[e.domains.length-1].focus()}))},remove:function(e){this.domains.splice(e,1)}}};var l=n(5072),c=n.n(l),u=n(7275),d={insert:"head",singleton:!1};c()(u.A,d);u.A.locals;const h=(0,n(4486).A)(s,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"relative max-w-xl flex flex-col space-y-6"},[t("draggable",{staticClass:"flex flex-col space-y-6",attrs:{handle:".dh-rail","ghost-class":"dd-ghost","chosen-class":"dd-chosen","drag-class":"dd-drag"},model:{value:e.domains,callback:function(t){e.domains=t},expression:"domains"}},e._l(e.domains,(function(n,r){return t("div",{key:n.id,staticClass:"group flex items-stretch"},[e.domains.length>1?t("div",{staticClass:"dh-rail cursor-grab active:cursor-grabbing flex items-center justify-center overflow-hidden rounded-md text-grey-300 group-hover:text-grey-600 group-hover:bg-grey-lightest w-0 mr-0 group-hover:w-5 group-hover:mr-2 transition-all duration-200",attrs:{title:"Drag to reorder"}},[t("svg",{staticClass:"w-3.5 h-3.5 shrink-0",attrs:{viewBox:"0 0 20 20",fill:"currentColor"}},[t("circle",{attrs:{cx:"7",cy:"4",r:"1.5"}}),t("circle",{attrs:{cx:"13",cy:"4",r:"1.5"}}),t("circle",{attrs:{cx:"7",cy:"10",r:"1.5"}}),t("circle",{attrs:{cx:"13",cy:"10",r:"1.5"}}),t("circle",{attrs:{cx:"7",cy:"16",r:"1.5"}}),t("circle",{attrs:{cx:"13",cy:"16",r:"1.5"}}
2)])]):e._e(),e._v(" "),t("div",{staticClass:"border border-grey-400 rounded-md flex items-center flex-1 h-9 focus-within:ring-1 max-w-md"},[t("div",{staticClass:"text-sm bg-gradient-to-b from-grey-lightest to-grey-200 px-2 flex items-center h-full w-32 rounded-l-md"},[t("select",{directives:[{name:"model",rawName:"v-model",value:n.environment,expression:"domain.environment"}],staticClass:"bg-transparent focus:outline-none w-40",class:{"text-grey-600":null===n.environment},attrs:{name:"domains[".concat(r,"][environment]")},on:{change:function(t){var r=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.$set(n,"environment",t.target.multiple?r:r[0])}}},[t("option",{attrs:{value:"production"}},[e._v("Production")]),e._v(" "),t("option",{attrs:{value:"testing"}},[e._v("Testing")])])]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:n.url,expression:"domain.url"}],staticClass:"border-l ring-0 focus:outline-none border-grey-400 px-3 h-full w-full rounded-r-md text-sm",attrs:{type:"text",name:"domains[".concat(r,"][url]")},domProps:{value:n.url},on:{input:function(t){t.target.composing||e.$set(n,"url",t.target.value)}}})]),e._v(" "),t("button",{staticClass:"ml-2 flex items-center font-medium text-sm h-9 px-3 py-1 rounded-md border hover:bg-grey-lightest border-grey-400",on:{click:function(t){return t.preventDefault(),e.remove(r)}}},[e._v("Remove")])])})),0),e._v(" "),t("div",[t("button",{staticClass:"inline-block bg-black text-white text-sm h-9 px-4 py-1 rounded-md hover:bg-black/80",on:{click:function(t){return t.preventDefault(),e.add.apply(null,arguments)}}},[e._v("Add Domain")])])],1)}),[],!1,null,"3d22006d",null).exports},5891:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(2505),i=n.n(r),o=n(5006),a=n(5668),s=n(7348),l=n(1696),c=n(898);const u={components:{LicenseModal:s.A},props:{site:Object,licenses:Array,busy:Boolean,error:String},data:function(){return{search:"",selected:null}},mounted:function(){var e=this;this.$nextTick((function(){return e.$refs.search.focus()}))},watch:{search:function(){this.selected=null},licenses:function(){this.selected=null}},computed:{matches:function(){var e=this.search.trim().toLowerCase();return this.licenses.filter((function(t){return[t.product.name,t.product.edition].join(" ").toLowerCase().includes(e)}))}},methods:{coverage:function(e){return"Unactivated"===e.updates.status?"Unactivated":e.updates.date?e.updates.status+" "+e.updates.date:"No expiration"}}};var d=n(4486);const h=(0,d.A)(u,(function(){var e=this,t=e._self._c;return t("license-modal",{attrs:{title:"Attach a license",description:e.site.name,busy:e.busy},on:{close:function(t){return e.$emit("close")}}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],ref:"search",staticClass:"mb-3 h-10 w-full rounded-lg border-0 px-3 text-base ring-1 ring-black/10 focus:ring-purple sm:text-sm",attrs:{name:"license_search",type:"search","aria-label":"Search available licenses",placeholder:"Search licenses…"},domProps:{value:e.search},on:{input:function(t){t.target.composing||(e.search=t.target.value)}}}),e._v(" "),t("div",{staticClass:"space-y-2"},[e._l(e.matches,(function(n){return t("label",{key:n.id,staticClass:"group flex cursor-pointer items-center gap-3 rounded-lg p-3 ring-1 ring-black/10 hover:bg-[#faf8f7] has-[:checked]:bg-purple/5 has-[:checked]:ring-purple/50 has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-purple"},[n.product.thumbnail?t("img",{staticClass:"size-9 shrink-0 rounded-md object-contain",attrs:{src:n.product.thumbnail,alt:""}}):e._e(),e._v(" "),t("div",{staticClass:"min-w-0 flex-1"},[t("div",{staticClass:"text-base font-medium sm:text-sm"},[e._v("\n                    "+e._s(n.product.name)+"\n                    "),n.product.edition?t("span",{staticClass:"font-normal text-zinc-500"},[e._v("\n                        "+e._s(n.product.edition)+"\n                    ")]):e._e()]),e._v(" "),t("div",{staticClass:"mt-0.5 text-sm text-zinc-500"},[e._v(e._s(e.coverage(n)))])]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],staticClass:"size-4 shrink-0 text-purple focus:ring-purple",attrs:{type:"radio",name:"attach_license","aria-label":n.product.name+", license "+n.id,disabled:e.busy},domProps:{value:n.id,checked:e._q(e.selected,n.id)},on:{change:function(t){e.selected=n.id}}})])})),e._v(" "),e.matches.length?e._e():t("div",{staticClass:"rounded-lg bg-[#faf8f7] px-4 py-6 text-center text-sm text-zinc-500"},[e._v("\n            "+e._s(e.search?"No matching licenses.":"No available licenses for this site.")+"\n            "),e.search?e._e():t("p",{staticClass:"mt-1"},[e._v("\n                Only unassigned licenses for products this site doesn’t already own appear here.\n            ")])])],2),e._v(" "),e.error?t("p",{staticClass:"mt-3 rounded-lg bg-red/5 p-3 text-sm text-red",attrs:{role:"alert"}}
vendor: 4,370 bytes, line 2
2,[e._v(e._s(e.error))]):e._e(),e._v(" "),t("button",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white hover:bg-zinc-800 focus-visible:outline-purple disabled:opacity-40",attrs:{slot:"footer",type:"button",disabled:e.busy||!e.selected},on:{click:function(t){return e.$emit("attach",e.selected)}},slot:"footer"},[e._v("\n        "+e._s(e.busy?"Attaching…":"Attach license")+"\n    ")])])}),[],!1,null,null,null).exports;function f(e){return f="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},f(e)}function p(){p=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};c(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,a)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==f(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=h;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(f(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=c(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,
2c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),c(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function g(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,s,"next",e)}function s(e){g(o,r,i,a,s,"throw",e)}a(void 0)}))}}const v={mixins:[o.A],components:{LicenseRow:a.A,LicenseModal:s.A,LicenseNotification:l.A,RenewalModal:c.A,AttachLicenseModal:h},props:{initial:Object},data:function(){return{listing:this.initial,loading:!1,error:"",actionError:null,busy:{},rowErrors:{},retries:{},renewing:null,archiving:null,removing:null,attaching:!1,attachingBusy:!1,attachError:""}},computed:{renewalContext:function(){return{return_to:"site"}}},methods:{renewalSaved:function(){history.replaceState(history.state,"",location.pathname+"#product-licenses"),location.reload()},load:function(){var e=this;return m(p().mark((function t(){var n,r;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!0,e.error="",t.prev=2,t.next=5,i().get(e.listing.url);case 5:n=t.sent,r=n.data,e.listing=r,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(2),e.error="Could not refresh licenses.";case 13:return t.prev=13,e.loading=!1,t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[2,10,13,16]])})))()},attach:function(e){var t=this;return m(p().mark((function n(){var r;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.attachingBusy){n.next=2;break}return n.abrupt("return");case 2:return t.attachingBusy=!0,t.attachError="",n.prev=4,n.next=7,i().post(t.listing.assign_url,{site:t.listing.site.id,licenses:[e],unassigned_only:!0});case 7:history.replaceState(history.state,"",location.pathname+"#product-licenses"),location.reload(),n.next=16;break;case 11:return n.prev=11,n.t0=n.catch(4),t.attachError=Object.values((null===(r=n.t0.response)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.errors)||{}).flat()[0]||"Could not attach this license. Please try again.",n.next=16,t.load();case 16:return n.prev=16,t.attachingBusy=!1,n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[4,11,16,19]])})))()},remove:function(e){var t=this;this.run(e,m(p().mark((function n(){return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,i().post(t.listing.unassign_url,{license:e.id,site:t.listing.site.id});case 2:t.removing=null,history.replaceState(history.state,"",location.pathname+"#product-licenses"),location.reload();case 5:case"end":return n.stop()}}),n)}))))}}};const y=(0,d.A)(v,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"card",attrs:{id:"product-licenses"}},[e._m(0),e._v(" "),e.error?t("p",{staticClass:"mx-6 mb-3 text-sm text-red",attrs:{role:"alert"}},[e._v(e._s(e.error)+" "),t("button",{staticClass:"underline",attrs:{type:"button"},on:{click:e.load}}
2,[e._v("Retry")])]):e._e(),e._v(" "),t("div",{staticClass:"overflow-x-auto",attrs:{"aria-busy":e.loading}},[t("table",{staticClass:"table-card w-full min-w-[520px] !rounded-none !shadow-none",class:{"opacity-60":e.loading}},[e._m(1),e._v(" "),t("tbody",[e._l(e.listing.licenses,(function(n){return t("license-row",{key:n.id,attrs:{license:n,"show-site":!1,busy:!!e.busy[n.id]},on:{renew:function(t){return e.renew(n,t)}}},[t("template",{slot:"actions"},[n.actions.unassign?t("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:"Remove from site",html:!1},expression:"{ content: 'Remove from site', html: false }"}],staticClass:"relative flex size-8 items-center justify-center rounded-md text-zinc-400 hover:bg-red/5 hover:text-red focus-visible:outline-purple disabled:opacity-40",attrs:{type:"button",disabled:!!e.busy[n.id],"aria-label":"Remove "+n.product.name+" from this site"},on:{click:function(t){e.removing=n,e.$delete(e.rowErrors,n.id)}}},[t("svg",{staticClass:"size-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5","aria-hidden":"true"}},[t("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13M10 10v7m4-7v7"}})]),e._v(" "),t("span",{staticClass:"absolute -inset-2 sm:inset-0",attrs:{"aria-hidden":"true"}})]):t("span",{staticClass:"text-zinc-300",attrs:{title:"This license cannot be removed"}},[e._v("—")])])],2)})),e._v(" "),e.listing.licenses.length?e._e():t("tr",[t("td",{staticClass:"!py-8 text-center text-sm text-zinc-500",attrs:{colspan:"4"}},[e._v("No licenses attached."),e.listing.available.length?e._e():t("a",{staticClass:"ml-2 text-purple hover:underline",attrs:{href:e.listing.buy_url}},[e._v("Get Statamic Pro →")])])])],2)])]),e._v(" "),t("footer",{staticClass:"flex justify-end rounded-b-xl border-t border-grey-400 bg-grey-lightest px-6 py-2"},[t("button",{staticClass:"shrink-0 rounded-md bg-white px-3 py-1.5 text-sm ring-1 ring-black/10 hover:bg-zinc-50 focus-visible:outline-purple",attrs:{type:"button",disabled:e.loading},on:{click:function(t){e.attaching=!0,e.attachError=""}}},[e._v("\n            Attach license\n        ")])]),e._v(" "),e.attaching?t("attach-license-modal",{attrs:{site:e.listing.site,licenses:e.listing.available,busy:e.attachingBusy,error:e.attachError},on:{close:function(t){e.attaching=!1},attach:e.attach}}):e._e(),e._v(" "),e.removing?t("license-modal",{attrs:{title:"Remove license from site?",description:e.removing.product.name,busy:!!e.busy[e.removing.id]},on:{close:function(t){e.removing=null}}},[t("p",{staticClass:"text-sm text-zinc-600"},[e._v("This license will become unassigned and available to use on another site.")]),e._v(" "),e.removing.auto_renew?t("p",{staticClass:"mt-2 text-sm text-zinc-600"}
2,[e._v("Auto-Renew will stay on for this license.")]):e._e(),e._v(" "),e.rowErrors[e.removing.id]?t("p",{staticClass:"mt-3 text-sm text-red",attrs:{role:"alert"}},[e._v(e._s(e.rowErrors[e.removing.id]))]):e._e(),e._v(" "),t("button",{staticClass:"rounded-md bg-black px-3 py-2 text-sm text-white focus-visible:outline-purple disabled:opacity-40",attrs:{slot:"footer",type:"button",disabled:!!e.busy[e.removing.id]},on:{click:function(t){return e.remove(e.removing)}},slot:"footer"},[e._v("\n            "+e._s(e.busy[e.removing.id]?"Removing…":"Remove license")+"\n        ")])]):e._e(),e._v(" "),e.renewing?t("renewal-modal",{attrs:{license:e.renewing.license,quote:e.renewing.quote,busy:!!e.busy[e.renewing.license.id],error:e.rowErrors[e.renewing.license.id]},on:{close:function(t){e.renewing=null},coupon:function(t){return e.quote(e.renewing.license,t)},confirm:function(t){return e.saveRenewal(e.renewing.license,!0,e.renewing.quote)}}}):e._e(),e._v(" "),!e.actionError||e.renewing||e.removing?e._e():t("license-notification",{attrs:{error:e.actionError},on:{retry:function(t){return e.retry(e.actionError.license.id)},close:function(t){e.actionError=null}}})],1)}),[function(){var e=this,t=e._self._c;return t("header",{staticClass:"p-6"},[t("h2",{staticClass:"text-xl"},[e._v("Product Licenses")]),e._v(" "),t("p",{staticClass:"max-w-3xl text-sm text-grey-600 mt-3"},[e._v("Manage the licenses attached to this site.")])])},function(){var e=this,t=e._self._c;return t("thead",[t("tr",[t("th",[e._v("Product")]),t("th",{staticClass:"whitespace-nowrap"},[e._v("Expires")]),t("th",{staticClass:"whitespace-nowrap"},[e._v("Auto-Renew")]),t("th",[t("span",{staticClass:"sr-only"},[e._v("Remove")])])])])}],!1,null,null,null).exports},3813:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(2505),i=n.n(r),o=n(5668),a=n(5006),s=n(1696),l=n(898);function c(e){return c="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},c(e)}function u(){u=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};d(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,a)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,o,a,s){var l=f(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==c(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 5,560 bytes, line 2
2(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(c(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=d(w,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),d(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),d(_,l,"Generator"),d(_,a,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}const h={components:{LicenseRow:o.A,LicenseNotification:s.A,RenewalModal:l.A},mixins:[a.A],props:{initial:Object,csrf:String,subscriptionsUrl:String,invoicesUrl:String,licensesUrl:String},data:function(){return{listing:this.initial,canceling:null,filter:"all",search:"",loading:!1,error:"",busy:{},rowErrors:{},retries:{},actionError:null,renewing:null}},computed:{showActions:function(){return this.visible.some((function(e){return e.billing.payment_url||e.billing.cancel_url}))},renewalContext:function(){return{return_to:"subscriptions"}},filters:function(){return[{value:"all",label:"All"},{value:"on",label:"Auto-Renew on"},{value:"off",label:"Off"},{value:"attention",label:"Needs attention"}]},visible:function(){var e=this;return this.listing.licenses.filter((function(t){return e.matches(t,e.filter)&&e.matchesSearch(t)}))}},methods:{matches:function(e,t){switch(t){case"attention":return e.billing.attention;case"on":return e.auto_renew;case"off":return!e.auto_renew;default:return!0}},matchesSearch:function(e){var t,n;return[e.product.name,e.product.edition,null===(t=e.site)||void 0===t?void 0:t.name,null===(n=e.site)||void 0===n?void 0:n.domain,e.domain,e.id].filter(
2Boolean).join(" ").toLowerCase().includes(this.search.trim().toLowerCase())},count:function(e){var t=this;return this.listing.licenses.filter((function(n){return t.matches(n,e)})).length},money:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e/100)},load:function(){var e,t=this;return(e=u().mark((function e(){var n,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,t.error="",e.prev=2,e.next=5,i().get(t.subscriptionsUrl);case 5:n=e.sent,r=n.data,t.listing=r,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),t.error="Could not refresh your subscriptions.";case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){d(o,r,i,a,s,"next",e)}function s(e){d(o,r,i,a,s,"throw",e)}a(void 0)}))})()}}};const f=(0,n(4486).A)(h,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"wrapper py-8"},[t("header",{staticClass:"mb-5 flex flex-wrap items-start justify-between gap-4"},[e._m(0),e._v(" "),t("a",{staticClass:"btn btn-sm shrink-0",attrs:{href:e.invoicesUrl}},[e._v("View invoices")])]),e._v(" "),e.listing.licenses.length?t("div",{staticClass:"mb-4 flex flex-wrap items-center justify-between gap-3"},[t("div",{staticClass:"flex flex-wrap gap-1 rounded-lg bg-zinc-100 p-1 text-sm",attrs:{role:"group","aria-label":"Filter renewals"}},e._l(e.filters,(function(n){return t("button",{key:n.value,staticClass:"rounded-md px-3 py-1.5 focus-visible:outline-purple",class:e.filter===n.value?"bg-white text-black shadow-sm ring-1 ring-black/5":"text-zinc-500 hover:text-black",attrs:{type:"button","aria-pressed":e.filter===n.value},on:{click:function(t){e.filter=n.value}}},[e._v("\n                "+e._s(n.label)+" "),t("span",{staticClass:"ml-1 tabular-nums text-zinc-400"},[e._v(e._s(e.count(n.value)))])])})),0),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.search,expression:"search"}],staticClass:"w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-sm focus:border-purple focus:ring-purple sm:w-64",attrs:{type:"search",name:"subscription_search","aria-label":"Search products or sites",placeholder:"Search products or sites…"},domProps:{value:e.search},on:{input:function(t){t.target.composing||(e.search=t.target.value)}}})]):e._e(),e._v(" "),e.error?t("p",{staticClass:"mb-3 text-sm text-red",attrs:{role:"alert"}},[e._v("\n        "+e._s(e.error)+"\n        "),t("button",{staticClass:"underline",attrs:{type:"button"},on:{click:e.load}},[e._v("Retry")])]):e._e(),e._v(" "),t("div",{staticClass:"overflow-x-auto rounded-xl shadow-sm-soft ring-1 ring-black/5",attrs:{"aria-busy":e.loading}},[t("table",{staticClass:"table-card w-full min-w-[760px]",class:{"opacity-60":e.loading}},[t("thead",[t("tr",[t("th",{staticClass:"whitespace-nowrap"},[e._v("Product")]),e._v(" "),t("th",{staticClass:"whitespace-nowrap"},[e._v("Site")]),e._v(" "),t("th",{staticClass:"whitespace-nowrap"},[e._v("Next renewal")]),e._v(" "),t("th",{staticClass:"whitespace-nowrap"},[e._v("Auto-Renew")]),e._v(" "),e.showActions?t("th",[t("span",{staticClass:"sr-only"},[e._v("Actions")])]):e._e()])]),e._v(" "),t("tbody",[e._l(e.visible,(function(n){return t("license-row",{key:n.id,attrs:{license:n,"show-actions":e.showActions,busy:!!e.busy[n.id]},on:{renew:function(t){return e.renew(n,t)}}},[t("template",{slot:"coverage"},[n.billing.attention?[t("div",{staticClass:"text-xs text-red"},[t("span",{staticClass:"inline-flex rounded-md bg-red/5 px-2 py-1"},[e._v("\n                                    "+e._s(n.billing.status)+"\n                                ")])])]:n.auto_renew?[t("div",{staticClass:"text-zinc-700 tabular-nums"},[e._v(e._s(n.billing.date||"Date pending"))]),e._v(" "),null!==n.billing.amount?t("div",{staticClass:"mt-0.5 text-xs text-zinc-500 tabular-nums"},[e._v(e._s(e.money(n.billing.amount))+" / year")]):e._e()]:[t("div",{staticClass:"text-zinc-400",attrs:{"aria-label":"No scheduled renewal"}},[e._v("—")]),e._v(" "),n.updates.date?t("div",{staticClass:"mt-0.5 text-xs text-zinc-500"},[e._v(e._s("Expired"===n.updates.status?"Expired":"Covered until")+" "+e._s(n.updates.date))]):e._e(
2)]],2),e._v(" "),t("template",{slot:"actions"},[n.billing.payment_url?t("a",{staticClass:"btn btn-sm whitespace-nowrap",attrs:{href:n.billing.payment_url}},[e._v("Resolve payment")]):e._e(),e._v(" "),n.billing.cancel_url?t("form",{attrs:{action:n.billing.cancel_url,method:"post"},on:{submit:function(t){e.canceling=n.id}}},[t("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"_method",value:"DELETE"}}),e._v(" "),t("button",{staticClass:"btn btn-sm whitespace-nowrap",attrs:{type:"submit",disabled:e.canceling===n.id}},[e._v("Turn off Auto-Renew")])]):e._e()])],2)})),e._v(" "),e.visible.length?e._e():t("tr",[t("td",{staticClass:"!py-12 text-center",attrs:{colspan:e.showActions?5:4}},[t("div",{staticClass:"font-medium text-zinc-700"},[e._v(e._s(e.listing.licenses.length?"No matching renewals":"No license renewals yet"))]),e._v(" "),t("p",{staticClass:"mt-1 text-sm text-zinc-500"},[e._v(e._s(e.listing.licenses.length?"Try another search or filter.":"Turn on Auto-Renew from your licenses to keep updates and support current."))]),e._v(" "),e.listing.licenses.length?t("button",{staticClass:"mt-3 text-sm text-purple hover:underline",attrs:{type:"button"},on:{click:function(t){e.search="",e.filter="all"}}},[e._v("Clear filters")]):t("a",{staticClass:"btn btn-sm mt-4",attrs:{href:e.licensesUrl}},[e._v("Manage licenses")])])])],2)])]),e._v(" "),t("footer",{staticClass:"mt-4 flex flex-wrap items-center justify-between gap-3 text-sm text-zinc-500"},[t("p",{staticClass:"tabular-nums"},[e._v(e._s(e.visible.length)+" "+e._s(1===e.visible.length?"license":"licenses"))]),e._v(" "),t("a",{staticClass:"hover:text-purple",attrs:{href:e.licensesUrl}},[e._v("Manage all licenses →")])]),e._v(" "),e.actionError&&!e.renewing?t("license-notification",{attrs:{error:e.actionError},on:{retry:function(t){return e.retry(e.actionError.license.id)},close:function(t){e.actionError=null}}}):e._e(),e._v(" "),e.renewing?t("renewal-modal",{attrs:{license:e.renewing.license,quote:e.renewing.quote,busy:!!e.busy[e.renewing.license.id],error:e.rowErrors[e.renewing.license.id]},on:{close:function(t){e.renewing=null},coupon:function(t){return e.quote(e.renewing.license,t)},confirm:function(t){return e.saveRenewal(e.renewing.license,!0,e.renewing.quote)}}}):e._e()],1)}),[function(){var e=this,t=e._self._c;return t("div",[t("h2",{staticClass:"text-xl font-normal"},[e._v("License renewals")]),e._v(" "),t("p",{staticClass:"mt-1 text-sm text-zinc-500"},[e._v("\n                Keep updates and support going. Your sites keep working if you turn Auto-Renew off.\n            ")])])}],!1,null,null,null).exports},9319:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9292);const i={mixins:[{components:{"vue-recaptcha":n.n(r)()},data:function(){return{recaptcha:null,recaptchaSiteKey:window.Laravel.recaptchaSiteKey,verifyingRecaptcha:!1}},computed:{isVerified:function(){return null!==this.recaptcha}},methods:{recaptchaSubmit:function(){if(!this.recaptchaSiteKey)return this.submit();this.verifyingRecaptcha||(this.verifyingRecaptcha=!0,this.$refs.recaptcha.execute())},recaptchaVerified:function(e){this.verifyingRecaptcha=!1,this.recaptcha=e,this.submit()},recaptchaReset:function(){this.verifyingRecaptcha=!1,this.recaptcha=null,this.$refs.recaptcha.reset()}}}],methods:{submit:function(){this.$el.submit()}}};const o=(0,n(4486).A)(i,(function(){var e=this,t=e._self._c;return t("form",{attrs:{method:"POST"},on:{submit:function(t){return t.preventDefault(),e.recaptchaSubmit.apply(null,arguments)}}},[e._t("default"),e._v(" "),e.recaptchaSiteKey?t("vue-recaptcha",{ref:"recaptcha",attrs:{size:"invisible",sitekey:e.recaptchaSiteKey},on:{verify:e.recaptchaVerified}}):e._e()],2)}),[],!1,null,null,null).exports},2136:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(6049),i=n.n(r);const o={props:{initialClips:{type:Array,default:function(){return["/audio/buckshot-click.mp3","/audio/buckshot-fool.mp3","/audio/buckshot-friendly.mp3","/audio/buckshot-game.mp3","/audio/buckshot-mmm.mp3","/audio/buckshot-pick.mp3","/audio/buckshot-reading.mp3","/audio/buckshot-scrolling.mp3","/audio/buckshot-spicy.mp3","/audio/buckshot-sp
2oken.mp3","/audio/buckshot-tickled.mp3","/audio/buckshot-what.mp3","/audio/buckshot-buck.mp3","/audio/buckshot-name.mp3"]}}},data:function(){return{clips:this.initialClips,currentClipIndex:0}},created:function(){this.clips=i()(this.clips)},methods:{play:function(){this.$refs.clip.pause(),this.$refs.clip.currentTime=0,this.$refs.clip.src=this.clips[this.currentClipIndex],this.$refs.clip.play(),this.increment()},increment:function(){this.currentClipIndex++,this.clips[this.currentClipIndex]||(this.currentClipIndex=0)}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("div",{on:{click:e.play}},[e._t("default"),e._v(" "),t("audio",{ref:"clip"},[t("source",{attrs:{type:"audio/mpeg"}})])],2)}),[],!1,null,null,null).exports},2509:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(4692),i=n.n(r),o=n(5093),a=n.n(o),s=n(7834),l=n.n(s);const c={props:{earliestDate:String,initialStartDate:String,initialEndDate:String},data:function(){return{}},mounted:function(){var e=this;new(l())({element:i()(".daterange--double"),earliest_date:a()(this.earliestDate),same_day_range:!0,latest_date:a()(),start_date:this.initialStartDate,end_date:this.initialEndDate,format:{input:"MMM D YYYY"},required:!1,callback:function(){e.$emit("changed",{from:this.start_date.format("YYYY-MM-DD"),to:this.end_date.format("YYYY-MM-DD")})}})}};const u=(0,n(4486).A)(c,(function(){return(0,this._self._c)("div",{staticClass:"daterange daterange--double"})}),[],!1,null,null,null).exports},2825:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1283);const i={props:["value"],data:function(){return{countries:r.A.all()}}};const o=(0,n(4486).A)(i,(function(){var e=this,t=e._self._c;return t("select",{domProps:{value:e.value},on:{input:function(t){return e.$emit("input",t.target.value)}}},[t("option",{domProps:{value:null}},[e._v("Select Country...")]),e._v(" "),e._l(e.countries,(function(n,r){return t("option",{key:r,domProps:{value:r}},[e._v(e._s(n))])}))],2)}),[],!1,null,null,null).exports},2306:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:["success","error"],data:function(){return{showing:!1,messageType:"",message:""}},mounted:function(){this.success&&this.showSuccess(this.success),this.error&&this.showError(this.error),this.$bus.$on("flash.message",this.showSuccess),this.$bus.$on("flash.error",this.showError)},methods:{showSuccess:function(e){this.showing=!0,this.message=e,this.messageType="success",this.timeout()},showError:function(e){this.showing=!0,this.message=e,this.messageType="error",this.timeout()},timeout:function(){var e=this;setTimeout((function(){e.showing=!1}),4e3)}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"slide-fade"}},[e.showing?t("div",{staticClass:"clippy-flash-container"},[t("div",{staticClass:"bubble drop-shadow-[0_0_1px_rgba(0,0,0,1)]"},[e._v(e._s(e.message))]),e._v(" "),t("img",{staticClass:"mr-4 mt-3",attrs:{src:"/img/easter-eggs/clippy.svg",width:"60",alt:"It's Clippy!"}})]):e._e()])}),[],!1,null,null,null).exports},5541:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={data:function(){return{submitMethod:"post",errors:{},isSubmitting:!1}},methods:{resetErrors:function(){return this.errors={}},hasError:function(e){return this.errors.hasOwnProperty(e)},getError:function(e){var t=this.errors[e];return"string"==typeof t?t:t[0]},submit:function(){var e=this;this.resetErrors(),this.isSubmitting=!0,i()[this.submitMethod](this.submitUrl,this.payload).then((function(t){e.isSubmitting=!1,e.onSubmitSuccess(t)})).catch((function(t){e.isSubmitting=!1,e.errors=t.response.data.errors,e.onSubmitError(t)}))},onSubmitSuccess:function(e){e.data.redirect?window.location=e.data.redirect:window.location.reload()},onSubmitError:function(e){}}};const a=(0,n(4486).A)(o,undefined,undefined,!1,null,null,null).exports},6989:(e,t,n)=>{"use strict";function r(e){return function(e){if(Array.isArray(e))return i(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){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(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 i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>R});var o=n(2505),a=n.n(o),s=n(2871);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?c(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h={props:{cart:Object,disabled:Boolean,error:String,announcement:String},computed:{renewable:function(){return this.cart.items.some((function(e){return e.eligible}))},columns:function(){return{gridTemplateColumns:this.renewable?"minmax(0,1fr) 5rem 3.5rem":"minmax(0,1fr) 3.5rem"}},groups:function(){var e=this;return this.cart.groups.filter((function(t){return e.rows(t).length}))}},methods:u(u({},s.A),{},{renew:function(e,t){this.$emit("renew",e,t.target.checked),t.target.checked=e.enabled}})};var f=n(4486);const p=(0,f.A)(h,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col gap-4",attrs:{"aria-busy":e.disabled}},[t("header",{staticClass:"grid items-center gap-3",style:e.columns},[t("h2",{staticClass:"text-lg font-medium"},[e._v("Your Cart")]),e._v(" "),e.renewable?t("p",{staticClass:"text-right text-sm text-zinc-500 whitespace-nowrap"},[e._v("Auto-Renew")]):e._e(),e._v(" "),t("span",{staticClass:"sr-only"},[e._v("Price")])]),e._v(" "),e._l(e.groups,(function(n){return t("section",{key:n.id,staticClass:"flex flex-col gap-1"},["later"!==n.id||e.groups.length>1?t("h3",{staticClass:"text-sm text-zinc-500"},[e._v(e._s(n.name))]):e._e(),e._v(" "),t("div",{staticClass:"divide-y divide-black/5"},e._l(e.rows(n),(function(r){return t("div",{key:r.id,staticClass:"grid items-center gap-3 py-3",style:e.columns},[t("div",{staticClass:"flex min-w-0 items-center gap-2"},[r.thumbnail?t("img",{staticClass:"h-8 w-8 shrink-0 object-contain",attrs:{src:r.thumbnail,alt:""}}):e._e(),e._v(" "),t("div",{staticClass:"min-w-0 text-sm"},[t("p",{staticClass:"font-medium break-words"},[e._v(e._s(r.name))]),e._v(" "),r.edition||r.one_off_renewal||r.quantity>1?t("p",{staticClass:"text-zinc-500"},[e._v("\n                            "+e._s([r.edition,r.one_off_renewal?"Renewal":null,r.quantity>1?"× "+r.quantity:null].filter(Boolean).join(" · "))+"\n                        ")]):e._e()])]),e._v(" "),e.renewable?t("div",{staticClass:"flex items-center justify-end gap-2"},[r.eligible?t("div",{staticClass:"relative inline-flex w-7 shrink-0 rounded-full bg-zinc-200 p-0.5 ring-1 ring-inset ring-black/5 has-[:checked]:bg-purple has-[:focus-visible]:outline has-[:focus-visible]:outline-2 has-[:focus-visible]:outline-purple outline-offset-2 group"}
2,[t("span",{staticClass:"aspect-square w-1/2 rounded-full bg-white ring-1 ring-black/5 transition-transform duration-200 group-has-[:checked]:translate-x-full"}),e._v(" "),t("input",{staticClass:"absolute inset-x-0 -inset-y-1.5 w-full appearance-none cursor-pointer focus:outline-none disabled:cursor-wait",attrs:{type:"checkbox",name:"auto_renew",role:"switch",title:"Auto-Renew "+(r.enabled?"On — ":"Off — ")+e.description(r),"aria-label":"Auto-Renew for "+r.name+" — "+n.name,disabled:e.disabled},domProps:{checked:r.enabled},on:{change:function(t){return e.renew(r,t)}}})]):t("span",{staticClass:"text-sm text-zinc-400",attrs:{"aria-label":"Auto-Renew unavailable"}},[e._v("—")])]):e._e(),e._v(" "),t("p",{staticClass:"text-right text-sm font-medium tabular-nums"},[e._v(e._s(e.money(r.cost)))])])})),0)])})),e._v(" "),e.error?t("div",{staticClass:"text-sm text-red-700",attrs:{role:"alert"}},[t("p",[e._v(e._s(e.error))]),e._v(" "),t("button",{staticClass:"underline py-1",attrs:{type:"button",disabled:e.disabled},on:{click:function(t){return e.$emit("retry")}}},[e._v("Retry")])]):e._e(),e._v(" "),t("p",{staticClass:"sr-only",attrs:{role:"status"}},[e._v(e._s(e.announcement))])],2)}),[],!1,null,null,null).exports;const g={props:{title:String,isCurrentStep:Boolean}};const m=(0,f.A)(g,(function(){var e=this,t=e._self._c;return t("section",{staticClass:"flex items-center space-x-4"},[t("div",{staticClass:"w-full border border-gray-300 rounded-lg p-4"},[t("div",{staticClass:"flex items-center justify-between mb-4"},[t("h3",{staticClass:"text-lg font-normal flex-1"},[e._v(e._s(e.title))]),e._v(" "),e._t("action",(function(){return[e.isCurrentStep?e._e():t("button",{staticClass:"btn btn-sm",on:{click:function(t){return e.$emit("edit")}}},[e._v("\n\t\t\t\t\tEdit\n\t\t\t\t")])]}))],2),e._v(" "),e._t("default")],2)])}),[],!1,null,null,null).exports;var v=n(1283);const y={mixins:[n(5541).A],components:{CheckoutStep:m},props:{isCurrentStep:Boolean,submitUrl:String},data:function(){return{company:this.$user.company,address:this.$user.address,address2:this.$user.address2,city:this.$user.city,state:this.$user.state,postcode:this.$user.postcode,country:this.$user.country,vatNumber:this.$user.vatNumber}},computed:{countryName:function(){return v.A.name(this.country)},payload:function(){return{company:this.company,address:this.address,address2:this.address2,city:this.city,country:this.country,state:this.state,postcode:this.postcode,vat_number:this.vatNumber}}},methods:{onSubmitSuccess:function(e){window.Laravel.currentUser=e.data.user,this.$emit("completed")}}};const b=(0,f.A)(y,(function(){var e=this,t=e._self._c;return t("CheckoutStep",{attrs:{title:"Bill To","is-current-step":e.isCurrentStep},on:{edit:function(t){return e.$emit("edit")}}},[e.isCurrentStep?e._e():t("div",{staticClass:"billing-details"},[e.company?[e._v(e._s(e.company)+", ")]:e._e(),e._v("\n\t\t"+e._s(e.address)+",\n\t\t"),e.address2?[e._v(e._s(e.address2)+", ")]:e._e(),e._v("\n\t\t"+e._s(e.city)+", "+e._s(e.state)+" "+e._s(e.postcode)+", "+e._s(e.countryName)+"\n\t\t"),e.vatNumber?[t("br"),e._v("VAT: "+e._s(e.vatNumber))]:e._e()],2),e._v(" "),e.isCurrentStep?t("div",{staticClass:"billing-fields space-y-3"},[t("div",[t("label",{staticClass:"input-label"},[e._v("Company Name (optional)")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.company,expression:"company"}],staticClass:"input-text",attrs:{type:"text",name:"company",placeholder:"Company"},domProps:{value:e.company},on:{input:function(t){t.target.composing||(e.company=t.target.value)}}}),e._v(" "),e.errors.company?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.company[0]))]):e._e()]),e._v(" "),t("div",[t("label",{staticClass:"input-label"},[e._v("Address")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.address,expression:"address"}],staticClass:"input-text",attrs:{type:"text",name:"address",placeholder:"Address"},domProps:{value:e.address},on:{input:function(t){t.target.composing||(e.address=t.target.value)}}}),e._v(" "),e.errors.address?t("p",{staticClass:"text-rose-500"}
2,[e._v(e._s(e.errors.address[0]))]):e._e()]),e._v(" "),t("div",[t("label",{staticClass:"input-label"},[e._v("Address 2")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.address2,expression:"address2"}],staticClass:"input-text",attrs:{type:"text",name:"address2",placeholder:"Apt, suite, etc (optional)"},domProps:{value:e.address2},on:{input:function(t){t.target.composing||(e.address2=t.target.value)}}}),e._v(" "),e.errors.address2?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.address2[0]))]):e._e()]),e._v(" "),t("div",{staticClass:"grid grid-cols-3 gap-4"},[t("div",{staticClass:"relative col-span-2"},[t("label",{staticClass:"input-label"},[e._v("City")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.city,expression:"city"}],staticClass:"input-text",attrs:{type:"text",name:"city",placeholder:"City"},domProps:{value:e.city},on:{input:function(t){t.target.composing||(e.city=t.target.value)}}}),e._v(" "),e.errors.city?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.city[0]))]):e._e()]),e._v(" "),t("div",[t("label",{staticClass:"input-label"},[e._v("Zip/Postcode")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.postcode,expression:"postcode"}],staticClass:"input-text",attrs:{type:"text",name:"postcode",placeholder:"Zip/Postcode"},domProps:{value:e.postcode},on:{input:function(t){t.target.composing||(e.postcode=t.target.value)}}}),e._v(" "),e.errors.postcode?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.postcode[0]))]):e._e()])]),e._v(" "),t("div",{staticClass:"grid grid-cols-2 gap-4"},[t("div",[t("label",{staticClass:"input-label"},[e._v("Country")]),e._v(" "),t("country-select",{staticClass:"input-select",attrs:{name:"country"},model:{value:e.country,callback:function(t){e.country=t},expression:"country"}}),e._v(" "),e.errors.country?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.country[0]))]):e._e()],1),e._v(" "),t("div",[t("label",{staticClass:"input-label"},[e._v("State/Province")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.state,expression:"state"}],staticClass:"input-text",attrs:{type:"text",name:"state",placeholder:"State"},domProps:{value:e.state},on:{input:function(t){t.target.composing||(e.state=t.target.value)}}}),e._v(" "),e.errors.state?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.state[0]))]):e._e()])]),e._v(" "),t("div",[t("label",{staticClass:"input-label"},[e._v("VAT (optional)")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.vatNumber,expression:"vatNumber"}],staticClass:"input-text",attrs:{type:"text",name:"vat",placeholder:"VAT"},domProps:{value:e.vatNumber},on:{input:function(t){t.target.composing||(e.vatNumber=t.target.value)}}}),e._v(" "),e.errors.vat_number?t("p",{staticClass:"text-rose-500"},[e._v(e._s(e.errors.vat_number[0]))]):e._e()]),e._v(" "),t("div",{staticClass:"flex items-center pt-3"},[t("button",{staticClass:"btn-black",on:{click:e.submit}},[e._v("Save & Continue")]),e._v(" "),t("p",{staticClass:"ml-3 text-xs text-gray-600"},[e._v("Billing details will be used for future transactions.")])])]):e._e()])}),[],!1,null,null,null).exports;function x(e){return x="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},x(e)}function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function b(){}var k={};c(k,a,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,a)&&(k=S);var _=b.prototype=v.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,563 bytes, line 2
2))}function L(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==x(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function T(t,n,r){var i=h;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?g:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(x(t)+" is not iterable")}return y.prototype=b,i(_,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),c(L.prototype,s,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),c(_,l,"Generator"),c(_,a,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function k(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function C(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){k(o,r,i,a,s,"next",e)}function s(e){k(o,r,i,a,s,"throw",e)}a(void 0)}))}}const S={components:{CheckoutStep:m},props:{isCurrentStep:Boolean,total:Number,checkoutUrl:String,paymentUrl:String},data:function(){return{error:null,activePaymentMethod:null,intentType:null,preparedSecret:null,preparing:!0,requestVersion:0,stripe:null,elements:null,isAddingPaymentMethod:!0}},computed:{cardIconUrl:function(){if(this.activePaymentMethod&&"card"===this.activePaymentMethod.type)return"/img/checkout/"+this.activePaymentMethod.card_brand.toLowerCase().replace(" ","-")+".svg"},cardBrandName:function(){if(this.activePaymentMethod&&"card"===this.activePaymentMethod.type)switch(this.activePaymentMethod.card_brand){case"amex":return"American Express";case"diners":return"Diners Club";case"discover":return"Discover";case"eftpos_au":return"Eftpos Australia";case"jcb":return"JCB";case"mastercard":return"MasterCard";case"unionpay":return"UnionPay";case"visa":return"Visa";case"unknown":return"unknown";default:return this.activePaymentMethod.card_brand}}},mounted:function(){this.stripe=Stripe(window.Laravel.stripeKey),this.prepare()},beforeDestroy:function(){var e;this.requestVersion++,this.elements&&(null===(e=this.elements.getElement("payment"))||void 0===e||e.destroy())},watch:{total:function(){this.prepare()},isAddingPaymentMethod:function(){var e=this;this.error=null,this.$nextTick((function(){e.isAddingPaymentMethod&&e.preparedSecret&&e.mountStripeElements()}))}},methods:{prepare:function(){var e=this;return C(w().mark((function t(){var r,i,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=++e.requestVersion,e.preparing=!0,e.$emit("loading",!0),e.error=null,t.prev=4,t.next=7,n(2505).default.post(e.paymentUrl);case 7:if(o=t.sent,r===e.requestVersion){t.next=10;break}return t.abrupt("return");case 10:return e.elements&&(null===(i=e.elements.getElement("payment"))||void 0===i||i.destroy()),e.elements=null,e.activePaymentMethod=o.data.payment_method,e.intentType=o.data.intent_type,e.preparedSecret=o.data.client_secret,e.isAddingPaymentMethod=!e.activePaymentMethod,t.next=18,e.$nextTick();case 18:e.isAddingPaymentMethod&&!e.elements&&e.mountStripeElements(),t.next=25;break;case 21:t.prev=21,t.t0=t.catch(4),e.error="Payment could not be loaded. Please refresh and try again.",e.preparedSecret=null;case 25:return t.prev=25,r===e.requestVersion&&(e.preparing=!1,e.$emit("loading",!1)),t.finish(25);case 28:case"end":return t.stop()}}),t,null,[[4,21,25,28]])})))()},mountStripeElements:function(){this.elements=this.stripe.elements({clientSecret:this.preparedSecret,appearance:{theme:"stripe"}}),this.elements.create("payment",{layout:{type:"tabs"}}).mount("#payment-element")},submit:function(){var e=this;return C(w().mark((function t(){var n,r;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.preparing&&e.preparedSecret){t.next=2;break}throw new Error("Payment is not ready.");case 2:if(e.error=null,t.prev=3,0!==e.total||e.isAddingPaymentMethod){t.next=7;break}return window.location.href=e.checkoutUrl,t.abrupt("return");case 7:if(!e.isAddingPaymentMethod){t.next=13;break}return t.next=10,e.confirmNewPaymentMethod();case 10:t.t0=t.sent,t.next=16;break;case 13:return t.next=15,e.confirmExistingPaymentMethod();case 15:t.t0=t.sent;case 16:if(n=t.t0,!(r=n.error)){t.next=20;break}throw r;case 20:t.next=26;break;case 22:throw t.prev=22,t.t1=t.catch(3),e.error=t.t1.message||"Payment failed. Please try again.",t.t1;case 26:case"end":return t.stop()}}),t,null,[[3,22]])})))()},confirmExistingPaymentMethod:function(){var e=this;return C(w().mark((function t(){return w().wrap((function(t){for(;;
2)switch(t.prev=t.next){case 0:return t.next=2,e.stripe["setup"===e.intentType?"confirmSetup":"confirmPayment"]({clientSecret:e.preparedSecret,confirmParams:{return_url:e.checkoutUrl,payment_method:e.activePaymentMethod.id}});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()},confirmNewPaymentMethod:function(){var e=this;return C(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.stripe["setup"===e.intentType?"confirmSetup":"confirmPayment"]({elements:e.elements,confirmParams:{return_url:e.checkoutUrl,payment_method_data:{billing_details:{name:window.Laravel.currentUser.name,email:window.Laravel.currentUser.email,address:{city:window.Laravel.currentUser.city,country:window.Laravel.currentUser.country.toUpperCase(),line1:window.Laravel.currentUser.address,line2:window.Laravel.currentUser.address2,postal_code:window.Laravel.currentUser.postcode,state:window.Laravel.currentUser.state}}}}});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()}}};const _=(0,f.A)(S,(function(){var e=this,t=e._self._c;return t("CheckoutStep",{attrs:{title:"Payment","is-current-step":e.isCurrentStep},on:{edit:function(t){return e.$emit("edit")}},scopedSlots:e._u([{key:"action",fn:function(){return[e.isAddingPaymentMethod?e._e():t("button",{staticClass:"btn btn-sm",attrs:{type:"button"},on:{click:function(t){e.isAddingPaymentMethod=!0}}},[e._v("\n\t\t\tNew Payment Method\n\t\t")])]},proxy:!0}])},[e._v(" "),e.isCurrentStep&&e.isAddingPaymentMethod?t("div",{staticClass:"stripe-card"},[e.preparing?t("p",{attrs:{role:"status"}},[e._v("Preparing payment…")]):e._e(),e._v(" "),0===e.total?t("p",{staticClass:"mb-4 text-zinc-600"},[e._v("Nothing is due today. Save a payment method for future renewals.")]):e._e(),e._v(" "),t("div",{attrs:{id:"payment-element"}})]):t("div",{staticClass:"flex items-center"},[e.activePaymentMethod&&"card"===e.activePaymentMethod.type?[t("img",{staticClass:"mr-2 h-4 rounded-sm shadow-sm-soft",attrs:{src:e.cardIconUrl,alt:e.cardBrandName}}),e._v(" "),t("span",{staticClass:"text-base"},[t("b",[e._v(e._s(e.cardBrandName))]),e._v(" ending in "+e._s(e.activePaymentMethod.card_last4))])]:e.activePaymentMethod&&"paypal"===e.activePaymentMethod.type?[t("img",{staticClass:"mr-2 h-4 rounded-sm shadow-sm-soft",attrs:{src:"/img/checkout/paypal.svg",alt:"PayPal"}}),e._v(" "),t("span",{staticClass:"text-base"},[e._v(e._s(e.activePaymentMethod.paypal_email))])]:e.activePaymentMethod?[t("span",{staticClass:"text-base"},[e._v("\n\t\t\t\t"+e._s(e.activePaymentMethod.type)+"\n\t\t\t")])]:e._e()],2),e._v(" "),e.error?t("p",{staticClass:"text-rose-500 mt-4"},[e._v(e._s(e.error))]):e._e()])}),[],!1,null,null,null).exports;const A={props:{cart:{type:Object,required:!0},disabled:Boolean},computed:{renewable:function(){return Object.values(this.cart.renewals.items||{}).some((function(e){return e.eligible}))},couponLabel:function(){var e;return null!==(e=this.cart.coupon)&&void 0!==e&&e.includes("MASTER_LICENSE_BUNDLE")?"Master License":this.cart.coupon}},methods:{money:function(e){return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:e%100?2:0}).format(e/100)}}};const L=(0,f.A)(A,(function(){var e=this,t=e._self._c;return t("section",{attrs:{"aria-label":"Your order"}},[e._t("default"),e._v(" "),t("div",{staticClass:"border-t border-black/10 mt-6 pt-5 space-y-4 tabular-nums"},[e.cart.coupon?t("div",{staticClass:"flex justify-between gap-4 text-base sm:text-sm"},[t("div",[e._v("\n                Discount\n                "),t("p",{staticClass:"text-zinc-600"},[e._v(e._s(e.couponLabel))])]),e._v(" "),t("div",{staticClass:"text-right"},[e._v("\n                −"+e._s(e.money(e.cart.discount))+"\n                "),t("p",[t("button",{staticClass:"underline text-zinc-600",attrs:{type:"button",disabled:e.disabled},on:{click:function(t){return e.$emit("coupon-removed")}}},[e._v("Remove")])])])]):e._e(),e._v(" "),t("div",{staticClass:"flex justify-between gap-4 text-xl font-medium"},[t("p",[e._v("Due today")]),e._v(" "),t("p",[e._v(e._s(e.money(e.cart.total))+" "),t("span",{staticClass:"font-normal"},[e._v("USD")])])]),e._v(" "),e.renewable?t("div",{staticClass:"flex justify-between gap-4 text-base sm:text-sm"},[t("div",[t("p",{staticClass:"font-medium"},[e._v("Annual renewals")]),e._v(" "),e.cart.renewals.has_renewals?e.cart.renewals.date?t("p",{staticClass:"text-zinc-600"},[e._v("Starting "+e._s(e.cart.renewals.date))]):t("p",{staticClass:"text-zinc-600"},[e._v("Dates vary by license")]):t("p",{staticClass:"text-zinc-600"},[e._v("Auto-Renew is off")])]),e._v(" "),t("p",{staticClass:"shrink-0"},[e._v(e._s(e.cart.renewals.has_renewals?e.money(e.cart.renewals.total)+"/year":"None"))])]):e._e(
2)])],2)}),[],!1,null,null,null).exports;const T={props:{disabled:Boolean,submitUrl:String},mixins:[n(5541).A],data:function(){return{code:null,show:!1}},computed:{payload:function(){return{code:this.code}}},watch:{isSubmitting:function(e){this.$emit("saving",e)}},methods:{onSubmitError:function(){this.$emit("saving",!1)},onSubmitSuccess:function(e){this.$emit("saving",!1),this.$emit("coupon-applied",e.data)}}};const E=(0,f.A)(T,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"mt-4"},[e.show?e._e():t("button",{staticClass:"btn btn-sm bg-tan-dark/10 border-tan-dark/50 text-tan-dark hover:bg-tan-dark/20 hover:text-black/90",attrs:{type:"button",disabled:e.disabled},on:{click:function(t){e.show=!e.show}}},[e._v("Add Discount Code")]),e._v(" "),e.show?t("div",{staticClass:"flex items-center space-x-4"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.code,expression:"code"}],staticClass:"flex-1 block border border-grey-400 p-3 h-9 w-full shadow-inner-soft rounded-md text-sm",attrs:{type:"text",name:"coupon","aria-label":"Discount Code",disabled:e.disabled,placeholder:"Discount Code"},domProps:{value:e.code},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.submit.apply(null,arguments)},input:function(t){t.target.composing||(e.code=t.target.value)}}}),e._v(" "),t("button",{staticClass:"btn bg-tan-dark/10 border-tan-dark/50 text-tan-dark hover:bg-tan-dark/20 hover:text-black/90",attrs:{type:"button",disabled:e.disabled},on:{click:e.submit}},[e._v("Apply")])]):e._e(),e._v(" "),e.errors.code?t("small",{staticClass:"text-rose-500 mt-4"},[e._v(e._s(e.errors.code[0]))]):e._e()])}),[],!1,null,null,null).exports;const O={components:{CheckoutStep:m},props:{isCurrentStep:Boolean}};const M=(0,f.A)(O,(function(){var e=this,t=e._self._c;return t("CheckoutStep",{attrs:{title:"Payment","is-current-step":e.isCurrentStep},on:{edit:function(t){return e.$emit("edit")}}},[t("p",[e._v("Thanks to the discount, you've got nothing to pay.")])])}),[],!1,null,null,null).exports;function P(e){return P="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},P(e)}function D(){D=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new O(r||[]);return i(a,"_invoke",{value:A(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",f="suspendedYield",p="executing",g="completed",m={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(M([])));k&&k!==n&&r.call(k,a)&&(x=k);var C=b.prototype=v.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==P(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function A(t,n,r){var i=h;return function(o,a){if(i===p)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=L(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=p;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?g:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function L(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 4,723 bytes, line 2
2(n.method="return",n.arg=e,L(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function M(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(P(t)+" is not iterable")}return y.prototype=b,i(C,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(_.prototype),c(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=M,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(E),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:M(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function N(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function I(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){N(o,r,i,a,s,"next",e)}function s(e){N(o,r,i,a,s,"throw",e)}a(void 0)}))}}const F={components:{CartSummary:p,OrderSummary:L,CouponForm:E},props:{initialCart:Object,checkoutUrl:String,paymentUrl:String,billingUrl:String,renew
2alsUrl:String,applyCouponUrl:String,removeCouponUrl:String},data:function(){return{cart:this.initialCart,cartError:"",cartAnnouncement:"",retryRenewal:null,renewalSaving:!1,paymentPreparing:!1,currentStep:"billing",isSubmitting:!1}},computed:{total:function(){return this.cart.total},discount:function(){return this.cart.discount},couponCode:function(){return this.cart.coupon},renewals:function(){return this.cart.renewals},steps:function(){var e=this;return[{handle:"billing",component:b,props:function(){return{submitUrl:e.billingUrl}}},{handle:"free_order",component:M,if:function(){return e.isFree&&!e.renewals.has_renewals}},{handle:"payment",component:_,if:function(){return!e.isFree||e.renewals.has_renewals},props:function(){return{total:e.total,checkoutUrl:e.checkoutUrl,paymentUrl:e.paymentUrl}}}].filter((function(e){return!e.if||e.if()}))},needsPayment:function(){return!this.isFree||this.renewals.has_renewals},isFree:function(){return 0==this.total},canCheckout:function(){return this.currentStep===this.steps[this.steps.length-1].handle}},watch:{needsPayment:function(e){e||"payment"!==this.currentStep||(this.currentStep="free_order"),e&&"free_order"===this.currentStep&&(this.currentStep="payment")}},methods:{shouldShowStep:function(e){var t=this;return this.steps.findIndex((function(t){return t.handle===e.handle}))<=this.steps.findIndex((function(e){return e.handle===t.currentStep}))},stepCompleted:function(e){var t;this.currentStep=null===(t=this.steps[this.steps.findIndex((function(t){return t.handle===e.handle}))+1])||void 0===t?void 0:t.handle},checkout:function(){var e=this;this.renewalSaving||this.needsPayment&&this.paymentPreparing||(this.isSubmitting=!0,this.needsPayment?this.$refs["step-payment"][0].submit().catch((function(){return e.isSubmitting=!1})):window.location.href=this.checkoutUrl)},renew:function(e,t){var n=this;return I(D().mark((function r(){var i,o;return D().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.renewalSaving&&!n.isSubmitting){r.next=2;break}return r.abrupt("return");case 2:return n.cartError="",n.renewalSaving=!0,n.retryRenewal=[e,t],r.prev=5,r.next=8,a().patch(n.renewalsUrl,{ids:e.ids,enabled:t});case 8:i=r.sent,n.cart=i.data,n.retryRenewal=null,n.cartAnnouncement="Cart updated.",r.next=17;break;case 14:r.prev=14,r.t0=r.catch(5),n.cartError=Object.values((null===(o=r.t0.response)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.errors)||{}).flat().join(" ")||"Your change could not be saved. Please try again.";case 17:return r.prev=17,n.renewalSaving=!1,r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[5,14,17,20]])})))()},couponApplied:function(e){this.cart=e},removeCoupon:function(){var e=this;return I(D().mark((function t(){return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.renewalSaving=!0,t.prev=1,t.next=4,a().delete(e.removeCouponUrl);case 4:e.cart=t.sent.data;case 5:return t.prev=5,e.renewalSaving=!1,t.finish(5);case 8:case"end":return t.stop()}}),t,null,[[1,,5,8]])}
2)))()}}};const R=(0,f.A)(F,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"checkout-area flex flex-col md:grid"},[t("h1",{staticClass:"order-first px-6 pt-6 text-3xl font-medium md:hidden"},[e._v("Checkout")]),e._v(" "),t("div",{staticClass:"main order-2 md:order-none min-w-0"},[t("div",{staticClass:"h-full w-full p-6 md:p-8 md:max-w-[43rem] flex flex-col space-y-8"},[t("h1",{staticClass:"hidden md:block text-3xl font-medium"},[e._v("Checkout")]),e._v(" "),e._l(e.steps,(function(n){return e.shouldShowStep(n)?t("div",{key:n.handle},[t(n.component,e._b({ref:"step-".concat(n.handle),refInFor:!0,tag:"component",attrs:{"is-current-step":e.currentStep===n.handle},on:{edit:function(t){e.currentStep=n.handle},completed:function(t){return e.stepCompleted(n)},loading:function(t){e.paymentPreparing=t}}},"component",n.props?n.props():{},!1))],1):e._e()})),e._v(" "),e.canCheckout?t("button",{staticClass:"btn-black-lg w-full rounded-lg relative disabled:opacity-50 disabled:cursor-wait",attrs:{type:"button",disabled:e.isSubmitting||e.renewalSaving||e.needsPayment&&e.paymentPreparing,"data-loading":e.isSubmitting},on:{click:e.checkout}},[t("div",{staticClass:"[[data-loading]>&]:opacity-0"},[e._v(e._s(e.total>0?"Pay $"+(e.total/100).toFixed(2):"Complete order"))]),e._v(" "),t("div",{staticClass:"[[data-loading]>&]:opacity-100 opacity-0 absolute inset-0 flex items-center justify-center"},[t("svg",{staticClass:"shrink-0 h-6 w-6 animate-spin",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true"}},[t("circle",{staticClass:"opacity-25",attrs:{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}}),e._v(" "),t("path",{staticClass:"opacity-75",attrs:{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"}})])])]):e._e(),e._v(" "),e._m(0)],2)]),e._v(" "),t("div",{staticClass:"order-summary order-1 md:order-none min-w-0 bg-tan-light md:border-l border-black/10"},[t("div",{staticClass:"w-full md:max-w-[29rem] p-6 md:p-8"},[t("div",{staticClass:"flex-1"},[t("order-summary",{attrs:{cart:e.cart,disabled:e.renewalSaving||e.isSubmitting},on:{"coupon-removed":e.removeCoupon}},[t("cart-summary",{attrs:{cart:e.cart,disabled:e.renewalSaving||e.isSubmitting,error:e.cartError,announcement:e.cartAnnouncement},on:{renew:e.renew,retry:function(t){return e.renew.apply(e,r(e.retryRenewal))}}})],1),e._v(" "),e.couponCode?e._e():t("coupon-form",{attrs:{"submit-url":e.applyCouponUrl,disabled:e.renewalSaving||e.isSubmitting},on:{saving:function(t){e.renewalSaving=t},"coupon-applied":e.couponApplied}})],1)])])])}),[function(){var e=this,t=e._self._c;return t("section",{staticClass:"flex-1 flex flex-col justify-end"},[t("div",{staticClass:"border-t border-gray-300 pt-3"},[t("ul",{staticClass:"list-reset flex space-x-3 text-sm"},[t("li",[t("a",{staticClass:"text-purple underline hover:text-purple-dark",attrs:{target:"_blank",href:"/license"}},[e._v("License Agreement")])]),e._v(" "),t("li",[t("a",{staticClass:"text-purple underline hover:text-purple-dark",attrs:{target:"_blank",href:"/terms"}},[e._v("Terms of Service")])]),e._v(" "),t("li",[t("a",{staticClass:"text-purple underline hover:text-purple-dark",attrs:{target:"_blank",href:"/privacy"}},[e._v("Privacy Policy")])])])])])}],!1,null,null,null).exports},8272:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:{multiple:Boolean,count:Number,limit:Number},data:function(){return{dragDepth:0}},computed:{isDragging:function(){return this.dragDepth>0}},methods:{dragEnter:function(e){Array.from(e.dataTransfer.types).includes("Files")&&this.dragDepth++},dragOver:function(e){Array.from(e.dataTransfer.types).includes("Files")&&(e.dataTransfer.dropEffect="copy")},dragLeave:function(){this.dragDepth=Math.max(0,this.dragDepth-1)},drop:function(e){this.dragDepth=0,this.$emit("files",Array.from(e.dataTransfer.files))},choose:function(e){this.$emit("files",Array.from(e.target.files)),e.target.value=""}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-wrap items-center justify-between gap-3 rounded-lg border border-dashed px-4 py-3",class:e.isDragging?"border-purple bg-purple-lighter ring-2 ring-purple/20":"border-black/15",on:{dragenter:function(t){return t.preventDefault(),e.dragEnter.apply(null,arguments)},dragover:function(t){return t.preventDefault(),e.dragOver.apply(null,arguments)},dragleave:function(t){return t.preventDefault(),e.dragLeave.apply(null,arguments)},drop:function(t){return t.preventDefault(),e.drop.apply(null,arguments)}}},[t("div",[t("p",{staticClass:"text-sm",class:e.isDragging?"text-purple-dark":"text-black/70"},[e._v(e._s(e.isDragging?e.multiple?"Release to add images":"Release to use thumbnail":e.multiple?"Drop images here":"Drop a thumbnail here"))]),t("p",{staticClass:"mt-1 text-xs text-black/45"},[e._v("PNG, JPG, GIF, WebP · 5 MB max"+e._s(e.multiple?" · "+e.count+"/"+e.limit:""))])]),e._v(" "),t("label",{staticClass:"inline-flex cursor-pointer rounded-md border border-black/15 bg-white px-3 py-2 text-sm text-black/75 shadow-sm hover:bg-black/5 focus-within:ring-2 focus-within:ring-purple"},[e._v("\n        "+e._s(e.multiple?"Add images":"Choose image")+"\n        "),t("input",{staticClass:"sr-only",attrs:{type:"file",multiple:e.multiple,accept:"image/png,image/jpeg,image/gif,image/webp"},on:{change:e.choose}})])])}),[],!1,null,null,null).exports},5979:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(2505),i=n.n(r),o=n(5093),a=n.n(o);const s={components:{StatTile:n(7005).A,RevenueChart:n(3213).A},props:{sellerCreatedAt:String,hasRenewals:Boolean,salesReportUrl:String},data:function(){return{requestId:0,period:"30D",periods:[{key:"7D",label:"7D"},{key:"30D",label:"30D"},{key:"90D",label:"90D"},{key:"MTD",label:"MTD"},{key:"YTD",label:"YTD"},{key:"ALL",label:"All"},{key:"custom",label:"Custom"}],dateFrom:a()().subtract(29,"days").format("YYYY-MM-DD"),dateTo:a()().format("YYYY-MM-DD"),revenue:"–",revenueDelta:"–",renewals:"–",renewalsDelta:"–",subscriptions:"–",productsSold:"–",productsSoldDelta:"–",newCustomers:"–",newCustomersDelta:"–",totalCustomers:"–",totalCustomersDelta:"–",series:[],topProducts:[],granularity:"day",userPickedGranularity:!1}},computed:{hasDateRange:function(){return this.dateFrom&&this.dateTo},rangeLabel:function(){if(!this.hasDateRange)return"";var e=a()(this.dateFrom),t=a()(this.dateTo),n=e.year()===t.year(),r=n&&e.month()===t.month();return e.isSame(t,"day")?e.format("MMM D, YYYY"):r?"".concat(e.format("MMM D"),"–").concat(t.format("D, YYYY")):n?"".concat(e.format("MMM D")," – ").concat(t.format("MMM D, YYYY")):"".concat(e.format("MMM D, YYYY")," – ").concat(t.format("MMM D, YYYY"))},revenueSeries:function(){return this.bucketedSeries.map((function(e){return e.net}))},salesSeries:function(){return this.bucketedSeries.map((function(e){return e.sales}))},renewalsSeries:function(){return this.bucketedSeries.map((function(e){return e.renew
2als}))},subscriptionsSeries:function(){return this.bucketedSeries.map((function(e){return e.subscriptions}))},newCustomersSeries:function(){return this.bucketedSeries.map((function(e){return e.new_customers}))},topProductMax:function(){return this.topProducts.reduce((function(e,t){return Math.max(e,t.net||0)}),1)},rangeDays:function(){return this.hasDateRange?a()(this.dateTo).diff(a()(this.dateFrom),"days")+1:0},granularityOptions:function(){var e=[];return this.rangeDays<=92&&e.push({key:"day",label:"Daily"}),this.rangeDays>=14&&e.push({key:"week",label:"Weekly"}),this.rangeDays>=60&&e.push({key:"month",label:"Monthly"}),e},bucketedSeries:function(){if(!this.series.length)return[];if("day"===this.granularity)return this.series;var e="week"===this.granularity?"isoWeek":"month",t=new Map;return this.series.forEach((function(n){var r=a()(n.date).startOf(e).format("YYYY-MM-DD");t.has(r)||t.set(r,{date:r,net:0,sales:0,renewals:0,renewals_net:0,new_customers:0});var i=t.get(r);i.net+=n.net||0,i.sales+=n.sales||0,i.renewals+=n.renewals||0,i.subscriptions=n.subscriptions||0,i.renewals_net+=n.renewals_net||0,i.new_customers+=n.new_customers||0})),Array.from(t.values()).sort((function(e,t){return e.date.localeCompare(t.date)}))}},mounted:function(){this.request()},watch:{granularityOptions:{immediate:!0,handler:function(e){e.map((function(e){return e.key})).includes(this.granularity)||(this.granularity=this.defaultGranularity(),this.userPickedGranularity=!1)}}},methods:{defaultGranularity:function(){return this.rangeDays>180?"month":this.rangeDays>60?"week":"day"},setGranularity:function(e){this.granularity=e,this.userPickedGranularity=!0},setPeriod:function(e){this.userPickedGranularity=!1,this.period=e;var t=a()();switch(e){case"7D":this.dateFrom=t.clone().subtract(6,"days").format("YYYY-MM-DD"),this.dateTo=t.format("YYYY-MM-DD");break;case"30D":this.dateFrom=t.clone().subtract(29,"days").format("YYYY-MM-DD"),this.dateTo=t.format("YYYY-MM-DD");break;case"90D":this.dateFrom=t.clone().subtract(89,"days").format("YYYY-MM-DD"),this.dateTo=t.format("YYYY-MM-DD");break;case"MTD":this.dateFrom=t.clone().startOf("month").format("YYYY-MM-DD"),this.dateTo=t.format("YYYY-MM-DD");break;case"YTD":this.dateFrom=t.clone().startOf("year").format("YYYY-MM-DD"),this.dateTo=t.format("YYYY-MM-DD");break;case"ALL":this.dateFrom=this.sellerCreatedAt||null,this.dateTo=t.format("YYYY-MM-DD");break;case"custom":return}this.userPickedGranularity||(this.granularity=this.defaultGranularity()),this.request()},updateDateRange:function(e){this.dateFrom=e.from,this.dateTo=e.to,this.period="custom",this.userPickedGranularity||(this.granularity=this.defaultGranularity()),this.request()},barWidth:function(e){return this.topProductMax?Math.max(2,Math.round(e.net/this.topProductMax*100)):0},request:function(){var e=this,t=this.salesReportUrl+"?";this.hasDateRange&&(t+="from="+this.dateFrom+"&to="+this.dateTo);var n=++this.requestId;i().get(t).then((function(t){if(n===e.requestId){var r=t.data;e.revenue=r.net.formatted,e.revenueDelta=r.net.delta,e.totalCustomers=r.customers.value,e.totalCustomersDelta=r.customers.delta,e.newCustomers=r.newCustomers.value,e.newCustomersDelta=r.newCustomers.delta,e.renewals=r.renewals.value,e.renewalsDelta=r.renewals.delta,e.subscriptions=r.subscriptions.value,e.productsSold=r.sales.value,e.productsSoldDelta=r.sales.delta,e.series=r.series||[],e.topProducts=r.topProducts||[]}})).catch((function(){n===e.requestId&&e.$flash.error("Could not load your sales data. Please try again.")}))}}};const l=(0,n(4486).A)(s,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex flex-col gap-3 mb-6 lg:flex-row lg:items-center lg:justify-between"},[t("div",{staticClass:"card inline-flex items-center p-0.5 self-start",attrs:{role:"tablist"}},e._l(e.periods,(function(n){return t("button",{key:n.key,staticClass:"px-3 py-1.5 text-sm font-medium rounded-lg transition-colors tabular-nums",class:e.period===n.key?"bg-black text-white shadow-xs-soft":"text-grey-700 hover:text-black",attrs:{type:"button"},on:{click:function(t){return e.setPeriod(n.key)}}},[e._v(e._s(n.label))])})),0),e._v(" "),t("div",{staticClass:"flex items-center gap-3"},[t("span",{staticClass:"text-sm text-grey-600 tabular-nums"},[e._v(e._s(e.rangeLabel))]),e._v(" "),"custom"===e.period?t("div",{staticClass:"max-w-xs"},[t("calendar",{staticClass:"shadow-xs-soft",attrs:{"earliest-date":e.sellerCreatedAt,"initial-start-date":e.dateFrom,"initial-end-date":e.dateTo},on:{changed:e.updateDateRange}}
2)],1):e._e()])]),e._v(" "),t("div",{staticClass:"card"},[t("div",{staticClass:"grid grid-cols-1 divide-y divide-grey-200 lg:divide-y-0 lg:divide-x",class:e.hasRenewals?"lg:grid-cols-6":"lg:grid-cols-4"},[t("stat-tile",{attrs:{label:"Net Revenue",value:e.revenue,delta:e.revenueDelta,series:e.revenueSeries,format:"currency",color:"#FF269E"}}),e._v(" "),t("stat-tile",{attrs:{label:"Sales",value:e.productsSold,delta:e.productsSoldDelta,series:e.salesSeries,color:"#7C67CB"}}),e._v(" "),e.hasRenewals?t("stat-tile",{attrs:{label:"Renewals",value:e.renewals,delta:e.renewalsDelta,series:e.renewalsSeries,color:"#4A3F74"}}):e._e(),e._v(" "),e.hasRenewals?t("stat-tile",{attrs:{label:"Subscriptions",value:e.subscriptions,delta:null,series:e.subscriptionsSeries,"chart-label":"Currently active licenses enrolled by date",color:"#399B85"}}):e._e(),e._v(" "),t("stat-tile",{attrs:{label:"New Customers",value:e.newCustomers,delta:e.newCustomersDelta,series:e.newCustomersSeries,color:"#FFB47A"}}),e._v(" "),t("stat-tile",{attrs:{label:"Total Customers",value:e.totalCustomers,delta:e.totalCustomersDelta}})],1)]),e._v(" "),t("div",{staticClass:"card mt-6 px-2 pt-4 pb-2 sm:px-4 sm:pt-5"},[t("div",{staticClass:"flex items-end justify-between gap-3 px-3 sm:px-2 mb-2"},[t("div",[t("h2",{staticClass:"text-lg font-medium text-black"},[e._v("Revenue")]),e._v(" "),t("p",{staticClass:"text-sm text-grey-600"},[e._v(e._s(e.rangeLabel))])]),e._v(" "),e.granularityOptions.length>1?t("div",{staticClass:"inline-flex items-center card p-0.5 self-end",attrs:{role:"tablist"}},e._l(e.granularityOptions,(function(n){return t("button",{key:n.key,staticClass:"px-2.5 py-1 text-xs font-medium rounded-lg transition-colors",class:e.granularity===n.key?"bg-black text-white shadow-xs-soft":"text-grey-700 hover:text-black",attrs:{type:"button"},on:{click:function(t){return e.setGranularity(n.key)}}},[e._v(e._s(n.label))])})),0):e._e()]),e._v(" "),t("revenue-chart",{attrs:{series:e.bucketedSeries,granularity:e.granularity,height:320}})],1),e._v(" "),t("div",{staticClass:"mt-6"},[t("div",{staticClass:"flex items-baseline justify-between mb-3"},[t("h2",{staticClass:"text-lg font-medium text-black"},[e._v("Top Products")]),e._v(" "),t("span",{staticClass:"text-sm text-grey-600"},[e._v(e._s(e.rangeLabel))])]),e._v(" "),0===e.topProducts.length?t("div",{staticClass:"card p-6 text-center text-sm text-grey-600"}
2,[e._v("\n            No sales in this range yet.\n        ")]):t("ol",{staticClass:"card divide-y divide-grey-200",attrs:{role:"list"}},e._l(e.topProducts,(function(n,r){return t("li",{key:n.id,staticClass:"flex items-center gap-4 px-4 py-3 sm:px-5 sm:py-4"},[t("span",{staticClass:"text-sm font-semibold text-grey-500 w-5 tabular-nums shrink-0"},[e._v(e._s(r+1))]),e._v(" "),n.thumbnail?t("img",{staticClass:"size-10 rounded object-cover shrink-0",attrs:{src:n.thumbnail,alt:n.name}}):t("div",{staticClass:"size-10 rounded bg-grey-200 shrink-0"}),e._v(" "),t("div",{staticClass:"min-w-0 flex-1"},[n.edit_url?t("a",{staticClass:"text-sm font-medium text-black hover:underline truncate block",attrs:{href:n.edit_url}},[e._v(e._s(n.name))]):t("span",{staticClass:"text-sm font-medium text-grey-700 truncate block"},[e._v(e._s(n.name))]),e._v(" "),t("div",{staticClass:"text-xs text-grey-600 tabular-nums"},[e._v("\n                        "+e._s(n.sales)+" "+e._s(1===n.sales?"sale":"sales")+"\n                        "),n.renewals?[e._v("· "+e._s(n.renewals)+" "+e._s(1===n.renewals?"renewal":"renewals"))]:e._e()],2)]),e._v(" "),t("div",{staticClass:"flex items-center gap-3 shrink-0"},[t("div",{staticClass:"hidden sm:block w-32 h-2 rounded-full bg-grey-200 overflow-hidden"},[t("div",{staticClass:"h-full bg-pink rounded-full",style:{width:e.barWidth(n)+"%"}})]),e._v(" "),t("div",{staticClass:"text-sm font-semibold tabular-nums text-black w-20 text-right"},[e._v(e._s(n.net_formatted))])])])})),0)])])}),[],!1,null,null,null).exports},1794:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(2505),i=n.n(r);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),s=new P(r||[]);return i(a,"_invoke",{value:T(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",g="suspendedYield",m="executing",v="completed",y={};function b(){}function x(){}function w(){}var k={};d(k,l,(function(){return this}));var C=Object.getPrototypeOf,S=C&&C(C(D([])));S&&S!==n&&r.call(S,l)&&(k=S);var _=w.prototype=b.prototype=Object.create(k);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(i,a,s,l){var c=f(e[i],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return a=a?a.then(i,i):i()}})}function T(t,n,r){var i=p;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=f(t,n,r);if("normal"===c.type){if(i=r.done?v:g,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=f(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;
2return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return x.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=d(w,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},A(L.prototype),d(L.prototype,c,(function(){return this})),t.AsyncIterator=L,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new L(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(_),d(_,u,"Generator"),d(_,l,(function(){return this})),d(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=D,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:D(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}const l={props:{products:{type:Array,default:function(){return[]}},previewUrl:{type:String,required:!0},initialMessage:{type:String,default:""},initialProductId:{type:String,default:""},placeholders:{type:Array,default:function(){return[]}},messageError:{type:String,default:""},productIdError:{type:String,default:""},envelope:{type:Object,default:function(){return{subject:"",from_name:"",from_address:"",reply_to:""}}}},data:function(){return{message:this.initialMessage,productId:this.initialProductId,previewHtml:"",loading:!1,placeholder:this.placeholders.length?this.placeholders[Math.floor(Math.random()*this.placeholders.length)]:""}},computed:{canPreview:function(){return this.message.trim().length>0},recipientLabel:function(){var e=this;if(!this.productId)return"Each customer (sent individually)";var t=this.products.find((function(t){return String(t.id)===e.productId}));return t?"Customers who purchased ".concat(t.name):"Each customer (sent individually)"},fromLabel:function(){var e=this.envelope,t=e.from_name,n=e.from_address;return t&&n?"".concat(t," <").concat(n,">"):n||t||""}},watch:{message:function(){this.debouncedPreview()},productId:function(){this.debouncedPreview()}},mounted:function(){var e=this;this.editor=new window.SimpleMDE({element:this.$refs.messageEditor,initialValue:this.initialMessage,placeholder:this.placeholder,spellChecker:!1,status:!1,autoDownloadFontAwesome:!0,toolbar:["bold","italic","heading","|","quote","unordered-list","ordered-list","|","link","image","|","preview","guide"]}),this.editor.codemirror.on("change",(function(){e.message=e.editor.value()})),this.canPreview&&this.preview()},beforeDestroy:function(){clearTimeout(this.debounceTimer),this.editor&&(this.editor.toTextArea(),this.editor=null)},methods:{debouncedPreview:function(){var e=this;clearTimeout(this.debounceTimer),this.canPreview?this.debounceTimer=setTimeout((function(){return e.preview()}),500):this.previewHtml=""},preview:function(){var e,t=this;return(e=a().mark((function e(){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.loading=!0,e.prev=1,e.next=4,i().post(t.previewUrl,{message:t.message,product_id:t.productId});case 4:n=e.sent,r=n.data,t.previewHtml=r,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(1),console.error("Preview failed:",e.t0);case 12:return e.prev=12,t.loading=!1,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)}))})()}}};var c=n(5072),u=n.n(c),d=n(8276),h={insert:"head",singleton:!1};u()(d.A,h);d.A.locals;const f=(0,n(4486).A)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"grid grid-cols-1 lg:grid-cols-2 gap-6 lg:gap-8"},[t("div",{staticClass:"rounded-xl border border-grey-400 bg-white h-[70vh] min-h-[36rem] flex flex-col overflow-hidden"},[t("div",{staticClass:"px-6 py-3 border-b border-grey-300 flex items-center justify-between bg-grey-lightest"},[e._m(0),e._v(" "),t("span",{staticClass:"text-base sm:text-sm text-grey-700 font-mono tabular-nums truncate max-w-xs"},[e._v(e._s(e.recipientLabel))])]),e._v(" "),t("div",{staticClass:"flex-1 min-h-0 flex flex-col divide-y divide-grey-300"},[t("div",{staticClass:"px-6 py-4"},[t("label",{staticClass:"text-lg",attrs:{for:"product_id"}},[e._v("Audience")]),e._v(" "),t("p",{staticClass:"text-base sm:text-sm text-grey-600 mt-1 max-w-3xl"},[e._v("Filter recipients by the product they purchased.")]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.productId,expression:"productId"}],staticClass:"block mt-3 border border-grey-400 px-3 h-10 w-full max-w-lg shadow-inner-soft rounded text-base sm:text-sm",attrs:{id:"product_id",name:"product_id"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,
2(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.productId=t.target.multiple?n:n[0]}}},[t("option",{attrs:{value:""}},[e._v("All Customers")]),e._v(" "),e._l(e.products,(function(n){return t("option",{key:n.id,domProps:{value:String(n.id)}},[e._v(e._s(n.name))])}))],2),e._v(" "),e.productIdError?t("p",{staticClass:"text-red mt-1 text-base sm:text-sm"},[e._v(e._s(e.productIdError))]):e._e()]),e._v(" "),t("div",{staticClass:"px-6 py-4 flex-1 min-h-0 flex flex-col"},[t("label",{staticClass:"text-lg",attrs:{for:"message"}},[e._v("Message")]),e._v(" "),t("p",{staticClass:"form-help-text"},[e._v("Markdown is supported.")]),e._v(" "),t("div",{staticClass:"markdown-editor email-blast-markdown-editor relative mt-3 flex-1 min-h-0"},[t("textarea",{ref:"messageEditor",attrs:{id:"message",name:"message"}})]),e._v(" "),e.messageError?t("p",{staticClass:"text-red text-base sm:text-sm mt-1"},[e._v(e._s(e.messageError))]):e._e()])]),e._v(" "),e._m(1)]),e._v(" "),t("aside",{staticClass:"lg:sticky lg:top-24 h-full"},[t("div",{staticClass:"rounded-xl border border-grey-400 bg-white h-[70vh] min-h-[36rem] flex flex-col overflow-hidden shadow-sm-soft"},[e._m(2),e._v(" "),t("div",{staticClass:"px-5 py-3 border-b border-grey-300 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-base sm:text-sm"},[t("span",{staticClass:"text-grey-600"},[e._v("From")]),t("span",{staticClass:"text-black truncate"},[e._v(e._s(e.fromLabel))]),e._v(" "),t("span",{staticClass:"text-grey-600"},[e._v("Reply-To")]),t("span",{staticClass:"text-black truncate"},[e._v(e._s(e.envelope.reply_to))]),e._v(" "),t("span",{staticClass:"text-grey-600"},[e._v("To")]),t("span",{staticClass:"text-black truncate"},[e._v(e._s(e.recipientLabel))]),e._v(" "),t("span",{staticClass:"text-grey-600"},[e._v("Subject")]),t("span",{staticClass:"text-black truncate"},[e._v(e._s(e.envelope.subject))])]),e._v(" "),t("div",{staticClass:"relative flex-1 min-h-0"},[e.previewHtml?t("iframe",{staticClass:"size-full bg-white",attrs:{srcdoc:e.previewHtml,title:"Email blast preview"}}):t("div",{staticClass:"absolute inset-0 flex items-center justify-center bg-grey-lightest/60"},[e._m(3)])])])])])}),[function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex items-center gap-2"},[t("span",{staticClass:"inline-flex size-2 rounded-full bg-green animate-pulse"}),e._v(" "),t("p",{staticClass:"text-base sm:text-sm font-medium"},[e._v("Composing")])])},function(){var e=this._self._c;return e("div",{staticClass:"border-t border-grey-300 bg-grey-lightest px-6 py-3 flex justify-end items-center gap-2"},[e("button",{staticClass:"text-base sm:text-sm px-4 py-2 rounded-md bg-black text-white hover:bg-black/85",attrs:{type:"submit"}},[this._v("Send blast")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex items-center gap-1.5 px-4 py-2.5 border-b border-grey-300 bg-grey-lightest"},[t("span",{staticClass:"size-3 rounded-full bg-[#ff5f57]"}),e._v(" "),t("span",{staticClass:"size-3 rounded-full bg-[#febc2e]"}),e._v(" "),t("span",{staticClass:"size-3 rounded-full bg-[#28c840]"}),e._v(" "),t("p",{staticClass:"ml-3 text-base sm:text-sm text-grey-700 font-mono"},[e._v("inbox · statamic marketplace")])])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"text-center px-8"},[t("p",{staticClass:"text-xl font-medium tracking-tight"},[e._v("Inbox empty")]),e._v(" "),t("p",{staticClass:"text-base sm:text-sm text-grey-700 mt-2 text-pretty"},[e._v("\n                            Start typing to see your blast as it'll land in their inbox.\n                        ")])])}],!1,null,null,null).exports},3213:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(1781),i=n.n(r),o=n(1009);const a={props:{series:{type:Array,default:function(){return[]}},height:{type:Number,default:300},granularity:{type:String,default:"day"}},computed:{salesData:function(){return this.series.map((function(e){return{x:e.date,y:e.net-(e.renewals_net||0)}}))},renewalsData:function(){return this.series.map((function(e){return{x:e.date,y:e.renewals_net||0}}))},hasRenewals:function(){return this.series.some((function(e){return e.renew
2als_net>0}))},chartOptions:function(){return{series:[{name:"Sales",data:this.salesData},{name:"Renewals",data:this.hasRenewals?this.renewalsData:[]}],chart:{type:"area",height:this.height,fontFamily:"Lexend, Inter, system-ui, sans-serif",toolbar:{show:!1},zoom:{enabled:!1},animations:{enabled:!1},parentHeightOffset:0},stroke:{width:[2.5,2],curve:"smooth",colors:["#FF269E","#4A3F74"]},colors:["#FF269E","#4A3F74"],dataLabels:{enabled:!1},fill:{type:"gradient",gradient:{shade:"light",type:"vertical",shadeIntensity:.4,gradientToColors:["#FF269E","#4A3F74"],inverseColors:!1,opacityFrom:[.4,0],opacityTo:0,stops:[0,100]}},markers:{size:0,strokeWidth:0,hover:{size:5,sizeOffset:0}},grid:{borderColor:"#edf2f7",strokeDashArray:3,padding:{left:8,right:8,top:0,bottom:0},xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},xaxis:{type:"datetime",axisBorder:{show:!1},axisTicks:{show:!1},labels:{style:{colors:"#718096",fontSize:"11px"},datetimeUTC:!1},tooltip:{enabled:!1}},yaxis:{labels:{style:{colors:"#718096",fontSize:"11px"},formatter:function(e){return(0,o.c)(e)}},tooltip:{enabled:!0,offsetX:0,formatter:function(e){return(0,o.c)(e)}}},legend:{show:this.hasRenewals,position:"top",horizontalAlign:"right",fontSize:"12px",labels:{colors:"#718096"}},tooltip:{intersect:!1,x:{format:"month"===this.granularity?"MMM yyyy":"MMM d, yyyy",formatter:"week"===this.granularity?function(e){return"Week of "+new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}:void 0},y:{formatter:function(e){return(0,o.n)(e)}},marker:{show:!1}},noData:{text:"No sales in this range yet.",align:"center",verticalAlign:"middle",style:{color:"#a0aec0",fontSize:"14px"}}}}},mounted:function(){this.chart=new(i())(this.$refs.chart,this.chartOptions),this.chart.render()},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{series:function(){this.refresh()},granularity:function(){this.refresh()}},methods:{refresh:function(){this.chart&&this.chart.updateOptions(this.chartOptions,!1,!1,!1)}}};const s=(0,n(4486).A)(a,(function(){return(0,this._self._c)("div",{ref:"chart",staticClass:"w-full"})}),[],!1,null,null,null).exports},7005:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(1781),i=n.n(r),o=n(3782),a=n(1009);const s={props:{label:{type:String,required:!0},chartLabel:{type:String,default:""},value:{type:[String,Number],default:"-"},delta:{default:0},series:{type:Array,default:function(){return[]}},color:{type:String,default:"#FF269E"},format:{type:String,default:"number"}},computed:{hasDelta:function(){return"-"!==this.delta&&null!==this.delta&&!isNaN(this.delta)},deltaIcon:function(){return this.delta>0?"▲":this.delta<0?"▼":"–"},deltaClasses:function(){return this.delta>0?"text-green-dark bg-green/10 px-1.5 py-0.5 rounded":this.delta<0?"text-red-600 bg-red-100 px-1.5 py-0.5 rounded":"text-grey-600 bg-grey-200 px-1.5 py-0.5 rounded"},hasSpark:function(){return this.series.length>1&&this.series.every((function(e){return Number.isFinite(Number(e))}))},chartOptions:function(){var e="currency"===this.format;return(0,o.U)({series:this.series,label:this.chartLabel||this.label,color:this.color,formatValue:function(t){return e?(0,a.n)(t):Math.round(t).toLocaleString()}})}},mounted:function(){var e=this;this.$nextTick((function(){return e.render()}))},beforeDestroy:function(){this.destroy()},watch:{series:function(){var e=this;this.$nextTick((function(){e.hasSpark?e.chart?e.chart.updateOptions(e.chartOptions,!1,!1,!1):e.render():e.destroy()}))}},methods:{render:function(){this.hasSpark&&this.$refs.spark&&(this.chart&&this.destroy(),this.chart=new(i())(this.$refs.spark,this.chartOptions),this.chart.render())},destroy:function(){var e;null===(e=this.chart)||void 0===e||e.destroy(),this.chart=null}}};const l=(0,n(4486).A)(s,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex flex-col px-5 py-4 sm:px-6 sm:py-5 min-w-0"},[t("div",{staticClass:"flex items-baseline justify-between gap-2"},[t("span",{staticClass:"text-sm font-medium text-grey-700 truncate"},[e._v(e._s(e.label))]),e._v(" "),e.hasDelta?t("span",{staticClass:"inline-flex items-center gap-0.5 text-xs font-semibold tabular-nums shrink-0",class:e.deltaClasse
2s},[t("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.deltaIcon))]),e._v(" "),t("span",[e._v(e._s(Math.abs(e.delta))+"%")])]):e._e()]),e._v(" "),t("div",{staticClass:"mt-2 text-2xl sm:text-3xl font-semibold tabular-nums tracking-tight text-black break-words"},[e._v(e._s(e.value))]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasSpark,expression:"hasSpark"}],ref:"spark",staticClass:"statamic-sparkline mt-3 -mx-1 min-h-[52px] h-[52px]"})])}),[],!1,null,null,null).exports},1425:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(432),i=n.n(r),o=n(8272);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(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 c(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={components:{draggable:i(),ImageDropzone:o.A},props:{limit:{type:Number,default:8}},data:function(){return{assets:(window.ProductVariantAssets||[]).map((function(e){return h(h({},e),{},{key:"saved-"+e.id})})),sequence:0,error:"",announcement:""}},updated:function(){this.syncFiles()},beforeDestroy:function(){this.assets.forEach((function(e){return e.preview&&URL.revokeObjectURL(e.preview)}))},methods:{addFiles:function(e){var t=this,n=[];Array.from(e).forEach((function(e){["image/png","image/jpeg","image/gif","image/webp"].includes(e.type)?e.size>5242880?n.push(e.name+": the maximum size is 5 MB."):t.assets.length>=t.limit?n.push("You can upload up to "+t.limit+" screenshots."):t.assets.push({key:"new-"+ ++t.sequence,file:e,preview:URL.createObjectURL(e)}):n.push(e.name+": use PNG, JPG, GIF or WebP.")})),this.error=l(new Set(n)).join(" "),this.announcement=this.assets.length+" screenshots selected."},syncFiles:function(){var e=this;this.assets.filter((function(e){return e.file}
2)).forEach((function(t){var n=e.$refs["file-"+t.key],r=Array.isArray(n)?n[0]:n;if(r){var i=new DataTransfer;i.items.add(t.file),r.files=i.files}})),this.$el.dispatchEvent(new Event("change",{bubbles:!0}))},remove:function(e){var t=s(this.assets.splice(e,1),1)[0];t.preview&&URL.revokeObjectURL(t.preview),this.error="",this.announcement="Screenshot removed. "+this.assets.length+" remaining."},move:function(e,t){var n=e+t;n<0||n>=this.assets.length||(this.assets.splice(n,0,this.assets.splice(e,1)[0]),this.announceOrder())},announceOrder:function(){this.announcement="Screenshot order updated."}}};const g=(0,n(4486).A)(p,(function(){var e=this,t=e._self._c;return t("div",{attrs:{"aria-describedby":e.error?"screenshots-error":null}},[t("image-dropzone",{attrs:{multiple:"",count:e.assets.length,limit:e.limit},on:{files:e.addFiles}}),e._v(" "),e.error?t("p",{staticClass:"mt-3 text-base sm:text-sm text-red",attrs:{id:"screenshots-error",role:"alert"}},[e._v(e._s(e.error))]):e._e(),e._v(" "),t("draggable",{staticClass:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",attrs:{tag:"ul",role:"list",handle:".screenshot-handle",animation:150},on:{end:e.announceOrder},model:{value:e.assets,callback:function(t){e.assets=t},expression:"assets"}},e._l(e.assets,(function(n,r){return t("li",{key:n.key,staticClass:"min-w-0 rounded-lg border border-black/10 bg-white p-2"},[t("div",{staticClass:"screenshot-handle cursor-grab overflow-hidden rounded-md bg-black/5"},[t("img",{staticClass:"aspect-[3/2] w-full object-contain",attrs:{src:n.preview||"/storage/"+n.path,alt:"",draggable:"false"}})]),e._v(" "),n.id?t("input",{attrs:{type:"hidden",name:"assets["+r+"]"},domProps:{value:n.id}}):t("input",{ref:"file-"+n.key,refInFor:!0,staticClass:"hidden",attrs:{type:"file",name:"assets["+r+"]",tabindex:"-1","aria-hidden":"true"}}),e._v(" "),t("p",{staticClass:"mt-2 truncate text-xs text-black/55"},[e._v(e._s(r+1)+". "+e._s(n.file?n.file.name:n.path.split("/").pop()))]),e._v(" "),t("div",{staticClass:"mt-1 flex items-center justify-between gap-1 text-xs"},[t("div",{staticClass:"flex gap-1"},[t("button",{staticClass:"rounded px-2 py-1 hover:bg-purple-lighter disabled:opacity-30",attrs:{type:"button",disabled:0===r,"aria-label":"Move screenshot "+(r+1)+" earlier"},on:{click:function(t){return e.move(r,-1)}}},[e._v("←")]),e._v(" "),t("button",{staticClass:"rounded px-2 py-1 hover:bg-purple-lighter disabled:opacity-30",attrs:{type:"button",disabled:r===e.assets.length-1,"aria-label":"Move screenshot "+(r+1)+" later"},on:{click:function(t){return e.move(r,1)}}},[e._v("→")])]),e._v(" "),t("button",{staticClass:"rounded px-2 py-1 text-black/65 hover:bg-purple-lighter",attrs:{type:"button","aria-label":"Remove screenshot "+(r+1)},on:{click:function(t){return e.remove(r)}}},[e._v("Remove")])])])})),0),e._v(" "),e.assets.length>1?t("p",{staticClass:"mt-3 text-base sm:text-sm text-black/60"},[e._v("Drag to reorder, or use the arrows.")]):e._e(),e._v(" "),t("p",{staticClass:"sr-only",attrs:{role:"status"}},[e._v(e._s(e.announcement))])],1)}),[],!1,null,null,null).exports},9809:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={components:{ImageDropzone:n(8272).A},data:function(){return{thumbnail:window.ProductVariantThumbnail||null,file:null,previewUrl:null,error:"",announcement:""}},computed:{image:function(){return this.previewUrl||(this.thumbnail?"/storage/"+this.thumbnail.path:null)}},beforeDestroy:function(){this.previewUrl&&URL.revokeObjectURL(this.previewUrl)},methods:{selectFiles:function(e){if(e.length)if(1===e.length){var t=e[0];if(["image/png","image/jpeg","image/gif","image/webp"].includes(t.type))if(t.size>5242880)this.error="The maximum image size is 5 MB.";else{this.previewUrl&&URL.revokeObjectURL(this.previewUrl),this.file=t,this.thumbnail=null,this.previewUrl=URL.createObjectURL(t),this.error="";var n=new DataTransfer;n.items.add(t),this.$refs.file.files=n.files,this.announcement="Thumbnail selected.",window.dispatchEvent(new CustomEvent("product-thumbnail",{detail:this.previewUrl}))}else this.error="Use a PNG, JPG, GIF or WebP image."}else this.error="Choose one thumbnail at a time."},remove:function(){this.previewUrl&&URL.revokeObjectURL(this.previewUrl),this.file=null,this.thumbnail=null,this.previewUrl=null,this.error="",this.$refs.file.value="",this.announcement="Thumbn
2ail removed.",window.dispatchEvent(new CustomEvent("product-thumbnail",{detail:null}))}}};const i=(0,n(4486).A)(r,(function(){var e=this,t=e._self._c;return t("div",[t("image-dropzone",{attrs:{count:e.image?1:0,limit:1},on:{files:e.selectFiles}}),e._v(" "),e.error?t("p",{staticClass:"mt-3 text-base sm:text-sm text-red",attrs:{role:"alert"}},[e._v(e._s(e.error))]):e._e(),e._v(" "),e.image?t("div",{staticClass:"mt-3 flex items-center gap-3 text-sm"},[t("img",{staticClass:"size-10 rounded border border-black/10 object-cover",attrs:{src:e.image,alt:"Selected thumbnail"}}),e._v(" "),t("p",{staticClass:"min-w-0 flex-1 truncate text-black/60"},[e._v(e._s(e.file?e.file.name:e.thumbnail.path.split("/").pop()))]),e._v(" "),t("button",{staticClass:"rounded px-2 py-1 text-black/50 hover:bg-black/5 hover:text-black",attrs:{type:"button"},on:{click:e.remove}},[e._v("Remove")])]):e._e(),e._v(" "),e.thumbnail?t("input",{attrs:{type:"hidden",name:"thumbnail"},domProps:{value:e.thumbnail.id}}):e._e(),e._v(" "),t("input",{ref:"file",staticClass:"hidden",attrs:{type:"file",name:"thumbnail",tabindex:"-1","aria-hidden":"true"}}),e._v(" "),t("p",{staticClass:"sr-only",attrs:{role:"status"}},[e._v(e._s(e.announcement))])],1)}),[],!1,null,null,null).exports},7475:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={props:{initial:Boolean,action:String},data:function(){return{include:this.initial}},methods:{update:function(){var e=this;i().patch(this.action,{include:this.include}).then((function(t){e.$flash.success(t.data.message)}))}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("label",{staticClass:"flex items-center text-sm whitespace-nowrap"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.include,expression:"include"}],staticClass:"mr-2",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.include)?e._i(e.include,null)>-1:e.include},on:{change:[function(t){var n=e.include,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e._i(n,null);r.checked?o<0&&(e.include=n.concat([null])):o>-1&&(e.include=n.slice(0,o).concat(n.slice(o+1)))}else e.include=i},e.update]}}),e._v("\n    Receive Emails\n")])}),[],!1,null,null,null).exports},8927:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={props:{initial:String,action:String},data:function(){return{discord:this.initial,error:null}},methods:{update:function(){var e=this;i().patch(this.action,{discord:this.discord}).then((function(t){e.error=null,e.$flash.success(t.data.message)})).catch((function(t){e.error=t.response.data.errors.discord[0],e.$flash.error(e.error)}))}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"flex items-center gap-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.discord,expression:"discord"}],staticClass:"input-text h-9",attrs:{type:"text",name:"discord",placeholder:"Discord Username"},domProps:{value:e.discord},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.update.apply(null,arguments)},input:function(t){t.target.composing||(e.discord=t.target.value)}}}),e._v(" "),t("button",{staticClass:"btn",on:{click:e.update}},[e._v("Save")])]),e._v(" "),e.error?t("p",{staticClass:"bg-red text-white text-xs inline-block py-1 px-2 mt-2 leading-none"},[e._v(e._s(e.error))]):e._e()])}),[],!1,null,null,null).exports},8123:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(5541),i=n(1283);const o={mixins:[r.A],props:{isPartner:{type:Boolean,default:!1},isPendingPartner:{type:Boolean,default:!1},isPaymentIncomplete:{type:Boolean,default:!1},completePaymentUrl:{type:String,required:!1},submitUrl:String,profileUrl:String},data:function(){return{csrf:window.Laravel.csrfToken,countries:i.A.all(),type:null,certified:null,name:null,website:null,country_code:null,locality:null,people:null,business:null,project_1:null,project_2:null,project_3:null,project_4:null,project_5:null,client_1:null,client_2:null,code_review:null,errors:{}}},methods:{onSubmitError:function(e){this.$flash.error("Whoops! You forgot something important!.")}},computed:{payload:function(){return{_token:this.csrf,type:this.t
2ype,certified:this.certified,name:this.name,website:this.website,country_code:this.country_code,locality:this.locality,business:this.business,projects:[this.project_1,this.project_2,this.project_3,this.project_4,this.project_5],clients:[this.client_1,this.client_2],code_review:this.code_review}},needsFive:function(){return"1"===this.certified||"Agency"===this.type}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("form",{attrs:{method:"POST"}},[t("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),e.isPartner||e.isPendingPartner?e._e():t("div",[t("div",{staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10"},[t("h2",{staticClass:"font-display text-3xl text-center"},[e._v("Tell us about yourself")]),e._v(" "),t("div",{staticClass:"relative mt-24"},[t("div",{staticClass:"input-label ml-0",attrs:{for:"services"}},[e._v("Application Type")]),e._v(" "),t("p",{staticClass:"pt-8"},[e._v("Freelancers must be a solo designer/developer operating their business under their own personal name.")]),e._v(" "),t("div",{staticClass:"pt-8 flex flex-col space-y-2 font-mono text-lg"},[t("label",{attrs:{for:"type_freelancer"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.type,expression:"type"}],attrs:{type:"radio",name:"type",value:"Freelancer",id:"type_freelancer"},domProps:{checked:e._q(e.type,"Freelancer")},on:{change:function(t){e.type="Freelancer"}}}),e._v(" Freelancer\n                            ")]),e._v(" "),t("label",{attrs:{for:"type_agency"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.type,expression:"type"}],attrs:{type:"radio",name:"type",value:"Agency",id:"type_agency"},domProps:{checked:e._q(e.type,"Agency")},on:{change:function(t){e.type="Agency"}}}),e._v(" Agency\n                            ")])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.type,expression:"type"}]},[t("div",{directives:[{name:"show",rawName:"v-show",value:"Agency"===e.type,expression:"type === 'Agency'"}],staticClass:"relative mt-24"},[e._m(0),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],staticClass:"input-text",attrs:{id:"name",name:"name",type:"text"},domProps:{value:e.name},on:{input:function(t){t.target.composing||(e.name=t.target.value)}}}),e._v(" "),e.hasError("name")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("name"))}}):e._e()]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"Agency"===e.type,expression:"type === 'Agency'"}],staticClass:"relative mt-24"},[t("div",{staticClass:"input-label ml-0",attrs:{for:"people"}},[e._v("Agency Size")]),e._v(" "),t("div",{staticClass:"pt-8 text-lg space-y-2 font-mono"},[t("label",{staticClass:"flex items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.people,expression:"people"}],staticClass:"mr-4",attrs:{type:"radio",name:"people",value:"1"},domProps:{checked:e._q(e.people,"1")},on:{change:function(t){e.people="1"}}}),e._v(" 1 person (for now)")]),e._v(" "),t("label",{staticClass:"flex items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.people,expression:"people"}],staticClass:"mr-4",attrs:{type:"radio",name:"people",value:"2-9"},domProps:{checked:e._q(e.people,"2-9")},on:{change:function(t){e.people="2-9"}}}),e._v(" 2-9 people")]),e._v(" "),t("label",{staticClass:"flex items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.people,expression:"people"}],staticClass:"mr-4",attrs:{type:"radio",name:"people",value:"10-24"},domProps:{checked:e._q(e.people,"10-24")},on:{change:function(t){e.people="10-24"}}}),e._v(" 10-24 people")]),e._v(" "),t("label",{staticClass:"flex items-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.people,expression:"people"}],staticClass:"mr-4",attrs:{type:"radio",name:"people",value:"25+"},domProps:{checked:e._q(e.people,"25+")},on:{change:function(t){e.people="25+"}}}),e._v(" 25+ people")])])]),e._v(" "),t("div",{staticClass:"relative mt-24"},[e._m(1),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.website,expression:"website"}],staticClass:"input-text",attrs:{id:"website",name:"website",type:"text",required:""},domProps:{value:e.website},on:{input:function(t){t.target.composing||(e.website=t.target.value)}}}),e._v(" "),e.hasError("website")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("website"))}}
2):e._e()]),e._v(" "),t("div",{staticClass:"relative mt-24"},[e._m(2),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.country_code,expression:"country_code"}],staticClass:"input-select",attrs:{id:"country_code",name:"country_code"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.country_code=t.target.multiple?n:n[0]}}},[t("option",{attrs:{value:""}},[e._v("(Choose)")]),e._v(" "),e._l(e.countries,(function(n,r){return t("option",{key:r,domProps:{value:r.toUpperCase(),textContent:e._s(n)}})}))],2),e._v(" "),e.hasError("country_code")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("country_code"))}}):e._e()]),e._v(" "),t("div",{staticClass:"relative mt-12"},[e._m(3),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.locality,expression:"locality"}],staticClass:"input-text",attrs:{id:"locality",name:"locality",type:"text",placeholder:"Brighton, East Sussex"},domProps:{value:e.locality},on:{input:function(t){t.target.composing||(e.locality=t.target.value)}}}),e._v(" "),e.hasError("locality")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("locality"))}}):e._e()]),e._v(" "),t("div",{staticClass:"relative mt-24"},[t("div",{staticClass:"input-label ml-0",attrs:{for:"services"}},[t("span",{domProps:{textContent:e._s("Agency"===e.type?"We are":"I have")}}),e._v(" a registered business "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])]),e._v(" "),t("p",{staticClass:"pt-8"},[e._v("This is a requirement. You may be asked to supply proof of registration such as EIN, TIN, VAT, or your country's equivelant.")]),e._v(" "),t("div",{staticClass:"pt-8 flex flex-col space-y-2 font-mono text-lg"},[t("label",{attrs:{for:"business_yar"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.business,expression:"business"}],attrs:{type:"radio",name:"business",value:"1",id:"business_yar"},domProps:{checked:e._q(e.business,"1")},on:{change:function(t){e.business="1"}}}),e._v(" Yes\n                                ")]),e._v(" "),t("label",{attrs:{for:"business_nah"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.business,expression:"business"}],attrs:{type:"radio",name:"business",value:"0",id:"business_nah"},domProps:{checked:e._q(e.business,"0")},on:{change:function(t){e.business="0"}}}),e._v(" No\n                                ")])]),e._v(" "),e.hasError("business")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("business"))}}):e._e()]),e._v(" "),t("div",{staticClass:"relative mt-24"},[t("div",{staticClass:"input-label ml-0",attrs:{for:"services"}},[e._v("Are you interested in being certified?")]),e._v(" "),t("p",{staticClass:"pt-8"},[e._v('Certified partners receive enhanced, featured profiles, access to project leads, and the "Certified Statamic Partner" badge you can use in your marketing material.')]),e._v(" "),t("div",{staticClass:"pt-4 flex flex-col space-y-2 font-mono text-lg"},[t("label",{attrs:{for:"certified_yes"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.certified,expression:"certified"}],attrs:{type:"radio",name:"certified",value:"1",id:"certified_yes",required:""},domProps:{checked:e._q(e.certified,"1")},on:{change:function(t){e.certified="1"}}}),e._v("\n                                    Yes (+extra fee)\n                                ")]),e._v(" "),t("label",{attrs:{for:"certified_no"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.certified,expression:"certified"}],attrs:{type:"radio",name:"certified",value:"0",id:"certified_no",required:""},domProps:{checked:e._q(e.certified,"0")},on:{change:function(t){e.certified="0"}}}),e._v("\n                                    No\n                                ")])]),e._v(" "),e.hasError("certified")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("certified"))}}
2):e._e()])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.type,expression:"type"}],staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10 mt-24"},[t("h2",{staticClass:"font-display text-3xl text-center"},[e._v("Show us your work!")]),e._v(" "),t("div",{staticClass:"relative mt-24"},[t("label",{staticClass:"input-label",attrs:{for:"website"}},[e._v("Please share links to "),t("span",{domProps:{textContent:e._s(e.needsFive?"5":"3")}}),e._v(" Statamic projects "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])]),e._v(" "),t("p",{staticClass:"pt-8"},[e._v("Addons may count towards projects. GitHub URLs are best if they're public.")]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("1")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.project_1,expression:"project_1"}],staticClass:"input-text",attrs:{name:"project_1",type:"text",placeholder:"https://example.com"},domProps:{value:e.project_1},on:{input:function(t){t.target.composing||(e.project_1=t.target.value)}}}),e._v(" "),e.hasError("project_1")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("project_1"))}}):e._e()]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("2")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.project_2,expression:"project_2"}],staticClass:"input-text",attrs:{name:"project_2",type:"text",placeholder:"https://example.com"},domProps:{value:e.project_2},on:{input:function(t){t.target.composing||(e.project_2=t.target.value)}}}),e._v(" "),e.hasError("project_2")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("project_2"))}}):e._e()]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("3")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.project_3,expression:"project_3"}],staticClass:"input-text",attrs:{name:"project_3",type:"text",placeholder:"https://example.com"},domProps:{value:e.project_3},on:{input:function(t){t.target.composing||(e.project_3=t.target.value)}}}),e._v(" "),e.hasError("project_3")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("project_3"))}}):e._e()]),e._v(" "),e.needsFive?t("div",[t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("4")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.project_4,expression:"project_4"}],staticClass:"input-text",attrs:{name:"project_4",type:"text",placeholder:"https://example.com"},domProps:{value:e.project_4},on:{input:function(t){t.target.composing||(e.project_4=t.target.value)}}}),e._v(" "),e.hasError("project_4")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("project_4"))}}):e._e()]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("5")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.project_5,expression:"project_5"}],staticClass:"input-text",attrs:{name:"project_5",type:"text",placeholder:"https://example.com"},domProps:{value:e.project_5},on:{input:function(t){t.target.composing||(e.project_5=t.target.value)}}}),e._v(" "),e.hasError("project_5")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("project_5"))}}
2):e._e()])]):e._e()])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:"1"===e.certified,expression:"certified === '1'"}],staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10 mt-24"},[t("h2",{staticClass:"font-display text-3xl text-center"},[e._v("Certification Due Diligence")]),e._v(" "),t("div",{staticClass:"relative mt-24"},[e._m(4),e._v(" "),t("p",{staticClass:"pt-8"},[e._v("Please provide contact information for two client references.")]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("1")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.client_1,expression:"client_1"}],staticClass:"input-text",attrs:{name:"client_1",type:"text",placeholder:"Joe MacMillan: [email protected]"},domProps:{value:e.client_1},on:{input:function(t){t.target.composing||(e.client_1=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("2")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.client_2,expression:"client_2"}],staticClass:"input-text",attrs:{name:"client_2",type:"text",placeholder:"Gordon Clark: [email protected]"},domProps:{value:e.client_2},on:{input:function(t){t.target.composing||(e.client_2=t.target.value)}}})])]),e._v(" "),t("div",{staticClass:"relative mt-24"},[e._m(5),e._v(" "),e._m(6),e._v(" "),t("div",{staticClass:"pt-8 flex items-center text-blue-darkest text-lg font-bold italic font-mono"},[t("div",{staticClass:"flex items-center justify-center h-6 w-6 bg-yellow rounded-full border mr-4"},[e._v("1")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.code_review,expression:"code_review"}],staticClass:"input-text",attrs:{name:"code_review",type:"text",placeholder:"https://github.com/you/it"},domProps:{value:e.code_review},on:{input:function(t){t.target.composing||(e.code_review=t.target.value)}}}),e._v(" "),e.hasError("code_review")?t("p",{staticClass:"font-mono text-sm text-red mt-1",domProps:{textContent:e._s(e.getError("code_review"))}}):e._e()])])]),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.type,expression:"type"}],staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10 mt-24"},[t("h2",{staticClass:"font-display text-3xl text-center"},[e._v("Final Step: Payment")]),e._v(" "),t("p",{staticClass:"pt-8"},[e._v("We will review and respond to your application within 5 business days (often much, much faster). If approved, you'll be able to complete your Partner Profile in your Statamic Account. If not, the fee will be refunded.")]),e._v(" "),t("button",{staticClass:"button-lg mt-12 mx-auto block",class:{"opacity-50 cursor-wait":e.isSubmitting},attrs:{type:"submit",disabled:e.isSubmitting},on:{click:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[e._v("Save and Pay")])])]),e._v(" "),e.isPendingPartner?t("div",[t("div",{staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10 text-center"},[t("h2",{staticClass:"font-display text-3xl"},[e._v("Welcome, future partner!")]),e._v(" "),e.isPaymentIncomplete?t("p",{staticClass:"mt-4"},[e._v("It looks like your partner fee payment was unsuccessful. Please "),t("a",{staticClass:"underline",attrs:{href:e.completePaymentUrl}},[e._v("re-attempt the payment")]),e._v(".")]):t("p",{staticClass:"mt-4"},[e._v("We're currently reviewing your application. Please check back soon.")])])]):e.isPartner?t("div",[t("div",{staticClass:"bg-white border text-black p-4 lg:px-12 lg:py-20 w-full relative rounded stack-sm z-10 text-center"},[t("h2",{staticClass:"font-display text-3xl"},[e._v("Welcome, partner!")]),e._v(" "),t("p",{staticClass:"mt-4"},[e._v("Want to "),t("a",{staticClass:"underline",attrs:{href:e.profileUrl}}
2,[e._v("manage your profile?")])])])]):e._e()])}),[function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label",attrs:{for:"name"}},[e._v("Agency Name "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label",attrs:{for:"website"}},[e._v("Your Website "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label",attrs:{for:"country_code"}},[e._v("Country "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label",attrs:{for:"locality"}},[e._v("City / State / Province "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Optional)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label ml-0"},[e._v("Client references "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])])},function(){var e=this,t=e._self._c;return t("label",{staticClass:"input-label ml-0"},[e._v("Code Review "),t("span",{staticClass:"text-xs font-normal normal-case"},[e._v("(Required)")])])},function(){var e=this,t=e._self._c;return t("p",{staticClass:"pt-8"},[e._v("Please provide a link to a Statamic project repo (addons are accepted). For private repos, you can invite "),t("code",[e._v("jackmcdade")]),e._v(" on GitHub or BitBucket.")])}],!1,null,null,null).exports},6854:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={props:{url:String,installUrl:String,installations:Array,usingLegacyOauth:Boolean},computed:{connected:function(){return this.installations.length>0||this.usingLegacyOauth}},methods:{disconnect:function(){confirm("Are you sure you want to disconnect your account? Your products will be unavailable until you reconnect.")&&i().delete(this.url).then((function(e){window.location.reload()}))}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("div",[e.installations.length?[t("div",{staticClass:"flex items-center justify-between mt-6 mb-2 text-sm"},[t("h3",{staticClass:"font-medium"},[e._v("Connected accounts")]),e._v(" "),t("a",{staticClass:"flex items-center text-grey-700 hover:text-black",attrs:{href:e.url}},[t("svg",{staticClass:"h-3.5 w-3.5 mr-1.5",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"}},[t("path",{attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.5 7A5.5 5.5 0 0 1 2.8 10.55M1.5 7a5.5 5.5 0 0 1 9.7-3.55"}}),t("path",{attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.2 1v2.45H8.75M2.8 13v-2.45h2.45"}})]),e._v("\n                Refresh\n            ")])]),e._v(" "),t("ul",{staticClass:"mb-6 divide-y divide-grey-200 border border-grey-300 rounded-md"},[e._l(e.installations,(function(n){return t("li",{key:n.installation_id,staticClass:"flex items-center justify-between px-4 py-3 text-sm"},[t("span",[t("span",{staticClass:"font-medium"},[e._v(e._s(n.account_login))]),e._v(" "),t("span",{staticClass:"text-grey-600"},[e._v("("+e._s("Organization"===n.account_type?"Organisation":"Personal account")+")")])]),e._v(" "),t("a",{staticClass:"underline text-grey-700 hover:text-black",attrs:{href:n.settings_url,target:"_blank",rel:"noopener"}},[e._v("Manage repository access")])])})),e._v(" "),t("li",{staticClass:"px-4 py-3 text-sm"},[t("a",{staticClass:"text-grey-700 hover:text-black",attrs:{href:e.installUrl}},[e._v("+ Add an account or organisation")])])],2)]:e._e(),e._v(" "),t("div",{staticClass:"flex items-center space-x-3"},[e.connected?t("button",{staticClass:"btn",on:{click:e.disconnect}},[e._v("Disconnect")]):t("a",{staticClass:"btn-black",attrs:{href:e.url}},[e._v("Connect")])]),e._v(" "),e.usingLegacyOauth?t("div",{staticClass:"mt-6 py-4 px-5 rounded-md bg-yellow-50 border border-yellow-200 max-w-3xl"},[e._m(0),e._v(" "),t("a",{staticClass:"btn-black mt-4 inline-block",attrs:{href:e.url}}
2,[e._v("Upgrade to the GitHub App")])]):e._e()],2)}),[function(){var e=this,t=e._self._c;return t("p",{staticClass:"text-sm text-yellow-900"},[t("strong",{staticClass:"font-medium"},[e._v("You're connected through our legacy OAuth app")]),e._v(", which has access to all your repositories.\n            Connect through the GitHub App instead for a more secure connection. It only has access to the repositories you choose.\n        ")])}],!1,null,null,null).exports},2177:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={props:{url:String,value:String},data:function(){return{loading:!0,failed:!1,error:null,groups:{},selected:this.value||""}},computed:{hasAccessToSelection:function(){return!this.selected||Object.values(this.groups).flat().includes(this.selected)}},methods:{loadRepositories:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.loading=!0,this.error=null,i().get(this.url,{params:{refresh:t}}).then((function(t){e.groups=t.data,e.failed=!1})).catch((function(t){var n;e.failed=!0,e.error=null===(n=t.response)||void 0===n||null===(n=n.data)||void 0===n||null===(n=n.errors)||void 0===n||null===(n=n.github_repo)||void 0===n?void 0:n[0]})).then((function(){return e.loading=!1}))}},mounted:function(){this.loadRepositories()}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("div",[t("input",{attrs:{type:"hidden",name:"github_repo"},domProps:{value:e.selected}}),e._v(" "),t("div",{staticClass:"flex items-center gap-3 mt-3"},[e.failed?t("input",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],staticClass:"block border border-grey-400 p-3 h-9 w-full shadow-inner-soft rounded text-sm",attrs:{type:"text",id:"github_repo",placeholder:"user/repository"},domProps:{value:e.selected},on:{input:function(t){t.target.composing||(e.selected=t.target.value)}}}):t("select",{directives:[{name:"model",rawName:"v-model",value:e.selected,expression:"selected"}],staticClass:"input-select min-w-0 w-full",attrs:{id:"github_repo",disabled:e.loading},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected=t.target.multiple?n:n[0]}}},[t("option",{attrs:{value:""}},[e._v("Choose a repository")]),e._v(" "),e.hasAccessToSelection?e._e():t("option",{domProps:{value:e.selected}},[e._v(e._s(e.selected)+e._s(e.loading?"":" (no access)"))]),e._v(" "),e._l(e.groups,(function(n,r){return t("optgroup",{key:r,attrs:{label:r}},e._l(n,(function(n){return t("option",{key:n,domProps:{value:n}},[e._v(e._s(n))])})),0)}))],2),e._v(" "),t("button",{staticClass:"flex h-9 w-9 shrink-0 items-center justify-center rounded border border-grey-400 text-grey-700 hover:text-black disabled:opacity-50",attrs:{type:"button",title:"Refresh repositories","aria-label":"Refresh repositories",disabled:e.loading},on:{click:function(t){return e.loadRepositories(!0)}}},[t("svg",{staticClass:"h-4 w-4",class:{"animate-spin":e.loading},attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14","aria-hidden":"true"}},[t("path",{attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M12.5 7A5.5 5.5 0 0 1 2.8 10.55M1.5 7a5.5 5.5 0 0 1 9.7-3.55"}}),t("path",{attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round",d:"M11.2 1v2.45H8.75M2.8 13v-2.45h2.45"}})])])]),e._v(" "),e.loading?t("p",{staticClass:"loading-ellipsis mt-2 text-sm text-grey-600",attrs:{role:"status"}},[e._v("Fetching repositories from GitHub")]):e.failed?t("p",{staticClass:"text-sm text-red-600 mt-2"},[e._v(e._s(e.error||"Couldn't load your repositories from GitHub. Enter the repository name for now and we'll check it when you save."))]):e._e()])}),[],!1,null,null,null).exports},6731:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(2505),i=n.n(r);const o={props:{url:String,connected:Boolean,text:String,countries:Array},data:function(){return{country:null}},computed:{disconnected:function(){return!this.connected},canConnect:function(){return["Albania","Antigua & Barbuda","Argentina","Armenia","Australia","Austria","Bahamas","Bahrain","Belgium","Benin","Bolivia","Bosnia & Herzegovina","Botswana","Brunei","Bulgaria","Cambodia","Canada","Chile","Colombia","Costa Rica","Côte d'Ivoire","Croatia","Cyprus","Czech Republic","Denmark","Dominican Republic","Ecuador","Egypt","El Salvador","Estonia","Ethiopia","Finland","France","Gambia","Germany","Ghana","Greece","Guatemala","Guyana","Hong Kong","Hungary","Indonesia","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kenya","Kuwait","Latvia","Lithuania","Luxembourg","Macao SAR China","Madagascar","Malaysia","Malta","Mauritius","Mexico","Moldova","Monaco","Mongolia","Morocco","Namibia","Netherlands","New Zealand","Nigeria","North Macedonia","Norway","Oman","Pakistan","Panama","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Rwanda","Saudi Arabia","Senegal","Serbia","Singapore","Slovakia","Slovenia","South Africa","South Korea","Spain","Sri Lanka","St. Lucia","Sweden","Switzerland","Taiwan","Tanzania","Thailand","Trinidad & Tobago","Tunisia","Turkey","United Arab Emirates","United Kingdom","United States","Uruguay","Uzbekistan","Vietnam"].includes(this.country)}},methods:{disconnect:function(){confirm("Are you sure you want to disconnect your account? Your products will be unavailable until you reconnect.")&&i().delete(this.url).then((function(e){window.location.reload()}))}}};const a=(0,n(4486).A)(o,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"flex items-center space-x-3"},[e.connected?t("button",{staticClass:"btn",on:{click:e.disconnect}}
2,[e._v("Disconnect")]):e._e(),e._v(" "),e.disconnected?[t("div",[t("div",{staticClass:"mb-4 mt-4"},[t("label",{staticClass:"text-lg",attrs:{for:"country"}},[e._v("Country")]),e._v(" "),t("div",{staticClass:"form-help-text max-w-lg"},[e._v("We're unable to pay creators in some countries, so we need to know where you are located before connecting your Stripe account.")]),e._v(" "),t("select",{directives:[{name:"model",rawName:"v-model",value:e.country,expression:"country"}],staticClass:"block mt-3 border border-grey-400 px-3 h-9 w-full max-w-lg shadow-inner-soft rounded text-sm",attrs:{name:"country",id:"country"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.country=t.target.multiple?n:n[0]}}},e._l(e.countries,(function(n,r){return t("option",{domProps:{value:n,selected:r===e.country,textContent:e._s(n)}})})),0)]),e._v(" "),e.country&&!e.canConnect?t("p",{staticClass:"text-red-600 text-sm mt-1"},[e._v("Sorry, due to various restrictions, we're unable to pay creators in "+e._s(e.country)+".")]):e._e(),e._v(" "),e.country&&e.canConnect?t("a",{staticClass:"btn-black",attrs:{href:e.url}},[e._v("Connect")]):e._e()])]:e._e(),e._v(" "),e.connected?e._t("connected",(function(){return[e._v("Connected.")]})):e._e()],2)}),[],!1,null,null,null).exports},7731:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(7309),i=n.n(r),o=n(2505),a=n.n(o);const s={props:["value","type","url"],data:function(){return{loading:!0,selections:null,options:[]}},computed:{fieldValue:function(){return this.selections?"["+this.selections.map((function(e){return e.id}))+"]":null}},mounted:function(){this.getTags()},watch:{type:function(){this.getTags()}},methods:{getTags:function(){var e=this;this.loading=!0,a().get(this.url+"?type="+this.type).then((function(t){e.loading=!1,e.options=t.data,e.selections=e.formatInitialSelections()}))},formatInitialSelections:function(){var e=this;return this.value.map((function(t){var n=i()(e.options,{id:t});return n?{id:t,name:n.name}:null})).filter((function(e){return null!==e}))}}};const l=(0,n(4486).A)(s,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"tags"},[e.loading?t("p",{},[e._v("Loading...")]):[t("v-select",{attrs:{multiple:"",options:e.options,label:"name"},model:{value:e.selections,callback:function(t){e.selections=t},expression:"selections"}}),e._v(" "),t("input",{attrs:{type:"hidden",name:"tags"},domProps:{value:e.fieldValue}})]],2)}),[],!1,null,null,null).exports},3023:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const r={props:["initialType"],data:function(){return{type:this.initialType}}};const i=(0,n(4486).A)(r,undefined,undefined,!1,null,null,null).exports},4486:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}n.d(t,{A:()=>r})},7992:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var l=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];l[e]=function(){return t}})),s.computed=l}return{esModule:i,exports:o,options:s}}},function(e,t,n){var r=n(0)(n(3),n(8),null,null);r.options.__file="C:\\work\\vue-tabs\\src\\components\\TabContent.vue",r.esModule&&Object.keys(r.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] TabContent.vue: functional components are not supported with templates, they should use render functions."),e.exports=r.exports},function(e,t,n){n(7),n(6);var r=n(0)(n(4),n(9),null,null);r.options.__file="C:\\work\\vue-tabs\\src\\components\\VueTabs.vue",r.esModule&&Object.keys(r.esModule).some((function(e){return"default"!==e&&"__esModule"!==e}))&&console.error("named exports are not supported in *.vue files."),r.options.functional&&console.error("[vue-loader] VueTabs.vue: functional components are not supported with templates, they should use render functions."),e.exports=r.exports},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"v-tab",props:{title:{type:String,default:""},icon:{type:String,default:""},beforeChange:{type:Function},route:{type:[String,Object]},transitionName:String,transitionMode:String},computed:{isValidParent:function(){return"vue-tabs"===this.$parent.$options.name}},data:function(){return{active:!1}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"vue-tabs",props:{activeTabColor:String,activeTextColor:String,textPosition:{type:String,default:"center"},type:{type:String,default:"tabs"},direction:{type:String,default:"horizontal"},centered:Boolean,startIndex:{type:Number,default:0}},data:function(){return{activeTabIndex:0,tabs:[]}},computed:{tabCount:function(){return this.tabs.length},isTabShape:function(){return"tabs"===this.type},isStacked:function(){return"vertical"===this.direction},classList:function(){return"nav "+(this.isTabShape?"nav-tabs":"nav-pills")+" "+(this.centered?"nav-justified":"")+" "+(this.isStacked?"nav-stacked":"")},stackedClass:function(){return this.isStacked?"stacked":""},activeTabStyle:function(){return{backgroundColor:this.activeTabColor,color:this.activeTextColor}},activeTitleColor:function(){return{color:this.activeTabColor}}},methods:{navigateToTab:function(e){this.beforeTabChange(this.activeTabIndex)&&this.changeTab(this.activeTabIndex,e)},beforeTabChange:function(e){var t=this.tabs[e];return!t||void 0===t.beforeChange||t.beforeChange()},changeTab:function(e,t){if(!(t<0||t>=this.tabCount)){var n=this.tabs[e],r=this.tabs[t];n&&(n.active=!1,r&&(r.active=!0)),this.activeTabIndex=t,this.tryChangeRoute(r)}},tryChangeRoute:function(e){this.$router&&e&&e.route&&this.$router.push(e.route)}},mounted:function(){if(this.tabs=this.$children.filter((function(e){return"v-tab"===e.$options.name})),this.tabs.length>0&&0===this.startIndex){var e=this.tabs[this.activeTabIndex];e.active=!0,this.tryChangeRoute(e)}if(this.startIndex<this.tabs.length){var t=this.tabs[this.startIndex];this.activeTabIndex=this.startIndex,t.active=!0,this.tryChangeRoute(this.tabs[this.startIndex])}else console.warn("Prop startIndex set to "+this.startIndex+" is greater than the number of tabs - "+this.tabs.length+". Make sure that the starting index is less than the number of tabs registered")}}},function(e,t,n){e.exports={VueTabs:n(2),VTab:n(1),install:function(t){t.component("vue-tabs",e.exports.VueTabs),t.component("v-tab",e.exports.VTab)}}},function(e,t){},function(e,t){},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.active?n("div",{staticClass:"tab-container"},[e._t("default")],2):e._e()},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-tabs",class:e.stackedClass},[n("ul",{class:e.classList},[e._l(e.tabs,(function(t,r){return e._t("tab",[n("li",{key:t,staticClass:"tab",class:{active:t.active}},["top"===e.textPosition?n("span",{staticClass:"title title_top",style:t.active?e.activeTitleColor:{}},[e._v("\n            "+e._s(t.title)+"\n        ")]):e._e(),e._v(" "),n("a",{style:t.active?e.activeTabStyle:{},attrs:{href:""},on:{click:function(t){t.preventDefault(),e.navigateToTab(r)}}},[n("i",{class:t.icon},["center"===e.textPosition?n("span",[e._v("\n               "+e._s(t.title)+"\n            ")]):e._e()])]),e._v(" "),"bottom"===e.textPosition?n("span",{staticClass:"title title_bottom",style:t.active?e.activeTitleColor:{}},[e._v("\n            "+e._s(t.title)+"\n        ")]):e._e()])],{tab:t,index:r,clickHandler:e.navigateToTab})}))],2),e._v(" "),n("div",{staticClass:"tab-content"},[e._t("default")],2)])},staticRenderFns:[]},e.exports.render._withStripped=!0}])},9292:function(e){e.exports=function(){"use strict";var e=function(){var e=!1,t=void 0,n=[];return{resolved:function(){return e},resolve:function(r){e||(e=!0,t=r,n.forEach((function(e){e(r)})))},promise:{then:function(r){e?r(t):n.push(r)}}}};function t(){var t=e();return{setRecaptcha:function(e){t.resolve(e)},getRecaptcha:function(){return t.promise},render:function(e,t,n){this.getRecaptcha().then((function(r){n(r.render(e,t))}))},reset:function(e){void 0!==e&&(this.assertRecaptchaLoad(),this.getRecaptcha().then((function(t){return t.reset(e)})))},execute:function(e){void 0!==e&&(this.assertRecaptchaLoad(),this.getRecaptcha().then((function(t){return t.execute(e)})))},checkRecaptchaLoad:function(){window.hasOwnProperty("grecaptcha")&&this.setRecaptcha(window.grecaptcha)},assertRecaptchaLoad:function(){if(!t.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var n=t();"undefined"!=typeof window&&(window.vueRecaptchaApiLoaded=function(){n.setRecaptcha(window.grecaptcha)});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};return{name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String}},created:function(){this.$widgetId=null},mounted:function(){var e=this;n.checkRecaptchaLoad();var t=r({},this.$props,{callback:this.emitVerify,"expired-callback":this.emitExpired}),i=this.$slots.default?this.$refs.container.children[0]:this.$refs.container;n.render(i,t,(function(t){e.$widgetId=t,e.$emit("render",t)}))},methods:{reset:function(){n.reset(this.$widgetId)},execute:function(){n.execute(this.$widgetId)},emitVerify:function(e){this.$emit("verify",e)},emitExpired:function(){this.$emit("expired")}},events:{recaptchaReset:function(){this.reset()}},render:function(e){return e("div",{ref:"container"},this.$slots.default)}}}()},6804:function(e){"undefined"!=typeof self&&self,e.exports=(()=>{var e={646:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},713:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},860:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(e,t,n)=>{var r=n(646),i=n(860),o=n(206);e.exports=function(e){return r(e)||i(e)||o()}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}},t={};function n(r){var i=t[r];
vendor: 17,772 bytes, line 2
2if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{VueSelect:()=>b,default:()=>w,mixins:()=>x});var e=n(319),t=n.n(e),i=n(8),o=n.n(i),a=n(713),s=n.n(a);const l={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var t=this;this.autoscroll&&e&&this.$nextTick((function(){return t.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var e,t=(null===(e=this.$refs.dropdownMenu)||void 0===e?void 0:e.children[this.typeAheadPointer])||!1;if(t){var n=this.getDropdownViewport(),r=t.getBoundingClientRect(),i=r.top,o=r.bottom,a=r.height;if(i<n.top)return this.$refs.dropdownMenu.scrollTop=t.offsetTop;if(o>n.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-a)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},c={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var e=0;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},open:function(e){e&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var e=this.typeAheadPointer-1;e>=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e<this.filteredOptions.length;e++)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadSelect:function(){var e=this.filteredOptions[this.typeAheadPointer];e&&this.selectable(e)&&this.select(e)},typeAheadToLastSelected:function(){var e=0!==this.selectedValue.length?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;-1!==e&&(this.typeAheadPointer=e)}}},u={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(e){this.mutableLoading=e}},methods:{toggleLoading:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}};function d(e,t,n,r,i,o,a,s){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=l):i&&(l=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}const h={Deselect:d({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[t("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[],!1,null,null,null).exports,OpenIndicator:d({},(function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[t("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[],!1,null,null,null).exports},f={inserted:function(e,t,n){var r=n.context;if(r.appendToBody){var i=r.$refs.toggle.getBoundingClientRect(),o=i.height,a=i.top,s=i.left,l=i.width,c=window.scrollX||window.pageXOffset,u=window.scrollY||window.pageYOffset;e.unbindPosition=r.calculatePosition(e,r,{width:l+"px",left:c+s+"px",top:u+a+o+"px"}),document.body.appendChild(e)}},unbind:function(e,t,n){n.context.appendToBody&&(e.unbindPosition&&"function"==typeof e.unbindPosition&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}},p=function(e){var t={};return Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),JSON.stringify(t)};var g=0;const m=function(){return++g};function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=d({components:y({},h),directives:{appendToBody:f},mixins:[l,c,u],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(e){return e}},selectable:{type:Function,default:function(e){return!0}},getOptionLabel:{type:Function,default:function(e){return"object"===o()(e)?e.hasOwnProperty(this.label)?e[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(e),".\n")+"https://vue-select.org/api/props.html#getoptionlabel"):e}},getOptionKey:{type:Function,default:function(e){if("object"!==o()(e))return e;try{return e.hasOwnProperty("id")?e.id:p(e)}catch(t){return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",e,t)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(e,t,n){return(t||"").toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var r=n.getOptionLabel(e);return"number"==typeof r&&(r=r.toString()),n.filterBy(e,r,t)}))}},createOption:{type:Function,default:function(e){return"object"===o()(this.optionList[0])?s()({},this.label,e):e}},resetOnOptionsChange:{default:!1,validator:function(e){return["function","boolean"].includes(o()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var t=e.clearSearchOnSelect,n=e.multiple;return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(e,t){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,t,n){var r=n.width,i=n.top,o=n.left;e.style.top=i,e.style.left=o,e.style.width=r}},dropdownShouldOpen:{type:Function,default:function(e){var t=e.noDrop,n=e.open,r=e.mutableLoading;return!t&&n&&!r}},uid:{type:[String,Number],default:function(){return m()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var e=this.value;return this.isTrackingValues&&(e=this.$data._value),null!=e&&""!==e?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:y({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(t){return e.search=t.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:y({},t,{deselect:this.deselect}),footer:y({},t,{deselect:this.deselect})}},childComponents:function(){return y({},h,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;var t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,t){var n=this;!this.taggable&&("function"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(e,t,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?"open":"close")},search:function(e){e.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(e){var t=this;Array.isArray(e)?this.$data._value=e.map((function(e){return t.findOptionFromReducedValue(e)})):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&this.$emit("option:created",e),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect:function(e){var t=this;this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter((function(n){return!t.optionComparator(n,e)}))),this.$emit("option:deselected",e)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(e){var t=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick((function(){return t.$refs.search.focus()}))},updateValue:function(e){var t=this;void 0===this.value&&(this.$data._value=e),null!==e&&(e=Array.isArray(e)?e.map((function(e){return t.reduce(e)})):this.reduce(e)),this.$emit("input",e)},toggleDropdown:function(e){var n=e.target!==this.searchEl;n&&e.preventDefault();var r=[].concat(t()(this.$refs.deselectButtons||[]),t()([this.$refs.clearButton]||0));void 0===this.searchEl||r.filter(Boolean).some((function(t){return t.contains(e.target)||t===e.target}))?e.preventDefault():this.open&&n?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var t=this;return this.selectedValue.some((function(n){return t.optionComparator(n,e)}))},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator:function(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue:function(e){var n=this,r=[].concat(t()(this.options),t()(this.pushedTags)).filter((function(t){return JSON.stringify(n.reduce(t))===JSON.stringify(e)}));return 1===r.length?r[0]:r.find((function(e){return n.optionComparator(e,n.$data._value)}))||e},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=t()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var t=this;return this.optionList.some((function(n){return t.optionComparator(n,e)}))},normalizeOptionForSlot:function(e){return"object"===o()(e)?e:s()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,t=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(e){var t=this,n=function(e){return e.preventDefault(),!t.isComposing&&t.typeAheadSelect()},r={8:function(e){return t.maybeDeleteValue()},9:function(e){return t.onTab()},27:function(e){return t.onEscape()},38:function(e){if(e.preventDefault(),t.open)return t.typeAheadUp();t.open=!0},40:function(e){if(e.preventDefault(),t.open)return t.typeAheadDown();t.open=!0}};this.selectOnKeyCodes.forEach((function(e){return r[e]=n}));var i=this.mapKeydown(r,this);if("function"==typeof i[e.keyCode])return i[e.keyCode](e)},onSearchKeyPress:function(e){this.open||32!==e.keyCode||(e.preventDefault(),this.open=!0)}}},(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-select",class:e.stateClasses,attrs:{dir:e.dir}},[e._t("header",null,null,e.scope.header),e._v(" "),n("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+e.uid+"__combobox",role:"combobox","aria-expanded":e.dropdownOpen.toString(),"aria-owns":"vs"+e.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(t){return e.toggleDropdown(t)}}},[n("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[e._l(e.selectedValue,(function(t){return e._t("selected-option-container",[n("span",{key:e.getOptionKey(t),staticClass:"vs__selected"},[e._t("selected-option",[e._v("\n            "+e._s(e.getOptionLabel(t))+"\n          ")],null,e.normalizeOptionForSlot(t)),e._v(" "),e.multiple?n("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:e.disabled,type:"button",title:"Deselect "+e.getOptionLabel(t),"aria-label":"Deselect "+e.getOptionLabel(t)},on:{click:function(n){return e.deselect(t)}}},[n(e.childComponents.Deselect,{tag:"component"})],1):e._e()],2)],{option:e.normalizeOptionForSlot(t),deselect:e.deselect,multiple:e.multiple,disabled:e.disabled})})),e._v(" "),e._t("search",[n("input",e._g(e._b({staticClass:"vs__search"},"input",e.scope.search.attributes,!1),e.scope.search.events))],null,e.scope.search)],2),e._v(" "),n("div",{ref:"actions",staticClass:"vs__actions"},[n("button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}
2],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:e.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:e.clearSelection}},[n(e.childComponents.Deselect,{tag:"component"})],1),e._v(" "),e._t("open-indicator",[e.noDrop?e._e():n(e.childComponents.OpenIndicator,e._b({tag:"component"},"component",e.scope.openIndicator.attributes,!1))],null,e.scope.openIndicator),e._v(" "),e._t("spinner",[n("div",{directives:[{name:"show",rawName:"v-show",value:e.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[e._v("Loading...")])],null,e.scope.spinner)],2)]),e._v(" "),n("transition",{attrs:{name:e.transition}},[e.dropdownOpen?n("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+e.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+e.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(t){return t.preventDefault(),e.onMousedown(t)},mouseup:e.onMouseUp}},[e._t("list-header",null,null,e.scope.listHeader),e._v(" "),e._l(e.filteredOptions,(function(t,r){return n("li",{key:e.getOptionKey(t),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":e.isOptionDeselectable(t)&&r===e.typeAheadPointer,"vs__dropdown-option--selected":e.isOptionSelected(t),"vs__dropdown-option--highlight":r===e.typeAheadPointer,"vs__dropdown-option--disabled":!e.selectable(t)},attrs:{id:"vs"+e.uid+"__option-"+r,role:"option","aria-selected":r===e.typeAheadPointer||null},on:{mouseover:function(n){e.selectable(t)&&(e.typeAheadPointer=r)},click:function(n){n.preventDefault(),n.stopPropagation(),e.selectable(t)&&e.select(t)}}},[e._t("option",[e._v("\n          "+e._s(e.getOptionLabel(t))+"\n        ")],null,e.normalizeOptionForSlot(t))],2)})),e._v(" "),0===e.filteredOptions.length?n("li",{staticClass:"vs__no-options"},[e._t("no-options",[e._v("\n          Sorry, no matching options.\n        ")],null,e.scope.noOptions)],2):e._e(),e._v(" "),e._t("list-footer",null,null,e.scope.listFooter)],2):n("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+e.uid+"__listbox",role:"listbox"}})]),e._v(" "),e._t("footer",null,null,e.scope.footer)],2)}),[],!1,null,null,null).exports,x={ajax:u,pointer:c,pointerScroll:l},w=b})(),r})()},2893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EffectScope:()=>hn,computed:()=>ft,customRef:()=>it,default:()=>di,defineAsyncComponent:()=>ur,defineComponent:()=>Ar,del:()=>ze,effectScope:()=>fn,getCurrentInstance:()=>pe,getCurrentScope:()=>pn,h:()=>Vn,inject:()=>Gn,isProxy:()=>Ge,isReactive:()=>We,isReadonly:()=>$e,isRef:()=>Ze,isShallow:()=>Xe,markRaw:()=>Ue,mergeDefaults:()=>tn,nextTick:()=>sr,onActivated:()=>yr,onBeforeMount:()=>hr,onBeforeUnmount:()=>mr,onBeforeUpdate:()=>pr,onDeactivated:()=>br,onErrorCaptured:()=>Sr,onMounted:()=>fr,onRenderTracked:()=>wr,onRenderTriggered:()=>kr,onScopeDispose:()=>gn,onServerPrefetch:()=>xr,onUnmounted:()=>vr,onUpdated:()=>gr,provide:()=>Xn,proxyRefs:()=>nt,reactive:()=>He,readonly:()=>ct,ref:()=>Ke,set:()=>Re,shallowReactive:()=>Ye,shallowReadonly:()=>ht,shallowRef:()=>Je,toRaw:()=>Ve,toRef:()=>at,toRefs:()=>ot,triggerRef:()=>et,unref:()=>tt,useAttrs:()=>Jt,useCssModule:()=>lr,useCssVars:()=>cr,useListeners:()=>Qt,useSlots:()=>Kt,version:()=>_r,watch:()=>Bn,watchEffect:()=>zn,watchPostEffect:()=>jn,watchSyncEffect:()=>Hn});var r=Object.freeze({}),i=Array.isArray;function o(e){return null==e}function a(e){return null!=e}function s(e){return!0===e}function l(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return"function"==typeof e}function u(e){return null!==e&&"object"==typeof e}var d=Object.prototype.toString;function h(e){return"[object Object]"===d.call(e)}function f(e){return"[object RegExp]"===d.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||h(e)&&e.toString===d?JSON.stringify(e,v,2):String(e)}function v(e,t){return t&&t.__v_isRef?t.value:t}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function b(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var x=b("slot,component",!0),w=b("key,ref,slot,slot-scope,is");function k(e,t){var n=e.length;if(n){if(t===e[n-1])return void(e.length=n-1);var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var C=Object.prototype.hasOwnProperty;function S(e,t){return C.call(e,t)}function _(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var A=/-(\w)/g,L=_((function(e){return e.replace(A,(function(e,t){return t?t.toUpperCase():""}))})),T=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)}
2)),E=/\B([A-Z])/g,O=_((function(e){return e.replace(E,"-$1").toLowerCase()}));var M=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function P(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function N(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function I(e,t,n){}var F=function(e,t,n){return!1},R=function(e){return e};function z(e,t){if(e===t)return!0;var n=u(e),r=u(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return z(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return z(e[n],t[n])}))}catch(e){return!1}}function j(e,t){for(var n=0;n<e.length;n++)if(z(e[n],t))return n;return-1}function H(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function Y(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}var B="data-server-rendered",W=["component","directive","filter"],X=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],$={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:F,isReservedAttr:F,isUnknownElement:F,getTagNamespace:I,parsePlatformTagName:R,mustUseProp:F,async:!0,_lifecycleHooks:X},G=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var q=new RegExp("[^".concat(G.source,".$_\\d]"));var Z="__proto__"in{},K="undefined"!=typeof window,J=K&&window.navigator.userAgent.toLowerCase(),Q=J&&/msie|trident/.test(J),ee=J&&J.indexOf("msie 9.0")>0,te=J&&J.indexOf("edge/")>0;J&&J.indexOf("android");var ne=J&&/iphone|ipad|ipod|ios/.test(J);J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J);var re,ie=J&&J.match(/firefox\/(\d+)/),oe={}.watch,ae=!1;if(K)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(e){}var le=function(){return void 0===re&&(re=!K&&void 0!==n.g&&(n.g.process&&"server"===n.g.process.env.VUE_ENV)),re},ce=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ue(e){return"function"==typeof e&&/native code/.test(e.toString())}var de,he="undefined"!=typeof Symbol&&ue(Symbol)&&"undefined"!=typeof Reflect&&ue(Reflect.ownKeys);de="undefined"!=typeof Set&&ue(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=null;function pe(){return fe&&{proxy:fe}}function ge(e){void 0===e&&(e=null),e||fe&&fe._scope.off(),fe=e,e&&e._scope.on()}var me=function(){function e(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),ve=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function ye(e){return new me(void 0,void 0,void 0,String(e))}function be(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}"function"==typeof SuppressedError&&SuppressedError;var xe=0,we=[],ke=function(){for(var e=0;e<we.length;e++){var t=we[e];t.subs=t.subs.filter((function(e){return e})),t._pending=!1}we.length=0},Ce=function(){function e(){this._pending=!1,this.id=xe++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pe
2nding=!0,we.push(this))},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.filter((function(e){return e}));for(var n=0,r=t.length;n<r;n++){0,t[n].update()}},e}();Ce.target=null;var Se=[];function _e(e){Se.push(e),Ce.target=e}function Ae(){Se.pop(),Ce.target=Se[Se.length-1]}var Le=Array.prototype,Te=Object.create(Le);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=Le[e];U(Te,e,(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Ee=Object.getOwnPropertyNames(Te),Oe={},Me=!0;function Pe(e){Me=e}var De={notify:I,depend:I,addSub:I,removeSub:I},Ne=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.value=e,this.shallow=t,this.mock=n,this.dep=n?De:new Ce,this.vmCount=0,U(e,"__ob__",this),i(e)){if(!n)if(Z)e.__proto__=Te;else for(var r=0,o=Ee.length;r<o;r++){U(e,s=Ee[r],Te[s])}t||this.observeArray(e)}else{var a=Object.keys(e);for(r=0;r<a.length;r++){var s;Fe(e,s=a[r],Oe,void 0,t,n)}}}return e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Ie(e[t],!1,this.mock)},e}();function Ie(e,t,n){return e&&S(e,"__ob__")&&e.__ob__ instanceof Ne?e.__ob__:!Me||!n&&le()||!i(e)&&!h(e)||!Object.isExtensible(e)||e.__v_skip||Ze(e)||e instanceof me?void 0:new Ne(e,t,n)}function Fe(e,t,n,r,o,a,s){void 0===s&&(s=!1);var l=new Ce,c=Object.getOwnPropertyDescriptor(e,t);if(!c||!1!==c.configurable){var u=c&&c.get,d=c&&c.set;u&&!d||n!==Oe&&2!==arguments.length||(n=e[t]);var h=o?n&&n.__ob__:Ie(n,!1,a);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=u?u.call(e):n;return Ce.target&&(l.depend(),h&&(h.dep.depend(),i(t)&&je(t))),Ze(t)&&!o?t.value:t},set:function(t){var r=u?u.call(e):n;if(Y(r,t)){if(d)d.call(e,t);else{if(u)return;if(!o&&Ze(r)&&!Ze(t))return void(r.value=t);n=t}h=o?t&&t.__ob__:Ie(t,!1,a),l.notify()}}}),l}}function Re(e,t,n){if(!$e(e)){var r=e.__ob__;return i(e)&&p(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&Ie(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Fe(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}}function ze(e,t){if(i(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||$e(e)||S(e,t)&&(delete e[t],n&&n.dep.notify())}}function je(e){for(var t=void 0,n=0,r=e.length;n<r;n++)(t=e[n])&&t.__ob__&&t.__ob__.dep.depend(),i(t)&&je(t)}function He(e){return Be(e,!1),e}function Ye(e){return Be(e,!0),U(e,"__v_isShallow",!0),e}function Be(e,t){if(!$e(e)){Ie(e,t,le());0}}function We(e){return $e(e)?We(e.__v_raw):!(!e||!e.__ob__)}function Xe(e){return!(!e||!e.__v_isShallow)}function $e(e){return!(!e||!e.__v_isReadonly)}function Ge(e){return We(e)||$e(e)}function Ve(e){var t=e&&e.__v_raw;return t?Ve(t):e}function Ue(e){return Object.isExtensible(e)&&U(e,"__v_skip",!0),e}var qe="__v_isRef";function Ze(e){return!(!e||!0!==e.__v_isRef)}function Ke(e){return Qe(e,!1)}function Je(e){return Qe(e,!0)}function Qe(e,t){if(Ze(e))return e;var n={};return U(n,qe,!0),U(n,"__v_isShallow",t),U(n,"dep",Fe(n,"value",e,null,t,le())),n}function et(e){e.dep&&e.dep.notify()}function tt(e){return Ze(e)?e.value:e}function nt(e){if(We(e))return e;for(var t={},n=Object.keys(e),r=0;r<n.length;r++)rt(t,e,n[r]);return t}function rt(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];if(Ze(e))return e.value;var r=e&&e.__ob__;return r&&r.dep.depend(),e},set:function(e){var r=t[n];Ze(r)&&!Ze(e)?r.value=e:t[n]=e}})}function it(e){var t=new Ce,n=e((function(){t.depend()}),(function(){t.notify()})),r=n.get,i=n.set,o={get value(){return r()},set value(e){i(e)}};return U(o,qe,!0),o}function ot(e){var t=i(e)?new Array(e.length):{};for(var n in e)t[n]=at(e,n);return t}function at(e,t,n){var r=e[t];if(Ze(r))return r;var i={get value(){var r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return U(i,qe,!0),i}var st="__v_rawToReadonly",lt="__v_rawToShallowReadonly";function ct(e){return ut(e,!1)}function ut(e,t){if(!h(e))return e;if($e(e))return e;var n=t?lt:st,r=e[n];if(r)return r;var i=Object.create(Object.getPrototypeOf(e));U(e,n,i),U(i,"__v_isReadonly",!0),U(i,"__v_raw",e),Ze(e)&&U(i,qe,!0),(t||Xe(e))&&U(i,"__v_isShallow",!0);for(var o=Object.keys(e),a=0;a<o.length;a++)dt(i,e,o[a],t);return i}function dt(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:function(){var e=t[n];return r||!h(e)?e:ct(e)}
2,set:function(){}})}function ht(e){return ut(e,!0)}function ft(e,t){var n,r,i=c(e);i?(n=e,r=I):(n=e.get,r=e.set);var o=le()?null:new Mr(fe,n,I,{lazy:!0});var a={effect:o,get value(){return o?(o.dirty&&o.evaluate(),Ce.target&&o.depend(),o.value):n()},set value(e){r(e)}};return U(a,qe,!0),U(a,"__v_isReadonly",i),a}var pt=_((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function gt(e,t){function n(){var e=n.fns;if(!i(e))return qn(e,null,arguments,t,"v-on handler");for(var r=e.slice(),o=0;o<r.length;o++)qn(r[o],null,arguments,t,"v-on handler")}return n.fns=e,n}function mt(e,t,n,r,i,a){var l,c,u,d;for(l in e)c=e[l],u=t[l],d=pt(l),o(c)||(o(u)?(o(c.fns)&&(c=e[l]=gt(c,a)),s(d.once)&&(c=e[l]=i(d.name,c,d.capture)),n(d.name,c,d.capture,d.passive,d.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)o(e[l])&&r((d=pt(l)).name,t[l],d.capture)}function vt(e,t,n){var r;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var i=e[t];
2function l(){n.apply(this,arguments),k(r.fns,l)}o(i)?r=gt([l]):a(i.fns)&&s(i.merged)?(r=i).fns.push(l):r=gt([i,l]),r.merged=!0,e[t]=r}function yt(e,t,n,r,i){if(a(t)){if(S(t,n))return e[n]=t[n],i||delete t[n],!0;if(S(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function bt(e){return l(e)?[ye(e)]:i(e)?wt(e):void 0}function xt(e){return a(e)&&a(e.text)&&!1===e.isComment}function wt(e,t){var n,r,c,u,d=[];for(n=0;n<e.length;n++)o(r=e[n])||"boolean"==typeof r||(u=d[c=d.length-1],i(r)?r.length>0&&(xt((r=wt(r,"".concat(t||"","_").concat(n)))[0])&&xt(u)&&(d[c]=ye(u.text+r[0].text),r.shift()),d.push.apply(d,r)):l(r)?xt(u)?d[c]=ye(u.text+r):""!==r&&d.push(ye(r)):xt(r)&&xt(u)?d[c]=ye(u.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),d.push(r)));return d}var kt=1,Ct=2;function St(e,t,n,r,o,d){return(i(n)||l(n))&&(o=r,r=n,n=void 0),s(d)&&(o=Ct),function(e,t,n,r,o){if(a(n)&&a(n.__ob__))return ve();a(n)&&a(n.is)&&(t=n.is);if(!t)return ve();0;i(r)&&c(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);o===Ct?r=bt(r):o===kt&&(r=function(e){for(var t=0;t<e.length;t++)if(i(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var s,l;if("string"==typeof t){var d=void 0;l=e.$vnode&&e.$vnode.ns||$.getTagNamespace(t),s=$.isReservedTag(t)?new me($.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(d=oi(e.$options,"components",t))?new me(t,n,r,void 0,void 0,e):qr(d,n,e,r,t)}else s=qr(t,n,e,r);return i(s)?s:a(s)?(a(l)&&_t(s,l),a(n)&&function(e){u(e.style)&&Tr(e.style);u(e.class)&&Tr(e.class)}(n),s):ve()}(e,t,n,r,o)}function _t(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var r=0,i=e.children.length;r<i;r++){var l=e.children[r];a(l.tag)&&(o(l.ns)||s(n)&&"svg"!==l.tag)&&_t(l,t,n)}}function At(e,t){var n,r,o,s,l=null;if(i(e)||"string"==typeof e)for(l=new Array(e.length),n=0,r=e.length;n<r;n++)l[n]=t(e[n],n);else if("number"==typeof e)for(l=new Array(e),n=0;n<e;n++)l[n]=t(n+1,n);else if(u(e))if(he&&e[Symbol.iterator]){l=[];for(var c=e[Symbol.iterator](),d=c.next();!d.done;)l.push(t(d.value,l.length)),d=c.next()}else for(o=Object.keys(e),l=new Array(o.length),n=0,r=o.length;n<r;n++)s=o[n],l[n]=t(e[s],s,n);return a(l)||(l=[]),l._isVList=!0,l}function Lt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||(c(t)?t():t)):i=this.$slots[e]||(c(t)?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Tt(e){return oi(this.$options,"filters",e,!0)||R}function Et(e,t){return i(e)?-1===e.indexOf(t):e!==t}function Ot(e,t,n,r,i){var o=$.keyCodes[t]||n;return i&&r&&!$.keyCodes[t]?Et(i,r):o?Et(o,e):r?O(r)!==t:void 0===e}function Mt(e,t,n,r,o){if(n)if(u(n)){i(n)&&(n=N(n));var a=void 0,s=function(i){if("class"===i||"style"===i||w(i))a=e;else{var s=e.attrs&&e.attrs.type;a=r||$.mustUseProp(t,s,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=L(i),c=O(i);l in a||c in a||(a[i]=n[i],o&&((e.on||(e.on={}))["update:".concat(i)]=function(e){n[i]=e}))};for(var l in n)s(l)}else;return e}function Pt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Nt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),"__static__".concat(e),!1),r}function Dt(e,t,n){return Nt(e,"__once__".concat(t).concat(n?"_".concat(n):""),!0),e}function Nt(e,t,n){if(i(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&It(e[r],"".concat(t,"_").concat(r),n);else It(e,t,n)}function It(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Ft(e,t){if(t)if(h(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Rt(e,t,n,r){t=t||{$stable:!n};for(var o=0;o<e.length;o++){var a=e[o];i(a)?Rt(a,t,n):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return r&&(t.$key=r),t}function zt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function jt(e,t){return"string"==typeof e?t+e:e}function Ht(e){e._o=Dt,e._n=y,e._s=m,e._l=At,e._t=Lt,e._q=z,e._i=j,e._m=Pt,e._f=Tt,e._k=Ot,e._b=Mt,e._v=ye,e._e=ve,e._u=Rt,e._g=Ft,e._d=zt,e._p=jt}function Yt(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var c in n)n[c].every(Bt)&&delete n[c];return n}function Bt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Wt(e){return e.isComment&&e.asyncFactory}function Xt(e,t,n,i){var o,a=Object.keys(n).length>0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&l===i.$key&&!a&&!i.$hasNormal)return i;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=$t(e,n,c,t[c]))}else o={};for(var u in n)u in o||(o[u]=Gt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=o),U(o,"$stable",s),U(o,"$key",l),U(o,"$hasNormal",a),o}function $t(e,t,n,r){var o=function(){var t=fe;ge(e);var n=arguments.length?r.apply(null,arguments):r({}),o=(n=n&&"object"==typeof n&&!i(n)?[n]:bt(n))&&n[0];return ge(t),n&&(!o||1===n.length&&o.isComment&&!Wt(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function Gt(e,t){return function(){return e[t]}}function Vt(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};U(t,"_v_attr_proxy",!0),Ut(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){e._listenersProxy||Ut(e._listenersProxy={},e.$listeners,r,e,"$listeners");return e._listenersProxy},get slots(){return function(e){e._slotsProxy||Zt(e._slotsProxy={},e.$scopedSlots);return e._slotsProxy}(e)},emit:M(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return rt(e,t,n)}))}}}function Ut(e,t,n,r,i){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,qt(e,a,r,i));for(var a in e)a in t||(o=!0,delete e[a]);return o}function qt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[r][t]}})}function Zt(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function Kt(){return en().slots}function Jt(){return en().attrs}function Qt(){return en().listeners}function en(){var e=fe;return e._setupContext||(e._setupContext=Vt(e))}function tn(e,t){var n=i(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var r in t){var o=n[r];o?i(o)||c(o)?n[r]={type:o,default:t[r]}:o.default=t[r]:null===o&&(n[r]={default:t[r]})}return n}var nn,rn,on=null;function an(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),u(e)?t.extend(e):e}function sn(e){if(i(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||Wt(n)))return n}}function ln(e,t){nn.$on(e,t)}function cn(e,t){nn.$off(e,t)}function un(e,t){var n=nn;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function dn(e,t,n){nn=e,mt(t,n||{},ln,cn,un,e),nn=void 0}var hn=function(){function e(e){void 0===e&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=rn,!e&&rn&&(this.index=(rn.scopes||(rn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=rn;try{return rn=this,e()}finally{rn=t}}else 0},e.prototype.on=function(){rn=this},e.prototype.off=function(){rn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this.active=!1}},e}();function fn(e){return new hn(e)}function pn(){return rn}function gn(e){rn&&rn.cleanups.push(e)}var mn=null;function vn(e){var t=mn;return mn=e,function(){mn=t}}function yn(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function bn(e,t){if(t){if(e._directInactive=!1,yn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)bn(e.$children[n]);wn(e,"activated")}}function xn(e,t){if(!(t&&(e._directInactive=!0,yn(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)xn(e.$children[n]);wn(e,"deactivated")}}function wn(e,t,n,r){void 0===r&&(r=!0),_e();var i=fe,o=pn();r&&ge(e);var a=e.$options[t],s="".concat(t," hook");if(a)for(var l=0,c=a.length;l<c;l++)qn(a[l],e,n||null,e,s);e._hasHookEvent&&e.$emit("hook:"+t),r&&(ge(i),o&&o.on()),Ae()}var kn=[],Cn=[],Sn={},_n=!1,An=!1,Ln=0;var Tn=0,En=Date.now;if(K&&!Q){var On=window.performance;On&&"function"==typeof On.now&&En()>
2document.createEvent("Event").timeStamp&&(En=function(){return On.now()})}var Mn=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Pn(){var e,t;for(Tn=En(),An=!0,kn.sort(Mn),Ln=0;Ln<kn.length;Ln++)(e=kn[Ln]).before&&e.before(),t=e.id,Sn[t]=null,e.run();var n=Cn.slice(),r=kn.slice();Ln=kn.length=Cn.length=0,Sn={},_n=An=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,bn(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&wn(r,"updated")}}(r),ke(),ce&&$.devtools&&ce.emit("flush")}function Dn(e){var t=e.id;if(null==Sn[t]&&(e!==Ce.target||!e.noRecurse)){if(Sn[t]=!0,An){for(var n=kn.length-1;n>Ln&&kn[n].id>e.id;)n--;kn.splice(n+1,0,e)}else kn.push(e);_n||(_n=!0,sr(Pn))}}var Nn="watcher",In="".concat(Nn," callback"),Fn="".concat(Nn," getter"),Rn="".concat(Nn," cleanup");function zn(e,t){return Wn(e,null,t)}function jn(e,t){return Wn(e,null,{flush:"post"})}function Hn(e,t){return Wn(e,null,{flush:"sync"})}var Yn={};function Bn(e,t,n){return Wn(e,t,n)}function Wn(e,t,n){var o=void 0===n?r:n,a=o.immediate,s=o.deep,l=o.flush,u=void 0===l?"pre":l;o.onTrack,o.onTrigger;var d,h,f=fe,p=function(e,t,n){void 0===n&&(n=null);var r=qn(e,null,n,f,t);return s&&r&&r.__ob__&&r.__ob__.dep.depend(),r},g=!1,m=!1;if(Ze(e)?(d=function(){return e.value},g=Xe(e)):We(e)?(d=function(){return e.__ob__.dep.depend(),e},s=!0):i(e)?(m=!0,g=e.some((function(e){return We(e)||Xe(e)})),d=function(){return e.map((function(e){return Ze(e)?e.value:We(e)?(e.__ob__.dep.depend(),Tr(e)):c(e)?p(e,Fn):void 0}))}):d=c(e)?t?function(){return p(e,Fn)}:function(){if(!f||!f._isDestroyed)return h&&h(),p(e,Nn,[y])}:I,t&&s){var v=d;d=function(){return Tr(v())}}var y=function(e){h=b.onStop=function(){p(e,Rn)}};if(le())return y=I,t?a&&p(t,In,[d(),m?[]:void 0,y]):d(),I;var b=new Mr(fe,d,I,{lazy:!0});b.noRecurse=!t;var x=m?[]:Yn;return b.run=function(){if(b.active)if(t){var e=b.get();(s||g||(m?e.some((function(e,t){return Y(e,x[t])})):Y(e,x)))&&(h&&h(),p(t,In,[e,x===Yn?void 0:x,y]),x=e)}else b.get()},"sync"===u?b.update=b.run:"post"===u?(b.post=!0,b.update=function(){return Dn(b)}):b.update=function(){if(f&&f===fe&&!f._isMounted){var e=f._preWatchers||(f._preWatchers=[]);e.indexOf(b)<0&&e.push(b)}else Dn(b)},t?a?b.run():x=b.get():"post"===u&&f?f.$once("hook:mounted",(function(){return b.get()})):b.get(),function(){b.teardown()}}function Xn(e,t){fe&&($n(fe)[e]=t)}function $n(e){var t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function Gn(e,t,n){void 0===n&&(n=!1);var r=fe;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&c(t)?t.call(r):t}else 0}function Vn(e,t,n){return St(fe,e,t,n,2,!0)}function Un(e,t,n){_e();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Zn(e,r,"errorCaptured hook")}}Zn(e,t,n)}finally{Ae()}}function qn(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&g(o)&&!o._handled&&(o.catch((function(e){return Un(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){Un(e,r,i)}return o}function Zn(e,t,n){if($.errorHandler)try{return $.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Kn(t,null,"config.errorHandler")}Kn(e,t,n)}function Kn(e,t,n){if(!K||"undefined"==typeof console)throw e;console.error(e)}var Jn,Qn=!1,er=[],tr=!1;function nr(){tr=!1;var e=er.slice(0);er.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ue(Promise)){var rr=Promise.resolve();Jn=function(){rr.then(nr),ne&&setTimeout(I)},Qn=!0}else if(Q||"undefined"==typeof MutationObserver||!ue(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Jn="undefined"!=typeof setImmediate&&ue(setImmediate)?function(){setImmediate(nr)}:function(){setTimeout(nr,0)};else{var ir=1,or=new MutationObserver(nr),ar=document.createTextNode(String(ir));or.observe(ar,{characterData:!0}),Jn=function(){ir=(ir+1)%2,ar.data=String(ir)},Qn=!0}function sr(e,t){var n;if(er.push((function(){if(e)try{e.call(t)}catch(e){Un(e,t,"nextTick")}else n&&n(t)})),tr||(tr=!0,Jn()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}function lr(e){if(void 0===e&&(e="$style"),!fe)return r;var t=fe[e];return t||r}function cr(e){if(K){var t=fe;t&&jn((function(){var n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){var i=n.style;for(var o in r)i.setProperty("--".concat(o),r[o])}}))}}function ur(e){c(e)&&(e={loader:e});var t=e.loader,n=e.loadingComponent,r=e.errorComponent,i=e.delay,o=void 0===i?200:i,a=e.timeout,s=(e.suspensible,e.onError);var l=null,u=0,d=function(){var e;
2return l||(e=l=t().catch((function(e){if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise((function(t,n){s(e,(function(){return t((u++,l=null,d()))}),(function(){return n(e)}),u+1)}));throw e})).then((function(t){return e!==l&&l?l:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t)})))};return function(){return{component:d(),delay:o,timeout:a,error:r,loading:n}}}function dr(e){return function(t,n){if(void 0===n&&(n=fe),n)return function(e,t,n){var r=e.$options;r[t]=ti(r[t],n)}(n,e,t)}}var hr=dr("beforeMount"),fr=dr("mounted"),pr=dr("beforeUpdate"),gr=dr("updated"),mr=dr("beforeDestroy"),vr=dr("destroyed"),yr=dr("activated"),br=dr("deactivated"),xr=dr("serverPrefetch"),wr=dr("renderTracked"),kr=dr("renderTriggered"),Cr=dr("errorCaptured");function Sr(e,t){void 0===t&&(t=fe),Cr(e,t)}var _r="2.7.16";function Ar(e){return e}var Lr=new de;function Tr(e){return Er(e,Lr),Lr.clear(),e}function Er(e,t){var n,r,o=i(e);if(!(!o&&!u(e)||e.__v_skip||Object.isFrozen(e)||e instanceof me)){if(e.__ob__){var a=e.__ob__.dep.id;if(t.has(a))return;t.add(a)}if(o)for(n=e.length;n--;)Er(e[n],t);else if(Ze(e))Er(e.value,t);else for(n=(r=Object.keys(e)).length;n--;)Er(e[r[n]],t)}}var Or=0,Mr=function(){function e(e,t,n,r,i){var o,a;o=this,void 0===(a=rn&&!rn._vm?rn:e?e._scope:void 0)&&(a=rn),a&&a.active&&a.effects.push(o),(this.vm=e)&&i&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Or,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="",c(t)?this.getter=t:(this.getter=function(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()}return e.prototype.get=function(){var e;_e(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Un(e,t,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&Tr(e),Ae(),this.cleanupDeps()}return e},e.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},e.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},e.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Dn(this)},e.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'.concat(this.expression,'"');qn(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},e.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1}
2,e.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},e.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&k(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},e}(),Pr={enumerable:!0,configurable:!0,get:I,set:I};function Dr(e,t,n){Pr.get=function(){return this[t][n]},Pr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Pr)}function Nr(e){var t=e.$options;if(t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props=Ye({}),i=e.$options._propKeys=[],o=!e.$parent;o||Pe(!1);var a=function(o){i.push(o);var a=ai(o,t,n,e);Fe(r,o,a,void 0,!0),o in e||Dr(e,"_props",o)};for(var s in t)a(s);Pe(!0)}(e,t.props),function(e){var t=e.$options,n=t.setup;if(n){var r=e._setupContext=Vt(e);ge(e),_e();var i=qn(n,null,[e._props||Ye({}),r],e,"setup");if(Ae(),ge(),c(i))t.render=i;else if(u(i))if(e._setupState=i,i.__sfc){var o=e._setupProxy={};for(var a in i)"__sfc"!==a&&rt(o,i,a)}else for(var a in i)V(a)||rt(e,i,a)}}(e),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?I:M(t[n],e)}(e,t.methods),t.data)!function(e){var t=e.$options.data;t=e._data=c(t)?function(e,t){_e();try{return e.call(t,t)}catch(e){return Un(e,t,"data()"),{}}finally{Ae()}}(t,e):t||{},h(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&S(r,o)||V(o)||Dr(e,"_data",o)}var a=Ie(t);a&&a.vmCount++}(e);else{var n=Ie(e._data={});n&&n.vmCount++}t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=le();for(var i in t){var o=t[i],a=c(o)?o:o.get;0,r||(n[i]=new Mr(e,a||I,I,Ir)),i in e||Fr(e,i,o)}}(e,t.computed),t.watch&&t.watch!==oe&&function(e,t){for(var n in t){var r=t[n];if(i(r))for(var o=0;o<r.length;o++)jr(e,n,r[o]);else jr(e,n,r)}}(e,t.watch)}var Ir={lazy:!0};function Fr(e,t,n){var r=!le();c(n)?(Pr.get=r?Rr(t):zr(n),Pr.set=I):(Pr.get=n.get?r&&!1!==n.cache?Rr(t):zr(n.get):I,Pr.set=n.set||I),Object.defineProperty(e,t,Pr)}function Rr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),Ce.target&&t.depend(),t.value}}function zr(e){return function(){return e.call(this,this)}}function jr(e,t,n,r){return h(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Hr(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from;if(a in t._provided)n[o]=t._provided[a];else if("default"in e[o]){var s=e[o].default;n[o]=c(s)?s.call(t):s}else 0}}return n}}var Yr=0;function Br(e){var t=e.options;if(e.super){var n=Br(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&D(e.extendOptions,r),(t=e.options=ii(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function Wr(e,t,n,o,a){var l,c=this,u=a.options;S(o,"_uid")?(l=Object.create(o))._original=o:(l=o,o=o._original);var d=s(u._compiled),h=!d;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||r,this.injections=Hr(u.inject,o),this.slots=function(){return c.$slots||Xt(o,e.scopedSlots,c.$slots=Yt(n,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Xt(o,e.scopedSlots,this.slots())}}),d&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Xt(o,e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var a=St(l,e,t,n,r,h);return a&&!i(a)&&(a.fnScopeId=u._scopeId,a.fnContext=o),a}:this._c=function(e,t,n,r){return St(l,e,t,n,r,h)}}function Xr(e,t,n,r,i){var o=be(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function $r(e,t){for(var n in t)e[L(n)]=t[n]}function Gr(e){return e.name||e.__name||e._componentTag}Ht(Wr.prototype);var Vr={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Vr.prepatch(n,n)}else{(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns);return new e.componentOptions.Ctor(n)}(e,mn)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,l=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),c=!!(o||e.$options._renderChildren||l),u=e.$vnode;e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o;var d=i.data.attrs||r;e._attrsProxy&&Ut(e._attrsProxy,d,u.data&&u.data.attrs||r,e,"$attrs")&&(c=!0),e.$attrs=d,n=n||r;var h=e.$options._parentListeners;if(e._listenersProxy&&Ut(e._listenersProxy,n,h||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,dn(e,n,h),t&&e.$options.props){Pe(!1);for(var f=e._props,p=e.$options._propKeys||[],g=0;g<p.length;g++){var m=p[g],v=e.$options.props;f[m]=ai(m,v,t,e)}Pe(!0),e.$options.propsData=t}c&&(e.$slots=Yt(o,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,wn(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Cn.push(t)):bn(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?xn(t,!0):t.$destroy())}},Ur=Object.keys(Vr);function qr(e,t,n,l,c){if(!o(e)){var d=n.$options._base;if(u(e)&&(e=d.extend(e)),"function"==typeof e){var h;if(o(e.cid)&&(e=function(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=on;
2if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var r=e.owners=[n],i=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return k(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},h=H((function(n){e.resolved=an(n,t),i?r.length=0:d(!0)})),f=H((function(t){a(e.errorComp)&&(e.error=!0,d(!0))})),p=e(h,f);return u(p)&&(g(p)?o(e.resolved)&&p.then(h,f):g(p.component)&&(p.component.then(h,f),a(p.error)&&(e.errorComp=an(p.error,t)),a(p.loading)&&(e.loadingComp=an(p.loading,t),0===p.delay?e.loading=!0:l=setTimeout((function(){l=null,o(e.resolved)&&o(e.error)&&(e.loading=!0,d(!1))}),p.delay||200)),a(p.timeout)&&(c=setTimeout((function(){c=null,o(e.resolved)&&f(null)}),p.timeout)))),i=!1,e.loading?e.loadingComp:e.resolved}}(h=e,d),void 0===e))return function(e,t,n,r,i){var o=ve();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(h,t,n,l,c);t=t||{},Br(e),a(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),s=o[r],l=t.model.callback;a(s)?(i(s)?-1===s.indexOf(l):s!==l)&&(o[r]=[l].concat(s)):o[r]=l}(e.options,t);var f=function(e,t){var n=t.options.props;if(!o(n)){var r={},i=e.attrs,s=e.props;if(a(i)||a(s))for(var l in n){var c=O(l);yt(r,s,l,c,!0)||yt(r,i,l,c,!1)}return r}}(t,e);if(s(e.options.functional))return function(e,t,n,o,s){var l=e.options,c={},u=l.props;if(a(u))for(var d in u)c[d]=ai(d,u,t||r);else a(n.attrs)&&$r(c,n.attrs),a(n.props)&&$r(c,n.props);var h=new Wr(n,c,s,o,e),f=l.render.call(null,h._c,h);if(f instanceof me)return Xr(f,n,h.parent,l);if(i(f)){for(var p=bt(f)||[],g=new Array(p.length),m=0;m<p.length;m++)g[m]=Xr(p[m],n,h.parent,l);return g}}(e,f,t,n,l);var p=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Ur.length;n++){var r=Ur[n],i=t[r],o=Vr[r];i===o||i&&i._merged||(t[r]=i?Zr(o,i):o)}}(t);var v=Gr(e.options)||c;return new me("vue-component-".concat(e.cid).concat(v?"-".concat(v):""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:p,tag:c,children:l},h)}}}function Zr(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var Kr=I,Jr=$.optionMergeStrategies;function Qr(e,t,n){if(void 0===n&&(n=!0),!t)return e;for(var r,i,o,a=he?Reflect.ownKeys(t):Object.keys(t),s=0;s<a.length;s++)"__ob__"!==(r=a[s])&&(i=e[r],o=t[r],n&&S(e,r)?i!==o&&h(i)&&h(o)&&Qr(i,o):Re(e,r,o));return e}function ei(e,t,n){return n?function(){var r=c(t)?t.call(n,n):t,i=c(e)?e.call(n,n):e;return r?Qr(r,i):i}:t?e?function(){return Qr(c(t)?t.call(this,this):t,c(e)?e.call(this,this):e)}:t:e}function ti(e,t){var n=t?e?e.concat(t):i(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function ni(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Jr.data=function(e,t,n){return n?ei(e,t,n):t&&"function"!=typeof t?e:ei(e,t)},X.forEach((function(e){Jr[e]=ti})),W.forEach((function(e){Jr[e+"s"]=ni})),Jr.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var o={};for(var a in D(o,e),t){var s=o[a],l=t[a];s&&!i(s)&&(s=[s]),o[a]=s?s.concat(l):i(l)?l:[l]}return o},Jr.props=Jr.methods=Jr.inject=Jr.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Jr.provide=function(e,t){return e?function(){var n=Object.create(null);return Qr(n,c(e)?e.call(this):e),t&&Qr(n,c(t)?t.call(this):t,!1),n}:t};var ri=function(e,t){return void 0===t?e:t};function ii(e,t,n){if(c(t)&&(t=t.options),function(e){var t=e.props;if(t){var n,r,o={};if(i(t))for(n=t.length;n--;)"string"==typeof(r=t[n])&&(o[L(r)]={type:null});else if(h(t))for(var a in t)r=t[a],o[L(a)]=h(r)?r:{type:r};e.props=o}}(t),function(e){var t=e.inject;if(t){var n=e.inject={};if(i(t))for(var r=0;r<t.length;r++)n[t[r]]={from:t[r]};else if(h(t))for(var o in t){var a=t[o];n[o]=h(a)?D({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];c(r)&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=ii(e,t.extends,n)),t.mixins))for(var r=0,o=t.mixins.length;r<o;r++)e=ii(e,t.mixins[r],n);var a,s={};for(a in e)l(a);for(a in t)S(e,a)||l(a);function l(r){var i=Jr[r]||ri;s[r]=i(e[r],t[r],n,r)}return s}function oi(e,t,n,r){if("string"==typeof n){var i=e[t];if(S(i,n))return i[n];var o=L(n);if(S(i,o))return i[o];var a=T(o);return S(i,a)?i[a]:i[n]||i[o]||i[a]}}function ai(e,t,n,r){var i=t[e],o=!S(n,e),a=n[e],s=ui(Boolean,i.type);if(s>-1)if(o&&!S(i,"default"))a=!1;else if(""===a||a===O(e)){var l=ui(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!S(t,"default"))return;var r=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return c(r)&&"Function"!==li(t.type)?r.call(e):r}(r,i,e);var u=Me;Pe(!0),Ie(a),Pe(u)}return a}var si=/^\s*function (\w+)/;function li(e){var t=e&&e.toString().match(si);return t?t[1]:""}function ci(e,t){return li(e)===li(t)}function ui(e,t){if(!i(t))return ci(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(ci(t[n],e))return n;return-1}function di(e){this._init(e)}function hi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=Gr(e)||Gr(n.options);var a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ii(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)Dr(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)Fr(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,W.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[r]=a,a}}function fi(e){return e&&(Gr(e.Ctor.options)||e.tag)}function pi(e,t){return i(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function gi(e,t){var n=e.cache,r=e.keys,i=e._vnode,o=e.$vnode;for(var a in n){var s=n[a];if(s){var l=s.name;l&&!t(l)&&mi(n,a,r,i)}}o.componentOptions.children=void 0}function mi(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,k(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Yr++,t._isVue=!0,t.__v_skip=!0,t._scope=new hn(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=ii(Br(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&dn(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=Yt(t._renderChildren,i),e.$scopedSlots=n?Xt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=function(t,n,r,i){return St(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return St(e,t,n,r,i,!0)};var o=n&&n.data;Fe(e,"$attrs",o&&o.attrs||r,null,!0),Fe(e,"$listeners",t._parentListeners||r,null,!0)}(t),wn(t,"beforeCreate",void 0,!1),function(e){var t=Hr(e.$options.inject,e);t&&(Pe(!1),Object.keys(t).forEach((function(n){Fe(e,n,t[n])})),Pe(!0))}(t),Nr(t),function(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!u(n))return;for(var r=$n(e),i=he?Reflect.ownKeys(n):Object.keys(n),o=0;o<i.length;o++){var a=i[o];Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(n,a))}}}(t),wn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(di),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Re,e.prototype.$delete=ze,e.prototype.$watch=function(e,t,n){var r=this;if(h(t))return jr(r,e,t,n);(n=n||{}).user=!0;var i=new Mr(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'.concat(i.expression,'"');_e(),qn(t,r,[i.value],r,o),Ae()}return function(){i.teardown()}}}(di),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(i(e))for(var o=0,a=e.length;o<a;o++)r.$on(e[o],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(i(e)){for(var r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}var a,s=n._events[e];if(!s)return n;if(!t)return n._events[e]=null,n;for(var l=s.length;l--;)if((a=s[l])===t||a.fn===t){s.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?P(n):n;
2for(var r=P(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;o<a;o++)qn(n[o],t,r,t,i)}return t}}(di),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=vn(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);for(var a=n;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){wn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||k(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),wn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(di),function(e){Ht(e.prototype),e.prototype.$nextTick=function(e){return sr(e,this)},e.prototype._render=function(){var e=this,t=e.$options,n=t.render,r=t._parentVnode;r&&e._isMounted&&(e.$scopedSlots=Xt(e.$parent,r.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&Zt(e._slotsProxy,e.$scopedSlots)),e.$vnode=r;var o,a=fe,s=on;try{ge(e),on=e,o=n.call(e._renderProxy,e.$createElement)}catch(t){Un(t,e,"render"),o=e._vnode}finally{on=s,ge(a)}return i(o)&&1===o.length&&(o=o[0]),o instanceof me||(o=ve()),o.parent=r,o}}(di);var vi=[String,RegExp,Array],yi={name:"keep-alive",abstract:!0,props:{include:vi,exclude:vi,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:fi(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&mi(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mi(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){gi(e,(function(e){return pi(t,e)}))})),this.$watch("exclude",(function(t){gi(e,(function(e){return!pi(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=sn(e),n=t&&t.componentOptions;if(n){var r=fi(n),i=this.include,o=this.exclude;if(i&&(!r||!pi(i,r))||o&&r&&pi(o,r))return t;var a=this.cache,s=this.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;a[l]?(t.componentInstance=a[l].componentInstance,k(s,l),s.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},bi={KeepAlive:yi};!function(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:Kr,extend:D,mergeOptions:ii,defineReactive:Fe},e.set=Re,e.delete=ze,e.nextTick=sr,e.observable=function(e){return Ie(e),e},e.options=Object.create(null),W.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,bi),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=P(arguments,1);return n.unshift(this),c(e.install)?e.install.apply(e,n):c(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=ii(this.options,e),this}}(e),hi(e),function(e){W.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&h(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&c(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(di),Object.defineProperty(di.prototype,"$isServer",{get:le}),Object.defineProperty(di.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(di,"FunctionalRenderContext",{value:Wr}),di.version=_r;var xi=b("style,class"),wi=b("input,textarea,option,select,progress"),ki=function(e,t,n){return"value"===n&&wi(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Ci=b("contenteditable,draggable,spellcheck"),Si=b("events,caret,typing,plaintext-only"),_i=b("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ai="http://www.w3.org/1999/xlink",Li=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ti=function(e){return Li(e)?e.slice(6,e.length):""},Ei=function(e){return null==e||!1===e};function Oi(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Mi(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=Mi(t,n.data));return function(e,t){if(a(e)||a(t))return Pi(e,Di(t));return""}(t.staticClass,t.class)}function Mi(e,t){return{staticClass:Pi(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Pi(e,t){return e?t?e+" "+t:e:t||""}function Di(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)a(t=Di(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):u(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Ii=b("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Fi=b("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ri=function(e){return Ii(e)||Fi(e)};
2function zi(e){return Fi(e)?"svg":"math"===e?"math":void 0}var ji=Object.create(null);var Hi=b("text,number,password,search,email,tel,url");function Yi(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var Bi=Object.freeze({__proto__:null,createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Ni[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Wi={create:function(e,t){Xi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Xi(e,!0),Xi(t))},destroy:function(e){Xi(e,!0)}};function Xi(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(n))qn(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,d="string"==typeof n||"number"==typeof n,h=Ze(n),f=r.$refs;if(d||h)if(u){var p=d?f[n]:n.value;t?i(p)&&k(p,o):i(p)?p.includes(o)||p.push(o):d?(f[n]=[o],$i(r,n,f[n])):n.value=[o]}else if(d){if(t&&f[n]!==o)return;f[n]=l,$i(r,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function $i(e,t,n){var r=e._setupState;r&&S(r,t)&&(Ze(r[t])?r[t].value=n:r[t]=n)}var Gi=new me("",{},[]),Vi=["create","activate","update","remove","destroy"];function Ui(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||Hi(r)&&Hi(i)}(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function qi(e,t,n){var r,i,o={};for(r=t;r<=n;++r)a(i=e[r].key)&&(o[i]=r);return o}var Zi={create:Ki,update:Ki,destroy:function(e){Ki(e,Gi)}};function Ki(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===Gi,a=t===Gi,s=Qi(e.data.directives,e.context),l=Qi(t.data.directives,t.context),c=[],u=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,to(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(to(i,"bind",t,e),i.def&&i.def.inserted&&c.push(i));if(c.length){var d=function(){for(var n=0;n<c.length;n++)to(c[n],"inserted",t,e)};o?vt(t,"insert",d):d()}u.length&&vt(t,"postpatch",(function(){for(var n=0;n<u.length;n++)to(u[n],"componentUpdated",t,e)}));if(!o)for(n in s)l[n]||to(s[n],"unbind",e,e,a)}(e,t)}var Ji=Object.create(null);function Qi(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++){if((r=e[n]).modifiers||(r.modifiers=Ji),i[eo(r)]=r,t._setupState&&t._setupState.__sfc){var o=r.def||oi(t,"_setupState","v-"+r.name);r.def="function"==typeof o?{bind:o,update:o}:o}r.def=r.def||oi(t.$options,"directives",r.name)}return i}function eo(e){return e.rawName||"".concat(e.name,".").concat(Object.keys(e.modifiers||{}).join("."))}function to(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){Un(r,n.context,"directive ".concat(e.name," ").concat(t," hook"))}}var no=[Wi,Zi];function ro(e,t){var n=t.componentOptions;if(!(a(n)&&!1===n.Ctor.options.inheritAttrs||o(e.data.attrs)&&o(t.data.attrs))){var r,i,l=t.elm,c=e.data.attrs||{},u=t.data.attrs||{};for(r in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.attrs=D({},u)),u)i=u[r],c[r]!==i&&io(l,r,i,t.data.pre);for(r in(Q||te)&&u.value!==c.value&&io(l,"value",u.value),c)o(u[r])&&(Li(r)?l.removeAttributeNS(Ai,Ti(r)):Ci(r)||l.removeAttribute(r))}}function io(e,t,n,r){r||e.tagName.indexOf("-")>-1?oo(e,t,n):_i(t)?Ei(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Ci(t)?e.setAttribute(t,function(e,t){return Ei(t)||"false"===t?"false":"contenteditable"===e&&Si(t)?t:"true"}(t,n)):Li(t)?Ei(n)?e.removeAttributeNS(Ai,Ti(t)):e.setAttributeNS(Ai,t,n):oo(e,t,n)}
vendor: 4,107 bytes, line 2
2function oo(e,t,n){if(Ei(n))e.removeAttribute(t);else{if(Q&&!ee&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var ao={create:ro,update:ro};function so(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Oi(t),l=n._transitionClasses;a(l)&&(s=Pi(s,Di(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var lo,co,uo,ho,fo,po,go={create:so,update:so},mo=/[\w).+\-_$\]]/;function vo(e){var t,n,r,i,o,a=!1,s=!1,l=!1,c=!1,u=0,d=0,h=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(l)96===t&&92!==n&&(l=!1);else if(c)47===t&&92!==n&&(c=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||h){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:l=!0;break;case 40:h++;break;case 41:h--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,g=void 0;p>=0&&" "===(g=e.charAt(p));p--);g&&mo.test(g)||(c=!0)}}else void 0===i?(f=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==f&&m(),o)for(r=0;r<o.length;r++)i=yo(i,o[r]);return i}function yo(e,t){var n=t.indexOf("(");if(n<0)return'_f("'.concat(t,'")(').concat(e,")");var r=t.slice(0,n),i=t.slice(n+1);return'_f("'.concat(r,'")(').concat(e).concat(")"!==i?","+i:i)}function bo(e,t){console.error("[Vue compiler]: ".concat(e))}function xo(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function wo(e,t,n,r,i){(e.props||(e.props=[])).push(Oo({name:t,value:n,dynamic:i},r)),e.plain=!1}function ko(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Oo({name:t,value:n,dynamic:i},r)),e.plain=!1}function Co(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Oo({name:t,value:n},r))}function So(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Oo({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function _o(e,t,n){return n?"_p(".concat(t,',"').concat(e,'")'):e+t}function Ao(e,t,n,i,o,a,s,l){var c;(i=i||r).right?l?t="(".concat(t,")==='click'?'contextmenu':(").concat(t,")"):"click"===t&&(t="contextmenu",delete i.right):i.middle&&(l?t="(".concat(t,")==='click'?'mouseup':(").concat(t,")"):"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=_o("!",t,l)),i.once&&(delete i.once,t=_o("~",t,l)),i.passive&&(delete i.passive,t=_o("&",t,l)),i.native?(delete i.native,c=e.nativeEvents||(e.nativeEvents={})):c=e.events||(e.events={});var u=Oo({value:n.trim(),dynamic:l},s);i!==r&&(u.modifiers=i);var d=c[t];Array.isArray(d)?o?d.unshift(u):d.push(u):c[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function Lo(e,t,n){var r=To(e,":"+t)||To(e,"v-bind:"+t);if(null!=r)return vo(r);if(!1!==n){var i=To(e,t);if(null!=i)return JSON.stringify(i)}}function To(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Eo(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Oo(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Mo(e,t,n){var r=n||{},i=r.number,o="$$v",a=o;r.trim&&(a="(typeof ".concat(o," === 'string'")+"? ".concat(o,".trim()")+": ".concat(o,")")),i&&(a="_n(".concat(a,")"));var s=Po(t,a);e.model={value:"(".concat(t,")"),expression:JSON.stringify(t),callback:"function (".concat(o,") {").concat(s,"}")}}function Po(e,t){var n=function(e){if(e=e.trim(),lo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<lo-1)return(ho=e.lastIndexOf("."))>-1?{exp:e.slice(0,ho),key:'"'+e.slice(ho+1)+'"'}:{exp:e,key:null};co=e,ho=fo=po=0;for(;!No();)Io(uo=Do())?Ro(uo):91===uo&&Fo(uo);return{exp:e.slice(0,fo),key:e.slice(fo+1,po)}}(e);return null===n.key?"".concat(e,"=").concat(t):"$set(".concat(n.exp,", ").concat(n.key,", ").concat(t,")")}
vendor: 3,657 bytes, line 2
2function Do(){return co.charCodeAt(++ho)}function No(){return ho>=lo}function Io(e){return 34===e||39===e}function Fo(e){var t=1;for(fo=ho;!No();)if(Io(e=Do()))Ro(e);else if(91===e&&t++,93===e&&t--,0===t){po=ho;break}}function Ro(e){for(var t=e;!No()&&(e=Do())!==t;);}var zo,jo="__r",Ho="__c";function Yo(e,t,n){var r=zo;return function i(){null!==t.apply(null,arguments)&&Xo(e,i,n,r)}}var Bo=Qn&&!(ie&&Number(ie[1])<=53);function Wo(e,t,n,r){if(Bo){var i=Tn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}zo.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function Xo(e,t,n,r){(r||zo).removeEventListener(e,t._wrapper||t,n)}function $o(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};zo=t.elm||e.elm,function(e){if(a(e[jo])){var t=Q?"change":"input";e[t]=[].concat(e[jo],e[t]||[]),delete e[jo]}a(e[Ho])&&(e.change=[].concat(e[Ho],e.change||[]),delete e[Ho])}(n),mt(n,r,Wo,Xo,Yo,t.context),zo=void 0}}var Go,Vo={create:$o,update:$o,destroy:function(e){return $o(e,Gi)}};function Uo(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=t.elm,l=e.data.domProps||{},c=t.data.domProps||{};for(n in(a(c.__ob__)||s(c._v_attr_proxy))&&(c=t.data.domProps=D({},c)),l)n in c||(i[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var u=o(r)?"":String(r);qo(i,u)&&(i.value=u)}else if("innerHTML"===n&&Fi(i.tagName)&&o(i.innerHTML)){(Go=Go||document.createElement("div")).innerHTML="<svg>".concat(r,"</svg>");for(var d=Go.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;d.firstChild;)i.appendChild(d.firstChild)}else if(r!==l[n])try{i[n]=r}catch(e){}}}}function qo(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Zo={create:Uo,update:Uo},Ko=_((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Jo(e){var t=Qo(e.style);return e.staticStyle?D(e.staticStyle,t):t}function Qo(e){return Array.isArray(e)?N(e):"string"==typeof e?Ko(e):e}var ea,ta=/^--/,na=/\s*!important$/,ra=function(e,t,n){if(ta.test(t))e.style.setProperty(t,n);else if(na.test(n))e.style.setProperty(O(t),n.replace(na,""),"important");else{var r=oa(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},ia=["Webkit","Moz","ms"],oa=_((function(e){if(ea=ea||document.createElement("div").style,"filter"!==(e=L(e))&&e in ea)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<ia.length;n++){var r=ia[n]+t;if(r in ea)return r}}));function aa(e,t){var n=t.data,r=e.data;if(!(o(n.staticStyle)&&o(n.style)&&o(r.staticStyle)&&o(r.style))){var i,s,l=t.elm,c=r.staticStyle,u=r.normalizedStyle||r.style||{},d=c||u,h=Qo(t.data.style)||{};t.data.normalizedStyle=a(h.__ob__)?D({},h):h;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Jo(i.data))&&D(r,n);(n=Jo(e.data))&&D(r,n);for(var o=e;o=o.parent;)o.data&&(n=Jo(o.data))&&D(r,n);return r}(t,!0);for(s in d)o(f[s])&&ra(l,s,"");for(s in f)i=f[s],ra(l,s,null==i?"":i)}}var sa={create:aa,update:aa},la=/\s+/;function ca(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>
2-1?t.split(la).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ua(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(la).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function da(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&D(t,ha(e.name||"v")),D(t,e),t}return"string"==typeof e?ha(e):void 0}}var ha=_((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),fa=K&&!ee,pa="transition",ga="animation",ma="transition",va="transitionend",ya="animation",ba="animationend";fa&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ma="WebkitTransition",va="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ya="WebkitAnimation",ba="webkitAnimationEnd"));var xa=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function wa(e){xa((function(){xa(e)}))}function ka(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ca(e,t))}function Ca(e,t){e._transitionClasses&&k(e._transitionClasses,t),ua(e,t)}function Sa(e,t,n){var r=Aa(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===pa?va:ba,l=0,c=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++l>=a&&c()};setTimeout((function(){l<a&&c()}),o+1),e.addEventListener(s,u)}var _a=/\b(transform|all)(,|$)/;function Aa(e,t){var n,r=window.getComputedStyle(e),i=(r[ma+"Delay"]||"").split(", "),o=(r[ma+"Duration"]||"").split(", "),a=La(i,o),s=(r[ya+"Delay"]||"").split(", "),l=(r[ya+"Duration"]||"").split(", "),c=La(s,l),u=0,d=0;return t===pa?a>0&&(n=pa,u=a,d=o.length):t===ga?c>0&&(n=ga,u=c,d=l.length):d=(n=(u=Math.max(a,c))>0?a>c?pa:ga:null)?n===pa?o.length:l.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===pa&&_a.test(r[ma+"Property"])}}function La(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Ta(t)+Ta(e[n])})))}function Ta(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ea(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=da(e.data.transition);if(!o(r)&&!a(n._enterCb)&&1===n.nodeType){for(var i=r.css,s=r.type,l=r.enterClass,d=r.enterToClass,h=r.enterA
vendor: 9,813 bytes, line 2
2ctiveClass,f=r.appearClass,p=r.appearToClass,g=r.appearActiveClass,m=r.beforeEnter,v=r.enter,b=r.afterEnter,x=r.enterCancelled,w=r.beforeAppear,k=r.appear,C=r.afterAppear,S=r.appearCancelled,_=r.duration,A=mn,L=mn.$vnode;L&&L.parent;)A=L.context,L=L.parent;var T=!A._isMounted||!e.isRootInsert;if(!T||k||""===k){var E=T&&f?f:l,O=T&&g?g:h,M=T&&p?p:d,P=T&&w||m,D=T&&c(k)?k:v,N=T&&C||b,I=T&&S||x,F=y(u(_)?_.enter:_);0;var R=!1!==i&&!ee,z=Pa(D),j=n._enterCb=H((function(){R&&(Ca(n,M),Ca(n,O)),j.cancelled?(R&&Ca(n,E),I&&I(n)):N&&N(n),n._enterCb=null}));e.data.show||vt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,j)})),P&&P(n),R&&(ka(n,E),ka(n,O),wa((function(){Ca(n,E),j.cancelled||(ka(n,M),z||(Ma(F)?setTimeout(j,F):Sa(n,s,j)))}))),e.data.show&&(t&&t(),D&&D(n,j)),R||z||j()}}}function Oa(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=da(e.data.transition);if(o(r)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var i=r.css,s=r.type,l=r.leaveClass,c=r.leaveToClass,d=r.leaveActiveClass,h=r.beforeLeave,f=r.leave,p=r.afterLeave,g=r.leaveCancelled,m=r.delayLeave,v=r.duration,b=!1!==i&&!ee,x=Pa(f),w=y(u(v)?v.leave:v);0;var k=n._leaveCb=H((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Ca(n,c),Ca(n,d)),k.cancelled?(b&&Ca(n,l),g&&g(n)):(t(),p&&p(n)),n._leaveCb=null}));m?m(C):C()}function C(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),b&&(ka(n,l),ka(n,d),wa((function(){Ca(n,l),k.cancelled||(ka(n,c),x||(Ma(w)?setTimeout(k,w):Sa(n,s,k)))}))),f&&f(n,k),b||x||k())}}function Ma(e){return"number"==typeof e&&!isNaN(e)}function Pa(e){if(o(e))return!1;var t=e.fns;return a(t)?Pa(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Da(e,t){!0!==t.data.show&&Ea(t)}var Na=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;t<Vi.length;++t)for(r[Vi[t]]=[],n=0;n<c.length;++n)a(c[n][Vi[t]])&&r[Vi[t]].push(c[n][Vi[t]]);function d(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function h(e,t,n,i,o,l,c){if(a(e.elm)&&a(l)&&(e=l[c]=be(e)),e.isRootInsert=!o,!function(e,t,n,i){var o=e.data;if(a(o)){var l=a(e.componentInstance)&&o.keepAlive;if(a(o=o.hook)&&a(o=o.init)&&o(e,!1),a(e.componentInstance))return f(e,t),p(n,e.elm,i),s(l)&&function(e,t,n,i){var o,s=e;for(;s.componentInstance;)if(a(o=(s=s.componentInstance._vnode).data)&&a(o=o.transition)){for(o=0;o<r.activate.length;++o)r.activate[o](Gi,s);t.push(s);break}p(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,h=e.children,m=e.tag;a(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),y(e),g(e,h,t),a(d)&&v(e,t),p(n,e.elm,i)):s(e.isComment)?(e.elm=u.createComment(e.text),p(n,e.elm,i)):(e.elm=u.createTextNode(e.text),p(n,e.elm,i))}}function f(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(v(e,t),y(e)):(Xi(e),t.push(e))}function p(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function g(e,t,n){if(i(t)){0;for(var r=0;r<t.length;++r)h(t[r],n,e.elm,null,!0,t,r)}else l(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function v(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Gi,e);a(t=e.data.hook)&&(a(t.create)&&t.create(Gi,e),a(t.insert)&&n.push(e))}function y(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var n=e;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent;a(t=mn)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function x(e,t,n,r,i,o){for(;r<=i;++r)h(n[r],o,e,t,!1,n,r)}function w(e){var t,n,i=e.data;if(a(i))for(a(t=i.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function k(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(C(r),w(r)):d(r.elm))}}function C(e,t){if(a(t)||a(e.data)){var n,i=r.remove.length+1;for(a(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&d(e)}return n.listeners=t,n}(e.elm,i),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&C(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else d(e.elm)}function S(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(a(o)&&Ui(e,o))return i}}function _(e,t,n,i,l,c){if(e!==t){a(t.elm)&&a(i)&&(t=i[l]=be(t));var d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?T(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))t.componentInstance=e.componentInstance;else{var f,p=t.data;a(p)&&a(f=p.hook)&&a(f=f.prepatch)&&f(e,t);var g=e.children,v=t.children;if(a(p)&&m(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);a(f=p.hook)&&a(f=f.update)&&f(e,t)}o(t.text)?a(g)&&a(v)?g!==v&&function(e,t,n,r,i){var s,l,c,d=0,f=0,p=t.length-1,g=t[0],m=t[p],v=n.length-1,y=n[0],b=n[v],w=!i;for(;d<=p&&f<=v;)o(g)?g=t[++d]:o(m)?m=t[--p]:Ui(g,y)?(_(g,y,r,n,f),g=t[++d],y=n[++f]):Ui(m,b)?(_(m,b,r,n,v),m=t[--p],b=n[--v]):Ui(g,b)?(_(g,b,r,n,v),w&&u.insertBefore(e,g.elm,u.nextSibling(m.elm)),g=t[++d],b=n[--v]):Ui(m,y)?(_(m,y,r,n,f),w&&u.insertBefore(e,m.elm,g.elm),m=t[--p],y=n[++f]):(o(s)&&(s=qi(t,d,p)),o(l=a(y.key)?s[y.key]:S(y,t,d,p))?h(y,r,e,g.elm,!1,n,f):Ui(c=t[l],y)?(_(c,y,r,n,f),t[l]=void 0,w&&u.insertBefore(e,c.elm,g.elm)):h(y,r,e,g.elm,!1,n,f),y=n[++f]);d>p?x(e,o(n[v+1])?null:n[v+1].elm,n,f,v,r):f>v&&k(t,d,p)}(d,g,v,n,c):a(v)?(a(e.text)&&u.setTextContent(d,""),x(d,null,v,0,v.length-1,n)):a(g)?k(g,0,g.length-1):a(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),a(p)&&a(f=p.hook)&&a(f=f.postpatch)&&f(e,t)}}}function A(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var L=b("attrs,class,staticClass,staticStyle,key");function T(e,t,n,r){var i,o=t.tag,l=t.data,c=t.children;if(r=r||l&&l.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(l)&&(a(i=l.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return f(t,n),!0;if(a(o)){if(a(c))if(e.hasChildNodes())if(a(i=l)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<c.length;h++){if(!d||!T(d,c[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else g(t,c,n);if(a(l)){var p=!1;for(var m in l)if(!L(m)){p=!0,v(t,n);break}!p&&l.class&&Tr(l.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,i){if(!o(t)){var l,c=!1,d=[];if(o(e))c=!0,h(t,d);else{var f=a(e.nodeType);if(!f&&Ui(e,t))_(e,t,d,null,null,i);else{if(f){if(1===e.nodeType&&e.hasAttribute(B)&&(e.removeAttribute(B),n=!0),s(n)&&T(e,t,d))return A(t,d,!0),e;l=e,e=new me(u.tagName(l).toLowerCase(),{},[],void 0,l)}var p=e.elm,g=u.parentNode(p);if(h(t,d,p._leaveCb?null:g,u.nextSibling(p)),a(t.parent))for(var v=t.parent,y=m(t);v;){for(var b=0;b<r.destroy.length;++b)r.destroy[b](v);if(v.elm=t.elm,y){for(var x=0;x<r.create.length;++x)r.create[x](Gi,v);var C=v.data.hook.insert;if(C.merged)for(var S=C.fns.slice(1),L=0;L<S.length;L++)S[L]()}else Xi(v);v=v.parent}a(g)?k([e],0,0):a(e.tag)&&w(e)}}return A(t,d,c),t.elm}a(e)&&w(e)}}({nodeOps:Bi,modules:[ao,go,Vo,Zo,sa,K?{create:Da,activate:Da,remove:function(e,t){!0!==e.data.show?Oa(e,t):t()}}:{}].concat(no)});ee&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Ba(e,"input")}));var Ia={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?vt(n,"postpatch",(function(){Ia.componentUpdated(e,t,n)})):Fa(e,t,n.context),e._vOptions=[].map.call(e.options,ja)):("textarea"===n.tag||Hi(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ha),e.addEventListener("compositionend",Ya),e.addEventListener("change",Ya),ee&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Fa(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,ja);if(i.some((function(e,t){return!z(e,r[t])})))(e.multiple?t.value.some((function(e){return za(e,i)})):t.value!==t.oldValue&&za(t.value,i))&&Ba(e,"change")}}};function Fa(e,t,n){Ra(e,t,n),(Q||te)&&setTimeout((function(){Ra(e,t,n)}),0)}function Ra(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s<l;s++)if(a=e.options[s],i)o=j(r,ja(a))>-1,a.selected!==o&&(a.selected=o);else if(z(ja(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function za(e,t){return t.every((function(t){return!z(t,e)}))}function ja(e){return"_value"in e?e._value:e.value}function Ha(e){e.target.composing=!0}function Ya(e){e.target.composing&&(e.target.composing=!1,Ba(e.target,"input"))}function Ba(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Wa(e){return!e.componentInstance||e.data&&e.data.transition?e:Wa(e.componentInstance._vnode)}var Xa={bind:function(e,t,n){var r=t.value,i=(n=Wa(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Ea(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Wa(n)).data&&n.data.transition?(n.data.show=!0,r?Ea(n,(function(){e.style.display=e.__vOriginalDisplay})):Oa(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},$a={model:Ia,show:Xa},Ga={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterA
2ctiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Va(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Va(sn(t.children)):e}function Ua(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[L(r)]=i[r];return t}function qa(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Za=function(e){return e.tag||Wt(e)},Ka=function(e){return"show"===e.name},Ja={name:"transition",props:Ga,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Za)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Va(i);if(!o)return i;if(this._leaving)return qa(e,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:l(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Ua(this),c=this._vnode,u=Va(c);if(o.data.directives&&o.data.directives.some(Ka)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Wt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=D({},s);if("out-in"===r)return this._leaving=!0,vt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),qa(e,i);if("in-out"===r){if(Wt(o))return c;var h,f=function(){h()};vt(s,"afterEnter",f),vt(s,"enterCancelled",f),vt(d,"delayLeave",(function(e){h=e}))}}return i}}},Qa=D({tag:String,moveClass:String},Ga);delete Qa.mode;var es={props:Qa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=vn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ua(this),s=0;s<i.length;s++){if((u=i[s]).tag)if(null!=u.key&&0!==String(u.key).indexOf("__vlist"))o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a;else;}if(r){var l=[],c=[];for(s=0;s<r.length;s++){var u;(u=r[s]).data.transition=a,u.data.pos=u.elm.getBoundingClientRect(),n[u.key]?l.push(u):c.push(u)}this.kept=e(t,null,l),this.removed=c}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ts),e.forEach(ns),e.forEach(rs),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;ka(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(va,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(va,e),n._moveCb=null,Ca(n,t))})}})))},methods:{hasMove:function(e,t){if(!fa)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ua(n,e)})),ca(n,t),n.style.display="none",this.$el.appendChild(n);var r=Aa(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ts(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function ns(e){e.data.newPos=e.elm.getBoundingClientRect()}function rs(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate(".concat(r,"px,").concat(i,"px)"),o.transitionDuration="0s"}}var is={Transition:Ja,TransitionGroup:es};di.config.mustUseProp=ki,di.config.isReservedTag=Ri,di.config.isReservedAttr=xi,di.config.getTagNamespace=zi,di.config.isUnknownElement=function(e){if(!K)return!0;if(Ri(e))return!1;if(e=e.toLowerCase(),null!=ji[e])return ji[e];var t=document.createElement(e);return e.indexOf("-")>-1?ji[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ji[e]=/HTMLUnknownElement/.test(t.toString())},D(di.options.directives,$a),D(di.options.components,is),di.prototype.__patch__=K?Na:I,di.prototype.$mount=function(e,t){return function(e,t,n){var r;e.$el=t,e.$options.render||(e.$options.render=ve),wn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new Mr(e,r,I,{before:function(){e._isMounted&&!e._isDestroyed&&wn(e,"beforeUpdate")}},!0),n=!1;var i=e._preWatchers;if(i)for(var o=0;o<i.length;o++)i[o].run();return null==e.$vnode&&(e._isMounted=!0,wn(e,"mounted")),e}(this,e=e&&K?Yi(e):void 0,t)},K&&setTimeout((function(){$.devtools&&ce&&ce.emit("init",di)}),0);var os=/\{\{((?:.|\r?\n)+?)\}\}/g,as=/[-.*+?^${}()|[\]\/\\]/g,ss=_((function(e){var t=e[0].replace(as,"\\$&"),n=e[1].replace(as,"\\$&");
vendor: 7,438 bytes, line 2
2return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var ls={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=To(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));var r=Lo(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:".concat(e.staticClass,",")),e.classBinding&&(t+="class:".concat(e.classBinding,",")),t}};var cs,us={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=To(e,"style");n&&(e.staticStyle=JSON.stringify(Ko(n)));var r=Lo(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:".concat(e.staticStyle,",")),e.styleBinding&&(t+="style:(".concat(e.styleBinding,"),")),t}},ds=function(e){return(cs=cs||document.createElement("div")).innerHTML=e,cs.textContent},hs=b("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),fs=b("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ps=b("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),gs=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ms=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,vs="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(G.source,"]*"),ys="((?:".concat(vs,"\\:)?").concat(vs,")"),bs=new RegExp("^<".concat(ys)),xs=/^\s*(\/?)>/,ws=new RegExp("^<\\/".concat(ys,"[^>]*>")),ks=/^<!DOCTYPE [^>]+>/i,Cs=/^<!\--/,Ss=/^<!\[/,_s=b("script,style,textarea",!0),As={},Ls={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Ts=/&(?:lt|gt|quot|amp|#39);/g,Es=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Os=b("pre,textarea",!0),Ms=function(e,t){return e&&Os(e)&&"\n"===t[0]};function Ps(e,t){var n=t?Es:Ts;return e.replace(n,(function(e){return Ls[e]}))}function Ds(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||F,s=t.canBeLeftOpenTag||F,l=0,c=function(){if(n=e,r&&_s(r)){var c=0,h=r.toLowerCase(),f=As[h]||(As[h]=new RegExp("([\\s\\S]*?)(</"+h+"[^>]*>)","i"));k=e.replace(f,(function(e,n,r){return c=r.length,_s(h)||"noscript"===h||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Ms(h,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-k.length,e=k,d(h,l-c,l)}else{var p=e.indexOf("<");if(0===p){if(Cs.test(e)){var g=e.indexOf("--\x3e");if(g>=0)return t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,g),l,l+g+3),u(g+3),"continue"}if(Ss.test(e)){var m=e.indexOf("]>");if(m>=0)return u(m+2),"continue"}var v=e.match(ks);if(v)return u(v[0].length),"continue";var y=e.match(ws);if(y){var b=l;return u(y[0].length),d(y[1],b,l),"continue"}var x=function(){var t=e.match(bs);if(t){var n={tagName:t[1],attrs:[],start:l};u(t[0].length);for(var r=void 0,i=void 0;!(r=e.match(xs))&&(i=e.match(ms)||e.match(gs));)i.start=l,u(i[0].length),i.end=l,n.attrs.push(i);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=l,n}}();if(x)return function(e){var n=e.tagName,l=e.unarySlash;o&&("p"===r&&ps(n)&&d(r),s(n)&&r===n&&d(n));for(var c=a(n)||!!l,u=e.attrs.length,h=new Array(u),f=0;f<u;f++){var p=e.attrs[f],g=p[3]||p[4]||p[5]||"",m="a"===n&&"href"===p[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;h[f]={name:p[1],value:Ps(g,m)}}c||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:h,start:e.start,end:e.end}),r=n);t.start&&t.start(n,h,c,e.start,e.end)}(x),Ms(x.tagName,e)&&u(1),"continue"}var w=void 0,k=void 0,C=void 0;if(p>=0){for(k=e.slice(p);!(ws.test(k)||bs.test(k)||Cs.test(k)||Ss.test(k)||(C=k.indexOf("<",1))<0);)p+=C,k=e.slice(p);w=e.substring(0,p)}p<0&&(w=e),w&&u(w.length),t.chars&&w&&t.chars(w,l-w.length,l)}if(e===n)return t.chars&&t.chars(e),"break"};e;){if("break"===c())break}function u(t){l+=t,e=e.substring(t)}function d(e,n,o){var a,s;if(null==n&&(n=l),null==o&&(o=l),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var c=i.length-1;c>=a;c--)t.end&&t.end(i[c].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}d()}var Ns,Is,Fs,Rs,zs,js,Hs,Ys,Bs=/^@|^v-on:/,Ws=/^v-|^@|^:|^#/,Xs=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,$s=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Gs=/^\(|\)$/g,Vs=/^\[.*\]$/,Us=/:(.*)$/,qs=/^:|^\.|^v-bind:/,Zs=/\.[^.\]]+(?=[^\]]*$)/g,Ks=/^v-slot(:|$)|^#/,Js=/[\r\n]/,Qs=/[ \f\t\r\n]+/g,el=_(ds),tl="_empty_";function nl(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:cl(t),rawAttrsMap:{},parent:n,children:[]}}function rl(e,t){Ns=t.warn||bo,js=t.isPreTag||F,Hs=t.mustUseProp||F,Ys=t.getTagNamespace||F;var n=t.isReservedTag||F;Fs=xo(t.modules,"transformNode"),Rs=xo(t.modules,"preTransformNode"),zs=xo(t.modules,"postTransformNode"),Is=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,c=!1;function u(e){if(d(e),l||e.processed||(e=il(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&al(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)a=e,s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children),s&&s.if&&al(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),js(e.tag)&&(c=!1);for(var u=0;u<zs.length;u++)zs[u](e,t)}function d(e){if(!c)for(var t=void 0;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return Ds(e,{warn:Ns,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,d){var h=i&&i.ns||Ys(e);Q&&"svg"===h&&(n=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];ul.test(r.name)||(r.name=r.name.replace(dl,""),t.push(r))}return t}(n));var f,p=nl(e,n,i);h&&(p.ns=h),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||le()||(p.forbidden=!0);for(var g=0;g<Rs.length;g++)p=Rs[g](p,t)||p;l||(!function(e){null!=To(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(l=!0)),js(p.tag)&&(c=!0),l?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(ol(p),function(e){var t=To(e,"v-if");if(t)e.if=t,al(e,{exp:t,block:e});else{null!=To(e,"v-else")&&(e.else=!0);var n=To(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){var t=To(e,"v-once");null!=t&&(e.once=!0)}(p)),r||(r=p),a?u(p):(i=p,o.push(p))},end:function(e,t,n){var r=o[o.length-1];o.length-=1,i=o[o.length-1],u(r)},chars:function(e,t,n){if(i&&(!Q||"textarea"!==i.tag||i.attrsMap.placeholder!==e)){var r,o=i.children;if(e=c||e.trim()?"script"===(r=i).tag||"style"===r.tag?e:el(e):o.length?s?"condense"===s&&Js.test(e)?"":" ":a?" ":"":""){c||"condense"!==s||(e=e.replace(Qs," "));var u=void 0,d=void 0;!l&&" "!==e&&(u=function(e,t){var n=t?ss(t):os;if(n.test(e)){for(var r,i,o,a=[],s=[],l=n.lastIndex=0;r=n.exec(e);){(i=r.index)>
2l&&(s.push(o=e.slice(l,i)),a.push(JSON.stringify(o)));var c=vo(r[1].trim());a.push("_s(".concat(c,")")),s.push({"@binding":c}),l=i+r[0].length}return l<e.length&&(s.push(o=e.slice(l)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Is))?d={type:2,expression:u.expression,tokens:u.tokens,text:e}:" "===e&&o.length&&" "===o[o.length-1].text||(d={type:3,text:e}),d&&o.push(d)}}},comment:function(e,t,n){if(i){var r={type:3,text:e,isComment:!0};0,i.children.push(r)}}}),r}function il(e,t){var n;!function(e){var t=Lo(e,"key");if(t){e.key=t}}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Lo(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=To(e,"scope"),e.slotScope=t||To(e,"slot-scope")):(t=To(e,"slot-scope"))&&(e.slotScope=t);var n=Lo(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||ko(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){if(a=Eo(e,Ks)){0;var r=sl(a),i=r.name,o=r.dynamic;e.slotTarget=i,e.slotTargetDynamic=o,e.slotScope=a.value||tl}}else{var a;if(a=Eo(e,Ks)){0;var s=e.scopedSlots||(e.scopedSlots={}),l=sl(a),c=l.name,u=(o=l.dynamic,s[c]=nl("template",[],e));u.slotTarget=c,u.slotTargetDynamic=o,u.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=u,!0})),u.slotScope=a.value||tl,e.children=[],e.plain=!1}
vendor: 1,710 bytes, line 2
2}}(e),"slot"===(n=e).tag&&(n.slotName=Lo(n,"name")),function(e){var t;(t=Lo(e,"is"))&&(e.component=t);null!=To(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var r=0;r<Fs.length;r++)e=Fs[r](e,t)||e;return function(e){var t,n,r,i,o,a,s,l,c=e.attrsList;for(t=0,n=c.length;t<n;t++){if(r=i=c[t].name,o=c[t].value,Ws.test(r))if(e.hasBindings=!0,(a=ll(r.replace(Ws,"")))&&(r=r.replace(Zs,"")),qs.test(r))r=r.replace(qs,""),o=vo(o),(l=Vs.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!l&&"innerHtml"===(r=L(r))&&(r="innerHTML"),a.camel&&!l&&(r=L(r)),a.sync&&(s=Po(o,"$event"),l?Ao(e,'"update:"+('.concat(r,")"),s,null,!1,0,c[t],!0):(Ao(e,"update:".concat(L(r)),s,null,!1,0,c[t]),O(r)!==L(r)&&Ao(e,"update:".concat(O(r)),s,null,!1,0,c[t])))),a&&a.prop||!e.component&&Hs(e.tag,e.attrsMap.type,r)?wo(e,r,o,c[t],l):ko(e,r,o,c[t],l);else if(Bs.test(r))r=r.replace(Bs,""),(l=Vs.test(r))&&(r=r.slice(1,-1)),Ao(e,r,o,a,!1,0,c[t],l);else{var u=(r=r.replace(Ws,"")).match(Us),d=u&&u[1];l=!1,d&&(r=r.slice(0,-(d.length+1)),Vs.test(d)&&(d=d.slice(1,-1),l=!0)),So(e,r,i,o,d,l,a,c[t])}else ko(e,r,JSON.stringify(o),c[t]),!e.component&&"muted"===r&&Hs(e.tag,e.attrsMap.type,r)&&wo(e,r,"true",c[t])}}(e),e}function ol(e){var t;if(t=To(e,"v-for")){var n=function(e){var t=e.match(Xs);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Gs,""),i=r.match($s);i?(n.alias=r.replace($s,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&D(e,n)}}function al(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function sl(e){var t=e.name.replace(Ks,"");return t||"#"!==e.name[0]&&(t="default"),Vs.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'.concat(t,'"'),dynamic:!1}
vendor: 10,633 bytes, line 2
2}function ll(e){var t=e.match(Zs);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function cl(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var ul=/^xmlns:NS\d+/,dl=/^NS\d+:/;function hl(e){return nl(e.tag,e.attrsList.slice(),e.parent)}var fl=[ls,us,{preTransformNode:function(e,t){if("input"===e.tag){var n=e.attrsMap;if(!n["v-model"])return;var r=void 0;if((n[":type"]||n["v-bind:type"])&&(r=Lo(e,"type")),n.type||r||!n["v-bind"]||(r="(".concat(n["v-bind"],").type")),r){var i=To(e,"v-if",!0),o=i?"&&(".concat(i,")"):"",a=null!=To(e,"v-else",!0),s=To(e,"v-else-if",!0),l=hl(e);ol(l),Co(l,"type","checkbox"),il(l,t),l.processed=!0,l.if="(".concat(r,")==='checkbox'")+o,al(l,{exp:l.if,block:l});var c=hl(e);To(c,"v-for",!0),Co(c,"type","radio"),il(c,t),al(l,{exp:"(".concat(r,")==='radio'")+o,block:c});var u=hl(e);return To(u,"v-for",!0),Co(u,":type",r),il(u,t),al(l,{exp:i,block:u}),a?l.else=!0:s&&(l.elseif=s),l}}}}];var pl,gl,ml={model:function(e,t,n){0;var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Mo(e,r,i),!1;if("select"===o)!function(e,t,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(r?"_n(val)":"val","})"),o="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",a="var $$selectedVal = ".concat(i,";");a="".concat(a," ").concat(Po(t,o)),Ao(e,"change",a,null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Lo(e,"value")||"null",o=Lo(e,"true-value")||"true",a=Lo(e,"false-value")||"false";wo(e,"checked","Array.isArray(".concat(t,")")+"?_i(".concat(t,",").concat(i,")>-1")+("true"===o?":(".concat(t,")"):":_q(".concat(t,",").concat(o,")"))),Ao(e,"change","var $$a=".concat(t,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(o,"):(").concat(a,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(r?"_n("+i+")":i,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(Po(t,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(Po(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(Po(t,"$$c"),"}"),null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Lo(e,"value")||"null";i=r?"_n(".concat(i,")"):i,wo(e,"checked","_q(".concat(t,",").concat(i,")")),Ao(e,"change",Po(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},o=i.lazy,a=i.number,s=i.trim,l=!o&&"range"!==r,c=o?"change":"range"===r?jo:"input",u="$event.target.value";s&&(u="$event.target.value.trim()");a&&(u="_n(".concat(u,")"));var d=Po(t,u);l&&(d="if($event.target.composing)return;".concat(d));wo(e,"value","(".concat(t,")")),Ao(e,c,d,null,!0),(s||a)&&Ao(e,"blur","$forceUpdate()")}(e,r,i);else{if(!$.isReservedTag(o))return Mo(e,r,i),!1}return!0},text:function(e,t){t.value&&wo(e,"textContent","_s(".concat(t.value,")"),t)},html:function(e,t){t.value&&wo(e,"innerHTML","_s(".concat(t.value,")"),t)}},vl={expectHTML:!0,modules:fl,directives:ml,isPreTag:function(e){return"pre"===e},isUnaryTag:hs,mustUseProp:ki,canBeLeftOpenTag:fs,isReservedTag:Ri,getTagNamespace:zi,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(fl)},yl=_((function(e){return b("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function bl(e,t){e&&(pl=yl(t.staticKeys||""),gl=t.isReservedTag||F,xl(e),wl(e,!1))}function xl(e){if(e.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||x(e.tag)||!gl(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(pl)))}(e),1===e.type){if(!gl(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var t=0,n=e.children.length;t<n;t++){var r=e.children[t];xl(r),r.static||(e.static=!1)}if(e.ifConditions)for(t=1,n=e.ifConditions.length;t<n;t++){var i=e.ifConditions[t].block;xl(i),i.static||(e.static=!1)}}}function wl(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)wl(e.children[n],t||!!e.for);if(e.ifConditions)for(n=1,r=e.ifConditions.length;n<r;n++)wl(e.ifConditions[n].block,t)}}var kl=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Cl=/\([^)]*?\);*$/,Sl=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,_l={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Al={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ll=function(e){return"if(".concat(e,")return null;")},Tl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ll("$event.target !== $event.currentTarget"),ctrl:Ll("!$event.ctrlKey"),shift:Ll("!$event.shiftKey"),alt:Ll("!$event.altKey"),meta:Ll("!$event.metaKey"),left:Ll("'button' in $event && $event.button !== 0"),middle:Ll("'button' in $event && $event.button !== 1"),right:Ll("'button' in $event && $event.button !== 2")};function El(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ol(e[o]);e[o]&&e[o].dynamic?i+="".concat(o,",").concat(a,","):r+='"'.concat(o,'":').concat(a,",")}return r="{".concat(r.slice(0,-1),"}"),i?n+"_d(".concat(r,",[").concat(i.slice(0,-1),"])"):n+r}function Ol(e){if(!e)return"function(){}";if(Array.isArray(e))return"[".concat(e.map((function(e){return Ol(e)})).join(","),"]");var t=Sl.test(e.value),n=kl.test(e.value),r=Sl.test(e.value.replace(Cl,""));if(e.modifiers){var i="",o="",a=[],s=function(t){if(Tl[t])o+=Tl[t],_l[t]&&a.push(t);else if("exact"===t){var n=e.modifiers;o+=Ll(["ctrl","shift","alt","meta"].filter((function(e){return!n[e]})).map((function(e){return"$event.".concat(e,"Key")})).join("||"))}else a.push(t)};for(var l in e.modifiers)s(l);a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+"".concat(e.map(Ml).join("&&"),")return null;")}(a)),o&&(i+=o);var c=t?"return ".concat(e.value,".apply(null, arguments)"):n?"return (".concat(e.value,").apply(null, arguments)"):r?"return ".concat(e.value):e.value;return"function($event){".concat(i).concat(c,"}")}return t||n?e.value:"function($event){".concat(r?"return ".concat(e.value):e.value,"}")}function Ml(e){var t=parseInt(e,10);if(t)return"$event.keyCode!==".concat(t);var n=_l[e],r=Al[e];return"_k($event.keyCode,"+"".concat(JSON.stringify(e),",")+"".concat(JSON.stringify(n),",")+"$event.key,"+"".concat(JSON.stringify(r))+")"}var Pl={on:function(e,t){e.wrapListeners=function(e){return"_g(".concat(e,",").concat(t.value,")")}},bind:function(e,t){e.wrapData=function(n){return"_b(".concat(n,",'").concat(e.tag,"',").concat(t.value,",").concat(t.modifiers&&t.modifiers.prop?"true":"false").concat(t.modifiers&&t.modifiers.sync?",true":"",")")}},cloak:I},Dl=function(e){this.options=e,this.warn=e.warn||bo,this.transforms=xo(e.modules,"transformCode"),this.dataGenFns=xo(e.modules,"genData"),this.directives=D(D({},Pl),e.directives);var t=e.isReservedTag||F;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Nl(e,t){var n=new Dl(t),r=e?"script"===e.tag?"null":Il(e,n):'_c("div")';return{render:"with(this){return ".concat(r,"}"),staticRenderFns:n.staticRenderFns}}function Il(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Fl(e,t);if(e.once&&!e.onceProcessed)return Rl(e,t);if(e.for&&!e.forProcessed)return Hl(e,t);if(e.if&&!e.ifProcessed)return zl(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Xl(e,t),i="_t(".concat(n).concat(r?",function(){return ".concat(r,"}"):""),o=e.attrs||e.dynamicAttrs?Vl((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:L(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=",".concat(o));a&&(i+="".concat(o?"":",null",",").concat(a));return i+")"}(e,t);var n=void 0;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Xl(t,n,!0);return"_c(".concat(e,",").concat(Yl(t,n)).concat(r?",".concat(r):"",")")}(e.component,e,t);else{var r=void 0,i=t.maybeComponent(e);(!e.plain||e.pre&&i)&&(r=Yl(e,t));var o=void 0,a=t.options.bindings;i&&a&&!1!==a.__isScriptSetup&&(o=function(e,t){var n=L(t),r=T(n),i=function(i){return e[t]===i?t:e[n]===i?n:e[r]===i?r:void 0},o=i("setup-const")||i("setup-reactive-const");if(o)return o;var a=i("setup-let")||i("setup-ref")||i("setup-maybe-ref");if(a)return a}(a,e.tag)),o||(o="'".concat(e.tag,"'"));var s=e.inlineTemplate?null:Xl(e,t,!0);n="_c(".concat(o).concat(r?",".concat(r):"").concat(s?",".concat(s):"",")")}for(var l=0;l<t.transforms.length;l++)n=t.transforms[l](e,n);return n}return Xl(e,t)||"void 0"}function Fl(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return ".concat(Il(e,t),"}")),t.pre=n,"_m(".concat(t.staticRenderFns.length-1).concat(e.staticInFor?",true":"",")")}function Rl(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return zl(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o(".concat(Il(e,t),",").concat(t.onceId++,",").concat(n,")"):Il(e,t)}return Fl(e,t)}function zl(e,t,n,r){return e.ifProcessed=!0,jl(e.ifConditions.slice(),t,n,r)}function jl(e,t,n,r){if(!e.length)return r||"_e()";var i=e.shift();return i.exp?"(".concat(i.exp,")?").concat(o(i.block),":").concat(jl(e,t,n,r)):"".concat(o(i.block));function o(e){return n?n(e,t):e.once?Rl(e,t):Il(e,t)}}function Hl(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?",".concat(e.iterator1):"",s=e.iterator2?",".concat(e.iterator2):"";return e.forProcessed=!0,"".concat(r||"_l","((").concat(i,"),")+"function(".concat(o).concat(a).concat(s,"){")+"return ".concat((n||Il)(e,t))+"})"}function Yl(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",l=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var c=t.directives[o.name];c&&(a=!!c(e,o,t.warn)),a&&(l=!0,s+='{name:"'.concat(o.name,'",rawName:"').concat(o.rawName,'"').concat(o.value?",value:(".concat(o.value,"),expression:").concat(JSON.stringify(o.value)):"").concat(o.arg?",arg:".concat(o.isDynamicArg?o.arg:'"'.concat(o.arg,'"')):"").
2concat(o.modifiers?",modifiers:".concat(JSON.stringify(o.modifiers)):"","},"))}if(l)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:".concat(e.key,",")),e.ref&&(n+="ref:".concat(e.ref,",")),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'.concat(e.tag,'",'));for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:".concat(Vl(e.attrs),",")),e.props&&(n+="domProps:".concat(Vl(e.props),",")),e.events&&(n+="".concat(El(e.events,!1),",")),e.nativeEvents&&(n+="".concat(El(e.nativeEvents,!0),",")),e.slotTarget&&!e.slotScope&&(n+="slot:".concat(e.slotTarget,",")),e.scopedSlots&&(n+="".concat(function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||Bl(n)})),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==tl||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Wl(t[e],n)})).join(",");return"scopedSlots:_u([".concat(a,"]").concat(r?",null,true":"").concat(!r&&i?",null,false,".concat(function(e){var t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a)):"",")")}(e,e.scopedSlots,t),",")),e.model&&(n+="model:{value:".concat(e.model.value,",callback:").concat(e.model.callback,",expression:").concat(e.model.expression,"},")),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Nl(n,t.options);return"inlineTemplate:{render:function(){".concat(r.render,"},staticRenderFns:[").concat(r.staticRenderFns.map((function(e){return"function(){".concat(e,"}")})).join(","),"]}")}}(e,t);o&&(n+="".concat(o,","))}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b(".concat(n,',"').concat(e.tag,'",').concat(Vl(e.dynamicAttrs),")")),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Bl(e){return 1===e.type&&("slot"===e.tag||e.children.some(Bl))}function Wl(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return zl(e,t,Wl,"null");if(e.for&&!e.forProcessed)return Hl(e,t,Wl);var r=e.slotScope===tl?"":String(e.slotScope),i="function(".concat(r,"){")+"return ".concat("template"===e.tag?e.if&&n?"(".concat(e.if,")?").concat(Xl(e,t)||"undefined",":undefined"):Xl(e,t)||"undefined":Il(e,t),"}"),o=r?"":",proxy:true";return"{key:".concat(e.slotTarget||'"default"',",fn:").concat(i).concat(o,"}")}function Xl(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return"".concat((r||Il)(a,t)).concat(s)}var l=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if($l(i)||i.ifConditions&&i.ifConditions.some((function(e){return $l(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(o,t.maybeComponent):0,c=i||Gl;return"[".concat(o.map((function(e){return c(e,t)})).join(","),"]").concat(l?",".concat(l):"")}}function $l(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Gl(e,t){return 1===e.type?Il(e,t):3===e.type&&e.isComment?function(e){return"_e(".concat(JSON.stringify(e.text),")")}(e):function(e){return"_v(".concat(2===e.type?e.expression:Ul(JSON.stringify(e.text)),")")}(e)}function Vl(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Ul(i.value);i.dynamic?n+="".concat(i.name,",").concat(o,","):t+='"'.concat(i.name,'":').concat(o,",")}return t="{".concat(t.slice(0,-1),"}"),n?"_d(".concat(t,",[").concat(n.slice(0,-1),"])"):t}function Ul(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function ql(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),I}}function Zl(e){var t=Object.create(null);return function(n,r,i){(r=D({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r);var s={},l=[];return s.render=ql(a.render,l),s.staticRenderFns=a.staticRenderFns.map((function(e){return ql(e,l)})),t[o]=s}}var Kl,Jl,Ql=(Kl=function(e,t){var n=rl(e.trim(),t);!1!==t.optimize&&bl(n,t);var r=Nl(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=D(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Kl(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Zl(t)}}),ec=Ql(vl).compileToFunctions;function tc(e){return(Jl=Jl||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Jl.innerHTML.indexOf("&#10;")>0}var nc=!!K&&tc(!1),rc=!!K&&tc(!0),ic=_((function(e){var t=Yi(e);return t&&t.innerHTML})),oc=di.prototype.$mount;di.prototype.$mount=function(e,t){if((e=e&&Yi(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ic(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=ec(r,{outputSourceRange:!1,shouldDecodeNewlines:nc,shouldDecodeNewlinesForHref:rc,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return oc.call(this,e,t)},di.compile=ec},432:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
vendor: 1,080 bytes, line 2
2),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),c=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",g=function(){return this};e.exports=function(e,t,n,m,v,y,b){l(n,t,m);var x,w,k,C=function(e){if(!h&&e in L)return L[e];switch(e){case f:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",_=v==p,A=!1,L=e.prototype,T=L[d]||L["@@iterator"]||v&&L[v],E=T||C(v),O=v?_?C("entr
2ies"):E:void 0,M="Array"==t&&L.entries||T;if(M&&(k=u(M.call(new e)))!==Object.prototype&&k.next&&(c(k,S,!0),r||"function"==typeof k[d]||a(k,d,g)),_&&T&&T.name!==p&&(A=!0,E=function(){return T.call(this)}),r&&!b||!h&&!A&&L[d]||a(L,d,E),s[t]=E,s[S]=g,v)if(x={values:_?E:C(p),keys:y?E:C(f),entries:O},b)for(w in x)w in L||o(L,w,x[w]);else i(i.P+i.F*(h||A),t,x);return x}},"02f4":function(e,t,n){var r=n("4588"),i=n("be13");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},"0390":function(e,t,n){"use strict";var r=n("02f4")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"0bfb":function(e,t,n){"use strict";var r=n("cb7c");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},"214f":function(e,t,n){"use strict";n("b0c5");var r=n("2aba"),i=n("32e9"),o=n("79e5"),a=n("be13"),s=n("2b4c"),l=n("520a"),c=s("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!o((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var g=/./[h],m=n(a,h,""[e],(function(e,t,n,r,i){return t.exec===l?f&&!i?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),v=m[0],y=m[1];r(String.prototype,e,v),i(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"23c6":function(e,t,n){var r=n("2d95"),i=n("2b4c")("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",c=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("230e")("iframe"),r=o.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2fdb":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d2c8"),o="includes";r(r.P+r.F*n("5147")(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},5147:function(e,t,n){var r=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},"520a":function(e,t,n){"use strict";var r,i,o=n("0bfb"),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c="lastIndex",u=(r=/a
2/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[c]||0!==i[c]),d=void 0!==/()??/.exec("")[1];(u||d)&&(l=function(e){var t,n,r,i,l=this;return d&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(t=l[c]),r=a.call(l,e),u&&r&&(l[c]=l.global?r.index+r[0].length:t),d&&r&&r.length>1&&s.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=l},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),l="prototype",c=function(e,t,n){var u,d,h,f,p=e&c.F,g=e&c.G,m=e&c.S,v=e&c.P,y=e&c.B,b=g?r:m?r[t]||(r[t]={}):(r[t]||{})[l],x=g?i:i[t]||(i[t]={}),w=x[l]||(x[l]={});for(u in g&&(n=t),n)h=((d=!p&&b&&void 0!==b[u])?b:n)[u],f=y&&d?s(h,r):v&&"function"==typeof h?s(Function.call,h):h,b&&a(b,u,h,e&c.U),x[u]!=h&&o(x,u,f),v&&w[u]!=h&&(w[u]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"5f1b":function(e,t,n){"use strict";var r=n("23c6"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6762:function(e,t,n){"use strict";var r=n("5ca1"),i=n("c366")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),l=Object.assign;e.exports=!l||n("79e5")((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r}))?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=i.f,d=o.f;l>c;)for(var h,f=s(arguments[c++]),p=u?r(f).concat(u(f)):r(f),g=p.length,m=0;g>m;)d.call(f,h=p[m++])&&(n[h]=f[h]);return n}:l},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},a352:function(t,n){t.exports=e},a481:function(e,t,n){"use strict";var r=n("cb7c"),i=n("4bf8"),o=n("9def"),a=n("4588"),s=n("0390"),l=n("5f1b"),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("214f")("replace",2,(function(e,t,n,p){return[function(r,i){var o=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=p(n,e,this,t);if(i.done)return i.value;var d=r(e),h=String(this),f="function"==typeof t;f||(t=String(t));var m=d.global;if(m){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var b=l(d,h);if(null===b)break;
vendor: 4,639 bytes, line 2
2if(y.push(b),!m)break;""===String(b[0])&&(d.lastIndex=s(h,o(d.lastIndex),v))}for(var x,w="",k=0,C=0;C<y.length;C++){b=y[C];for(var S=String(b[0]),_=c(u(a(b.index),h.length),0),A=[],L=1;L<b.length;L++)A.push(void 0===(x=b[L])?x:String(x));var T=b.groups;if(f){var E=[S].concat(A,_,h);void 0!==T&&E.push(T);var O=String(t.apply(void 0,E))}else O=g(S,h,_,A,T,t);_>=k&&(w+=h.slice(k,_)+O,k=_+S.length)}return w+h.slice(k)}];function g(e,t,r,o,a,s){var l=r+e.length,c=o.length,u=f;return void 0!==a&&(a=i(a),u=h),n.call(s,u,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s}))}}))},aae3:function(e,t,n){var r=n("d3f4"),i=n("2d95"),o=n("2b4c")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),l=n("84f2"),c=n("2b4c"),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(f),g=0;g<p.length;g++){var m,v=p[g],y=f[v],b=a[v],x=b&&b.prototype;if(x&&(x[u]||s(x,u,h),x[d]||s(x,d,v),l[v]=h,y))for(m in r)x[m]||o(x,m,r[m],!0)}},b0c5:function(e,t,n){"use strict";var r=n("520a");n("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},c649:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return l})),n("a481");var r,i,o="undefined"!=typeof window?window.console:e.console,a=/-(\w)/g,s=(r=function(e){return e.replace(a,(function(e,t){return t?t.toUpperCase():""}))},i=Object.create(null),function(e){return i[e]||(i[e]=r(e))});function l(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function c(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}}).call(this,n("c8ba"))},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},d2c8:function(e,t,n){var r=n("aae3"),i=n("be13");e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
2ing,toString,valueOf".split(",")},f559:function(e,t,n){"use strict";var r=n("5ca1"),i=n("9def"),o=n("d2c8"),a="startsWith",s=""[a];r(r.P+r.F*n("5147")(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},f6fd:function(e,t){!function(e){var t="currentScript",n=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(r){var e,t=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in n)if(n[e].src==t||"interactive"==n[e].readyState)return n[e];return null}}})}(document)},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("f751"),n("f559"),n("ac6a"),n("cadf"),n("456d"),n("6762"),n("2fdb");var l=n("a352"),c=n.n(l),u=n("c649");function d(e,t){var n=this;this.$nextTick((function(){return n.$emit(e.toLowerCase(),t)}))}function h(e){var t=this;return function(n){null!==t.realList&&t["onDrag"+e](n),d.call(t,e,n)}}function f(e){return["transition-group","TransitionGroup"].includes(e)}function p(e,t,n){return e[n]||(t[n]?t[n]():void 0)}var g=["Start","Add","Remove","Update","End"],m=["Choose","Unchoose","Sort","Filter","Clone"],v=["Move"].concat(g,m).map((function(e){return"on"+e})),y=null,b={name:"draggable",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(e){return e}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(e){var t=this.$slots.default;this.transitionMode=function(e){if(!e||1!==e.length)return!1;var t=a(e,1)[0].componentOptions;return!!t&&f(t.tag)}(t);var n=function(e,t,n){var r=0,i=0,o=p(t,n,"header");o&&(r=o.length,e=e?[].concat(s(o),s(e)):s(o));var a=p(t,n,"footer");return a&&(i=a.length,e=e?[].concat(s(e),s(a)):s(a)),{children:e,headerOffset:r,footerOffset:i}}(t,this.$slots,this.$scopedSlots),r=n.children,i=n.headerOffset,o=n.footerOffset;this.headerOffset=i,this.footerOffset=o;var l=function(e,t){var n=null,r=function(e,t){n=function(e,t,n){return void 0===n||((e=e||{})[t]=n),e}(n,e,t)};if(r("attrs",Object.keys(e).filter((function(e){return"id"===e||e.startsWith("data-")})).reduce((function(t,n){return t[n]=e[n],t}),{})),!t)return n;var i=t.on,o=t.props,a=t.attrs;return r("on",i),r("props",o),Object.assign(n.attrs,a),n}(this.$attrs,this.componentData);return e(this.getTag(),l,r)},created:function(){null!==this.list&&null!==this.value&&u.b.error("Value and list props are mutually exclusive! Please set one or another."),"div"!==this.element&&u.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),void 0!==this.options&&u.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var t={};g.forEach((function(n){t["on"+n]=h.call(e,n)})),m.forEach((function(n){t["on"+n]=d.bind(e,n)}));var n=Object.keys(this.$attrs).reduce((function(t,n){return t[Object(u.a)(n)]=e.$attrs[n],t}),{}),r=Object.assign({},this.options,n,t,{onMove:function(t,n){return e.onDragMove(t,n)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new c.a(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(e){this.updateOptions(e)},deep:!0},$attrs:{handler:function(e){this.updateOptions(e)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var e=this._vnode.fnOptions;return e&&e.functional},getTag:function(){return this.tag||this.element},updateOptions:function(e){for(var t in e){var n=Object(u.a)(t);
2-1===v.indexOf(n)&&this._sortable.option(n,e[t])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var e=this.$slots.default;return this.transitionMode?e[0].child.$slots.default:e},computeIndexes:function(){var e=this;this.$nextTick((function(){e.visibleIndexes=function(e,t,n,r){if(!e)return[];var i=e.map((function(e){return e.elm})),o=t.length-r,a=s(t).map((function(e,t){return t>=o?i.length:i.indexOf(e)}));return n?a.filter((function(e){return-1!==e})):a}(e.getChildrenNodes(),e.rootContainer.children,e.transitionMode,e.footerOffset)}))},getUnderlyingVm:function(e){var t=function(e,t){return e.map((function(e){return e.elm})).indexOf(t)}(this.getChildrenNodes()||[],e);return-1===t?null:{index:t,element:this.realList[t]}},getUnderlyingPotencialDraggableComponent:function(e){var t=e.__vue__;return t&&t.$options&&f(t.$options._componentTag)?t.$parent:!("realList"in t)&&1===t.$children.length&&"realList"in t.$children[0]?t.$children[0]:t},emitChanges:function(e){var t=this;this.$nextTick((function(){t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=s(this.value);e(t),this.$emit("input",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,s(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,o={list:i,component:r};if(t!==n&&i&&r.getUnderlyingVm){var a=r.getUnderlyingVm(n);if(a)return Object.assign(a,o)}return o},getVmIndex:function(e){var t=this.visibleIndexes,n=t.length;return e>n-1?n:t[e]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(e){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[e].data=null;var t=this.getComponent();t.children=[],t.kept=void 0}},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),y=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){Object(u.d)(e.item);var n=this.getVmIndex(e.newIndex);this.spliceList(n,0,t),this.computeIndexes();var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(Object(u.c)(this.rootContainer,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context.index;this.spliceList(t,1);var n={element:this.context.element,oldIndex:t};this.resetTransitionData(t),this.emitChanges({removed:n})}else Object(u.d)(e.clone)},onDragUpdate:function(e){Object(u.d)(e.item),Object(u.c)(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},updateProperty:function(e,t){e.hasOwnProperty(t)&&(e[t]+=this.headerOffset)},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=s(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),i=e.component.getVmIndex(r);return-1===n.indexOf(y)&&t.willInsertAfter?i+1:i},onDragMove:function(e,t){var n=this.move;if(!n||!this.realList)return!0;var r=this.getRelatedContextFromMoveEvent(e),i=this.context,o=this.computeFutureIndex(r,e);return Object.assign(i,{futureIndex:o}),n(Object.assign({},e,{relatedContext:r,draggedContext:i}),t)},onDragEnd:function(){this.computeIndexes(),y=null}}};"undefined"!=typeof window&&"Vue"in window&&window.Vue.component("draggable",b);var x=b;t.default=x}}).default},e.exports=r(n(246))},8986:()=>{}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,i,o]=e[u],s=!0,l=0;l<n.length;l++)(!1&o||a>=o)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[n,i,o]},r.n=e=>
2{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={847:0,15:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)r.o(s,i)&&(r.m[i]=s[i]);if(l)var u=l(r)}for(t&&t(n);c<a.length;c++)o=a[c],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(u)},n=self.webpackChunkstatamic_dot_com=self.webpackChunkstatamic_dot_com||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.nc=void 0,r.O(void 0,[15],(()=>r(4071)));var i=r.O(void 0,[15],(()=>r(6679)));i=r.O(i)})();

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