@questdb/web-console 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/dist/573e9313e05d89f4acb5d005476c61bb.woff +0 -0
- package/dist/6437d5f4c14e01aaf4801aef3909151b.woff +0 -0
- package/dist/7dafb1a4bab4938a38b2d68d9c4575a9.woff +0 -0
- package/dist/a940d584750708f5435ce2c523498ddb.woff +0 -0
- package/dist/assets/console-configuration.json +5 -0
- package/dist/assets/favicon.ico +0 -0
- package/dist/assets/favicon.svg +25 -0
- package/dist/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/dist/assets/vs/base/worker/workerMain.js +2 -0
- package/dist/assets/vs/base/worker/workerMain.js.LICENSE.txt +6 -0
- package/dist/assets/vs/editor/editor.main.css +6 -0
- package/dist/assets/vs/editor/editor.main.js +2 -0
- package/dist/assets/vs/editor/editor.main.js.LICENSE.txt +43 -0
- package/dist/assets/vs/editor/editor.main.nls.js +2 -0
- package/dist/assets/vs/editor/editor.main.nls.js.LICENSE.txt +6 -0
- package/dist/assets/vs/loader.js +2 -0
- package/dist/assets/vs/loader.js.LICENSE.txt +6 -0
- package/dist/d0b483ce9717b92b4bf815d5d4db597a.woff +0 -0
- package/dist/index.html +194 -0
- package/dist/qdb.css +454 -0
- package/dist/qdb.js +2 -0
- package/dist/qdb.js.LICENSE.txt +117 -0
- package/package.json +118 -0
package/dist/qdb.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see qdb.js.LICENSE.txt */
|
|
2
|
+
(()=>{var e={1947:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e={NODE_ENV:"production"}.DEBUG),e}(t=e.exports=n(5836)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))})),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},5836:(e,t,n)=>{var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var l=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var i=t.formatters[r];if("function"==typeof i){var o=a[l];n=i.call(e,o),a.splice(l,1),l--}return n})),t.formatArgs.call(e,a);var u=n.log||t.log||console.log.bind(console);u.apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(3352),t.names=[],t.skips=[],t.formatters={}},8875:(e,t,n)=>{"use strict";var r=n(9703),i=n(518),o=n(8765);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function E(e,t,n,r){var i=v.hasOwnProperty(t)?v[t]:null;(null!==i?0===i.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(p,e)&&(d.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,x=60106,_=60107,T=60108,C=60114,O=60109,I=60110,A=60112,R=60113,N=60120,k=60115,L=60116,M=60121,D=60128,P=60129,U=60130,j=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;S=B("react.element"),x=B("react.portal"),_=B("react.fragment"),T=B("react.strict_mode"),C=B("react.profiler"),O=B("react.provider"),I=B("react.context"),A=B("react.forward_ref"),R=B("react.suspense"),N=B("react.suspense_list"),k=B("react.memo"),L=B("react.lazy"),M=B("react.block"),B("react.scope"),D=B("react.opaque.id"),P=B("react.debug_trace_mode"),U=B("react.offscreen"),j=B("react.legacy_hidden")}var F,H="function"==typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}function V(e){if(void 0===F)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var G=!1;function W(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?V(e):""}function q(e){switch(e.tag){case 5:return V(e.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return W(e.type,!1);case 11:return W(e.type.render,!1);case 22:return W(e.type._render,!1);case 1:return W(e.type,!0);default:return""}}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case x:return"Portal";case C:return"Profiler";case T:return"StrictMode";case R:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case k:return Y(e.type);case M:return Y(e._render);case L:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function ue(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function Ee(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ee(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function _e(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Te(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Oe=null,Ie=null;function Ae(e){if(e=ni(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=ii(t),Ce(e.stateNode,e.type,t))}}function Re(e){Oe?Ie?Ie.push(e):Ie=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Ie;if(Ie=Oe=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function ke(e,t){return e(t)}function Le(e,t,n,r,i){return e(t,n,r,i)}function Me(){}var De=ke,Pe=!1,Ue=!1;function je(){null===Oe&&null===Ie||(Me(),Ne())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=ii(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Fe=!1;if(f)try{var He={};Object.defineProperty(He,"passive",{get:function(){Fe=!0}}),window.addEventListener("test",He,He),window.removeEventListener("test",He,He)}catch(ge){Fe=!1}function ze(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ve=!1,Ge=null,We=!1,qe=null,Ye={onError:function(e){Ve=!0,Ge=e}};function Xe(e,t,n,r,i,o,a,s,l){Ve=!1,Ge=null,ze.apply(Ye,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if($e(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Qe(i),e;if(o===r)return Qe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,st=null,lt=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=ht(t,n,r,i,o),null!==t&&null!==(t=ni(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=ti(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ni(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){vt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ni(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&vt(at)&&(at=null),null!==st&&vt(st)&&(st=null),null!==lt&&vt(lt)&&(lt=null),ut.forEach(yt),ct.forEach(yt)}function Et(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return Et(t,e)}if(0<ot.length){Et(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&Et(at,e),null!==st&&Et(st,e),null!==lt&&Et(lt,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)mt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},_t={},Tt={};function Ct(e){if(_t[e])return _t[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Tt)return _t[e]=n[t];return e}f&&(Tt=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Ot=Ct("animationend"),It=Ct("animationiteration"),At=Ct("animationstart"),Rt=Ct("transitionend"),Nt=new Map,kt=new Map,Lt=["abort","abort",Ot,"animationEnd",It,"animationIteration",At,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),kt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Dt=8;function Pt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!=(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!=(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!=(t=4186112&e)?(Dt=6,t):0!=(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!=(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ut(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Dt=15;else if(0!=(o=134217727&n)){var l=o&~a;0!==l?(r=Pt(l),i=Dt):0!=(s&=o)&&(r=Pt(s),i=Dt)}else 0!=(o=n&~a)?(r=Pt(o),i=Dt):0!==s&&(r=Pt(s),i=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Pt(t),i<=Dt)return t;Dt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function jt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ft(24&~t))?Bt(10,t):e;case 10:return 0===(e=Ft(192&~t))?Bt(8,t):e;case 8:return 0===(e=Ft(3584&~t))&&0===(e=Ft(4186112&~t))&&(e=512),e;case 2:return 0===(t=Ft(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ft(e){return e&-e}function Ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Gt(e)/Wt|0)|0},Gt=Math.log,Wt=Math.LN2,qt=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Xt=!0;function $t(e,t,n,r){Pe||Me();var i=Qt,o=Pe;Pe=!0;try{Le(i,e,t,n,r)}finally{(Pe=o)||je()}}function Kt(e,t,n,r){Yt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var i;if(Xt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<dt.indexOf(e))return e=ht(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=gt(at,e,t,n,r,i),!0;case"dragenter":return st=gt(st,e,t,n,r,i),!0;case"mouseover":return lt=gt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,gt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,gt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}Mr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Te(r);if(null!==(i=ti(i))){var o=$e(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Mr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=sn(fn),hn=i({},fn,{view:0,detail:0}),pn=sn(hn),gn=i({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(ln=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=ln=0,cn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=sn(gn),vn=sn(i({},gn,{dataTransfer:0})),yn=sn(i({},hn,{relatedTarget:0})),bn=sn(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=sn(En),Sn=sn(i({},fn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tn[e])&&!!t[e]}function On(){return Cn}var In=i({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),An=sn(In),Rn=sn(i({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=sn(i({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),kn=sn(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=i({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=sn(Ln),Dn=[9,13,27,32],Pn=f&&"CompositionEvent"in window,Un=null;f&&"documentMode"in document&&(Un=document.documentMode);var jn=f&&"TextEvent"in window&&!Un,Bn=f&&(!Pn||Un&&8<Un&&11>=Un),Fn=String.fromCharCode(32),Hn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Yn(e,t,n,r){Re(r),0<(t=Pr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Xn=null,$n=null;function Kn(e){Ir(e,0)}function Qn(e){if(Q(ri(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Xn&&(Xn.detachEvent("onpropertychange",ir),$n=Xn=null)}function ir(e){if("value"===e.propertyName&&Qn($n)){var t=[];if(Yn(t,$n,e,Te(e)),e=Kn,Pe)e(t);else{Pe=!0;try{ke(e,t)}finally{Pe=!1,je()}}}}function or(e,t,n){"focusin"===e?(rr(),$n=n,(Xn=t).attachEvent("onpropertychange",ir)):"focusout"===e&&rr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn($n)}function sr(e,t){if("click"===e)return Qn(t)}function lr(e,t){if("input"===e||"change"===e)return Qn(t)}var ur="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},cr=Object.prototype.hasOwnProperty;function fr(e,t){if(ur(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=dr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dr(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,br=null,Er=null,wr=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==yr||yr!==J(r)||(r="selectionStart"in(r=yr)&&mr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Er&&fr(Er,r)||(Er=r,0<(r=Pr(br,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}Mt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(Lt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<xr.length;_r++)kt.set(xr[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(Xe.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var c=Ge;Ve=!1,Ge=null,We||(We=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Or(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Or(i,s,u),o=l}}}if(We)throw e=qe,We=!1,qe=null,e}function Ar(e,t){var n=oi(t),r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Rr]||(e[Rr]=!0,s.forEach((function(t){Cr.has(t)||kr(t,!1,e,null),kr(t,!0,e,null)})))}function kr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Cr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=oi(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Lr(o,e,i,t),a.add(s))}function Lr(e,t,n,r){var i=kt.get(t);switch(void 0===i?2:i){case 0:i=$t;break;case 1:i=Kt;break;default:i=Qt}n=i.bind(null,t,n,e),i=void 0,!Fe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Mr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=ti(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ue)return e();Ue=!0;try{De(e,t,n)}finally{Ue=!1,je()}}((function(){var r=o,i=Te(n),a=[];e:{var s=Nt.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":l=An;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Ot:case It:case At:l=bn;break;case Rt:l=kn;break;case"scroll":l=pn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&null!=(g=Be(p,d))&&c.push(Dr(p,g,h))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!ti(u)&&!u[Zr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ti(u):null)&&(u!==(f=$e(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=mn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Rn,g="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:ri(l),h=null==u?s:ri(u),(s=new c(g,p+"leave",l,n,i)).target=f,s.relatedTarget=h,g=null,ti(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=h,c.relatedTarget=f,g=c),f=g,l&&u)e:{for(d=u,p=0,h=c=l;h;h=Ur(h))p++;for(h=0,g=d;g;g=Ur(g))h++;for(;0<p-h;)c=Ur(c),p--;for(;0<h-p;)d=Ur(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ur(c),d=Ur(d)}c=null}else c=null;null!==l&&jr(a,s,l,c,!1),null!==u&&null!==f&&jr(a,f,u,c,!0)}if("select"===(l=(s=r?ri(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Jn;else if(qn(s))if(Zn)m=lr;else{m=ar;var v=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=sr);switch(m&&(m=m(e,r))?Yn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ie(s,"number",s.value)),v=r?ri(r):window,e){case"focusin":(qn(v)||"true"===v.contentEditable)&&(yr=v,br=r,Er=null);break;case"focusout":Er=br=yr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,Sr(a,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":Sr(a,n,i)}var y;if(Pn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Gn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Gn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Gn=!0)),0<(v=Pr(r,b)).length&&(b=new Sn(b,e,null,n,i),a.push({event:b,listeners:v}),(y||null!==(y=Vn(n)))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Pn&&zn(e,t)?(e=nn(),tn=en=Zt=null,Gn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Pr(r,"onBeforeInput")).length&&(i=new Sn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Ir(a,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Be(e,n))&&r.unshift(Dr(e,o,i)),null!=(o=Be(e,t))&&r.push(Dr(e,o,i))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Be(n,o))&&a.unshift(Dr(n,l,s)):i||null!=(l=Be(n,o))&&a.push(Dr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Fr=null,Hr=null;function zr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Gr="function"==typeof setTimeout?setTimeout:void 0,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Xr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0,Kr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Kr,Jr="__reactProps$"+Kr,Zr="__reactContainer$"+Kr,ei="__reactEvents$"+Kr;function ti(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Xr(e);null!==e;){if(n=e[Qr])return n;e=Xr(e)}return t}n=(e=n).parentNode}return null}function ni(e){return!(e=e[Qr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ri(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ii(e){return e[Jr]||null}function oi(e){var t=e[ei];return void 0===t&&(t=e[ei]=new Set),t}var ai=[],si=-1;function li(e){return{current:e}}function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ci(e,t){si++,ai[si]=e.current,e.current=t}var fi={},di=li(fi),hi=li(!1),pi=fi;function gi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=e.childContextTypes}function vi(){ui(hi),ui(di)}function yi(e,t,n){if(di.current!==fi)throw Error(a(168));ci(di,t),ci(hi,n)}function bi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Y(t)||"Unknown",o));return i({},n,r)}function Ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,pi=di.current,ci(di,e),ci(hi,hi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=bi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(di),ci(di,e)):ui(hi),ci(hi,n)}var Si=null,xi=null,_i=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,Ci=o.unstable_cancelCallback,Oi=o.unstable_shouldYield,Ii=o.unstable_requestPaint,Ai=o.unstable_now,Ri=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,ki=o.unstable_UserBlockingPriority,Li=o.unstable_NormalPriority,Mi=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Pi={},Ui=void 0!==Ii?Ii:function(){},ji=null,Bi=null,Fi=!1,Hi=Ai(),zi=1e4>Hi?Ai:function(){return Ai()-Hi};function Vi(){switch(Ri()){case Ni:return 99;case ki:return 98;case Li:return 97;case Mi:return 96;case Di:return 95;default:throw Error(a(332))}}function Gi(e){switch(e){case 99:return Ni;case 98:return ki;case 97:return Li;case 96:return Mi;case 95:return Di;default:throw Error(a(332))}}function Wi(e,t){return e=Gi(e),_i(e,t)}function qi(e,t,n){return e=Gi(e),Ti(e,t,n)}function Yi(){if(null!==Bi){var e=Bi;Bi=null,Ci(e)}Xi()}function Xi(){if(!Fi&&null!==ji){Fi=!0;var e=0;try{var t=ji;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),Ti(Ni,Yi),t}finally{Fi=!1}}}var $i=w.ReactCurrentBatchConfig;function Ki(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=li(null),Ji=null,Zi=null,eo=null;function to(){eo=Zi=Ji=null}function no(e){var t=Qi.current;ui(Qi),e.type._context._currentValue=t}function ro(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function io(e,t){Ji=e,eo=Zi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Pa=!0),e.firstContext=null)}function oo(e,t){if(eo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(eo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zi){if(null===Ji)throw Error(a(308));Zi=t,Ji.dependencies={lanes:0,firstContext:t,responders:null}}else Zi=Zi.next=t;return e._currentValue}var ao=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var o=e.updateQueue;ao=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===s?a=c:s.next=c,s=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,s=0,f=c=u=null;;){l=a.lane;var h=a.eventTime;if((r&l)===l){null!==f&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(l=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(h,d,l);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(l="function"==typeof(p=g.payload)?p.call(h,d,l):p))break e;d=i({},d,l);break e;case 2:ao=!0}}null!==a.callback&&(e.flags|=32,null===(l=o.effects)?o.effects=[a]:l.push(a))}else h={eventTime:h,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=h,u=d):f=f.next=h,s|=l;if(null===(a=a.next)){if(null===(l=o.shared.pending))break;a=l.next,l.next=null,o.lastBaseUpdate=l,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,js|=s,e.lanes=s,e.memoizedState=d}}function po(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var go=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var vo={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),o=uo(r,i);o.payload=t,null!=n&&(o.callback=n),co(e,o),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ul(),i=cl(e),o=uo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),co(e,o),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ul(),r=cl(e),i=uo(n,r);i.tag=2,null!=t&&(i.callback=t),co(e,i),fl(e,r,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&fr(n,r)&&fr(i,o))}function bo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=oo(o):(i=mi(t)?pi:di.current,o=(r=null!=(r=t.contextTypes))?gi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=vo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Eo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=go,so(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=oo(o):(o=mi(t)?pi:di.current,i.context=gi(e,o)),ho(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&vo.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var So=Array.isArray;function xo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===go&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function To(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Vl(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=xo(e,t,n),r.return=e,r):((r=Gl(n.type,n.key,n.props,null,e.mode,r)).ref=xo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Xl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Wl(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yl(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case S:return(n=Gl(t.type,t.key,t.props,null,e.mode,n)).ref=xo(e,null,t),n.return=e,n;case x:return(t=Xl(t,e.mode,n)).return=e,t}if(So(t)||z(t))return(t=Wl(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case S:return n.key===i?n.type===_?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case x:return n.key===i?c(e,t,n,r):null}if(So(n)||z(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case S:return e=e.get(null===r.key?n:r.key)||null,r.type===_?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(So(r)||z(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function g(i,a,s,l){for(var u=null,c=null,f=a,g=a=0,m=null;null!==f&&g<s.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=h(i,f,s[g],l);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,g),null===c?u=v:c.sibling=v,c=v,f=m}if(g===s.length)return n(i,f),u;if(null===f){for(;g<s.length;g++)null!==(f=d(i,s[g],l))&&(a=o(f,a,g),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);g<s.length;g++)null!==(m=p(f,i,g,s[g],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=o(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),u}function m(i,s,l,u){var c=z(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=h(i,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,g=v}if(y.done)return n(i,g),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(i,y.value,u))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(i,g);!y.done;m++,y=l.next())null!==(y=p(g,i,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,o,l){var u="object"==typeof o&&null!==o&&o.type===_&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case S:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(o.type===_){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}}else if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=xo(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===_?((r=Wl(o.props.children,e.mode,l,o.key)).return=e,e=r):((l=Gl(o.type,o.key,o.props,null,e.mode,l)).ref=xo(e,r,o),l.return=e,e=l)}return s(e);case x:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Xl(o,e.mode,l)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Yl(o,e.mode,l)).return=e,e=r),s(e);if(So(o))return g(e,r,o,l);if(z(o))return m(e,r,o,l);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Y(e.type)||"Component"))}return n(e,r)}}var Co=To(!0),Oo=To(!1),Io={},Ao=li(Io),Ro=li(Io),No=li(Io);function ko(e){if(e===Io)throw Error(a(174));return e}function Lo(e,t){switch(ci(No,t),ci(Ro,e),ci(Ao,Io),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ao),ci(Ao,t)}function Mo(){ui(Ao),ui(Ro),ui(No)}function Do(e){ko(No.current);var t=ko(Ao.current),n=he(t,e.type);t!==n&&(ci(Ro,e),ci(Ao,n))}function Po(e){Ro.current===e&&(ui(Ao),ui(Ro))}var Uo=li(0);function jo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=null,Fo=null,Ho=!1;function zo(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Go(e){if(Ho){var t=Fo;if(t){var n=t;if(!Vo(e,t)){if(!(t=Yr(n.nextSibling))||!Vo(e,t))return e.flags=-1025&e.flags|2,Ho=!1,void(Bo=e);zo(Bo,n)}Bo=e,Fo=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,Ho=!1,Bo=e}}function Wo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bo=e}function qo(e){if(e!==Bo)return!1;if(!Ho)return Wo(e),Ho=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Vr(t,e.memoizedProps))for(t=Fo;t;)zo(e,t),t=Yr(t.nextSibling);if(Wo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fo=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fo=null}}else Fo=Bo?Yr(e.stateNode.nextSibling):null;return!0}function Yo(){Fo=Bo=null,Ho=!1}var Xo=[];function $o(){for(var e=0;e<Xo.length;e++)Xo[e]._workInProgressVersionPrimary=null;Xo.length=0}var Ko=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Jo=0,Zo=null,ea=null,ta=null,na=!1,ra=!1;function ia(){throw Error(a(321))}function oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function aa(e,t,n,r,i,o){if(Jo=o,Zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ko.current=null===e||null===e.memoizedState?ka:La,e=n(r,i),ra){o=0;do{if(ra=!1,!(25>o))throw Error(a(301));o+=1,ta=ea=null,t.updateQueue=null,Ko.current=Ma,e=n(r,i)}while(ra)}if(Ko.current=Na,t=null!==ea&&null!==ea.next,Jo=0,ta=ea=Zo=null,na=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ta?Zo.memoizedState=ta=e:ta=ta.next=e,ta}function la(){if(null===ea){var e=Zo.alternate;e=null!==e?e.memoizedState:null}else e=ea.next;var t=null===ta?Zo.memoizedState:ta.next;if(null!==t)ta=t,ea=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ea=e).memoizedState,baseState:ea.baseState,baseQueue:ea.baseQueue,queue:ea.queue,next:null},null===ta?Zo.memoizedState=ta=e:ta=ta.next=e}return ta}function ua(e,t){return"function"==typeof t?t(e):t}function ca(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ea,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var l=s=o=null,u=i;do{var c=u.lane;if((Jo&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=f,o=r):l=l.next=f,Zo.lanes|=c,js|=c}u=u.next}while(null!==u&&u!==i);null===l?o=r:l.next=s,ur(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ur(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function da(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Xo.push(t))),e)return n(t._source);throw Xo.push(t),Error(a(350))}function ha(e,t,n,r){var i=Rs;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),l=Ko.current,u=l.useState((function(){return da(i,t,n)})),c=u[1],f=u[0];u=ta;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,g=d.source;d=d.subscribe;var m=Zo;return e.memoizedState={refs:h,source:t,subscribe:r},l.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=o(t._source);if(!ur(s,e)){e=n(t._source),ur(f,e)||(c(e),e=cl(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var l=31-Vt(a),u=1<<l;r[l]|=e,a&=~u}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=cl(m);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ur(p,n)&&ur(g,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:f}).dispatch=c=Ra.bind(null,Zo,e),u.queue=e,u.baseQueue=null,f=da(i,t,n),u.memoizedState=u.baseState=f),f}function pa(e,t,n){return ha(la(),e,t,n)}function ga(e){var t=sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ra.bind(null,Zo,e),[t.memoizedState,e]}function ma(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Zo.updateQueue)?(t={lastEffect:null},Zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function va(e){return e={current:e},sa().memoizedState=e}function ya(){return la().memoizedState}function ba(e,t,n,r){var i=sa();Zo.flags|=e,i.memoizedState=ma(1|t,n,void 0,void 0===r?null:r)}function Ea(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ea){var a=ea.memoizedState;if(o=a.destroy,null!==r&&oa(r,a.deps))return void ma(t,n,o,r)}Zo.flags|=e,i.memoizedState=ma(1|t,n,o,r)}function wa(e,t){return ba(516,4,e,t)}function Sa(e,t){return Ea(516,4,e,t)}function xa(e,t){return Ea(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ta(e,t,n){return n=null!=n?n.concat([e]):null,Ea(4,2,_a.bind(null,t,e),n)}function Ca(){}function Oa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ia(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Aa(e,t){var n=Vi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ra(e,t,n){var r=ul(),i=cl(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Zo||null!==a&&a===Zo)ra=na=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(o.eagerReducer=a,o.eagerState=l,ur(l,s))return}catch(e){}fl(e,i,r)}}var Na={readContext:oo,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},ka={readContext:oo,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:oo,useEffect:wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ba(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ba(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ra.bind(null,Zo,e),[r.memoizedState,e]},useRef:va,useState:ga,useDebugValue:Ca,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return wa((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return va(e=Aa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Ho){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0==(2&Zo.mode)&&(Zo.flags|=516,ma(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return ga(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},La={readContext:oo,useCallback:Oa,useContext:oo,useEffect:Sa,useImperativeHandle:Ta,useLayoutEffect:xa,useMemo:Ia,useReducer:ca,useRef:ya,useState:function(){return ca(ua)},useDebugValue:Ca,useDeferredValue:function(e){var t=ca(ua),n=t[0],r=t[1];return Sa((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=ca(ua)[0];return[ya().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return ca(ua)[0]},unstable_isNewReconciler:!1},Ma={readContext:oo,useCallback:Oa,useContext:oo,useEffect:Sa,useImperativeHandle:Ta,useLayoutEffect:xa,useMemo:Ia,useReducer:fa,useRef:ya,useState:function(){return fa(ua)},useDebugValue:Ca,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return Sa((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(ua)[0];return[ya().current,e]},useMutableSource:pa,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},Da=w.ReactCurrentOwner,Pa=!1;function Ua(e,t,n,r){t.child=null===e?Oo(t,null,n,r):Co(t,e.child,n,r)}function ja(e,t,n,r,i){n=n.render;var o=t.ref;return io(t,i),r=aa(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,Ua(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ba(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||zl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(i,r)&&e.ref===t.ref)?ns(e,t,o):(t.flags|=1,(e=Vl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,i,o){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Pa=!1,0==(o&i))return t.lanes=e.lanes,ns(e,t,o);0!=(16384&e.flags)&&(Pa=!0)}return Va(e,t,n,r,o)}function Ha(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},bl(0,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bl(0,e),null;t.memoizedState={baseLanes:0},bl(0,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,bl(0,r);return Ua(e,t,i,n),t.child}function za(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Va(e,t,n,r,i){var o=mi(n)?pi:di.current;return o=gi(t,o),io(t,i),n=aa(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,Ua(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Ga(e,t,n,r,i){if(mi(n)){var o=!0;Ei(t)}else o=!1;if(io(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),bo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?oo(u):gi(t,u=mi(n)?pi:di.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Eo(t,a,r,u),ao=!1;var d=t.memoizedState;a.state=d,ho(t,r,a,i),l=t.memoizedState,s!==r||d!==l||hi.current||ao?("function"==typeof c&&(mo(t,n,c,r),l=t.memoizedState),(s=ao||yo(t,n,s,r,d,l,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ki(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l="object"==typeof(l=n.contextType)&&null!==l?oo(l):gi(t,l=mi(n)?pi:di.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==l)&&Eo(t,a,r,l),ao=!1,d=t.memoizedState,a.state=d,ho(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||hi.current||ao?("function"==typeof h&&(mo(t,n,h,r),p=t.memoizedState),(u=ao||yo(t,n,u,r,d,p,l))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,o,i)}function Wa(e,t,n,r,i,o){za(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&wi(t,n,!1),ns(e,t,o);r=t.stateNode,Da.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Co(t,e.child,null,o),t.child=Co(t,null,s,o)):Ua(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Lo(e,t.containerInfo)}var Ya,Xa,$a,Ka={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=Uo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ci(Uo,1&o),null===e?(void 0!==i.fallback&&Go(t),e=i.children,o=i.fallback,a?(e=Ja(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ja(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,t.lanes=33554432,e):((n=ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=function(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vl(a,s),null!==e?r=Vl(e,r):(r=Wl(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ka,i):(n=function(e,t,n,r){var i=e.child;return e=i.sibling,n=Vl(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,i.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=ql(t,i,0,null),n=Wl(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ro(e.return,t)}function es(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ua(e,t,r.children,n),0!=(2&(r=Uo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Uo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===jo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===jo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,o,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),js|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ho)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return mi(t.type)&&vi(),null;case 3:return Mo(),ui(hi),ui(di),$o(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Po(t);var o=ko(No.current);if(n=t.type,null!==e&&null!=t.stateNode)Xa(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=ko(Ao.current),qo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Qr]=t,r[Jr]=s,n){case"dialog":Ar("cancel",r),Ar("close",r);break;case"iframe":case"object":case"embed":Ar("load",r);break;case"video":case"audio":for(e=0;e<Tr.length;e++)Ar(Tr[e],r);break;case"source":Ar("error",r);break;case"img":case"image":case"link":Ar("error",r),Ar("load",r);break;case"details":Ar("toggle",r);break;case"input":ee(r,s),Ar("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ar("invalid",r);break;case"textarea":le(r,s),Ar("invalid",r)}for(var u in xe(n,s),e=null,s)s.hasOwnProperty(u)&&(o=s[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):l.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&Ar("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Ya(e,t),t.stateNode=e,u=_e(n,r),n){case"dialog":Ar("cancel",e),Ar("close",e),o=r;break;case"iframe":case"object":case"embed":Ar("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tr.length;o++)Ar(Tr[o],e);o=r;break;case"source":Ar("error",e),o=r;break;case"img":case"image":case"link":Ar("error",e),Ar("load",e),o=r;break;case"details":Ar("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Ar("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Ar("invalid",e);break;case"textarea":le(e,r),o=se(e,r),Ar("invalid",e);break;default:o=r}xe(n,o);var c=o;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?we(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Ar("scroll",e):null!=f&&E(e,s,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Br)}zr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)$a(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=ko(No.current),ko(Ao.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ui(Uo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Uo.current)?0===Ds&&(Ds=3):(0!==Ds&&3!==Ds||(Ds=4),null===Rs||0==(134217727&js)&&0==(134217727&Bs)||gl(Rs,ks))),(r||n)&&(t.flags|=4),null);case 4:return Mo(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return no(t),null;case 19:if(ui(Uo),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(u=r.rendering))if(s)rs(r,!1);else{if(0!==Ds||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=jo(e))){for(t.flags|=64,rs(r,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(u=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,e=u.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ci(Uo,1&Uo.current|2),t.child}e=e.sibling}null!==r.tail&&zi()>Vs&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=jo(u))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ho)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>Vs&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Uo.current,ci(Uo,s?1&t|2:1&t),n):null;case 23:case 24:return El(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function os(e){switch(e.tag){case 1:mi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Mo(),ui(hi),ui(di),$o(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Po(e),null;case 13:return ui(Uo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Uo),null;case 4:return Mo(),null;case 10:return no(e),null;case 23:case 24:return El(),null;default:return null}}function as(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Xa=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ko(Ao.current);var a,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Br)}for(f in xe(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(s=s||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Ar("scroll",e),s||u===c||(s=[])):"object"==typeof c&&null!==c&&c.$$typeof===D?c.toString():(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},$a=function(e,t,n,r){n!==r&&(t.flags|=4)};var ls="function"==typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=uo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Xs=r),ss(0,t)},n}function cs(e,t,n){(n=uo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===$s?$s=new Set([this]):$s.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"==typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ul(e,t)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(a(163))}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ml(n,e),Ll(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&po(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}po(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&zr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))))}throw Error(a(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=Ee("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(xi&&"function"==typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(Si,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ml(t,n);else{r=t;try{i()}catch(e){Ul(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Ul(t,e)}break;case 5:ds(t);break;case 4:Ss(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Es(e,n,t):ws(e,n,t)}function Es(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(Es(e,t,n),e=e.sibling;null!==e;)Es(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function Ss(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,u=l;;)if(ms(s,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function xs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),_e(e,i),t=_e(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?we(n,l):"dangerouslySetInnerHTML"===s?me(n,l):"children"===s?ve(n,l):E(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 13:return null!==t.memoizedState&&(zs=zi(),gs(t.child,!0)),void _s(t);case 19:return void _s(t);case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(a(163))}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Bl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cs=Math.ceil,Os=w.ReactCurrentDispatcher,Is=w.ReactCurrentOwner,As=0,Rs=null,Ns=null,ks=0,Ls=0,Ms=li(0),Ds=0,Ps=null,Us=0,js=0,Bs=0,Fs=0,Hs=null,zs=0,Vs=1/0;function Gs(){Vs=zi()+500}var Ws,qs=null,Ys=!1,Xs=null,$s=null,Ks=!1,Qs=null,Js=90,Zs=[],el=[],tl=null,nl=0,rl=null,il=-1,ol=0,al=0,sl=null,ll=!1;function ul(){return 0!=(48&As)?zi():-1!==il?il:il=zi()}function cl(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Vi()?1:2;if(0===ol&&(ol=Us),0!==$i.transition){0!==al&&(al=null!==Hs?Hs.pendingLanes:0),e=ol;var t=4186112&~al;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Vi(),e=Bt(0!=(4&As)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ol)}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(a(185));if(null===(e=dl(e,t)))return null;zt(e,t,n),e===Rs&&(Bs|=t,4===Ds&&gl(e,ks));var r=Vi();1===t?0!=(8&As)&&0==(48&As)?ml(e):(hl(e,n),0===As&&(Gs(),Yi())):(0==(4&As)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),hl(e,n)),Hs=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Vt(s),u=1<<l,c=o[l];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Pt(u);var f=Dt;o[l]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);s&=~u}if(r=Ut(e,e===Rs?ks:0),t=Dt,0===r)null!==n&&(n!==Pi&&Ci(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Pi&&Ci(n)}15===t?(n=ml.bind(null,e),null===ji?(ji=[n],Bi=Ti(Ni,Xi)):ji.push(n),n=Pi):14===t?n=qi(99,ml.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=qi(n,pl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function pl(e){if(il=-1,al=ol=0,0!=(48&As))throw Error(a(327));var t=e.callbackNode;if(kl()&&e.callbackNode!==t)return null;var n=Ut(e,e===Rs?ks:0);if(0===n)return null;var r=n,i=As;As|=16;var o=xl();for(Rs===e&&ks===r||(Gs(),wl(e,r));;)try{Cl();break}catch(t){Sl(e,t)}if(to(),Os.current=o,As=i,null!==Ns?r=0:(Rs=null,ks=0,r=Ds),0!=(Us&Bs))wl(e,0);else if(0!==r){if(2===r&&(As|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=jt(e))&&(r=_l(e,n))),1===r)throw t=Ps,wl(e,0),gl(e,n),hl(e,zi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Al(e);break;case 3:if(gl(e,n),(62914560&n)===n&&10<(r=zs+500-zi())){if(0!==Ut(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ul(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gr(Al.bind(null,e),r);break}Al(e);break;case 4:if(gl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Vt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=zi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Gr(Al.bind(null,e),n);break}Al(e);break;default:throw Error(a(329))}}return hl(e,zi()),e.callbackNode===t?pl.bind(null,e):null}function gl(e,t){for(t&=~Fs,t&=~Bs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function ml(e){if(0!=(48&As))throw Error(a(327));if(kl(),e===Rs&&0!=(e.expiredLanes&ks)){var t=ks,n=_l(e,t);0!=(Us&Bs)&&(n=_l(e,t=Ut(e,t)))}else n=_l(e,t=Ut(e,0));if(0!==e.tag&&2===n&&(As|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=jt(e))&&(n=_l(e,t))),1===n)throw n=Ps,wl(e,0),gl(e,t),hl(e,zi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Al(e),hl(e,zi()),null}function vl(e,t){var n=As;As|=1;try{return e(t)}finally{0===(As=n)&&(Gs(),Yi())}}function yl(e,t){var n=As;As&=-2,As|=8;try{return e(t)}finally{0===(As=n)&&(Gs(),Yi())}}function bl(e,t){ci(Ms,Ls),Ls|=t,Us|=t}function El(){Ls=Ms.current,ui(Ms)}function wl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ns)for(n=Ns.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vi();break;case 3:Mo(),ui(hi),ui(di),$o();break;case 5:Po(r);break;case 4:Mo();break;case 13:case 19:ui(Uo);break;case 10:no(r);break;case 23:case 24:El()}n=n.return}Rs=e,Ns=Vl(e.current,null),ks=Ls=Us=t,Ds=0,Ps=null,Fs=Bs=js=0}function Sl(e,t){for(;;){var n=Ns;try{if(to(),Ko.current=Na,na){for(var r=Zo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}na=!1}if(Jo=0,ta=ea=Zo=null,ra=!1,Is.current=null,null===n||null===n.return){Ds=1,Ps=t,Ns=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ks,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Uo.current),d=a;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=d.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(h){var m=d.updateQueue;if(null===m){var v=new Set;v.add(u),d.updateQueue=v}else m.add(u);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=uo(-1,1);y.tag=2,co(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new ls,l=new Set,b.set(u,l)):void 0===(l=b.get(u))&&(l=new Set,b.set(u,l)),!l.has(s)){l.add(s);var E=jl.bind(null,o,u,s);u.then(E,E)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=Error((Y(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ds&&(Ds=2),l=as(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t,fo(d,us(0,o,t));break e;case 1:o=l;var w=d.type,S=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==S&&"function"==typeof S.componentDidCatch&&(null===$s||!$s.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,fo(d,cs(d,o,t));break e}}d=d.return}while(null!==d)}Il(n)}catch(e){t=e,Ns===n&&null!==n&&(Ns=n=n.return);continue}break}}function xl(){var e=Os.current;return Os.current=Na,null===e?Na:e}function _l(e,t){var n=As;As|=16;var r=xl();for(Rs===e&&ks===t||wl(e,t);;)try{Tl();break}catch(t){Sl(e,t)}if(to(),As=n,Os.current=r,null!==Ns)throw Error(a(261));return Rs=null,ks=0,Ds}function Tl(){for(;null!==Ns;)Ol(Ns)}function Cl(){for(;null!==Ns&&!Oi();)Ol(Ns)}function Ol(e){var t=Ws(e.alternate,e,Ls);e.memoizedProps=e.pendingProps,null===t?Il(e):Ns=t,Is.current=null}function Il(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=is(n,t,Ls)))return void(Ns=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Ls)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=os(t)))return n.flags&=2047,void(Ns=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ns=t);Ns=t=e}while(null!==t);0===Ds&&(Ds=5)}function Al(e){var t=Vi();return Wi(99,Rl.bind(null,e,t)),null}function Rl(e,t){do{kl()}while(null!==Qs);if(0!=(48&As))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<o;){var u=31-Vt(o),c=1<<u;i[u]=0,s[u]=-1,l[u]=-1,o&=~c}if(null!==tl&&0==(24&r)&&tl.has(e)&&tl.delete(e),e===Rs&&(Ns=Rs=null,ks=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=As,As|=32,Is.current=null,Fr=Xt,mr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&0!==c.rangeCount){l=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch(e){l=null;break e}var f=0,d=-1,h=-1,p=0,g=0,m=s,v=null;t:for(;;){for(var y;m!==l||0!==o&&3!==m.nodeType||(d=f+o),m!==u||0!==c&&3!==m.nodeType||(h=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===s)break t;if(v===l&&++p===o&&(d=f),v===u&&++g===c&&(h=f),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}l=-1===d||-1===h?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Hr={focusedElem:s,selectionRange:l},Xt=!1,sl=null,ll=!1,qs=r;do{try{Nl()}catch(e){if(null===qs)throw Error(a(330));Ul(qs,e),qs=qs.nextEffect}}while(null!==qs);sl=null,qs=r;do{try{for(s=e;null!==qs;){var b=qs.flags;if(16&b&&ve(qs.stateNode,""),128&b){var E=qs.alternate;if(null!==E){var w=E.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(qs),qs.flags&=-3;break;case 6:bs(qs),qs.flags&=-3,xs(qs.alternate,qs);break;case 1024:qs.flags&=-1025;break;case 1028:qs.flags&=-1025,xs(qs.alternate,qs);break;case 4:xs(qs.alternate,qs);break;case 8:Ss(s,l=qs);var S=l.alternate;vs(l),null!==S&&vs(S)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Ul(qs,e),qs=qs.nextEffect}}while(null!==qs);if(w=Hr,E=gr(),b=w.focusedElem,s=w.selectionRange,E!==b&&b&&b.ownerDocument&&pr(b.ownerDocument.documentElement,b)){null!==s&&mr(b)&&(E=s.start,void 0===(w=s.end)&&(w=E),"selectionStart"in b?(b.selectionStart=E,b.selectionEnd=Math.min(w,b.value.length)):(w=(E=b.ownerDocument||document)&&E.defaultView||window).getSelection&&(w=w.getSelection(),l=b.textContent.length,S=Math.min(s.start,l),s=void 0===s.end?S:Math.min(s.end,l),!w.extend&&S>s&&(l=s,s=S,S=l),l=hr(b,S),o=hr(b,s),l&&o&&(1!==w.rangeCount||w.anchorNode!==l.node||w.anchorOffset!==l.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((E=E.createRange()).setStart(l.node,l.offset),w.removeAllRanges(),S>s?(w.addRange(E),w.extend(o.node,o.offset)):(E.setEnd(o.node,o.offset),w.addRange(E))))),E=[];for(w=b;w=w.parentNode;)1===w.nodeType&&E.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<E.length;b++)(w=E[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Xt=!!Fr,Hr=Fr=null,e.current=n,qs=r;do{try{for(b=e;null!==qs;){var x=qs.flags;if(36&x&&ps(b,qs.alternate,qs),128&x){E=void 0;var _=qs.ref;if(null!==_){var T=qs.stateNode;qs.tag,E=T,"function"==typeof _?_(E):_.current=E}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Ul(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,Ui(),As=i}else e.current=n;if(Ks)Ks=!1,Qs=e,Js=t;else for(qs=r;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,8&qs.flags&&((x=qs).sibling=null,x.stateNode=null),qs=t;if(0===(r=e.pendingLanes)&&($s=null),1===r?e===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,xi&&"function"==typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(Si,n,void 0,64==(64&n.current.flags))}catch(e){}if(hl(e,zi()),Ys)throw Ys=!1,e=Xs,Xs=null,e;return 0!=(8&As)||Yi(),null}function Nl(){for(;null!==qs;){var e=qs.alternate;ll||null===sl||(0!=(8&qs.flags)?Ze(qs,sl)&&(ll=!0):13===qs.tag&&Ts(e,qs)&&Ze(qs,sl)&&(ll=!0));var t=qs.flags;0!=(256&t)&&hs(e,qs),0==(512&t)||Ks||(Ks=!0,qi(97,(function(){return kl(),null}))),qs=qs.nextEffect}}function kl(){if(90!==Js){var e=97<Js?97:Js;return Js=90,Wi(e,Dl)}return!1}function Ll(e,t){Zs.push(t,e),Ks||(Ks=!0,qi(97,(function(){return kl(),null})))}function Ml(e,t){el.push(t,e),Ks||(Ks=!0,qi(97,(function(){return kl(),null})))}function Dl(){if(null===Qs)return!1;var e=Qs;if(Qs=null,0!=(48&As))throw Error(a(331));var t=As;As|=32;var n=el;el=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Ul(o,e)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var l=i.create;i.destroy=l()}catch(e){if(null===o)throw Error(a(330));Ul(o,e)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return As=t,Yi(),!0}function Pl(e,t,n){co(e,t=us(0,t=as(n,t),1)),t=ul(),null!==(e=dl(e,1))&&(zt(e,1,t),hl(e,t))}function Ul(e,t){if(3===e.tag)Pl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Pl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r))){var i=cs(n,e=as(t,e),1);if(co(n,i),i=ul(),null!==(n=dl(n,1)))zt(n,1,i),hl(n,i);else if("function"==typeof r.componentDidCatch&&(null===$s||!$s.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function jl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ul(),e.pingedLanes|=e.suspendedLanes&n,Rs===e&&(ks&n)===n&&(4===Ds||3===Ds&&(62914560&ks)===ks&&500>zi()-zs?wl(e,0):Fs|=n),hl(e,t)}function Bl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Vi()?1:2:(0===ol&&(ol=Us),0===(t=Ft(62914560&~ol))&&(t=4194304))),n=ul(),null!==(e=dl(e,t))&&(zt(e,t,n),hl(e,n))}function Fl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new Fl(e,t,n,r)}function zl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vl(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gl(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)zl(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Wl(n.children,i,o,t);case P:s=8,i|=16;break;case T:s=8,i|=1;break;case C:return(e=Hl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case R:return(e=Hl(13,n,t,i)).type=R,e.elementType=R,e.lanes=o,e;case N:return(e=Hl(19,n,t,i)).elementType=N,e.lanes=o,e;case U:return ql(n,i,o,t);case j:return(e=Hl(24,n,t,i)).elementType=j,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case I:s=9;break e;case A:s=11;break e;case k:s=14;break e;case L:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Wl(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function ql(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=U,e.lanes=n,e}function Yl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Xl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ht(0),this.expirationTimes=Ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ht(0),this.mutableSourceEagerHydrationData=null}function Kl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ql(e,t,n,r){var i=t.current,o=ul(),s=cl(i);e:if(n){t:{if($e(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(mi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(mi(u)){n=bi(n,u,l);break e}}n=l}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=uo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),fl(i,s,o),s}function Jl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function eu(e,t){Zl(e,t),(e=e.alternate)&&Zl(e,t)}function tu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $l(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[Zr]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ru(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Jl(a);s.call(e)}}Ql(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var l=i;i=function(){var e=Jl(a);l.call(e)}}yl((function(){Ql(t,a,e,i)}))}return Jl(a)}function iu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nu(t))throw Error(a(200));return Kl(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||hi.current)Pa=!0;else{if(0==(n&r)){switch(Pa=!1,t.tag){case 3:qa(t),Yo();break;case 5:Do(t);break;case 1:mi(t.type)&&Ei(t);break;case 4:Lo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ci(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ci(Uo,1&Uo.current),null!==(t=ns(e,t,n))?t.sibling:null);ci(Uo,1&Uo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(Uo,Uo.current),r)break;return null;case 23:case 24:return t.lanes=0,Ha(e,t,n)}return ns(e,t,n)}Pa=0!=(16384&e.flags)}else Pa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=gi(t,di.current),io(t,n),i=aa(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;Ei(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=vo,t.stateNode=i,i._reactInternals=t,wo(t,r,e,n),t=Wa(null,t,r,!0,o,n)}else t.tag=0,Ua(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return zl(e)?1:0;if(null!=e){if((e=e.$$typeof)===A)return 11;if(e===k)return 14}return 2}(i),e=Ki(i,e),o){case 0:t=Va(null,t,i,e,n);break e;case 1:t=Ga(null,t,i,e,n);break e;case 11:t=ja(null,t,i,e,n);break e;case 14:t=Ba(null,t,i,Ki(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ga(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),ho(t,r,null,n),(r=t.memoizedState.element)===i)Yo(),t=ns(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Fo=Yr(t.stateNode.containerInfo.firstChild),Bo=t,o=Ho=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Xo.push(o);for(n=Oo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ua(e,t,r,n),Yo();t=t.child}return t;case 5:return Do(t),null===e&&Go(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Vr(r,i)?s=null:null!==o&&Vr(r,o)&&(t.flags|=16),za(e,t),Ua(e,t,s,n),t.child;case 6:return null===e&&Go(t),null;case 13:return Qa(e,t,n);case 4:return Lo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Co(t,null,r,n):Ua(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,ja(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Ua(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ua(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var l=t.type._context;if(ci(Qi,l._currentValue),l._currentValue=o,null!==s)if(l=s.value,0==(o=ur(l,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,o):1073741823))){if(s.children===i.children&&!hi.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===l.tag&&((c=uo(-1,n&-n)).tag=2,co(l,c)),l.lanes|=n,null!==(c=l.alternate)&&(c.lanes|=n),ro(l.return,n),u.lanes|=n;break}c=c.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Ua(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,io(t,n),r=r(i=oo(i,o.unstable_observedBits)),t.flags|=1,Ua(e,t,r,n),t.child;case 14:return o=Ki(i=t.type,t.pendingProps),Ba(e,t,i,o=Ki(i.type,o),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,mi(r)?(e=!0,Ei(t)):e=!1,io(t,n),bo(t,r,i),wo(t,r,i,n),Wa(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Ha(e,t,n)}throw Error(a(156,t.tag))},tu.prototype.render=function(e){Ql(e,this._internalRoot,null,null)},tu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ql(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(fl(e,4,ul()),eu(e,4))},tt=function(e){13===e.tag&&(fl(e,67108864,ul()),eu(e,67108864))},nt=function(e){if(13===e.tag){var t=ul(),n=cl(e);fl(e,n,t),eu(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ii(r);if(!i)throw Error(a(90));Q(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ke=vl,Le=function(e,t,n,r,i){var o=As;As|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(As=o)&&(Gs(),Yi())}},Me=function(){0==(49&As)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,zi())}))}Yi()}(),kl())},De=function(e,t){var n=As;As|=2;try{return e(t)}finally{0===(As=n)&&(Gs(),Yi())}};var ou={Events:[ni,ri,ii,Re,Ne,kl,{current:!1}]},au={findFiberByHostInstance:ti,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},su={bundleType:au.bundleType,version:au.version,rendererPackageName:au.rendererPackageName,rendererConfig:au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:au.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lu.isDisabled&&lu.supportsFiber)try{Si=lu.inject(su),xi=lu}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ou,t.createPortal=iu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=As;if(0!=(48&n))return e(t);As|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{As=n,Yi()}},t.hydrate=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!0,n)},t.render=function(e,t,n){if(!nu(t))throw Error(a(200));return ru(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nu(e))throw Error(a(40));return!!e._reactRootContainer&&(yl((function(){ru(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=vl,t.unstable_createPortal=function(e,t){return iu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ru(e,t,n,!1,r)},t.version="17.0.2"},4819:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(8875)},8599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["false","true"]},1595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["binary","boolean","date","double","float","geohash","int","long","long256","short","string","symbol","timestamp"]},4891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["abs","all_tables","avg","batch","cast","coalesce","commitLag","concat","count","dateadd","datediff","day","day_of_week","day_of_week_sunday_first","days_in_month","first","format","headers","hour","ifnull","is_leap_year","isnull","ksum","lag","last","lcase","len","length","long_sequence","make_geohash","max","maxUncommittedRows","micros","mid","millis","min","minute","month","now","nsum","nvl","rank","rnd_bin","rnd_boolean","rnd_byte","rnd_char","rnd_date","rnd_double","rnd_float","rnd_geohash","rnd_int","rnd_long","rnd_long256","rnd_short","rnd_str","rnd_symbol","rnd_timestamp","round","round_down","round_half_even","round_up","second","sum","sysdate","systimestamp","tables_columns","timestamp_ceil","timestamp_floor","timestamp_sequence","to_date","to_str","to_timestamp","to_timezone","to_utc","ucase","within","year"]},7709:(e,t,n)=>{"use strict";n(8599);var r=n(1595);Object.defineProperty(t,"DJ",{enumerable:!0,get:function(){return r.default}});var i=n(4891);Object.defineProperty(t,"wk",{enumerable:!0,get:function(){return i.default}});var o=n(71);Object.defineProperty(t,"Hw",{enumerable:!0,get:function(){return o.default}})},71:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["add","align","all","alter","and","as","asc","asof","attach","backup","between","by","cache","calendar","capacity","case","cast","column","columns","copy","create","cross","database","default","delete","desc","distinct","drop","else","end","except","exists","fill","foreign","from","grant","group","header","if","in","index","inner","insert","intersect","into","isolation","join","key","latest","left","level","limit","list","lock","lt","nan","natural","nocache","none","not","null","offset","on","only","or","order","outer","over","param","partition","primary","references","rename","repair","right","sample","select","set","show","splice","system","table","tables","then","time","to","transaction","truncate","type","union","unlock","update","values","when","where","with","writer","zone"]},8433:(e,t,n)=>{e.exports=l;var r=n(1470),i=n(5847),o=n(8292),a=n(6720),s={NODE_ENV:"production"}.RESET_APP_DATA_TIMER&&parseInt({NODE_ENV:"production"}.RESET_APP_DATA_TIMER,10)||12e4;function l(e,t,i){var o=n(1947)("algoliasearch"),a=n(3887),s=n(7597),l=n(4727),c="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==i._allowEmptyCredentials&&!e)throw new r.AlgoliaSearchError("Please provide an application ID. "+c);if(!0!==i._allowEmptyCredentials&&!t)throw new r.AlgoliaSearchError("Please provide an API key. "+c);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},i=i||{},this._timeouts=i.timeouts||{connect:1e3,read:2e3,write:3e4},i.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=i.timeout);var f=i.protocol||"https:";if(/:$/.test(f)||(f+=":"),"http:"!==f&&"https:"!==f)throw new r.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+i.protocol+"`)");if(this._checkAppIdData(),i.hosts)s(i.hosts)?(this.hosts.read=a(i.hosts),this.hosts.write=a(i.hosts)):(this.hosts.read=a(i.hosts.read),this.hosts.write=a(i.hosts.write));else{var d=l(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),h=(!1===i.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+h].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d)}this.hosts.read=l(this.hosts.read,u(f)),this.hosts.write=l(this.hosts.write,u(f)),this.extraHeaders={},this.cache=i._cache||{},this._ua=i._ua,this._useCache=!(void 0!==i._useCache&&!i._cache)||i._useCache,this._useRequestCache=this._useCache&&i._useRequestCache,this._useFallback=void 0===i.useFallback||i.useFallback,this._setTimeout=i._setTimeout,o("init done, %j",this)}function u(e){return function(t){return e+"//"+t.toLowerCase()}}function c(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function f(e){var t={};for(var n in e){var r;Object.prototype.hasOwnProperty.call(e,n)&&(r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r)}return t}l.prototype.initIndex=function(e){return new o(this,e)},l.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},l.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},l.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},l.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},l.prototype._jsonRequest=function(e){this._checkAppIdData();var t,o,a,s=n(1947)("algoliasearch:"+e.url),l=e.additionalUA||"",u=e.cache,d=this,h=0,p=!1,g=d._useFallback&&d._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,a=this._computeRequestHeaders({additionalUA:l,withApiKey:!1,headers:e.headers})):a=this._computeRequestHeaders({additionalUA:l,headers:e.headers}),void 0!==e.body&&(t=c(e.body)),s("request start");var m=[];function v(e,t,n){return d._useCache&&e&&t&&void 0!==t[n]}function y(t,n){if(v(d._useRequestCache,u,o)&&t.catch((function(){delete u[o]})),"function"!=typeof e.callback)return t.then(n);t.then((function(t){i((function(){e.callback(null,n(t))}),d._setTimeout||setTimeout)}),(function(t){i((function(){e.callback(t)}),d._setTimeout||setTimeout)}))}if(d._useCache&&d._useRequestCache&&(o=e.url),d._useCache&&d._useRequestCache&&t&&(o+="_body_"+t),v(d._useRequestCache,u,o)){s("serving request from cache");var b=u[o];return y("function"!=typeof b.then?d._promise.resolve({responseText:b}):b,(function(e){return JSON.parse(e.responseText)}))}var E=function n(i,y){d._checkAppIdData();var b=new Date;if(d._useCache&&!d._useRequestCache&&(o=e.url),d._useCache&&!d._useRequestCache&&t&&(o+="_body_"+y.body),v(!d._useRequestCache,u,o)){s("serving response from cache");var E=u[o];return d._promise.resolve({body:JSON.parse(E),responseText:E})}if(h>=d.hosts[e.hostType].length)return!g||p?(s("could not get any response"),d._promise.reject(new r.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+d.applicationID,{debugData:m}))):(s("switching to fallback"),h=0,y.method=e.fallback.method,y.url=e.fallback.url,y.jsonBody=e.fallback.body,y.jsonBody&&(y.body=c(y.jsonBody)),a=d._computeRequestHeaders({additionalUA:l,headers:e.headers}),y.timeouts=d._getTimeoutsForRequest(e.hostType),d._setHostIndexByType(0,e.hostType),p=!0,n(d._request.fallback,y));var w=d._getHostByType(e.hostType),S=w+y.url,x={body:y.body,jsonBody:y.jsonBody,method:y.method,headers:a,timeouts:y.timeouts,debug:s,forceAuthHeaders:y.forceAuthHeaders};return s("method: %s, url: %s, headers: %j, timeouts: %d",x.method,S,x.headers,x.timeouts),i===d._request.fallback&&s("using fallback"),i.call(d,S,x).then((function(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;s("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var i=2===Math.floor(n/100),l=new Date;if(m.push({currentHost:w,headers:f(a),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:l,duration:l-b,statusCode:n}),i)return d._useCache&&!d._useRequestCache&&u&&(u[o]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(n/100))return h+=1,_();s("unrecoverable error");var c=new r.AlgoliaSearchError(e.body&&e.body.message,{debugData:m,statusCode:n});return d._promise.reject(c)}),(function(o){s("error: %s, stack: %s",o.message,o.stack);var l=new Date;return m.push({currentHost:w,headers:f(a),content:t||null,contentLength:void 0!==t?t.length:null,method:y.method,timeouts:y.timeouts,url:y.url,startTime:b,endTime:l,duration:l-b}),o instanceof r.AlgoliaSearchError||(o=new r.Unknown(o&&o.message,o)),h+=1,o instanceof r.Unknown||o instanceof r.UnparsableJSON||h>=d.hosts[e.hostType].length&&(p||!g)?(o.debugData=m,d._promise.reject(o)):o instanceof r.RequestTimeout?(s("retrying request with higher timeout"),d._incrementHostIndex(e.hostType),d._incrementTimeoutMultipler(),y.timeouts=d._getTimeoutsForRequest(e.hostType),n(i,y)):_()}));function _(){return s("retrying request"),d._incrementHostIndex(e.hostType),n(i,y)}}(d._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:d._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return d._useCache&&d._useRequestCache&&u&&(u[o]=E),y(E,(function(e){return e.body}))},l.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?c(e[n]):e[n]));return t},l.prototype._computeRequestHeaders=function(e){var t=n(1669),r={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},l.prototype.search=function(e,t,r){var i=n(7597),o=n(4727);if(!i(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var a=this,s={requests:o(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}}))},l=o(s.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&");return void 0!==t.strategy&&(s.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:s,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:l}},callback:r})},l.prototype.searchForFacetValues=function(e){var t=n(7597),r=n(4727),i="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(i);var o=this;return o._promise.all(r(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(i);var t=n(3887),r=n(5204),a=e.indexName,s=e.params,l=s.facetName,u=r(t(s),(function(e){return"facetName"===e})),c=o._getSearchParams(u,"");return o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(a)+"/facets/"+encodeURIComponent(l)+"/query",hostType:"read",body:{params:c}})})))},l.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],i=0;i<e[n].length;++i)r.push(e[n][i]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},l.prototype.setUserToken=function(e){this.userToken=e},l.prototype.clearCache=function(){this.cache={}},l.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},l.prototype.setTimeouts=function(e){this._timeouts=e},l.prototype.getTimeouts=function(){return this._timeouts},l.prototype._getAppIdData=function(){var e=a.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},l.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),a.set(this.applicationID,e)},l.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>s?this._resetInitialAppIdData(e):e},l.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(t)},l.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},l.prototype._partialAppIdDataUpdate=function(e){var t=n(1669),r=this._getAppIdData();return t(e,(function(e,t){r[t]=e})),this._setAppIdData(r)},l.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},l.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},l.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},l.prototype._setHostIndexByType=function(e,t){var r=n(3887)(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},l.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},l.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},l.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},8292:(e,t,n)=>{var r=n(3442),i=n(263),o=n(4202);function a(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=a,a.prototype.clearCache=function(){this.cache={}},a.prototype.search=r("query"),a.prototype.similarSearch=i(r("similarQuery"),o("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),a.prototype.browse=function(e,t,r){var i,o,a=n(4203),s=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(i=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?o=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],o=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=a({},t||{},{page:i,hitsPerPage:o,query:e});var l=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",body:{params:l},hostType:"read",callback:r})},a.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},a.prototype.searchForFacetValues=function(e,t){var r=n(3887),i=n(5204);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var o=e.facetName,a=i(r(e),(function(e){return"facetName"===e})),s=this.as._getSearchParams(a,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:s},callback:t})},a.prototype.searchFacet=i((function(e,t){return this.searchForFacetValues(e,t)}),o("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),a.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},a.prototype.getObject=function(e,t,n){var r=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var i="";if(void 0!==t){i="?attributes=";for(var o=0;o<t.length;++o)0!==o&&(i+=","),i+=t[o]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e)+i,hostType:"read",callback:n})},a.prototype.getObjects=function(e,t,r){var i=n(7597),o=n(4727),a="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!i(e))throw new Error(a);var s=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var l={requests:o(e,(function(e){var n={indexName:s.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:l,callback:r})},a.prototype.as=null,a.prototype.indexName=null,a.prototype.typeAheadArgs=null,a.prototype.typeAheadValueOption=null},9056:(e,t,n)=>{"use strict";var r=n(8433),i=n(2814);e.exports=i(r,"Browser (lite)")},2814:(e,t,n)=>{"use strict";var r=n(3573),i=r.Promise||n(6197).Promise;e.exports=function(e,t){var o=n(773),a=n(1470),s=n(3227),l=n(5838),u=n(5004);function c(e,t,r){return(r=n(3887)(r||{}))._ua=r._ua||c.ua,new d(e,t,r)}t=t||"",c.version=n(4867),c.ua="Algolia for JavaScript ("+c.version+"); "+t,c.initPlaces=u(c),r.__algolia={debug:n(1947),algoliasearch:c};var f={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function d(){e.apply(this,arguments)}return f.hasXMLHttpRequest&&(f.cors="withCredentials"in new XMLHttpRequest),o(d,e),d.prototype._request=function(e,t){return new i((function(n,r){if(f.cors||f.hasXDomainRequest){e=s(e,t.headers);var i,o,l=t.body,u=f.cors?new XMLHttpRequest:new XDomainRequest,c=!1;i=setTimeout(d,t.timeouts.connect),u.onprogress=function(){c||h()},"onreadystatechange"in u&&(u.onreadystatechange=function(){!c&&u.readyState>1&&h()}),u.onload=function(){if(!o){var e;clearTimeout(i);try{e={body:JSON.parse(u.responseText),responseText:u.responseText,statusCode:u.status,headers:u.getAllResponseHeaders&&u.getAllResponseHeaders()||{}}}catch(t){e=new a.UnparsableJSON({more:u.responseText})}e instanceof a.UnparsableJSON?r(e):n(e)}},u.onerror=function(e){o||(clearTimeout(i),r(new a.Network({more:e})))},u instanceof XMLHttpRequest?(u.open(t.method,e,!0),t.forceAuthHeaders&&(u.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),u.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):u.open(t.method,e),f.cors&&(l&&("POST"===t.method?u.setRequestHeader("content-type","application/x-www-form-urlencoded"):u.setRequestHeader("content-type","application/json")),u.setRequestHeader("accept","application/json")),l?u.send(l):u.send()}else r(new a.Network("CORS not supported"));function d(){o=!0,u.abort(),r(new a.RequestTimeout)}function h(){c=!0,clearTimeout(i),i=setTimeout(d,t.timeouts.complete)}}))},d.prototype._request.fallback=function(e,t){return e=s(e,t.headers),new i((function(n,r){l(e,t,(function(e,t){e?r(e):n(t)}))}))},d.prototype._promise={reject:function(e){return i.reject(e)},resolve:function(e){return i.resolve(e)},delay:function(e){return new i((function(t){setTimeout(t,e)}))},all:function(e){return i.all(e)}},c}},3227:(e,t,n)=>{"use strict";e.exports=function(e,t){return/\?/.test(e)?e+="&":e+="?",e+r(t)};var r=n(690)},5838:(e,t,n)=>{"use strict";e.exports=function(e,t,n){if("GET"===t.method){t.debug("JSONP: start");var o=!1,a=!1;i+=1;var s=document.getElementsByTagName("head")[0],l=document.createElement("script"),u="algoliaJSONP_"+i,c=!1;window[u]=function(e){!function(){try{delete window[u],delete window[u+"_loaded"]}catch(e){window[u]=window[u+"_loaded"]=void 0}}(),a?t.debug("JSONP: Late answer, ignoring"):(o=!0,h(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+u,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var f=setTimeout((function(){t.debug("JSONP: Script timeout"),a=!0,h(),n(new r.RequestTimeout)}),t.timeouts.complete);l.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||d()},l.onload=d,l.onerror=function(){t.debug("JSONP: Script error"),c||a||(h(),n(new r.JSONPScriptError))},l.async=!0,l.defer=!0,l.src=e,s.appendChild(l)}else n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));function d(){t.debug("JSONP: success"),c||a||(c=!0,o||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),h(),n(new r.JSONPScriptFail)))}function h(){clearTimeout(f),l.onload=null,l.onreadystatechange=null,l.onerror=null,s.removeChild(l)}};var r=n(1470),i=0},3442:(e,t,n)=>{e.exports=function(e,t){return function(n,i,o){if("function"==typeof n&&"object"==typeof i||"object"==typeof o)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(o=n,n=""):1!==arguments.length&&"function"!=typeof i||(o=i,i=void 0),"object"==typeof n&&null!==n?(i=n,n=void 0):null==n&&(n="");var a,s="";return void 0!==n&&(s+=e+"="+encodeURIComponent(n)),void 0!==i&&(i.additionalUA&&(a=i.additionalUA,delete i.additionalUA),s=this.as._getSearchParams(i,s)),this._search(s,t,o,a)}};var r=n(1470)},3887:e=>{e.exports=function(e){return JSON.parse(JSON.stringify(e))}},263:e=>{e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},4202:e=>{e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},1470:(e,t,n)=>{"use strict";var r=n(773);function i(e,t){var r=n(1669),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,(function(e,t){i[t]=e}))}function o(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),i.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(n,i),n}r(i,Error),e.exports={AlgoliaSearchError:i,UnparsableJSON:o("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:o("RequestTimeout","Request timed out before getting a response"),Network:o("Network","Network issue, see err.more for details"),JSONPScriptFail:o("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:o("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:o("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:o("ObjectNotFound","Object not found"),Unknown:o("Unknown","Unknown error occured")}},5847:e=>{e.exports=function(e,t){t(e,0)}},4727:(e,t,n)=>{var r=n(1669);e.exports=function(e,t){var n=[];return r(e,(function(r,i){n.push(t(r,i,e))})),n}},4203:(e,t,n)=>{var r=n(1669);e.exports=function e(t){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof t[r]&&"object"==typeof n[r]?t[r]=e({},t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]))})),t}},5204:(e,t,n)=>{e.exports=function(e,t){var r=n(2604),i=n(1669),o={};return i(r(e),(function(n){!0!==t(n)&&(o[n]=e[n])})),o}},5004:(e,t,n)=>{e.exports=function(e){return function(t,o,a){var s=n(3887);(a=a&&s(a)||{}).hosts=a.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(t="",o="",a._allowEmptyCredentials=!0);var l=e(t,o,a),u=l.initIndex("places");return u.search=i("query","/1/places/query"),u.reverse=function(e,t){var n=r.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}};var r=n(4491),i=n(3442)},6720:(e,t,n)=>{var r,i=n(1947)("algoliasearch:src/hostIndexState.js"),o="algoliasearch-client-js",a={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},s={set:function(e,t){a.set(e,t);try{var r=JSON.parse(n.g.localStorage[o]);return r[e]=t,n.g.localStorage[o]=JSON.stringify(r),r[e]}catch(t){return l(e,t)}},get:function(e){try{return JSON.parse(n.g.localStorage[o])[e]||null}catch(t){return l(e,t)}}};function l(e,t){return i("localStorage failed with",t),function(){try{n.g.localStorage.removeItem(o)}catch(e){}}(),(r=a).get(e)}function u(e,t){return 1===arguments.length?r.get(e):r.set(e,t)}function c(){try{return"localStorage"in n.g&&null!==n.g.localStorage&&(n.g.localStorage[o]||n.g.localStorage.setItem(o,JSON.stringify({})),!0)}catch(e){return!1}}r=c()?s:a,e.exports={get:u,set:u,supportsLocalStorage:c}},4867:e=>{"use strict";e.exports="3.35.1"},1123:(e,t,n)=>{"use strict";e.exports=n(7444)},8419:(e,t,n)=>{"use strict";var r=n(7396),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};r.isMsie()&&r.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(i.input,{marginTop:"-1px"}),e.exports=i},5171:(e,t,n)=>{"use strict";var r="aaDataset",i="aaValue",o="aaDatum",a=n(7396),s=n(4492),l=n(4875),u=n(8419),c=n(5114);function f(e){var t,n,r,i;(e=e||{}).templates=e.templates||{},e.source||a.error("missing source"),e.name&&(t=e.name,!/^[_a-zA-Z0-9-]+$/.test(t))&&a.error("invalid dataset name: "+e.name),this.query=null,this._isEmpty=!0,this.highlight=!!e.highlight,this.name=void 0===e.name||null===e.name?a.getUniqueId():e.name,this.source=e.source,this.displayFn=(i=(i=e.display||e.displayKey)||"value",a.isFunction(i)?i:function(e){return e[i]}),this.debounce=e.debounce,this.cache=!1!==e.cache,this.templates=(n=e.templates,r=this.displayFn,{empty:n.empty&&a.templatify(n.empty),header:n.header&&a.templatify(n.header),footer:n.footer&&a.templatify(n.footer),suggestion:n.suggestion||function(e){return"<p>"+r(e)+"</p>"}}),this.css=a.mixin({},u,e.appendTo?u.appendTo:{}),this.cssClasses=e.cssClasses=a.mixin({},u.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||a.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var o=a.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=e.$menu&&e.$menu.find(o+"-"+this.name).length>0?s.element(e.$menu.find(o+"-"+this.name)[0]):s.element(l.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=e.$menu,this.clearCachedSuggestions()}f.extractDatasetName=function(e){return s.element(e).data(r)},f.extractValue=function(e){return s.element(e).data(i)},f.extractDatum=function(e){var t=s.element(e).data(o);return"string"==typeof t&&(t=JSON.parse(t)),t},a.mixin(f.prototype,c,{_render:function(e,t){if(this.$el){var n,u=this,c=[].slice.call(arguments,2);if(this.$el.empty(),n=t&&t.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(f.apply(this,c)).prepend(u.templates.header?h.apply(this,c):null).append(u.templates.footer?p.apply(this,c):null);else if(n)this.$el.html(d.apply(this,c)).prepend(u.templates.header?h.apply(this,c):null).append(u.templates.footer?p.apply(this,c):null);else if(t&&!Array.isArray(t))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function f(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),u.templates.empty.apply(this,t)}function d(){var e,n,c=[].slice.call(arguments,0),f=this,d=l.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return e=s.element(d).css(this.css.suggestions),n=a.map(t,h),e.append.apply(e,n),e;function h(e){var t,n=l.suggestion.replace("%PREFIX%",f.cssClasses.prefix).replace("%SUGGESTION%",f.cssClasses.suggestion);return(t=s.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(u.templates.suggestion.apply(this,[e].concat(c)))).data(r,u.name),t.data(i,u.displayFn(e)||void 0),t.data(o,JSON.stringify(e)),t.children().each((function(){s.element(this).css(f.css.suggestionChild)})),t}}function h(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),u.templates.header.apply(this,t)}function p(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),u.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(e){function t(t){if(!this.canceled&&e===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(e,t,n),this._render.apply(this,[e,t].concat(n))}}if(this.query=e,this.canceled=!1,this.shouldFetchFromCache(e))t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,r=function(){n.canceled||n.source(e,t.bind(n))};this.debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,r()}),this.debounce)):r()}},cacheSuggestions:function(e,t,n){this.cachedQuery=e,this.cachedSuggestions=t,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(e){return this.cache&&this.cachedQuery===e&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered","")},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),e.exports=f},920:(e,t,n)=>{"use strict";var r=n(7396),i=n(4492),o=n(5114),a=n(5171),s=n(8419);function l(e){var t,n,o,a=this;(e=e||{}).menu||r.error("menu is required"),r.isArray(e.datasets)||r.isObject(e.datasets)||r.error("1 or more datasets required"),e.datasets||r.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=e.minLength||0,this.templates={},this.appendTo=e.appendTo||!1,this.css=r.mixin({},s,e.appendTo?s.appendTo:{}),this.cssClasses=e.cssClasses=r.mixin({},s.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix||r.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=r.bind(this._onSuggestionClick,this),n=r.bind(this._onSuggestionMouseEnter,this),o=r.bind(this._onSuggestionMouseLeave,this);var u=r.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=i.element(e.menu).on("mouseenter.aa",u,n).on("mouseleave.aa",u,o).on("click.aa",u,t),this.$container=e.appendTo?e.wrapper:this.$menu,e.templates&&e.templates.header&&(this.templates.header=r.templatify(e.templates.header),this.$menu.prepend(this.templates.header())),e.templates&&e.templates.empty&&(this.templates.empty=r.templatify(e.templates.empty),this.$empty=i.element('<div class="'+r.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=r.map(e.datasets,(function(t){return function(e,t,n){return new l.Dataset(r.mixin({$menu:e,cssClasses:n},t))}(a.$menu,t,e.cssClasses)})),r.each(this.datasets,(function(e){var t=e.getRoot();t&&0===t.parent().length&&a.$menu.append(t),e.onSync("rendered",a._onRendered,a)})),e.templates&&e.templates.footer&&(this.templates.footer=r.templatify(e.templates.footer),this.$menu.append(this.templates.footer()));var c=this;i.element(window).resize((function(){c._redraw()}))}r.mixin(l.prototype,o,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",i.element(e.currentTarget))},_onSuggestionMouseEnter:function(e){var t=i.element(e.currentTarget);if(!t.hasClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(t,!1)}),0)}},_onSuggestionMouseLeave:function(e){e.relatedTarget&&i.element(e.relatedTarget).closest("."+r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0||(this._removeCursor(),this.trigger("cursorRemoved"))},_onRendered:function(e,t){if(this.isEmpty=r.every(this.datasets,(function(e){return e.isEmpty()})),this.isEmpty)if(t.length>=this.minLength&&this.trigger("empty"),this.$empty)if(t.length<this.minLength)this._hide();else{var n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query});this.$empty.html(n),this.$empty.show(),this._show()}else r.any(this.datasets,(function(e){return e.templates&&e.templates.empty}))?t.length<this.minLength?this._hide():this._show():this._hide();else this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),t.length>=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(r.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(e,t){e.first().addClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",t)},_removeCursor:function(){this._getCursor().removeClass(r.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(e){var t,n,r,i;this.isOpen&&(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),-1!=(r=((r=t.index(n)+e)+1)%(t.length+1)-1)?(r<-1&&(r=t.length-1),this._setCursor(i=t.eq(r),!0),this._ensureVisible(i)):this.trigger("cursorRemoved"))},_ensureVisible:function(e){var t,n,r,i;n=(t=e.position().top)+e.height()+parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10),r=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),t<0?this.$menu.scrollTop(r+t):i<n&&this.$menu.scrollTop(r+(n-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(e){this.$menu.css("ltr"===e?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(e){var t=null;return e.length&&(t={raw:a.extractDatum(e),value:a.extractValue(e),datasetName:a.extractDatasetName(e)}),t},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(e){r.each(this.datasets,(function(t){t.update(e)}))},empty:function(){r.each(this.datasets,(function(e){e.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,r.each(this.datasets,(function(e){e.destroy()}))}}),l.Dataset=a,e.exports=l},1956:(e,t,n)=>{"use strict";var r=n(7396),i=n(4492);function o(e){e&&e.el||r.error("EventBus initialized without el"),this.$el=i.element(e.el)}r.mixin(o.prototype,{trigger:function(e,t,n,i){var o=r.Event("autocomplete:"+e);return this.$el.trigger(o,[t,n,i]),o}}),e.exports=o},5114:(e,t,n)=>{"use strict";var r=n(637),i=/\s+/;function o(e,t,n,r){var o;if(!n)return this;for(t=t.split(i),n=r?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(n,r):n,this._callbacks=this._callbacks||{};o=t.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][e].push(n);return this}function a(e,t,n){return function(){for(var r,i=0,o=e.length;!r&&i<o;i+=1)r=!1===e[i].apply(t,n);return!r}}e.exports={onSync:function(e,t,n){return o.call(this,"sync",e,t,n)},onAsync:function(e,t,n){return o.call(this,"async",e,t,n)},off:function(e){var t;if(!this._callbacks)return this;for(e=e.split(i);t=e.shift();)delete this._callbacks[t];return this},trigger:function(e){var t,n,o,s,l;if(!this._callbacks)return this;for(e=e.split(i),o=[].slice.call(arguments,1);(t=e.shift())&&(n=this._callbacks[t]);)s=a(n.sync,this,[t].concat(o)),l=a(n.async,this,[t].concat(o)),s()&&r(l);return this}}},4875:e=>{"use strict";e.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},6162:(e,t,n)=>{"use strict";var r;r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var i=n(7396),o=n(4492),a=n(5114);function s(e){var t,n,a,s,l,u=this;(e=e||{}).input||i.error("input is missing"),t=i.bind(this._onBlur,this),n=i.bind(this._onFocus,this),a=i.bind(this._onKeydown,this),s=i.bind(this._onInput,this),this.$hint=o.element(e.hint),this.$input=o.element(e.input).on("blur.aa",t).on("focus.aa",n).on("keydown.aa",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=i.noop),i.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(e){r[e.which||e.keyCode]||i.defer(i.bind(u._onInput,u,e))})):this.$input.on("input.aa",s),this.query=this.$input.val(),this.$overflowHelper=(l=this.$input,o.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:l.css("font-family"),fontSize:l.css("font-size"),fontStyle:l.css("font-style"),fontVariant:l.css("font-variant"),fontWeight:l.css("font-weight"),wordSpacing:l.css("word-spacing"),letterSpacing:l.css("letter-spacing"),textIndent:l.css("text-indent"),textRendering:l.css("text-rendering"),textTransform:l.css("text-transform")}).insertAfter(l))}function l(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}s.normalizeQuery=function(e){return(e||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},i.mixin(s.prototype,a,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(e){var t=r[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,r,i;switch(e){case"tab":r=this.getHint(),i=this.getInputValue(),n=r&&r!==i&&!l(t);break;case"up":case"down":n=!l(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){return"tab"!==e||!l(t)},_checkInputValue:function(){var e,t,n,r,i;r=e=this.getInputValue(),i=this.query,n=!(!(t=s.normalizeQuery(r)===s.normalizeQuery(i))||!this.query)&&this.query.length!==e.length,this.query=e,t?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){void 0===e&&(e=this.query),this.$input.val(e),t?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(e){this.$input.attr("aria-activedescendant",e)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n;n=(e=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(e),""!==e&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,n;return e=this.$input.val().length,t=this.$input[0].selectionStart,i.isNumber(t)?t===e:!document.selection||((n=document.selection.createRange()).moveStart("character",-e),e===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),e.exports=s},6005:(e,t,n)=>{"use strict";var r="aaAttrs",i=n(7396),o=n(4492),a=n(1956),s=n(6162),l=n(920),u=n(4875),c=n(8419);function f(e){var t,n;if((e=e||{}).input||i.error("missing input"),this.isActivated=!1,this.debug=!!e.debug,this.autoselect=!!e.autoselect,this.autoselectOnBlur=!!e.autoselectOnBlur,this.openOnFocus=!!e.openOnFocus,this.minLength=i.isNumber(e.minLength)?e.minLength:1,this.autoWidth=void 0===e.autoWidth||!!e.autoWidth,this.clearOnSelected=!!e.clearOnSelected,this.tabAutocomplete=void 0===e.tabAutocomplete||!!e.tabAutocomplete,e.hint=!!e.hint,e.hint&&e.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=e.css=i.mixin({},c,e.appendTo?c.appendTo:{}),this.cssClasses=e.cssClasses=i.mixin({},c.defaultClasses,e.cssClasses||{}),this.cssClasses.prefix=e.cssClasses.formattedPrefix=i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=e.listboxId=[this.cssClasses.root,"listbox",i.getUniqueId()].join("-");var s=function(e){var t,n,a,s;t=o.element(e.input),n=o.element(u.wrapper.replace("%ROOT%",e.cssClasses.root)).css(e.css.wrapper),e.appendTo||"block"!==t.css("display")||"table"!==t.parent().css("display")||n.css("display","table-cell");var l,c=u.dropdown.replace("%PREFIX%",e.cssClasses.prefix).replace("%DROPDOWN_MENU%",e.cssClasses.dropdownMenu);a=o.element(c).css(e.css.dropdown).attr({role:"listbox",id:e.listboxId}),e.templates&&e.templates.dropdownMenu&&a.html(i.templatify(e.templates.dropdownMenu)()),(s=t.clone().css(e.css.hint).css((l=t,{backgroundAttachment:l.css("background-attachment"),backgroundClip:l.css("background-clip"),backgroundColor:l.css("background-color"),backgroundImage:l.css("background-image"),backgroundOrigin:l.css("background-origin"),backgroundPosition:l.css("background-position"),backgroundRepeat:l.css("background-repeat"),backgroundSize:l.css("background-size")}))).val("").addClass(i.className(e.cssClasses.prefix,e.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),s.removeData&&s.removeData(),t.data(r,{"aria-autocomplete":t.attr("aria-autocomplete"),"aria-expanded":t.attr("aria-expanded"),"aria-owns":t.attr("aria-owns"),autocomplete:t.attr("autocomplete"),dir:t.attr("dir"),role:t.attr("role"),spellcheck:t.attr("spellcheck"),style:t.attr("style"),type:t.attr("type")}),t.addClass(i.className(e.cssClasses.prefix,e.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":e.datasets&&e.datasets[0]&&e.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":e.ariaLabel,"aria-owns":e.listboxId}).css(e.hint?e.css.input:e.css.inputWithNoHint);try{t.attr("dir")||t.attr("dir","auto")}catch(e){}return(n=e.appendTo?n.appendTo(o.element(e.appendTo).eq(0)).eq(0):t.wrap(n).parent()).prepend(e.hint?s:null).append(a),{wrapper:n,input:t,hint:s,menu:a}}(e);this.$node=s.wrapper;var l=this.$input=s.input;t=s.menu,n=s.hint,e.dropdownMenuContainer&&o.element(e.dropdownMenuContainer).css("position","relative").append(t.css("top","0")),l.on("blur.aa",(function(e){var n=document.activeElement;i.isMsie()&&(t[0]===n||t[0].contains(n))&&(e.preventDefault(),e.stopImmediatePropagation(),i.defer((function(){l.focus()})))})),t.on("mousedown.aa",(function(e){e.preventDefault()})),this.eventBus=e.eventBus||new a({el:l}),this.dropdown=new f.Dropdown({appendTo:e.appendTo,wrapper:this.$node,menu:t,datasets:e.datasets,templates:e.templates,cssClasses:e.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new f.Input({input:l,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(e),this._setLanguageDirection()}i.mixin(f.prototype,{_bindKeyboardShortcuts:function(e){if(e.keyboardShortcuts){var t=this.$input,n=[];i.each(e.keyboardShortcuts,(function(e){"string"==typeof e&&(e=e.toUpperCase().charCodeAt(0)),n.push(e)})),o.element(document).keydown((function(e){var r=e.target||e.srcElement,i=r.tagName;if(!r.isContentEditable&&"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i){var o=e.which||e.keyCode;-1!==n.indexOf(o)&&(t.focus(),e.stopPropagation(),e.preventDefault())}}))}},_onSuggestionClicked:function(e,t){var n;(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(e,t){var n=this.dropdown.getDatumForCursor(),r=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(r),n&&(t&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var e=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",e.width+"px");var t=this.$node[0].getBoundingClientRect(),n=e.bottom-t.top;this.$node.css("top",n+"px");var r=e.left-t.left;this.$node.css("left",r+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var e=this.input.getQuery();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var e,t;e=this.dropdown.getDatumForCursor(),t=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&e?this._select(e,n):this.autoselectOnBlur&&t?this._select(t,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(e,t){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion();var i={selectionMethod:"enterKey"};n?(this._select(n,i),t.preventDefault()):this.autoselect&&r&&(this._select(r,i),t.preventDefault())},_onTabKeyed:function(e,t){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),t.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e=this.input.getLanguageDirection();this.dir!==e&&(this.dir=e,this.$node.css("direction",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,n,r,o;(e=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),n=s.normalizeQuery(t),r=i.escapeRegExChars(n),(o=new RegExp("^(?:"+r+")(.+$)","i").exec(e.value))?this.input.setHint(t+o[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,r,i;t=this.input.getHint(),n=this.input.getQuery(),r=e||this.input.isCursorAtEnd(),t&&n!==t&&r&&((i=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(i.value),this.eventBus.trigger("autocompleted",i.raw,i.datasetName))},_select:function(e,t){void 0!==e.value&&this.input.setQuery(e.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(e.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",e.raw,e.datasetName,t).isDefaultPrevented()&&(this.dropdown.close(),i.defer(i.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var e=this.input.getInputValue();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=i.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var e,t,n;this.input.destroy(),this.dropdown.destroy(),e=this.$node,t=this.cssClasses,n=e.find(i.className(t.prefix,t.input)),i.each(n.data(r),(function(e,t){void 0===e?n.removeAttr(t):n.attr(t,e)})),n.detach().removeClass(i.className(t.prefix,t.input,!0)).insertAfter(e),n.removeData&&n.removeData(r),e.remove(),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),f.Dropdown=l,f.Input=s,f.sources=n(1051),e.exports=f},4492:e=>{"use strict";e.exports={element:null}},2821:e=>{"use strict";e.exports=function(e){var t=e.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(t)return[t[1],t[2],t[3]]}},7396:(e,t,n)=>{"use strict";var r,i=n(4492);function o(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(e){if(void 0===e&&(e=navigator.userAgent),/(msie|trident)/i.test(e)){var t=e.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(e){return"number"==typeof e},toStr:function(e){return null==e?"":e+""},cloneDeep:function(e){var t=this.mixin({},e),n=this;return this.each(t,(function(e,r){e&&(n.isArray(e)?t[r]=[].concat(e):n.isObject(e)&&(t[r]=n.cloneDeep(e)))})),t},error:function(e){throw new Error(e)},every:function(e,t){var n=!0;return e?(this.each(e,(function(r,i){n&&(n=t.call(null,r,i,e)&&n)})),!!n):n},any:function(e,t){var n=!1;return e?(this.each(e,(function(r,i){if(t.call(null,r,i,e))return n=!0,!1})),n):n},getUniqueId:(r=0,function(){return r++}),templatify:function(e){if(this.isFunction(e))return e;var t=i.element(e);return"SCRIPT"===t.prop("tagName")?function(){return t.text()}:function(){return String(e)}},defer:function(e){setTimeout(e,0)},noop:function(){},formatPrefix:function(e,t){return t?"":e+"-"},className:function(e,t,n){return(n?"":".")+e+t},escapeHighlightedString:function(e,t,n){t=t||"<em>";var r=document.createElement("div");r.appendChild(document.createTextNode(t)),n=n||"</em>";var i=document.createElement("div");i.appendChild(document.createTextNode(n));var a=document.createElement("div");return a.appendChild(document.createTextNode(e)),a.innerHTML.replace(RegExp(o(r.innerHTML),"g"),t).replace(RegExp(o(i.innerHTML),"g"),n)}}},1109:(e,t,n)=>{"use strict";var r=n(7396),i=n(9049),o=n(2821);e.exports=function(e,t){var n=o(e.as._ua);return n&&n[0]>=3&&n[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),function(n,i){e.search(n,t,(function(e,t){e?r.error(e.message):i(t.hits,t)}))}}},1051:(e,t,n)=>{"use strict";e.exports={hits:n(1109),popularIn:n(6695)}},6695:(e,t,n)=>{"use strict";var r=n(7396),i=n(9049),o=n(2821);e.exports=function(e,t,n,a){var s=o(e.as._ua);if(s&&s[0]>=3&&s[1]>20&&((t=t||{}).additionalUA="autocomplete.js "+i),!n.source)return r.error("Missing 'source' key");var l=r.isFunction(n.source)?n.source:function(e){return e[n.source]};if(!n.index)return r.error("Missing 'index' key");var u=n.index;return a=a||{},function(s,c){e.search(s,t,(function(e,s){if(e)r.error(e.message);else{if(s.hits.length>0){var f=s.hits[0],d=r.mixin({hitsPerPage:0},n);delete d.source,delete d.index;var h=o(u.as._ua);return h&&h[0]>=3&&h[1]>20&&(t.additionalUA="autocomplete.js "+i),void u.search(l(f),d,(function(e,t){if(e)r.error(e.message);else{var n=[];if(a.includeAll){var i=a.allTitle||"All departments";n.push(r.mixin({facet:{value:i,count:t.nbHits}},r.cloneDeep(f)))}r.each(t.facets,(function(e,t){r.each(e,(function(e,i){n.push(r.mixin({facet:{facet:t,value:i,count:e}},r.cloneDeep(f)))}))}));for(var o=1;o<s.hits.length;++o)n.push(s.hits[o]);c(n,s)}}))}c([])}}))}}},7444:(e,t,n)=>{"use strict";var r=n(6624);n(4492).element=r;var i=n(7396);i.isArray=r.isArray,i.isFunction=r.isFunction,i.isObject=r.isPlainObject,i.bind=r.proxy,i.each=function(e,t){r.each(e,(function(e,n){return t(n,e)}))},i.map=r.map,i.mixin=r.extend,i.Event=r.Event;var o="aaAutocomplete",a=n(6005),s=n(1956);function l(e,t,n,l){n=i.isArray(n)?n:[].slice.call(arguments,2);var u=r(e).each((function(e,i){var u=r(i),c=new s({el:u}),f=l||new a({input:u,eventBus:c,dropdownMenuContainer:t.dropdownMenuContainer,hint:void 0===t.hint||!!t.hint,minLength:t.minLength,autoselect:t.autoselect,autoselectOnBlur:t.autoselectOnBlur,tabAutocomplete:t.tabAutocomplete,openOnFocus:t.openOnFocus,templates:t.templates,debug:t.debug,clearOnSelected:t.clearOnSelected,cssClasses:t.cssClasses,datasets:n,keyboardShortcuts:t.keyboardShortcuts,appendTo:t.appendTo,autoWidth:t.autoWidth,ariaLabel:t.ariaLabel||i.getAttribute("aria-label")});u.data(o,f)}));return u.autocomplete={},i.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(e){u.autocomplete[e]=function(){var t,n=arguments;return u.each((function(i,a){var s=r(a).data(o);t=s[e].apply(s,n)})),t}})),u}l.sources=a.sources,l.escapeHighlightedString=i.escapeHighlightedString;var u="autocomplete"in window,c=window.autocomplete;l.noConflict=function(){return u?window.autocomplete=c:delete window.autocomplete,l},e.exports=l},9049:e=>{e.exports="0.36.0"},6624:e=>{var t;t=window,e.exports=function(e){var t,n,r=function(){var t,n,r,i,o,a,s=[],l=s.concat,u=s.filter,c=s.slice,f=e.document,d={},h={},p={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,b=/([A-Z])/g,E=["val","css","html","text","data","width","height","offset"],w=f.createElement("table"),S=f.createElement("tr"),x={tr:f.createElement("tbody"),tbody:w,thead:w,tfoot:w,td:S,th:S,"*":f.createElement("div")},_=/complete|loaded|interactive/,T=/^[\w-]*$/,C={},O=C.toString,I={},A=f.createElement("div"),R={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},N=Array.isArray||function(e){return e instanceof Array};function k(e){return null==e?String(e):C[O.call(e)]||"object"}function L(e){return"function"==k(e)}function M(e){return null!=e&&e==e.window}function D(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function P(e){return"object"==k(e)}function U(e){return P(e)&&!M(e)&&Object.getPrototypeOf(e)==Object.prototype}function j(e){var t=!!e&&"length"in e&&e.length,n=r.type(e);return"function"!=n&&!M(e)&&("array"==n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function B(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function F(e){return e in h?h[e]:h[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function H(e,t){return"number"!=typeof t||p[B(e)]?t:t+"px"}function z(e){return"children"in e?c.call(e.children):r.map(e.childNodes,(function(e){if(1==e.nodeType)return e}))}function V(e,t){var n,r=e?e.length:0;for(n=0;n<r;n++)this[n]=e[n];this.length=r,this.selector=t||""}function G(e,r,i){for(n in r)i&&(U(r[n])||N(r[n]))?(U(r[n])&&!U(e[n])&&(e[n]={}),N(r[n])&&!N(e[n])&&(e[n]=[]),G(e[n],r[n],i)):r[n]!==t&&(e[n]=r[n])}function W(e,t){return null==t?r(e):r(e).filter(t)}function q(e,t,n,r){return L(t)?t.call(e,n,r):t}function Y(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function X(e,n){var r=e.className||"",i=r&&r.baseVal!==t;if(n===t)return i?r.baseVal:r;i?r.baseVal=n:e.className=n}function $(e){try{return e?"true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?r.parseJSON(e):e):e}catch(t){return e}}function K(e,t){t(e);for(var n=0,r=e.childNodes.length;n<r;n++)K(e.childNodes[n],t)}return I.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(n)return n.call(e,t);var r,i=e.parentNode,o=!i;return o&&(i=A).appendChild(e),r=~I.qsa(i,t).indexOf(e),o&&A.removeChild(e),r},o=function(e){return e.replace(/-+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},a=function(e){return u.call(e,(function(t,n){return e.indexOf(t)==n}))},I.fragment=function(e,n,i){var o,a,s;return m.test(e)&&(o=r(f.createElement(RegExp.$1))),o||(e.replace&&(e=e.replace(v,"<$1></$2>")),n===t&&(n=g.test(e)&&RegExp.$1),n in x||(n="*"),(s=x[n]).innerHTML=""+e,o=r.each(c.call(s.childNodes),(function(){s.removeChild(this)}))),U(i)&&(a=r(o),r.each(i,(function(e,t){E.indexOf(e)>-1?a[e](t):a.attr(e,t)}))),o},I.Z=function(e,t){return new V(e,t)},I.isZ=function(e){return e instanceof I.Z},I.init=function(e,n){var i,o;if(!e)return I.Z();if("string"==typeof e)if("<"==(e=e.trim())[0]&&g.test(e))i=I.fragment(e,RegExp.$1,n),e=null;else{if(n!==t)return r(n).find(e);i=I.qsa(f,e)}else{if(L(e))return r(f).ready(e);if(I.isZ(e))return e;if(N(e))o=e,i=u.call(o,(function(e){return null!=e}));else if(P(e))i=[e],e=null;else if(g.test(e))i=I.fragment(e.trim(),RegExp.$1,n),e=null;else{if(n!==t)return r(n).find(e);i=I.qsa(f,e)}}return I.Z(i,e)},(r=function(e,t){return I.init(e,t)}).extend=function(e){var t,n=c.call(arguments,1);return"boolean"==typeof e&&(t=e,e=n.shift()),n.forEach((function(n){G(e,n,t)})),e},I.qsa=function(e,t){var n,r="#"==t[0],i=!r&&"."==t[0],o=r||i?t.slice(1):t,a=T.test(o);return e.getElementById&&a&&r?(n=e.getElementById(o))?[n]:[]:1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType?[]:c.call(a&&!r&&e.getElementsByClassName?i?e.getElementsByClassName(o):e.getElementsByTagName(t):e.querySelectorAll(t))},r.contains=f.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},r.type=k,r.isFunction=L,r.isWindow=M,r.isArray=N,r.isPlainObject=U,r.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},r.isNumeric=function(e){var t=Number(e),n=typeof e;return null!=e&&"boolean"!=n&&("string"!=n||e.length)&&!isNaN(t)&&isFinite(t)||!1},r.inArray=function(e,t,n){return s.indexOf.call(t,e,n)},r.camelCase=o,r.trim=function(e){return null==e?"":String.prototype.trim.call(e)},r.uuid=0,r.support={},r.expr={},r.noop=function(){},r.map=function(e,t){var n,i,o,a,s=[];if(j(e))for(i=0;i<e.length;i++)null!=(n=t(e[i],i))&&s.push(n);else for(o in e)null!=(n=t(e[o],o))&&s.push(n);return(a=s).length>0?r.fn.concat.apply([],a):a},r.each=function(e,t){var n,r;if(j(e)){for(n=0;n<e.length;n++)if(!1===t.call(e[n],n,e[n]))return e}else for(r in e)if(!1===t.call(e[r],r,e[r]))return e;return e},r.grep=function(e,t){return u.call(e,t)},e.JSON&&(r.parseJSON=JSON.parse),r.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){C["[object "+t+"]"]=t.toLowerCase()})),r.fn={constructor:I.Z,length:0,forEach:s.forEach,reduce:s.reduce,push:s.push,sort:s.sort,splice:s.splice,indexOf:s.indexOf,concat:function(){var e,t,n=[];for(e=0;e<arguments.length;e++)t=arguments[e],n[e]=I.isZ(t)?t.toArray():t;return l.apply(I.isZ(this)?this.toArray():this,n)},map:function(e){return r(r.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return r(c.apply(this,arguments))},ready:function(e){return _.test(f.readyState)&&f.body?e(r):f.addEventListener("DOMContentLoaded",(function(){e(r)}),!1),this},get:function(e){return e===t?c.call(this):this[e>=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(e){return s.every.call(this,(function(t,n){return!1!==e.call(t,n,t)})),this},filter:function(e){return L(e)?this.not(this.not(e)):r(u.call(this,(function(t){return I.matches(t,e)})))},add:function(e,t){return r(a(this.concat(r(e,t))))},is:function(e){return this.length>0&&I.matches(this[0],e)},not:function(e){var n=[];if(L(e)&&e.call!==t)this.each((function(t){e.call(this,t)||n.push(this)}));else{var i="string"==typeof e?this.filter(e):j(e)&&L(e.item)?c.call(e):r(e);this.forEach((function(e){i.indexOf(e)<0&&n.push(e)}))}return r(n)},has:function(e){return this.filter((function(){return P(e)?r.contains(this,e):r(this).find(e).size()}))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!P(e)?e:r(e)},last:function(){var e=this[this.length-1];return e&&!P(e)?e:r(e)},find:function(e){var t=this;return e?"object"==typeof e?r(e).filter((function(){var e=this;return s.some.call(t,(function(t){return r.contains(t,e)}))})):1==this.length?r(I.qsa(this[0],e)):this.map((function(){return I.qsa(this,e)})):r()},closest:function(e,t){var n=[],i="object"==typeof e&&r(e);return this.each((function(r,o){for(;o&&!(i?i.indexOf(o)>=0:I.matches(o,e));)o=o!==t&&!D(o)&&o.parentNode;o&&n.indexOf(o)<0&&n.push(o)})),r(n)},parents:function(e){for(var t=[],n=this;n.length>0;)n=r.map(n,(function(e){if((e=e.parentNode)&&!D(e)&&t.indexOf(e)<0)return t.push(e),e}));return W(t,e)},parent:function(e){return W(a(this.pluck("parentNode")),e)},children:function(e){return W(this.map((function(){return z(this)})),e)},contents:function(){return this.map((function(){return this.contentDocument||c.call(this.childNodes)}))},siblings:function(e){return W(this.map((function(e,t){return u.call(z(t.parentNode),(function(e){return e!==t}))})),e)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(e){return r.map(this,(function(t){return t[e]}))},show:function(){return this.each((function(){var e,t,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(e=this.nodeName,d[e]||(t=f.createElement(e),f.body.appendChild(t),n=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==n&&(n="block"),d[e]=n),d[e]))}))},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var t=L(e);if(this[0]&&!t)var n=r(e).get(0),i=n.parentNode||this.length>1;return this.each((function(o){r(this).wrapAll(t?e.call(this,o):i?n.cloneNode(!0):n)}))},wrapAll:function(e){if(this[0]){var t;for(r(this[0]).before(e=r(e));(t=e.children()).length;)e=t.first();r(e).append(this)}return this},wrapInner:function(e){var t=L(e);return this.each((function(n){var i=r(this),o=i.contents(),a=t?e.call(this,n):e;o.length?o.wrapAll(a):i.append(a)}))},unwrap:function(){return this.parent().each((function(){r(this).replaceWith(r(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(e){return this.each((function(){var n=r(this);(e===t?"none"==n.css("display"):e)?n.show():n.hide()}))},prev:function(e){return r(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return r(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each((function(t){var n=this.innerHTML;r(this).empty().append(q(this,e,t,n))})):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each((function(t){var n=q(this,e,t,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(e,r){var i;return"string"!=typeof e||1 in arguments?this.each((function(t){if(1===this.nodeType)if(P(e))for(n in e)Y(this,n,e[n]);else Y(this,e,q(this,r,t,this.getAttribute(e)))})):0 in this&&1==this[0].nodeType&&null!=(i=this[0].getAttribute(e))?i:t},removeAttr:function(e){return this.each((function(){1===this.nodeType&&e.split(" ").forEach((function(e){Y(this,e)}),this)}))},prop:function(e,t){return e=R[e]||e,1 in arguments?this.each((function(n){this[e]=q(this,t,n,this[e])})):this[0]&&this[0][e]},removeProp:function(e){return e=R[e]||e,this.each((function(){delete this[e]}))},data:function(e,n){var r="data-"+e.replace(b,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,n):this.attr(r);return null!==i?$(i):t},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each((function(t){this.value=q(this,e,t,this.value)}))):this[0]&&(this[0].multiple?r(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each((function(e){var n=r(this),i=q(this,t,e,n.offset()),o=n.offsetParent().offset(),a={top:i.top-o.top,left:i.left-o.left};"static"==n.css("position")&&(a.position="relative"),n.css(a)}));if(!this.length)return null;if(f.documentElement!==this[0]&&!r.contains(f.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+e.pageXOffset,top:n.top+e.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(e,t){if(arguments.length<2){var i=this[0];if("string"==typeof e){if(!i)return;return i.style[o(e)]||getComputedStyle(i,"").getPropertyValue(e)}if(N(e)){if(!i)return;var a={},s=getComputedStyle(i,"");return r.each(e,(function(e,t){a[t]=i.style[o(t)]||s.getPropertyValue(t)})),a}}var l="";if("string"==k(e))t||0===t?l=B(e)+":"+H(e,t):this.each((function(){this.style.removeProperty(B(e))}));else for(n in e)e[n]||0===e[n]?l+=B(n)+":"+H(n,e[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+l}))},index:function(e){return e?this.indexOf(r(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return!!e&&s.some.call(this,(function(e){return this.test(X(e))}),F(e))},addClass:function(e){return e?this.each((function(t){if("className"in this){i=[];var n=X(this);q(this,e,t,n).split(/\s+/g).forEach((function(e){r(this).hasClass(e)||i.push(e)}),this),i.length&&X(this,n+(n?" ":"")+i.join(" "))}})):this},removeClass:function(e){return this.each((function(n){if("className"in this){if(e===t)return X(this,"");i=X(this),q(this,e,n,i).split(/\s+/g).forEach((function(e){i=i.replace(F(e)," ")})),X(this,i.trim())}}))},toggleClass:function(e,n){return e?this.each((function(i){var o=r(this);q(this,e,i,X(this)).split(/\s+/g).forEach((function(e){(n===t?!o.hasClass(e):n)?o.addClass(e):o.removeClass(e)}))})):this},scrollTop:function(e){if(this.length){var n="scrollTop"in this[0];return e===t?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var n="scrollLeft"in this[0];return e===t?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),n=this.offset(),i=y.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(r(e).css("margin-top"))||0,n.left-=parseFloat(r(e).css("margin-left"))||0,i.top+=parseFloat(r(t[0]).css("border-top-width"))||0,i.left+=parseFloat(r(t[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||f.body;e&&!y.test(e.nodeName)&&"static"==r(e).css("position");)e=e.offsetParent;return e}))}},r.fn.detach=r.fn.remove,["width","height"].forEach((function(e){var n=e.replace(/./,(function(e){return e[0].toUpperCase()}));r.fn[e]=function(i){var o,a=this[0];return i===t?M(a)?a["inner"+n]:D(a)?a.documentElement["scroll"+n]:(o=this.offset())&&o[e]:this.each((function(t){(a=r(this)).css(e,q(this,i,t,a[e]()))}))}})),["after","prepend","before","append"].forEach((function(n,i){var o=i%2;r.fn[n]=function(){var n,a,s=r.map(arguments,(function(e){var i=[];return"array"==(n=k(e))?(e.forEach((function(e){return e.nodeType!==t?i.push(e):r.zepto.isZ(e)?i=i.concat(e.get()):void(i=i.concat(I.fragment(e)))})),i):"object"==n||null==e?e:I.fragment(e)})),l=this.length>1;return s.length<1?this:this.each((function(t,n){a=o?n:n.parentNode,n=0==i?n.nextSibling:1==i?n.firstChild:2==i?n:null;var u=r.contains(f.documentElement,a);s.forEach((function(t){if(l)t=t.cloneNode(!0);else if(!a)return r(t).remove();a.insertBefore(t,n),u&&K(t,(function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var n=t.ownerDocument?t.ownerDocument.defaultView:e;n.eval.call(n,t.innerHTML)}}))}))}))},r.fn[o?n+"To":"insert"+(i?"Before":"After")]=function(e){return r(e)[n](this),this}})),I.Z.prototype=V.prototype=r.fn,I.uniq=a,I.deserializeValue=$,r.zepto=I,r}();return function(t){var n,r=1,i=Array.prototype.slice,o=t.isFunction,a=function(e){return"string"==typeof e},s={},l={},u="onfocusin"in e,c={focus:"focusin",blur:"focusout"},f={mouseenter:"mouseover",mouseleave:"mouseout"};function d(e){return e._zid||(e._zid=r++)}function h(e,t,n,r){if((t=p(t)).ns)var i=(o=t.ns,new RegExp("(?:^| )"+o.replace(" "," .* ?")+"(?: |$)"));var o;return(s[d(e)]||[]).filter((function(e){return e&&(!t.e||e.e==t.e)&&(!t.ns||i.test(e.ns))&&(!n||d(e.fn)===d(n))&&(!r||e.sel==r)}))}function p(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function g(e,t){return e.del&&!u&&e.e in c||!!t}function m(e){return f[e]||u&&c[e]||e}function v(e,r,i,o,a,l,u){var c=d(e),h=s[c]||(s[c]=[]);r.split(/\s/).forEach((function(r){if("ready"==r)return t(document).ready(i);var s=p(r);s.fn=i,s.sel=a,s.e in f&&(i=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return s.fn.apply(this,arguments)}),s.del=l;var c=l||i;s.proxy=function(t){if(!(t=x(t)).isImmediatePropagationStopped()){try{var r=Object.getOwnPropertyDescriptor(t,"data");r&&!r.writable||(t.data=o)}catch(t){}var i=c.apply(e,t._args==n?[t]:[t].concat(t._args));return!1===i&&(t.preventDefault(),t.stopPropagation()),i}},s.i=h.length,h.push(s),"addEventListener"in e&&e.addEventListener(m(s.e),s.proxy,g(s,u))}))}function y(e,t,n,r,i){var o=d(e);(t||"").split(/\s/).forEach((function(t){h(e,t,n,r).forEach((function(t){delete s[o][t.i],"removeEventListener"in e&&e.removeEventListener(m(t.e),t.proxy,g(t,i))}))}))}l.click=l.mousedown=l.mouseup=l.mousemove="MouseEvents",t.event={add:v,remove:y},t.proxy=function(e,n){var r=2 in arguments&&i.call(arguments,2);if(o(e)){var s=function(){return e.apply(n,r?r.concat(i.call(arguments)):arguments)};return s._zid=d(e),s}if(a(n))return r?(r.unshift(e[n],e),t.proxy.apply(null,r)):t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(e,t,n){return this.on(e,t,n)},t.fn.unbind=function(e,t){return this.off(e,t)},t.fn.one=function(e,t,n,r){return this.on(e,t,n,r,1)};var b=function(){return!0},E=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,S={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function x(e,r){return!r&&e.isDefaultPrevented||(r||(r=e),t.each(S,(function(t,n){var i=r[t];e[t]=function(){return this[n]=b,i&&i.apply(r,arguments)},e[n]=E})),e.timeStamp||(e.timeStamp=Date.now()),(r.defaultPrevented!==n?r.defaultPrevented:"returnValue"in r?!1===r.returnValue:r.getPreventDefault&&r.getPreventDefault())&&(e.isDefaultPrevented=b)),e}function _(e){var t,r={originalEvent:e};for(t in e)w.test(t)||e[t]===n||(r[t]=e[t]);return x(r,e)}t.fn.delegate=function(e,t,n){return this.on(t,e,n)},t.fn.undelegate=function(e,t,n){return this.off(t,e,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,r,s,l,u){var c,f,d=this;return e&&!a(e)?(t.each(e,(function(e,t){d.on(e,r,s,t,u)})),d):(a(r)||o(l)||!1===l||(l=s,s=r,r=n),l!==n&&!1!==s||(l=s,s=n),!1===l&&(l=E),d.each((function(n,o){u&&(c=function(e){return y(o,e.type,l),l.apply(this,arguments)}),r&&(f=function(e){var n,a=t(e.target).closest(r,o).get(0);if(a&&a!==o)return n=t.extend(_(e),{currentTarget:a,liveFired:o}),(c||l).apply(a,[n].concat(i.call(arguments,1)))}),v(o,e,l,s,r,f||c)})))},t.fn.off=function(e,r,i){var s=this;return e&&!a(e)?(t.each(e,(function(e,t){s.off(e,r,t)})),s):(a(r)||o(i)||!1===i||(i=r,r=n),!1===i&&(i=E),s.each((function(){y(this,e,i,r)})))},t.fn.trigger=function(e,n){return(e=a(e)||t.isPlainObject(e)?t.Event(e):x(e))._args=n,this.each((function(){e.type in c&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)}))},t.fn.triggerHandler=function(e,n){var r,i;return this.each((function(o,s){(r=_(a(e)?t.Event(e):e))._args=n,r.target=s,t.each(h(s,e.type||e),(function(e,t){if(i=t.proxy(r),r.isImmediatePropagationStopped())return!1}))})),i},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}})),t.Event=function(e,t){a(e)||(e=(t=e).type);var n=document.createEvent(l[e]||"Events"),r=!0;if(t)for(var i in t)"bubbles"==i?r=!!t[i]:n[i]=t[i];return n.initEvent(e,r,!0),x(n)}}(r),n=[],r.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",t&&clearTimeout(t),t=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(e){var t={},n=e.fn.data,r=e.camelCase,i=e.expando="Zepto"+ +new Date,o=[];function a(n,a,s){var l=n[i]||(n[i]=++e.uuid),u=t[l]||(t[l]=function(t){var n={};return e.each(t.attributes||o,(function(t,i){0==i.name.indexOf("data-")&&(n[r(i.name.replace("data-",""))]=e.zepto.deserializeValue(i.value))})),n}(n));return void 0!==a&&(u[r(a)]=s),u}e.fn.data=function(o,s){return void 0===s?e.isPlainObject(o)?this.each((function(t,n){e.each(o,(function(e,t){a(n,e,t)}))})):0 in this?function(o,s){var l=o[i],u=l&&t[l];if(void 0===s)return u||a(o);if(u){if(s in u)return u[s];var c=r(s);if(c in u)return u[c]}return n.call(e(o),s)}(this[0],o):void 0:this.each((function(){a(this,o,s)}))},e.data=function(t,n,r){return e(t).data(n,r)},e.hasData=function(n){var r=n[i],o=r&&t[r];return!!o&&!e.isEmptyObject(o)},e.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var o=this[i],a=o&&t[o];a&&e.each(n||a,(function(e){delete a[n?r(this):e]}))}))},["remove","empty"].forEach((function(t){var n=e.fn[t];e.fn[t]=function(){var e=this.find("*");return"remove"===t&&(e=e.add(this)),e.removeData(),n.call(this)}}))}(r),r}(t)},7085:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},88:(e,t,n)=>{"use strict";var r,i=(r=n(6270))&&r.__esModule?r:{default:r};e.exports=i.default},1364:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});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},i=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}}(),o=d(n(703)),a=d(n(9056)),s=d(n(1123)),l=d(n(8528)),u=d(n(6389)),c=d(n(6451)),f=d(n(6232));function d(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(t){var n=t.apiKey,i=t.indexName,o=t.inputSelector,u=t.appId,d=void 0===u?"BH4D9OD16A":u,h=t.debug,p=void 0!==h&&h,g=t.algoliaOptions,m=void 0===g?{}:g,v=t.queryDataCallback,y=void 0===v?null:v,b=t.autocompleteOptions,E=void 0===b?{debug:!1,hint:!1,autoselect:!0}:b,w=t.transformData,S=void 0!==w&&w,x=t.queryHook,_=void 0!==x&&x,T=t.handleSelected,C=void 0!==T&&T,O=t.enhancedSearchInput,I=void 0!==O&&O,A=t.layout,R=void 0===A?"collumns":A;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e.checkArguments({apiKey:n,indexName:i,inputSelector:o,debug:p,algoliaOptions:m,queryDataCallback:y,autocompleteOptions:E,transformData:S,queryHook:_,handleSelected:C,enhancedSearchInput:I,layout:R}),this.apiKey=n,this.appId=d,this.indexName=i,this.input=e.getInputFromSelector(o),this.algoliaOptions=r({hitsPerPage:5},m),this.queryDataCallback=y||null;var N=!(!E||!E.debug)&&E.debug;E.debug=p||N,this.autocompleteOptions=E,this.autocompleteOptions.cssClasses=this.autocompleteOptions.cssClasses||{},this.autocompleteOptions.cssClasses.prefix=this.autocompleteOptions.cssClasses.prefix||"ds";var k=this.input&&"function"==typeof this.input.attr&&this.input.attr("aria-label");this.autocompleteOptions.ariaLabel=this.autocompleteOptions.ariaLabel||k||"search input",this.isSimpleLayout="simple"===R,this.client=(0,a.default)(this.appId,this.apiKey),this.client.addAlgoliaAgent("docsearch.js "+c.default),I&&(this.input=e.injectSearchBox(this.input)),this.autocomplete=(0,s.default)(this.input,E,[{source:this.getAutocompleteSource(S,_),templates:{suggestion:e.getSuggestionTemplate(this.isSimpleLayout),footer:l.default.footer,empty:e.getEmptyTemplate()}}]);var L=C;this.handleSelected=L||this.handleSelected,L&&(0,f.default)(".algolia-autocomplete").on("click",".ds-suggestions a",(function(e){e.preventDefault()})),this.autocomplete.on("autocomplete:selected",this.handleSelected.bind(null,this.autocomplete.autocomplete)),this.autocomplete.on("autocomplete:shown",this.handleShown.bind(null,this.input)),I&&e.bindSearchBoxEvent()}return i(e,[{key:"getAutocompleteSource",value:function(t,n){var r=this;return function(i,o){n&&(i=n(i)||i),r.client.search([{indexName:r.indexName,query:i,params:r.algoliaOptions}]).then((function(n){r.queryDataCallback&&"function"==typeof r.queryDataCallback&&r.queryDataCallback(n);var i=n.results[0].hits;t&&(i=t(i)||i),o(e.formatHits(i))}))}}},{key:"handleSelected",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};"click"!==i.selectionMethod&&(e.setVal(""),window.location.assign(n.url))}},{key:"handleShown",value:function(e){var t=e.offset().left+e.width()/2,n=(0,f.default)(document).width()/2;isNaN(n)&&(n=900);var r=t-n>=0?"algolia-autocomplete-right":"algolia-autocomplete-left",i=t-n<0?"algolia-autocomplete-right":"algolia-autocomplete-left",o=(0,f.default)(".algolia-autocomplete");o.hasClass(r)||o.addClass(r),o.hasClass(i)&&o.removeClass(i)}}],[{key:"checkArguments",value:function(t){if(!t.apiKey||!t.indexName)throw new Error("Usage:\n documentationSearch({\n apiKey,\n indexName,\n inputSelector,\n [ appId ],\n [ algoliaOptions.{hitsPerPage} ]\n [ autocompleteOptions.{hint,debug} ]\n})");if("string"!=typeof t.inputSelector)throw new Error("Error: inputSelector:"+t.inputSelector+" must be a string. Each selector must match only one element and separated by ','");if(!e.getInputFromSelector(t.inputSelector))throw new Error("Error: No input element in the page matches "+t.inputSelector)}},{key:"injectSearchBox",value:function(e){e.before(l.default.searchBox);var t=e.prev().prev().find("input");return e.remove(),t}},{key:"bindSearchBoxEvent",value:function(){(0,f.default)('.searchbox [type="reset"]').on("click",(function(){(0,f.default)("input#docsearch").focus(),(0,f.default)(this).addClass("hide"),s.default.autocomplete.setVal("")})),(0,f.default)("input#docsearch").on("keyup",(function(){var e=document.querySelector("input#docsearch"),t=document.querySelector('.searchbox [type="reset"]');t.className="searchbox__reset",0===e.value.length&&(t.className+=" hide")}))}},{key:"getInputFromSelector",value:function(e){var t=(0,f.default)(e).filter("input");return t.length?(0,f.default)(t[0]):null}},{key:"formatHits",value:function(t){var n=u.default.deepClone(t).map((function(e){return e._highlightResult&&(e._highlightResult=u.default.mergeKeyWithParent(e._highlightResult,"hierarchy")),u.default.mergeKeyWithParent(e,"hierarchy")})),r=u.default.groupBy(n,"lvl0");return f.default.each(r,(function(e,t){var n=u.default.groupBy(t,"lvl1"),i=u.default.flattenAndFlagFirst(n,"isSubCategoryHeader");r[e]=i})),(r=u.default.flattenAndFlagFirst(r,"isCategoryHeader")).map((function(t){var n=e.formatURL(t),r=u.default.getHighlightedValue(t,"lvl0"),i=u.default.getHighlightedValue(t,"lvl1")||r,o=u.default.compact([u.default.getHighlightedValue(t,"lvl2")||i,u.default.getHighlightedValue(t,"lvl3"),u.default.getHighlightedValue(t,"lvl4"),u.default.getHighlightedValue(t,"lvl5"),u.default.getHighlightedValue(t,"lvl6")]).join('<span class="aa-suggestion-title-separator" aria-hidden="true"> › </span>'),a=u.default.getSnippetedValue(t,"content"),s=i&&""!==i||o&&""!==o,l=o&&""!==o&&o!==i,c=!l&&i&&""!==i&&i!==r;return{isLvl0:!c&&!l,isLvl1:c,isLvl2:l,isLvl1EmptyOrDuplicate:!i||""===i||i===r,isCategoryHeader:t.isCategoryHeader,isSubCategoryHeader:t.isSubCategoryHeader,isTextOrSubcategoryNonEmpty:s,category:r,subcategory:i,title:o,text:a,url:n}}))}},{key:"formatURL",value:function(e){var t=e.url,n=e.anchor;return t?-1!==t.indexOf("#")?t:n?e.url+"#"+e.anchor:t:n?"#"+e.anchor:(console.warn("no anchor nor url for : ",JSON.stringify(e)),null)}},{key:"getEmptyTemplate",value:function(){return function(e){return o.default.compile(l.default.empty).render(e)}}},{key:"getSuggestionTemplate",value:function(e){var t=e?l.default.suggestionSimple:l.default.suggestion,n=o.default.compile(t);return function(e){return n.render(e)}}}]),e}();t.default=h},6270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(594)),i=a(n(1364)),o=a(n(6451));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,r.default)(i.default);s.version=o.default,t.default=s},8528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="algolia-docsearch",r=n+"-suggestion",i=n+"-footer",o={suggestion:'\n <a class="'+r+"\n {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n "\n aria-label="Link to the result"\n href="{{{url}}}"\n >\n <div class="'+r+'--category-header">\n <span class="'+r+'--category-header-lvl0">{{{category}}}</span>\n </div>\n <div class="'+r+'--wrapper">\n <div class="'+r+'--subcategory-column">\n <span class="'+r+'--subcategory-column-text">{{{subcategory}}}</span>\n </div>\n {{#isTextOrSubcategoryNonEmpty}}\n <div class="'+r+'--content">\n <div class="'+r+'--subcategory-inline">{{{subcategory}}}</div>\n <div class="'+r+'--title">{{{title}}}</div>\n {{#text}}<div class="'+r+'--text">{{{text}}}</div>{{/text}}\n </div>\n {{/isTextOrSubcategoryNonEmpty}}\n </div>\n </a>\n ',suggestionSimple:'\n <div class="'+r+"\n {{#isCategoryHeader}}"+r+"__main{{/isCategoryHeader}}\n {{#isSubCategoryHeader}}"+r+'__secondary{{/isSubCategoryHeader}}\n suggestion-layout-simple\n ">\n <div class="'+r+'--category-header">\n {{^isLvl0}}\n <span class="'+r+"--category-header-lvl0 "+r+'--category-header-item">{{{category}}}</span>\n {{^isLvl1}}\n {{^isLvl1EmptyOrDuplicate}}\n <span class="'+r+"--category-header-lvl1 "+r+'--category-header-item">\n {{{subcategory}}}\n </span>\n {{/isLvl1EmptyOrDuplicate}}\n {{/isLvl1}}\n {{/isLvl0}}\n <div class="'+r+"--title "+r+'--category-header-item">\n {{#isLvl2}}\n {{{title}}}\n {{/isLvl2}}\n {{#isLvl1}}\n {{{subcategory}}}\n {{/isLvl1}}\n {{#isLvl0}}\n {{{category}}}\n {{/isLvl0}}\n </div>\n </div>\n <div class="'+r+'--wrapper">\n {{#text}}\n <div class="'+r+'--content">\n <div class="'+r+'--text">{{{text}}}</div>\n </div>\n {{/text}}\n </div>\n </div>\n ',footer:'\n <div class="'+i+'">\n Search by <a class="'+i+'--logo" href="https://www.algolia.com/docsearch">Algolia</a>\n </div>\n ',empty:'\n <div class="'+r+'">\n <div class="'+r+'--wrapper">\n <div class="'+r+"--content "+r+'--no-results">\n <div class="'+r+'--title">\n <div class="'+r+'--text">\n No results found for query <b>"{{query}}"</b>\n </div>\n </div>\n </div>\n </div>\n </div>\n ',searchBox:'\n <form novalidate="novalidate" onsubmit="return false;" class="searchbox">\n <div role="search" class="searchbox__wrapper">\n <input id="docsearch" type="search" name="search" placeholder="Search the docs" autocomplete="off" required="required" class="searchbox__input"/>\n <button type="submit" title="Submit your search query." class="searchbox__submit" >\n <svg width=12 height=12 role="img" aria-label="Search">\n <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-search-13"></use>\n </svg>\n </button>\n <button type="reset" title="Clear the search query." class="searchbox__reset hide">\n <svg width=12 height=12 role="img" aria-label="Reset">\n <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#sbx-icon-clear-3"></use>\n </svg>\n </button>\n </div>\n</form>\n\n<div class="svg-icons" style="height: 0; width: 0; position: absolute; visibility: hidden">\n <svg xmlns="http://www.w3.org/2000/svg">\n <symbol id="sbx-icon-clear-3" viewBox="0 0 40 40"><path d="M16.228 20L1.886 5.657 0 3.772 3.772 0l1.885 1.886L20 16.228 34.343 1.886 36.228 0 40 3.772l-1.886 1.885L23.772 20l14.342 14.343L40 36.228 36.228 40l-1.885-1.886L20 23.772 5.657 38.114 3.772 40 0 36.228l1.886-1.885L16.228 20z" fill-rule="evenodd"></symbol>\n <symbol id="sbx-icon-search-13" viewBox="0 0 40 40"><path d="M26.806 29.012a16.312 16.312 0 0 1-10.427 3.746C7.332 32.758 0 25.425 0 16.378 0 7.334 7.333 0 16.38 0c9.045 0 16.378 7.333 16.378 16.38 0 3.96-1.406 7.593-3.746 10.426L39.547 37.34c.607.608.61 1.59-.004 2.203a1.56 1.56 0 0 1-2.202.004L26.807 29.012zm-10.427.627c7.322 0 13.26-5.938 13.26-13.26 0-7.324-5.938-13.26-13.26-13.26-7.324 0-13.26 5.936-13.26 13.26 0 7.322 5.936 13.26 13.26 13.26z" fill-rule="evenodd"></symbol>\n </svg>\n</div>\n '};t.default=o},6389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,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},o=(r=n(6232))&&r.__esModule?r:{default:r},a={mergeKeyWithParent:function(e,t){if(void 0===e[t])return e;if("object"!==i(e[t]))return e;var n=o.default.extend({},e,e[t]);return delete n[t],n},groupBy:function(e,t){var n={};return o.default.each(e,(function(e,r){if(void 0===r[t])throw new Error("[groupBy]: Object has no key "+t);var i=r[t];"string"==typeof i&&(i=i.toLowerCase()),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[]),n[i].push(r)})),n},values:function(e){return Object.keys(e).map((function(t){return e[t]}))},flatten:function(e){var t=[];return e.forEach((function(e){Array.isArray(e)?e.forEach((function(e){t.push(e)})):t.push(e)})),t},flattenAndFlagFirst:function(e,t){var n=this.values(e).map((function(e){return e.map((function(e,n){return e[t]=0===n,e}))}));return this.flatten(n)},compact:function(e){var t=[];return e.forEach((function(e){e&&t.push(e)})),t},getHighlightedValue:function(e,t){return e._highlightResult&&e._highlightResult.hierarchy_camel&&e._highlightResult.hierarchy_camel[t]&&e._highlightResult.hierarchy_camel[t].matchLevel&&"none"!==e._highlightResult.hierarchy_camel[t].matchLevel&&e._highlightResult.hierarchy_camel[t].value?e._highlightResult.hierarchy_camel[t].value:e._highlightResult&&e._highlightResult&&e._highlightResult[t]&&e._highlightResult[t].value?e._highlightResult[t].value:e[t]},getSnippetedValue:function(e,t){if(!e._snippetResult||!e._snippetResult[t]||!e._snippetResult[t].value)return e[t];var n=e._snippetResult[t].value;return n[0]!==n[0].toUpperCase()&&(n="…"+n),-1===[".","!","?"].indexOf(n[n.length-1])&&(n+="…"),n},deepClone:function(e){return JSON.parse(JSON.stringify(e))}};t.default=a},6451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="2.6.3"},6232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(6624))&&r.__esModule?r:{default:r};t.default=i.default},6197:function(e,t,n){e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,i=void 0,o=void 0,a=function(e,t){h[r]=e,h[r+1]=t,2===(r+=2)&&(o?o(p):b())};var s="undefined"!=typeof window?window:void 0,l=s||{},u=l.MutationObserver||l.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),f="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(p,1)}}var h=new Array(1e3);function p(){for(var e=0;e<r;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;r=0}var g,m,v,y,b=void 0;function E(e,t){var n=this,r=new this.constructor(x);void 0===r[S]&&M(r);var i=n._state;if(i){var o=arguments[i-1];a((function(){return k(i,r,o,n._result)}))}else R(n,r,e,t);return r}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(x);return C(t,e),t}b=c?function(){return process.nextTick(p)}:u?(m=0,v=new u(p),y=document.createTextNode(""),v.observe(y,{characterData:!0}),function(){y.data=m=++m%2}):f?((g=new MessageChannel).port1.onmessage=p,function(){return g.port2.postMessage(0)}):void 0===s?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(p)}:d()}catch(e){return d()}}():d();var S=Math.random().toString(36).substring(2);function x(){}var _=void 0;function T(t,n,r){n.constructor===t.constructor&&r===E&&n.constructor.resolve===w?function(e,t){1===t._state?I(e,t._result):2===t._state?A(e,t._result):R(t,void 0,(function(t){return C(e,t)}),(function(t){return A(e,t)}))}(t,n):void 0===r?I(t,n):e(r)?function(e,t,n){a((function(e){var r=!1,i=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?C(e,n):I(e,n))}),(function(t){r||(r=!0,A(e,t))}),e._label);!r&&i&&(r=!0,A(e,i))}),e)}(t,n,r):I(t,n)}function C(e,t){if(e===t)A(e,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof(r=t),null===r||"object"!==i&&"function"!==i)I(e,t);else{var n=void 0;try{n=t.then}catch(t){return void A(e,t)}T(e,t,n)}var r,i}function O(e){e._onerror&&e._onerror(e._result),N(e)}function I(e,t){e._state===_&&(e._result=t,e._state=1,0!==e._subscribers.length&&a(N,e))}function A(e,t){e._state===_&&(e._state=2,e._result=t,a(O,e))}function R(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+1]=n,i[o+2]=r,0===o&&e._state&&a(N,e)}function N(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],i=t[a+n],r?k(n,r,i,o):i(o);e._subscribers.length=0}}function k(t,n,r,i){var o=e(r),a=void 0,s=void 0,l=!0;if(o){try{a=r(i)}catch(e){l=!1,s=e}if(n===a)return void A(n,new TypeError("A promises callback cannot return that same promise."))}else a=i;n._state!==_||(o&&l?C(n,a):!1===l?A(n,s):1===t?I(n,a):2===t&&A(n,a))}var L=0;function M(e){e[S]=L++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(x),this.promise[S]||M(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&I(this.promise,this._result))):A(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===_&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===w){var i=void 0,o=void 0,a=!1;try{i=e.then}catch(e){a=!0,o=e}if(i===E&&e._state!==_)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===P){var s=new n(x);a?A(s,o):T(s,e,i),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===_&&(this._remaining--,2===e?A(r,n):this._result[t]=n),0===this._remaining&&I(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;R(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}();var P=function(){function t(e){this[S]=L++,this._result=this._state=void 0,this._subscribers=[],x!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){C(e,t)}),(function(t){A(e,t)}))}catch(t){A(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return P.prototype.then=E,P.all=function(e){return new D(this,e).promise},P.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var i=e.length,o=0;o<i;o++)n.resolve(e[o]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},P.resolve=w,P.reject=function(e){var t=new this(x);return A(t,e),t},P._setScheduler=function(e){o=e},P._setAsap=function(e){a=e},P._asap=a,P.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=P},P.Promise=P,P}()},1669:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)r.call(i,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(i,e[s],s,e)}},3573:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},550:(e,t)=>{!function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,o=/\\/g,a=/\u2028/,s=/\u2029/;function l(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i,o=n.length,a=0,s=null,c=null,f="",d=[],h=!1,p=0,g=0,m="{{",v="}}";function y(){f.length>0&&(d.push({tag:"_t",text:new String(f)}),f="")}function b(n,r){if(y(),n&&function(){for(var n=!0,r=g;r<d.length;r++)if(!(n=e.tags[d[r].tag]<e.tags._v||"_t"==d[r].tag&&null===d[r].text.match(t)))return!1;return n}())for(var i,o=g;o<d.length;o++)d[o].text&&((i=d[o+1])&&">"==i.tag&&(i.indent=d[o].text.toString()),d.splice(o,1));else r||d.push({tag:"\n"});h=!1,g=d.length}function E(e,t){var n="="+v,r=e.indexOf(n,t),i=l(e.substring(e.indexOf("=",t)+1,r)).split(" ");return m=i[0],v=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),m=r[0],v=r[1]),p=0;p<o;p++)0==a?u(m,n,p)?(--p,y(),a=1):"\n"==n.charAt(p)?b(h):f+=n.charAt(p):1==a?(p+=m.length-1,"="==(s=(c=e.tags[n.charAt(p+1)])?n.charAt(p+1):"_v")?(p=E(n,p),a=0):(c&&p++,a=2),h=p):u(v,n,p)?(d.push({tag:s,n:l(f),otag:m,ctag:v,i:"/"==s?h-m.length:p+v.length}),f="",p+=v.length-1,a=0,"{"==s&&("}}"==v?p++:"}"===(i=d[d.length-1]).n.substr(i.n.length-1)&&(i.n=i.n.substring(0,i.n.length-1)))):f+=n.charAt(p);return b(h,!0),d};var c={_t:!0,"\n":!0,$:!0,"/":!0};function f(t,n,r,i){var o,a=[],s=null,l=null;for(o=r[r.length-1];t.length>0;){if(l=t.shift(),o&&"<"==o.tag&&!(l.tag in c))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags.$||d(l,i))r.push(l),l.nodes=f(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(s=r.pop(),l.n!=s.n&&!h(l.n,s.n,i))throw new Error("Nesting error: "+s.n+" vs. "+l.n);return s.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function d(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function h(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function p(e){var t=[];for(var n in e.partials)t.push('"'+m(n)+'":{name:"'+m(e.partials[n].name)+'", '+p(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+m(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+p(t)+"}"};var g=0;function m(e){return e.replace(o,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function v(e){return~e.indexOf(".")?"d":"f"}function y(e,t){var n="<"+(t.prefix||"")+e.n+g++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+m(n)+'",c,p,"'+(e.indent||"")+'"));',n}function b(e,t){t.code+="t.b(t.t(t."+v(e.n)+'("'+m(e.n)+'",c,p,0)));'}function E(e){return"t.b("+e+");"}e.generate=function(t,n,r){g=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+v(t.n)+'("'+m(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+v(t.n)+'("'+m(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":y,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[y(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+m(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=E('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+v(e.n)+'("'+m(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=E('"'+m(e.text)+'"')},"{":b,"&":b},e.walk=function(t,n){for(var r,i=0,o=t.length;i<o;i++)(r=e.codegen[t[i].tag])&&r(t[i],n);return n},e.parse=function(e,t,n){return f(e,0,[],(n=n||{}).sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var o=i.partials;for(var a in o)delete o[a].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}}(t)},703:(e,t,n)=>{var r=n(550);r.Template=n(6031).Template,r.template=r.Template,e.exports=r},6031:(e,t)=>{!function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=l(e),s.test(e)?e.replace(n,"&").replace(r,"<").replace(i,">").replace(o,"'").replace(a,"""):e},t:l,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,o){function a(){}function s(){}var l;a.prototype=e,s.prototype=e.subs;var u=new a;for(l in u.subs=new s,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=o,t)r[l]||(r[l]=t[l]);for(l in r)u.subs[l]=r[l];for(l in i=i||{},u.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)u.partials[l]=i[l];return u}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r,r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(u(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,o,a){var s;return(!u(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,o,a)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var o,a=e.split("."),s=this.f(a[0],n,r,i),l=this.options.modelGet,c=null;if("."===e&&u(n[n.length-2]))s=n[n.length-1];else for(var f=1;f<a.length;f++)void 0!==(o=t(a[f],s,l))?(c=s,s=o):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(c),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var o=!1,a=!1,s=this.options.modelGet,l=n.length-1;l>=0;l--)if(void 0!==(o=t(e,n[l],s))){a=!0;break}return a?(i||"function"!=typeof o||(o=this.mv(o,n,r)),o):!i&&""},ls:function(e,t,n,r,i){var o=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(l(e.call(t,r)),t,n)),this.options.delimiters=o,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,o,a){var s,l=t[t.length-1],u=e.call(l);return"function"==typeof u?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,l,n,s.substring(i,o),a)):u},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(l(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var n=/&/g,r=/</g,i=/>/g,o=/\'/g,a=/\"/g,s=/[&<>\"\']/;function l(e){return String(null==e?"":e)}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)},6504:(e,t,n)=>{"use strict";var r=n(2744),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(o[v]||r&&r[v]||g&&g[v]||s&&s[v])){var y=d(n,v);try{u(t,v,y)}catch(e){}}}}return t}},637:(e,t,n)=>{"use strict";var r,i,o,a=[n(189),n(2573),n(2726),n(9057),n(7561),n(8596)],s=-1,l=[],u=!1;function c(){r&&i&&(r=!1,i.length?l=i.concat(l):s=-1,l.length&&f())}function f(){if(!r){u=!1,r=!0;for(var e=l.length,t=setTimeout(c);e;){for(i=l,l=[];i&&++s<e;)i[s].run();s=-1,e=l.length}i=null,s=-1,r=!1,clearTimeout(t)}}for(var d=-1,h=a.length;++d<h;)if(a[d]&&a[d].test&&a[d].test()){o=a[d].install(f);break}function p(e,t){this.fun=e,this.array=t}p.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},e.exports=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 p(e,t)),u||r||(u=!0,o())}},9057:(e,t,n)=>{"use strict";t.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},t.install=function(e){var t=new n.g.MessageChannel;return t.port1.onmessage=e,function(){t.port2.postMessage(0)}}},2726:(e,t,n)=>{"use strict";var r=n.g.MutationObserver||n.g.WebKitMutationObserver;t.test=function(){return r},t.install=function(e){var t=0,i=new r(e),o=n.g.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=t=++t%2}}},2573:(e,t,n)=>{"use strict";t.test=function(){return"function"==typeof n.g.queueMicrotask},t.install=function(e){return function(){n.g.queueMicrotask(e)}}},7561:(e,t,n)=>{"use strict";t.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},t.install=function(e){return function(){var t=n.g.document.createElement("script");return t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.g.document.documentElement.appendChild(t),e}}},8596:(e,t)=>{"use strict";t.test=function(){return!0},t.install=function(e){return function(){setTimeout(e,0)}}},773:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},7597:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},6661: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)},u=o.push,c=o.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},b=r.document,E={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 E)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e}var x="3.5.1",_=function(e,t){return new _.fn.init(e,t)};function T(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}_.fn=_.prototype={jquery:x,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:u,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,u=!1;for("boolean"==typeof a&&(u=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&&(u&&r&&(_.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||_.isPlainObject(n)?n:{},i=!1,a[t]=_.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},_.extend({expando:"jQuery"+(x+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]"!==d.call(e)||(t=a(e))&&("function"!=typeof(n=h.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(T(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},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?_.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},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(T(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){f["[object "+t+"]"]=t.toLowerCase()}));var C=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,g,m,v,y,b,E="sizzle"+1*new Date,w=e.document,S=0,x=0,_=le(),T=le(),C=le(),O=le(),I=function(e,t){return e===t&&(f=!0),0},A={}.hasOwnProperty,R=[],N=R.pop,k=R.push,L=R.push,M=R.slice,D=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",U="[\\x20\\t\\r\\n\\f]",j="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",B="\\[[\\x20\\t\\r\\n\\f]*("+j+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+U+"*\\]",F=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(U+"+","g"),z=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),G=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),W=new RegExp(U+"|>"),q=new RegExp(F),Y=new RegExp("^"+j+"$"),X={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},$=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ne=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))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=Ee((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(R=M.call(w.childNodes),w.childNodes),R[w.childNodes.length].nodeType}catch(e){L={apply:R.length?function(e,t){k.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,f,p,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(t),t=t||h,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!O[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&(W.test(e)||G.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=E)),s=(p=a(e)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+be(p[s]);v=p.join(",")}try{return L.apply(r,y.querySelectorAll(v)),r}catch(t){O(e,!0)}finally{c===E&&t.removeAttribute("id")}}}return l(e.replace(z,"$1"),t,r,i)}function le(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function ue(e){return e[E]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(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&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue((function(t){return t=+t,ue((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 ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!$.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,g=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce((function(e){return p.appendChild(e).id=E,!h.getElementsByName||!h.getElementsByName(E).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){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[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(h.querySelectorAll))&&(ce((function(e){var t;p.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+P+")"),e.querySelectorAll("[id~="+E+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),b=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:c?D(c,e)-D(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==h?-1:t==h?1:i?-1:o?1:c?D(c,e)-D(c,t):0;if(i===o)return de(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?de(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!O[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){O(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(I),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.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&&q.test(n)&&(t=a(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+U+"|$)"))&&_(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=se.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(H," ")+" ").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 u,c,f,d,h,p,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?m.firstChild:m.lastChild],a&&y){for(b=(h=(u=(c=(f=(d=m)[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===S&&u[1])&&u[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[S,h,b];break}}else if(y&&(b=h=(u=(c=(f=(d=t)[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===S&&u[1]),!1===b)for(;(d=++h&&d&&d[g]||(b=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[E]||(d[E]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[S,b]),d!==t)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[E]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=D(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(z,"$1"));return r[E]?ue((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:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?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(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:me((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Ee(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=x++;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 u,c,f,d=[S,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(c=(f=t[E]||(t[E]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===S&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function we(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 Se(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[E]&&(r=xe(r)),i&&!i[E]&&(i=xe(i,o)),ue((function(o,a,s,l){var u,c,f,d=[],h=[],p=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:Se(g,d,e,s,l),v=n?i||(o?e:p||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(u=Se(v,h),r(u,[],s,l),c=u.length;c--;)(f=u[c])&&(v[h[c]]=!(m[h[c]]=f));if(o){if(i||e){if(i){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(m[c]=f);i(null,v=[],u,l)}for(c=v.length;c--;)(f=v[c])&&(u=i?D(o,f):d[c])>-1&&(o[u]=!(a[u]=f))}}else v=Se(v===a?v.splice(p,v.length):v),i?i(null,a,v,l):L.apply(a,v)}))}function _e(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=Ee((function(e){return e===t}),s,!0),f=Ee((function(e){return D(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])d=[Ee(we(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[E]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return xe(l>1&&we(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,l<i&&_e(e.slice(l,i)),i<o&&_e(e=e.slice(i)),i<o&&be(e))}d.push(n)}return we(d)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,i,o,a,s,l,u,c=T[e+" "];if(c)return t?0:c.slice(0);for(s=e,l=[],u=r.preFilter;s;){for(a in n&&!(i=V.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=G.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(z," ")}),s=s.slice(n.length)),r.filter)!(i=X[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):T(e,l).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=C[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=_e(t[n]))[E]?i.push(s):o.push(s);s=C(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var f,p,m,v=0,y="0",b=o&&[],E=[],w=u,x=o||i&&r.find.TAG("*",c),_=S+=null==w?1:Math.random()||.1,T=x.length;for(c&&(u=a==h||a||c);y!==T&&null!=(f=x[y]);y++){if(i&&f){for(p=0,a||f.ownerDocument==h||(d(f),s=!g);m=e[p++];)if(m(f,a||h,s)){l.push(f);break}c&&(S=_)}n&&((f=!m&&f)&&v--,o&&b.push(f))}if(v+=y,n&&y!==v){for(p=0;m=t[p++];)m(b,E,a,s);if(o){if(v>0)for(;y--;)b[y]||E[y]||(E[y]=N.call(l));E=Se(E)}L.apply(l,E),c&&!o&&E.length>0&&v+t.length>1&&se.uniqueSort(l)}return c&&(S=_,u=w),b};return n?ue(o):o}(o,i)),s.selector=e}return s},l=se.select=function(e,t,n,i){var o,l,u,c,f,d="function"==typeof e&&e,h=!i&&a(e=d.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(u=l[o],!r.relative[c=u.type]);)if((f=r.find[c])&&(i=f(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return L.apply(n,i),n;break}}return(d||s(e,h))(i,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=E.split("").sort(I).join("")===E,n.detectDuplicates=!!f,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(P,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(r);_.find=C,_.expr=C.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=C.uniqueSort,_.text=C.getText,_.isXMLDoc=C.isXML,_.contains=C.contains,_.escapeSelector=C.escape;var O=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},I=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=_.expr.match.needsContext;function R(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(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 c.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(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&A.test(e)?_(e):e||[],!1).length}});var L,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||L,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.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)),N.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,L=_(b);var D=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function U(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(!A.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?c.call(_(e),this[0]):c.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 O(e,"parentNode")},parentsUntil:function(e,t,n){return O(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return O(e,"nextSibling")},prevAll:function(e){return O(e,"previousSibling")},nextUntil:function(e,t,n){return O(e,"nextSibling",n)},prevUntil:function(e,t,n){return O(e,"previousSibling",n)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(R(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&&(P[e]||_.uniqueSort(i),D.test(e)&&i.reverse()),this.pushStack(i)}}));var j=/[^\x20\t\r\n\f]+/g;function B(e){return e}function F(e){throw e}function H(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(j)||[],(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?[]:"")},u={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&&u.has(r)||o.push(r):r&&r.length&&"string"!==S(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 u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},_.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,u=function(){var r,u;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(u)?i?u.call(r,a(o,t,B,i),a(o,t,F,i)):(o++,u.call(r,a(o,t,B,i),a(o,t,F,i),a(o,t,B,t.notifyWith))):(n!==B&&(s=void 0,l=[r]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(r){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(r,c.stackTrace),e+1>=o&&(n!==F&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?c():(_.Deferred.getStackHook&&(c.stackTrace=_.Deferred.getStackHook()),r.setTimeout(c))}}return _.Deferred((function(r){t[0][3].add(a(0,r,v(i)?i:B,r.notifyWith)),t[1][3].add(a(0,r,v(e)?e:B)),t[2][3].add(a(0,r,v(n)?n:F))})).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&&(H(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)H(i[n],a(n),o.reject);return o.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&z.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},_.readyException=function(e){r.setTimeout((function(){throw e}))};var V=_.Deferred();function G(){b.removeEventListener("DOMContentLoaded",G),r.removeEventListener("load",G),_.ready()}_.fn.ready=function(e){return V.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||V.resolveWith(b,[_]))}}),_.ready.then=V.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(_.ready):(b.addEventListener("DOMContentLoaded",G),r.addEventListener("load",G));var W=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===S(n))for(s in i=!0,n)W(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.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:u?t.call(e):l?t(e[0],n):o},q=/^-ms-/,Y=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function $(e){return e.replace(q,"ms-").replace(Y,X)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=_.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(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[$(t)]=n;else for(r in t)i[$(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(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($):(t=$(t))in r?[t]:t.match(j)||[]).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 J=new Q,Z=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}_.extend({hasData:function(e){return Z.hasData(e)||J.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.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=Z.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=$(r.slice(5)),ne(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){Z.set(this,e)})):W(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),_.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.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 J.get(e,n)||J.access(e,n,{empty:_.Callbacks("once memory").add((function(){J.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=J.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=b.documentElement,se=function(e){return _.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return _.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===_.css(e,"display")};function ce(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return _.css(e,t,"")},l=s(),u=n&&n[3]||(_.cssNumber[t]?"":"px"),c=e.nodeType&&(_.cssNumber[t]||"px"!==u&&+l)&&ie.exec(_.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)_.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,_.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var fe={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=fe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=_.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),fe[r]=i,i)}function he(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]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ue(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",J.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 he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ue(this)?_(this).show():_(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;pe=b.createDocumentFragment().appendChild(b.createElement("div")),(ge=b.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var be={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&&R(e,t)?_.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,m.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,l,u,c,f=t.createDocumentFragment(),d=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===S(o))_.merge(d,o.nodeType?[o]:o);else if(Se.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),l=be[s]||be._default,a.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;_.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&_.inArray(o,r)>-1)i&&i.push(o);else if(u=se(o),a=Ee(f.appendChild(o),"script"),u&&we(a),n)for(c=0;o=a[c++];)ye.test(o.type||"")&&n.push(o);return f}var _e=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Oe(){return!0}function Ie(){return!1}function Ae(e,t){return e===function(){try{return b.activeElement}catch(e){}}()==("focus"===t)}function Re(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)Re(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 Ne(e,t,n){n?(J.set(e,t,!1),_.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=J.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(_.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),J.set(this,t,o),r=n(this,t),this[t](),o!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(J.set(this,t,{value:_.event.trigger(_.extend(o[0],_.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&_.event.add(e,t,Oe)}_.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,p,g,m=J.get(e);if(K(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&_.find.matchesSelector(ae,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}),u=(t=(t||"").match(j)||[""]).length;u--;)h=g=(s=Ce.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=_.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=_.event.special[h]||{},c=_.extend({type:h,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&_.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=l[h])||((d=l[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),_.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(h=g=(s=Ce.exec(t[u])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=_.event.special[h]||{},d=l[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||_.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)_.event.remove(e,h+t[u],n,r,!0);_.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=_.event.fix(e),u=(J.get(this,"events")||Object.create(null))[l.type]||[],c=_.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=_.event.handlers.call(this,l,u),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 c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?_(i,this).index(u)>-1:_.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,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 me.test(t.type)&&t.click&&R(t,"input")&&Ne(t,"click",Oe),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&R(t,"input")&&Ne(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&R(t,"input")&&J.get(t,"click")||R(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?Oe: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=Oe,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Oe,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Oe,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:function(e){var t=e.button;return null==e.which&&_e.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},_.event.addProp),_.each({focus:"focusin",blur:"focusout"},(function(e,t){_.event.special[e]={setup:function(){return Ne(this,e,Ae),!1},trigger:function(){return Ne(this,e),!0},delegateType: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=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||_.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),_.fn.extend({on:function(e,t,n,r){return Re(this,e,t,n,r)},one:function(e,t,n,r){return Re(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 ke=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ue(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(i in J.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)_.event.add(t,i,s[i][n]);Z.hasData(e)&&(o=Z.access(e),a=_.extend({},o),Z.set(t,a))}}function Be(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=l(t);var i,o,a,s,u,c,f=0,d=e.length,h=d-1,p=t[0],g=v(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&Le.test(p))return e.each((function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),Fe(o,t,n,r)}));if(d&&(o=(i=xe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=_.map(Ee(i,"script"),Pe)).length;f<d;f++)u=i,f!==h&&(u=_.clone(u,!0,!0),s&&_.merge(a,Ee(u,"script"))),n.call(e[f],u,f);if(s)for(c=a[a.length-1].ownerDocument,_.map(a,Ue),f=0;f<s;f++)u=a[f],ye.test(u.type||"")&&!J.access(u,"globalEval")&&_.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?_._evalUrl&&!u.noModule&&_._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Me,""),u,c))}return e}function He(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&&se(r)&&we(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=se(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++)Be(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++)je(o[r],a[r]);else je(e,s);return(a=Ee(s,"script")).length>0&&we(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(K(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?_.event.remove(n,r):_.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),_.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return W(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 Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(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 W(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&&!ke.test(e)&&!be[(ve.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 Fe(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),u.apply(r,n.get());return this.pushStack(r)}}));var ze=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Ve=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ge=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},We=new RegExp(oe.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ve(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=_.style(e,t)),!m.pixelBoxStyles()&&ze.test(a)&&We.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ae.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.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",t.style.height="1px",n.style.height="9px",ae.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),s=parseInt(i.height)>3,ae.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],$e=b.createElement("div").style,Ke={};function Qe(e){return _.cssProps[e]||Ke[e]||(e in $e?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in $e)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Ze=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=_.css(e,n+oe[a],!0,i)),r?("content"===n&&(l-=_.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(l-=_.css(e,"border"+oe[a]+"Width",!0,i))):(l+=_.css(e,"padding"+oe[a],!0,i),"padding"!==n?l+=_.css(e,"border"+oe[a]+"Width",!0,i):s+=_.css(e,"border"+oe[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}function it(e,t,n){var r=Ve(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(ze.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&i||!m.reliableTrDimensions()&&R(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)+rt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function ot(e,t,n,r,i){return new ot.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,columnCount:!0,fillOpacity:!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,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=$(t),l=Ze.test(t),u=e.style;if(l||(t=Qe(s)),a=_.cssHooks[t]||_.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];"string"==(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(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")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=$(t);return Ze.test(t)||(t=Qe(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 tt&&(i=tt[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!Je.test(_.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,r):Ge(e,et,(function(){return it(e,t,r)}))},set:function(e,n,r){var i,o=Ve(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===_.css(e,"boxSizing",!1,o),l=r?rt(e,t,r,s,o):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-rt(e,t,"border",!1,o)-.5)),l&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=_.css(e,t)),nt(0,n,l)}}})),_.cssHooks.marginLeft=Ye(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(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+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(_.cssHooks[e+t].set=nt)})),_.fn.extend({css:function(e,t){return W(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ve(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=ot,ot.prototype={constructor:ot,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=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.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):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.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[Qe(e.prop)]?e.elem[e.prop]=e.now:_.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.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=ot.prototype.init,_.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ut=/queueHooks$/;function ct(){st&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ct):r.setTimeout(ct,_.fx.interval),_.fx.tick())}function ft(){return r.setTimeout((function(){at=void 0})),at=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ht(e,t,n){for(var r,i=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function pt(e,t,n){var r,i,o=0,a=pt.prefilters.length,s=_.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=at||ft(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(a||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:_.extend({},t),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=_.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=$(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}(c,u.opts.specialEasing);o<a;o++)if(r=pt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(_._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return _.map(c,ht,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),_.fx.timer(_.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}_.Animation=_.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(j);for(var n,r=0,i=e.length;r<i;r++)n=e[r],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,l,u,c,f="width"in t||"height"in t,d=this,h={},p=e.style,g=e.nodeType&&ue(e),m=J.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++,d.always((function(){d.always((function(){a.unqueued--,_.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],lt.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}h[r]=m&&m[r]||_.style(e,r)}if((l=!_.isEmptyObject(t))||!_.isEmptyObject(h))for(r in f&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=m&&m.display)&&(u=J.get(e,"display")),"none"===(c=_.css(e,"display"))&&(u?c=u:(he([e],!0),u=e.style.display||u,c=_.css(e,"display"),he([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===_.css(e,"float")&&(l||(d.done((function(){p.display=u})),null==u&&(c=p.display,u="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(e,"fxshow",{display:u}),o&&(m.hidden=!g),g&&he([e],!0),d.done((function(){for(r in g||he([e]),J.remove(e,"fxshow"),h)_.style(e,r,h[r])}))),l=ht(g?m[r]:0,r,d),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.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(ue).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=pt(this,_.extend({},e),o);(i||J.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=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ut.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=J.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(dt(t,!0),e,r,i)}})),_.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("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(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||_.fx.stop(),at=void 0},_.fx.timer=function(e){_.timers.push(e),_.fx.start()},_.fx.interval=13,_.fx.start=function(){st||(st=!0,ct())},_.fx.stop=function(){st=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 gt,mt=_.expr.attrHandle;_.fn.extend({attr:function(e,t){return W(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)?gt: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&&R(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(j);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),gt={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=mt[t]||_.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(j)||[]).join(" ")}function Et(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}_.fn.extend({prop:function(e,t){return W(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):vt.test(e.nodeName)||yt.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,s,l=0;if(v(e))return this.each((function(t){_(this).addClass(e.call(this,t,Et(this)))}));if((t=wt(e)).length)for(;n=this[l++];)if(i=Et(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(v(e))return this.each((function(t){_(this).removeClass(e.call(this,t,Et(this)))}));if(!arguments.length)return this.attr("class","");if((t=wt(e)).length)for(;n=this[l++];)if(i=Et(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(n){_(this).toggleClass(e.call(this,n,Et(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=_(this),a=wt(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=Et(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(Et(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\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(St,""):null==n?"":n:void 0}}),_.extend({valHooks:{option:{get:function(e){var t=_.find.attr(e,"value");return null!=t?t:bt(_.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||!R(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})})),m.focusin="onfocusin"in r;var xt=/^(?:focusinfocus|focusoutblur)$/,_t=function(e){e.stopPropagation()};_.extend(_.event,{trigger:function(e,t,n,i){var o,a,s,l,u,c,f,d,p=[n||b],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!xt.test(g+_.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=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]),f=_.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(n,t))){if(!i&&!f.noBubble&&!y(n)){for(l=f.delegateType||g,xt.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();)d=a,e.type=o>1?l:f.bindType||g,(c=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&c.apply(a,t),(c=u&&a[u])&&c.apply&&K(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),t)||!K(n)||u&&v(n[g])&&!y(n)&&((s=n[u])&&(n[u]=null),_.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,_t),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,_t),_.event.triggered=void 0,s&&(n[u]=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)}}),m.focusin||_.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){_.event.simulate(t,e.target,_.event.fix(e))};_.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var Tt=r.location,Ct={guid:Date.now()},Ot=/\?/;_.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+e),t};var It=/\[\]$/,At=/\r?\n/g,Rt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,r){var i;if(Array.isArray(t))_.each(t,(function(t,i){n||It.test(e)?r(e,i):kt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==S(t))r(e,t);else for(i in t)kt(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)kt(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")&&Nt.test(this.nodeName)&&!Rt.test(e)&&(this.checked||!me.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(At,"\r\n")}})):{name:t.name,value:n.replace(At,"\r\n")}})).get()}});var Lt=/%20/g,Mt=/#.*$/,Dt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:GET|HEAD)$/,jt=/^\/\//,Bt={},Ft={},Ht="*/".concat("*"),zt=b.createElement("a");function Vt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(j)||[];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 Gt(e,t,n,r){var i={},o=e===Ft;function a(s){var l;return i[s]=!0,_.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Wt(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}zt.href=Tt.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,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?Wt(Wt(e,_.ajaxSettings),t):Wt(_.ajaxSettings,e)},ajaxPrefilter:Vt(Bt),ajaxTransport:Vt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,a,s,l,u,c,f,d,h=_.ajaxSetup({},t),p=h.context||h,g=h.context&&(p.nodeType||p.jquery)?_(p):_.event,m=_.Deferred(),v=_.Callbacks("once memory"),y=h.statusCode||{},E={},w={},S="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Pt.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 u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,E[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)x.always(e[x.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),T(0,t),this}};if(m.promise(x),h.url=((e||h.url||Tt.href)+"").replace(jt,Tt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(j)||[""],null==h.crossDomain){l=b.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=zt.protocol+"//"+zt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=_.param(h.data,h.traditional)),Gt(Bt,h,t,x),u)return x;for(f in(c=_.event&&h.global)&&0==_.active++&&_.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ut.test(h.type),i=h.url.replace(Mt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Lt,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ot.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(Dt,"$1"),d=(Ot.test(i)?"&":"?")+"_="+Ct.guid+++d),h.url=i+d),h.ifModified&&(_.lastModified[i]&&x.setRequestHeader("If-Modified-Since",_.lastModified[i]),_.etag[i]&&x.setRequestHeader("If-None-Match",_.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ht+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,x,h)||u))return x.abort();if(S="abort",v.add(h.complete),x.done(h.success),x.fail(h.error),n=Gt(Ft,h,t,x)){if(x.readyState=1,c&&g.trigger("ajaxSend",[x,h]),u)return x;h.async&&h.timeout>0&&(s=r.setTimeout((function(){x.abort("timeout")}),h.timeout));try{u=!1,n.send(E,T)}catch(e){if(u)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,a,l){var f,d,b,E,w,S=t;u||(u=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",x.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(E=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]}(h,x,a)),!f&&_.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),E=function(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.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}}(h,E,x,f),f?(h.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(_.lastModified[i]=w),(w=x.getResponseHeader("etag"))&&(_.etag[i]=w)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=E.state,d=E.data,f=!(b=E.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),x.status=e,x.statusText=(t||S)+"",f?m.resolveWith(p,[d,S,x]):m.rejectWith(p,[x,S,b]),x.statusCode(y),y=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[x,h,f?d:b]),v.fireWith(p,[x,S]),c&&(g.trigger("ajaxComplete",[x,h]),--_.active||_.event.trigger("ajaxStop")))}return x},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 qt={0:200,1223:204},Yt=_.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,_.ajaxTransport((function(e){var t,n;if(m.cors||Yt&&!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(qt[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 Xt,$t=[],Kt=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||_.expando+"_"+Ct.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.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(Kt,"$1"+i):!1!==e.jsonp&&(e.url+=(Ot.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,$t.push(i)),a&&v(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=((Xt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.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=N.exec(e))?[t.createElement(i[1])]:(i=xe([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=bt(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,u=_.css(e,"position"),c=_(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=_.css(e,"top"),l=_.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(r=c.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&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},_.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||ae}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;_.fn[e]=function(r){return W(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]=Ye(m.pixelPosition,(function(e,n){if(n)return n=qe(e,t),ze.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 W(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.mouseenter(e).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)}}));var Qt=/^[\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=R,_.isFunction=v,_.isWindow=y,_.camelCase=$,_.type=S,_.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(Qt,"")},void 0===(n=function(){return _}.apply(t,[]))||(e.exports=n);var Jt=r.jQuery,Zt=r.$;return _.noConflict=function(e){return r.$===_&&(r.$=Zt),e&&r.jQuery===_&&(r.jQuery=Jt),_},void 0===i&&(r.jQuery=r.$=_),_}))},3352:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var s,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&!1===isNaN(e))return a.long?o(s=e,i,"day")||o(s,r,"hour")||o(s,n,"minute")||o(s,t,"second")||s+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},518:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,s,l=i(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){s=t(a);for(var f=0;f<s.length;f++)r.call(a,s[f])&&(l[s[f]]=a[s[f]])}}return l}},2257:(e,t,n)=>{"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(3293),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=u&&n;if(s&&e.length>0&&!i.call(e,0))for(var g=0;g<e.length;++g)d.push(String(g));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var v in e)p&&"prototype"===v||!i.call(e,v)||d.push(String(v));if(l)for(var y=function(e){if("undefined"==typeof window||!h)return f(e);try{return f(e)}catch(e){return!1}}(e),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(e,c[b])||d.push(c[b]);return d}}e.exports=r},2604:(e,t,n)=>{"use strict";var r=Array.prototype.slice,i=n(3293),o=Object.keys,a=o?function(e){return o(e)}:n(2257),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},3293:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},5173:(e,t,n)=>{"use strict";var r=n(1591);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2283:(e,t,n)=>{e.exports=n(5173)()},1591:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},872:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,i,o){r=r||"&",i=i||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(r);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var f,d,h,p,g=e[c].replace(s,"%20"),m=g.indexOf(i);m>=0?(f=g.substr(0,m),d=g.substr(m+1)):(f=g,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),t(a,h)?n(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},690:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,o,a,s){return o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?r(i(e),(function(i){var s=encodeURIComponent(t(i))+a;return n(e[i])?r(e[i],(function(e){return s+encodeURIComponent(t(e))})).join(o):s+encodeURIComponent(t(e[i]))})).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},4491:(e,t,n)=>{"use strict";t.decode=t.parse=n(872),t.encode=t.stringify=n(690)},5250:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(!o(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!=l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!o(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},244:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return w(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===E||e.$$typeof===v)},t.typeOf=w},2744:(e,t,n)=>{"use strict";e.exports=n(244)},1357:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===s||e===a||e===d||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===p||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case f:case g:case p:case l:return e;default:return t}}case i:return t}}}},3360:(e,t,n)=>{"use strict";e.exports=n(1357)},8444:(e,t,n)=>{"use strict";var r=n(518),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var E={current:null},w=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!S.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:E.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var T=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case o:l=!0}}if(l)return a=a(l=e),e=""===r?"."+C(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+C(s=e[u],u);l+=O(s,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=O(s=s.value,t,n,c=r+C(s,u++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function I(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function A(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function N(){var e=R.current;if(null===e)throw Error(h(321));return e}var k={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=k,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!S.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},9703:(e,t,n)=>{"use strict";e.exports=n(8444)},7297:(e,t)=>{"use strict";var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,m=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,w=E.port2;E.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?w.postMessage(null):(g=!1,m=null)}catch(e){throw w.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,w.postMessage(null))},r=function(e,n){v=d((function(){e(t.unstable_now())}),n)},i=function(){h(v),v=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,l=e[s];if(void 0!==a&&0>T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],I=1,A=null,R=3,N=!1,k=!1,L=!1;function M(e){for(var t=x(O);null!==t;){if(null===t.callback)_(O);else{if(!(t.startTime<=e))break;_(O),t.sortIndex=t.expirationTime,S(C,t)}t=x(O)}}function D(e){if(L=!1,M(e),!k)if(null!==x(C))k=!0,n(P);else{var t=x(O);null!==t&&r(D,t.startTime-e)}}function P(e,n){k=!1,L&&(L=!1,i()),N=!0;var o=R;try{for(M(n),A=x(C);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=A.callback;if("function"==typeof a){A.callback=null,R=A.priorityLevel;var s=a(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===x(C)&&_(C),M(n)}else _(C);A=x(C)}if(null!==A)var l=!0;else{var u=x(O);null!==u&&r(D,u.startTime-n),l=!1}return l}finally{A=null,R=o,N=!1}}var U=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){k||N||(k=!0,n(P))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return x(C)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,o,a){var s=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?s+a:s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:I++,callback:o,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,S(O,e),null===x(C)&&e===x(O)&&(L?i():L=!0,r(D,a-s))):(e.sortIndex=l,S(C,e),k||N||(k=!0,n(P))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},8765:(e,t,n)=>{"use strict";e.exports=n(7297)},8661:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],f=t[u];if(!1===(i=n?n.call(r,c,f,u):void 0)||void 0===i&&c!==f)return!1}return!0}},8012:e=>{window,e.exports=function(){return n={},e.m=t=[function(e,t,n){"use strict";function r(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}var i;t.__esModule=!0,t.hasClassInTree=function(e,t){function n(e,t){return t&&e&&e.classList&&e.classList.contains(t)?e:null}return n(e,t)||function e(t,r){return t&&t!==document?n(t,r)?t:e(t.parentNode,r):null}(e,t)},t.ensureElementInView=function(e,t){var n=e.scrollTop+e.offsetTop,r=n+e.clientHeight,i=t.offsetTop,o=i+t.clientHeight;i<n?e.scrollTop-=n-i:r<o&&(e.scrollTop+=o-r)},t.putContent=function(e,t,n){var r=e.offsetHeight,i=e.getBoundingClientRect(),o=n?i.top:i.top-r,a=n?i.bottom:i.bottom+r;return o<=0?"below":a>=window.innerHeight?"above":n?t:"below"},t.debounce=function(e,t,n){var r;return void 0===t&&(t=100),void 0===n&&(n=!1),function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var a=self,s=n&&!r;clearTimeout(r),r=setTimeout((function(){r=null,n||e.apply(a,i)}),t),s&&e.apply(a,i)}},t.isValueInArrayOfObjects=function(e,t,n){if(!Array.isArray(e))return e[t]===n;for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o&&o[t]&&o[t]===n)return!0}return!1},t.highlight=function(e,t,n){var r=e,i=new RegExp("("+t.trim()+")(?![^<]*>[^<>]*</)","i");if(!e.match(i))return e;var o=e.match(i).index,a=o+e.match(i)[0].toString().length,s=e.substring(o,a);return r.replace(i,'<mark class="'+n+'">'+s+"</mark>")},t.kebabCase=function(e){var t=e.replace(/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,(function(e){return"-"+e.toLowerCase()}));return e[0]===e[0].toUpperCase()?t.substring(1):t},"function"!=typeof(i=window).CustomEvent&&(r.prototype=i.Event.prototype,i.CustomEvent=r)},function(e,t,n){"use strict";t.__esModule=!0;var r=(i.prototype.newOption=function(e){return{id:e.id?e.id:String(Math.floor(1e8*Math.random())),value:e.value?e.value:"",text:e.text?e.text:"",innerHTML:e.innerHTML?e.innerHTML:"",selected:!!e.selected&&e.selected,display:void 0===e.display||e.display,disabled:!!e.disabled&&e.disabled,placeholder:!!e.placeholder&&e.placeholder,class:e.class?e.class:void 0,data:e.data?e.data:{},mandatory:!!e.mandatory&&e.mandatory}},i.prototype.add=function(e){this.data.push({id:String(Math.floor(1e8*Math.random())),value:e.value,text:e.text,innerHTML:"",selected:!1,display:!0,disabled:!1,placeholder:!1,class:void 0,mandatory:e.mandatory,data:{}})},i.prototype.parseSelectData=function(){this.data=[];for(var e=0,t=this.main.select.element.childNodes;e<t.length;e++){var n=t[e];if("OPTGROUP"===n.nodeName){for(var r={label:n.label,options:[]},i=0,o=n.childNodes;i<o.length;i++){var a=o[i];if("OPTION"===a.nodeName){var s=this.pullOptionData(a);r.options.push(s),s.placeholder&&""!==s.text.trim()&&(this.main.config.placeholderText=s.text)}}this.data.push(r)}else"OPTION"===n.nodeName&&(s=this.pullOptionData(n),this.data.push(s),s.placeholder&&""!==s.text.trim()&&(this.main.config.placeholderText=s.text))}},i.prototype.pullOptionData=function(e){return{id:!!e.dataset&&e.dataset.id||String(Math.floor(1e8*Math.random())),value:e.value,text:e.text,innerHTML:e.innerHTML,selected:e.selected,disabled:e.disabled,placeholder:"true"===e.dataset.placeholder,class:e.className,style:e.style.cssText,data:e.dataset,mandatory:!!e.dataset&&"true"===e.dataset.mandatory}},i.prototype.setSelectedFromSelect=function(){if(this.main.config.isMultiple){for(var e=[],t=0,n=this.main.select.element.options;t<n.length;t++){var r=n[t];if(r.selected){var i=this.getObjectFromData(r.value,"value");i&&i.id&&e.push(i.id)}}this.setSelected(e,"id")}else{var o=this.main.select.element;if(-1!==o.selectedIndex){var a=o.options[o.selectedIndex].value;this.setSelected(a,"value")}}},i.prototype.setSelected=function(e,t){void 0===t&&(t="id");for(var n=0,r=this.data;n<r.length;n++){var i=r[n];if(i.hasOwnProperty("label")){if(i.hasOwnProperty("options")){var o=i.options;if(o)for(var a=0,s=o;a<s.length;a++){var l=s[a];l.placeholder||(l.selected=this.shouldBeSelected(l,e,t))}}}else i.selected=this.shouldBeSelected(i,e,t)}},i.prototype.shouldBeSelected=function(e,t,n){if(void 0===n&&(n="id"),Array.isArray(t))for(var r=0,i=t;r<i.length;r++){var o=i[r];if(n in e&&String(e[n])===String(o))return!0}else if(n in e&&String(e[n])===String(t))return!0;return!1},i.prototype.getSelected=function(){for(var e={text:"",placeholder:this.main.config.placeholderText},t=[],n=0,r=this.data;n<r.length;n++){var i=r[n];if(i.hasOwnProperty("label")){if(i.hasOwnProperty("options")){var o=i.options;if(o)for(var a=0,s=o;a<s.length;a++){var l=s[a];l.selected&&(this.main.config.isMultiple?t.push(l):e=l)}}}else i.selected&&(this.main.config.isMultiple?t.push(i):e=i)}return this.main.config.isMultiple?t:e},i.prototype.addToSelected=function(e,t){if(void 0===t&&(t="id"),this.main.config.isMultiple){var n=[],r=this.getSelected();if(Array.isArray(r))for(var i=0,o=r;i<o.length;i++){var a=o[i];n.push(a[t])}n.push(e),this.setSelected(n,t)}},i.prototype.removeFromSelected=function(e,t){if(void 0===t&&(t="id"),this.main.config.isMultiple){for(var n=[],r=0,i=this.getSelected();r<i.length;r++){var o=i[r];String(o[t])!==String(e)&&n.push(o[t])}this.setSelected(n,t)}},i.prototype.onDataChange=function(){this.main.onChange&&this.isOnChangeEnabled&&this.main.onChange(JSON.parse(JSON.stringify(this.getSelected())))},i.prototype.getObjectFromData=function(e,t){void 0===t&&(t="id");for(var n=0,r=this.data;n<r.length;n++){var i=r[n];if(t in i&&String(i[t])===String(e))return i;if(i.hasOwnProperty("options")&&i.options)for(var o=0,a=i.options;o<a.length;o++){var s=a[o];if(String(s[t])===String(e))return s}}return null},i.prototype.search=function(e){if(""!==(this.searchValue=e).trim()){var t=this.main.config.searchFilter,n=this.data.slice(0);e=e.trim();var r=n.map((function(n){if(n.hasOwnProperty("options")){var r=n,i=[];if(r.options&&(i=r.options.filter((function(n){return t(n,e)}))),0!==i.length){var o=Object.assign({},r);return o.options=i,o}}return n.hasOwnProperty("text")&&t(n,e)?n:null}));this.filtered=r.filter((function(e){return e}))}else this.filtered=null},i);function i(e){this.contentOpen=!1,this.contentPosition="below",this.isOnChangeEnabled=!0,this.main=e.main,this.searchValue="",this.data=[],this.filtered=null,this.parseSelectData(),this.setSelectedFromSelect()}function o(e){return void 0!==e.text||(console.error("Data object option must have at least have a text value. Check object: "+JSON.stringify(e)),!1)}t.Data=r,t.validateData=function(e){if(!e)return console.error("Data must be an array of objects"),!1;for(var t=0,n=0,r=e;n<r.length;n++){var i=r[n];if(i.hasOwnProperty("label")){if(i.hasOwnProperty("options")){var a=i.options;if(a)for(var s=0,l=a;s<l.length;s++)o(l[s])||t++}}else o(i)||t++}return 0===t},t.validateOption=o},function(e,t,n){"use strict";t.__esModule=!0;var r=n(3),i=n(4),o=n(5),a=n(1),s=n(0),l=(u.prototype.validate=function(e){var t="string"==typeof e.select?document.querySelector(e.select):e.select;if(!t)throw new Error("Could not find select element");if("SELECT"!==t.tagName)throw new Error("Element isnt of type select");return t},u.prototype.selected=function(){if(this.config.isMultiple){for(var e=[],t=0,n=i=this.data.getSelected();t<n.length;t++){var r=n[t];e.push(r.value)}return e}var i;return(i=this.data.getSelected())?i.value:""},u.prototype.set=function(e,t,n,r){void 0===t&&(t="value"),void 0===n&&(n=!0),void 0===r&&(r=!0),this.config.isMultiple&&!Array.isArray(e)?this.data.addToSelected(e,t):this.data.setSelected(e,t),this.select.setValue(),this.data.onDataChange(),this.render(),n&&this.close()},u.prototype.setSelected=function(e,t,n,r){void 0===t&&(t="value"),void 0===n&&(n=!0),void 0===r&&(r=!0),this.set(e,t,n,r)},u.prototype.setData=function(e){if(a.validateData(e)){var t=JSON.parse(JSON.stringify(e)),n=this.data.getSelected();if(this.config.isAjax&&n)if(this.config.isMultiple)for(var r=0,i=n.reverse();r<i.length;r++){var o=i[r];t.unshift(o)}else t.unshift(this.data.getSelected()),t.unshift({text:"",placeholder:!0});this.select.create(t),this.data.parseSelectData(),this.data.setSelectedFromSelect()}else console.error("Validation problem on: #"+this.select.element.id)},u.prototype.addData=function(e){a.validateData([e])?(this.data.add(this.data.newOption(e)),this.select.create(this.data.data),this.data.parseSelectData(),this.data.setSelectedFromSelect(),this.render()):console.error("Validation problem on: #"+this.select.element.id)},u.prototype.open=function(){var e=this;if(this.config.isEnabled&&!this.data.contentOpen){if(this.beforeOpen&&this.beforeOpen(),this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.plus.classList.add("ss-cross"):this.slim.singleSelected&&(this.slim.singleSelected.arrowIcon.arrow.classList.remove("arrow-down"),this.slim.singleSelected.arrowIcon.arrow.classList.add("arrow-up")),this.slim[this.config.isMultiple?"multiSelected":"singleSelected"].container.classList.add("above"===this.data.contentPosition?this.config.openAbove:this.config.openBelow),this.config.addToBody){var t=this.slim.container.getBoundingClientRect();this.slim.content.style.top=t.top+t.height+window.scrollY+"px",this.slim.content.style.left=t.left+window.scrollX+"px",this.slim.content.style.width=t.width+"px"}if(this.slim.content.classList.add(this.config.open),"up"===this.config.showContent.toLowerCase()||"down"!==this.config.showContent.toLowerCase()&&"above"===s.putContent(this.slim.content,this.data.contentPosition,this.data.contentOpen)?this.moveContentAbove():this.moveContentBelow(),!this.config.isMultiple){var n=this.data.getSelected();if(n){var r=n.id,i=this.slim.list.querySelector('[data-id="'+r+'"]');i&&s.ensureElementInView(this.slim.list,i)}}setTimeout((function(){e.data.contentOpen=!0,e.config.searchFocus&&e.slim.search.input.focus(),e.afterOpen&&e.afterOpen()}),this.config.timeoutDelay)}},u.prototype.close=function(){var e=this;this.data.contentOpen&&(this.beforeClose&&this.beforeClose(),this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openAbove),this.slim.multiSelected.container.classList.remove(this.config.openBelow),this.slim.multiSelected.plus.classList.remove("ss-cross")):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openAbove),this.slim.singleSelected.container.classList.remove(this.config.openBelow),this.slim.singleSelected.arrowIcon.arrow.classList.add("arrow-down"),this.slim.singleSelected.arrowIcon.arrow.classList.remove("arrow-up")),this.slim.content.classList.remove(this.config.open),this.data.contentOpen=!1,this.search(""),setTimeout((function(){e.slim.content.removeAttribute("style"),e.data.contentPosition="below",e.config.isMultiple&&e.slim.multiSelected?(e.slim.multiSelected.container.classList.remove(e.config.openAbove),e.slim.multiSelected.container.classList.remove(e.config.openBelow)):e.slim.singleSelected&&(e.slim.singleSelected.container.classList.remove(e.config.openAbove),e.slim.singleSelected.container.classList.remove(e.config.openBelow)),e.slim.search.input.blur(),e.afterClose&&e.afterClose()}),this.config.timeoutDelay))},u.prototype.moveContentAbove=function(){var e=0;this.config.isMultiple&&this.slim.multiSelected?e=this.slim.multiSelected.container.offsetHeight:this.slim.singleSelected&&(e=this.slim.singleSelected.container.offsetHeight);var t=e+this.slim.content.offsetHeight-1;this.slim.content.style.margin="-"+t+"px 0 0 0",this.slim.content.style.height=t-e+1+"px",this.slim.content.style.transformOrigin="center bottom",this.data.contentPosition="above",this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openBelow),this.slim.multiSelected.container.classList.add(this.config.openAbove)):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openBelow),this.slim.singleSelected.container.classList.add(this.config.openAbove))},u.prototype.moveContentBelow=function(){this.data.contentPosition="below",this.config.isMultiple&&this.slim.multiSelected?(this.slim.multiSelected.container.classList.remove(this.config.openAbove),this.slim.multiSelected.container.classList.add(this.config.openBelow)):this.slim.singleSelected&&(this.slim.singleSelected.container.classList.remove(this.config.openAbove),this.slim.singleSelected.container.classList.add(this.config.openBelow))},u.prototype.enable=function(){this.config.isEnabled=!0,this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.container.classList.remove(this.config.disabled):this.slim.singleSelected&&this.slim.singleSelected.container.classList.remove(this.config.disabled),this.select.triggerMutationObserver=!1,this.select.element.disabled=!1,this.slim.search.input.disabled=!1,this.select.triggerMutationObserver=!0},u.prototype.disable=function(){this.config.isEnabled=!1,this.config.isMultiple&&this.slim.multiSelected?this.slim.multiSelected.container.classList.add(this.config.disabled):this.slim.singleSelected&&this.slim.singleSelected.container.classList.add(this.config.disabled),this.select.triggerMutationObserver=!1,this.select.element.disabled=!0,this.slim.search.input.disabled=!0,this.select.triggerMutationObserver=!0},u.prototype.search=function(e){if(this.data.searchValue!==e)if(this.slim.search.input.value=e,this.config.isAjax){var t=this;this.config.isSearching=!0,this.render(),this.ajax&&this.ajax(e,(function(n){t.config.isSearching=!1,Array.isArray(n)?(n.unshift({text:"",placeholder:!0}),t.setData(n),t.data.search(e),t.render()):"string"==typeof n?t.slim.options(n):t.render()}))}else this.data.search(e),this.render()},u.prototype.setSearchText=function(e){this.config.searchText=e},u.prototype.render=function(){this.config.isMultiple?this.slim.values():(this.slim.placeholder(),this.slim.deselect()),this.slim.options()},u.prototype.destroy=function(e){void 0===e&&(e=null);var t=e?document.querySelector("."+e+".ss-main"):this.slim.container,n=e?document.querySelector("[data-ssid="+e+"]"):this.select.element;if(t&&n&&(n.style.display="",delete n.dataset.ssid,n.slim=null,t.parentElement&&t.parentElement.removeChild(t),this.config.addToBody)){var r=e?document.querySelector("."+e+".ss-content"):this.slim.content;if(!r)return;document.body.removeChild(r)}},u);function u(e){var t=this;this.ajax=null,this.addable=null,this.beforeOnChange=null,this.onChange=null,this.beforeOpen=null,this.afterOpen=null,this.beforeClose=null,this.afterClose=null;var n=this.validate(e);n.dataset.ssid&&this.destroy(n.dataset.ssid),e.ajax&&(this.ajax=e.ajax),e.addable&&(this.addable=e.addable),this.config=new r.Config({select:n,isAjax:!!e.ajax,showSearch:e.showSearch,searchPlaceholder:e.searchPlaceholder,searchText:e.searchText,searchingText:e.searchingText,searchFocus:e.searchFocus,searchHighlight:e.searchHighlight,searchFilter:e.searchFilter,closeOnSelect:e.closeOnSelect,showContent:e.showContent,placeholderText:e.placeholder,allowDeselect:e.allowDeselect,allowDeselectOption:e.allowDeselectOption,hideSelectedOption:e.hideSelectedOption,deselectLabel:e.deselectLabel,isEnabled:e.isEnabled,valuesUseText:e.valuesUseText,showOptionTooltips:e.showOptionTooltips,selectByGroup:e.selectByGroup,limit:e.limit,timeoutDelay:e.timeoutDelay,addToBody:e.addToBody}),this.select=new i.Select({select:n,main:this}),this.data=new a.Data({main:this}),this.slim=new o.Slim({main:this}),this.select.element.parentNode&&this.select.element.parentNode.insertBefore(this.slim.container,this.select.element.nextSibling),e.data?this.setData(e.data):this.render(),document.addEventListener("click",(function(e){e.target&&!s.hasClassInTree(e.target,t.config.id)&&t.close()})),"auto"===this.config.showContent&&window.addEventListener("scroll",s.debounce((function(e){t.data.contentOpen&&("above"===s.putContent(t.slim.content,t.data.contentPosition,t.data.contentOpen)?t.moveContentAbove():t.moveContentBelow())})),!1),e.beforeOnChange&&(this.beforeOnChange=e.beforeOnChange),e.onChange&&(this.onChange=e.onChange),e.beforeOpen&&(this.beforeOpen=e.beforeOpen),e.afterOpen&&(this.afterOpen=e.afterOpen),e.beforeClose&&(this.beforeClose=e.beforeClose),e.afterClose&&(this.afterClose=e.afterClose),this.config.isEnabled||this.disable()}t.default=l},function(e,t,n){"use strict";t.__esModule=!0;var r=(i.prototype.searchFilter=function(e,t){return-1!==e.text.toLowerCase().indexOf(t.toLowerCase())},i);function i(e){this.id="",this.isMultiple=!1,this.isAjax=!1,this.isSearching=!1,this.showSearch=!0,this.searchFocus=!0,this.searchHighlight=!1,this.closeOnSelect=!0,this.showContent="auto",this.searchPlaceholder="Search",this.searchText="No Results",this.searchingText="Searching...",this.placeholderText="Select Value",this.allowDeselect=!1,this.allowDeselectOption=!1,this.hideSelectedOption=!1,this.deselectLabel="x",this.isEnabled=!0,this.valuesUseText=!1,this.showOptionTooltips=!1,this.selectByGroup=!1,this.limit=0,this.timeoutDelay=200,this.addToBody=!1,this.main="ss-main",this.singleSelected="ss-single-selected",this.arrow="ss-arrow",this.multiSelected="ss-multi-selected",this.add="ss-add",this.plus="ss-plus",this.values="ss-values",this.value="ss-value",this.valueText="ss-value-text",this.valueDelete="ss-value-delete",this.content="ss-content",this.open="ss-open",this.openAbove="ss-open-above",this.openBelow="ss-open-below",this.search="ss-search",this.searchHighlighter="ss-search-highlight",this.addable="ss-addable",this.list="ss-list",this.optgroup="ss-optgroup",this.optgroupLabel="ss-optgroup-label",this.optgroupLabelSelectable="ss-optgroup-label-selectable",this.option="ss-option",this.optionSelected="ss-option-selected",this.highlighted="ss-highlighted",this.disabled="ss-disabled",this.hide="ss-hide",this.id="ss-"+Math.floor(1e5*Math.random()),this.style=e.select.style.cssText,this.class=e.select.className.split(" "),this.isMultiple=e.select.multiple,this.isAjax=e.isAjax,this.showSearch=!1!==e.showSearch,this.searchFocus=!1!==e.searchFocus,this.searchHighlight=!0===e.searchHighlight,this.closeOnSelect=!1!==e.closeOnSelect,e.showContent&&(this.showContent=e.showContent),this.isEnabled=!1!==e.isEnabled,e.searchPlaceholder&&(this.searchPlaceholder=e.searchPlaceholder),e.searchText&&(this.searchText=e.searchText),e.searchingText&&(this.searchingText=e.searchingText),e.placeholderText&&(this.placeholderText=e.placeholderText),this.allowDeselect=!0===e.allowDeselect,this.allowDeselectOption=!0===e.allowDeselectOption,this.hideSelectedOption=!0===e.hideSelectedOption,e.deselectLabel&&(this.deselectLabel=e.deselectLabel),e.valuesUseText&&(this.valuesUseText=e.valuesUseText),e.showOptionTooltips&&(this.showOptionTooltips=e.showOptionTooltips),e.selectByGroup&&(this.selectByGroup=e.selectByGroup),e.limit&&(this.limit=e.limit),e.searchFilter&&(this.searchFilter=e.searchFilter),null!=e.timeoutDelay&&(this.timeoutDelay=e.timeoutDelay),this.addToBody=!0===e.addToBody}t.Config=r},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=(o.prototype.setValue=function(){if(this.main.data.getSelected()){if(this.main.config.isMultiple)for(var e=this.main.data.getSelected(),t=0,n=this.element.options;t<n.length;t++){var r=n[t];r.selected=!1;for(var i=0,o=e;i<o.length;i++)o[i].value===r.value&&(r.selected=!0)}else e=this.main.data.getSelected(),this.element.value=e?e.value:"";this.main.data.isOnChangeEnabled=!1,this.element.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.main.data.isOnChangeEnabled=!0}},o.prototype.addAttributes=function(){this.element.tabIndex=-1,this.element.style.display="none",this.element.dataset.ssid=this.main.config.id},o.prototype.addEventListeners=function(){var e=this;this.element.addEventListener("change",(function(t){e.main.data.setSelectedFromSelect(),e.main.render()}))},o.prototype.addMutationObserver=function(){var e=this;this.main.config.isAjax||(this.mutationObserver=new MutationObserver((function(t){e.triggerMutationObserver&&(e.main.data.parseSelectData(),e.main.data.setSelectedFromSelect(),e.main.render(),t.forEach((function(t){"class"===t.attributeName&&e.main.slim.updateContainerDivClass(e.main.slim.container)})))})),this.observeMutationObserver())},o.prototype.observeMutationObserver=function(){this.mutationObserver&&this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,characterData:!0})},o.prototype.disconnectMutationObserver=function(){this.mutationObserver&&this.mutationObserver.disconnect()},o.prototype.create=function(e){this.element.innerHTML="";for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.hasOwnProperty("options")){var i=r,o=document.createElement("optgroup");if(o.label=i.label,i.options)for(var a=0,s=i.options;a<s.length;a++){var l=s[a];o.appendChild(this.createOption(l))}this.element.appendChild(o)}else this.element.appendChild(this.createOption(r))}},o.prototype.createOption=function(e){var t=document.createElement("option");return t.value=""!==e.value?e.value:e.text,t.innerHTML=e.innerHTML||e.text,e.selected&&(t.selected=e.selected),!1===e.display&&(t.style.display="none"),e.disabled&&(t.disabled=!0),e.placeholder&&t.setAttribute("data-placeholder","true"),e.mandatory&&t.setAttribute("data-mandatory","true"),e.class&&e.class.split(" ").forEach((function(e){t.classList.add(e)})),e.data&&"object"==typeof e.data&&Object.keys(e.data).forEach((function(n){t.setAttribute("data-"+r.kebabCase(n),e.data[n])})),t},o);function o(e){this.triggerMutationObserver=!0,this.element=e.select,this.main=e.main,this.element.disabled&&(this.main.config.isEnabled=!1),this.addAttributes(),this.addEventListeners(),this.mutationObserver=null,this.addMutationObserver(),this.element.slim=e.main}t.Select=i},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=n(1),o=(a.prototype.containerDiv=function(){var e=document.createElement("div");return e.style.cssText=this.main.config.style,this.updateContainerDivClass(e),e},a.prototype.updateContainerDivClass=function(e){this.main.config.class=this.main.select.element.className.split(" "),e.className="",e.classList.add(this.main.config.id),e.classList.add(this.main.config.main);for(var t=0,n=this.main.config.class;t<n.length;t++){var r=n[t];""!==r.trim()&&e.classList.add(r)}},a.prototype.singleSelectedDiv=function(){var e=this,t=document.createElement("div");t.classList.add(this.main.config.singleSelected);var n=document.createElement("span");n.classList.add("placeholder"),t.appendChild(n);var r=document.createElement("span");r.innerHTML=this.main.config.deselectLabel,r.classList.add("ss-deselect"),r.onclick=function(t){t.stopPropagation(),e.main.config.isEnabled&&e.main.set("")},t.appendChild(r);var i=document.createElement("span");i.classList.add(this.main.config.arrow);var o=document.createElement("span");return o.classList.add("arrow-down"),i.appendChild(o),t.appendChild(i),t.onclick=function(){e.main.config.isEnabled&&(e.main.data.contentOpen?e.main.close():e.main.open())},{container:t,placeholder:n,deselect:r,arrowIcon:{container:i,arrow:o}}},a.prototype.placeholder=function(){var e=this.main.data.getSelected();if(null===e||e&&e.placeholder){var t=document.createElement("span");t.classList.add(this.main.config.disabled),t.innerHTML=this.main.config.placeholderText,this.singleSelected&&(this.singleSelected.placeholder.innerHTML=t.outerHTML)}else{var n="";e&&(n=e.innerHTML&&!0!==this.main.config.valuesUseText?e.innerHTML:e.text),this.singleSelected&&(this.singleSelected.placeholder.innerHTML=e?n:"")}},a.prototype.deselect=function(){if(this.singleSelected){if(!this.main.config.allowDeselect)return void this.singleSelected.deselect.classList.add("ss-hide");""===this.main.selected()?this.singleSelected.deselect.classList.add("ss-hide"):this.singleSelected.deselect.classList.remove("ss-hide")}},a.prototype.multiSelectedDiv=function(){var e=this,t=document.createElement("div");t.classList.add(this.main.config.multiSelected);var n=document.createElement("div");n.classList.add(this.main.config.values),t.appendChild(n);var r=document.createElement("div");r.classList.add(this.main.config.add);var i=document.createElement("span");return i.classList.add(this.main.config.plus),i.onclick=function(t){e.main.data.contentOpen&&(e.main.close(),t.stopPropagation())},r.appendChild(i),t.appendChild(r),t.onclick=function(t){e.main.config.isEnabled&&(t.target.classList.contains(e.main.config.valueDelete)||(e.main.data.contentOpen?e.main.close():e.main.open()))},{container:t,values:n,add:r,plus:i}},a.prototype.values=function(){if(this.multiSelected){for(var e,t=this.multiSelected.values.childNodes,n=this.main.data.getSelected(),r=[],i=0,o=t;i<o.length;i++){var a=o[i];e=!0;for(var s=0,l=n;s<l.length;s++){var u=l[s];String(u.id)===String(a.dataset.id)&&(e=!1)}e&&r.push(a)}for(var c=0,f=r;c<f.length;c++){var d=f[c];d.classList.add("ss-out"),this.multiSelected.values.removeChild(d)}for(t=this.multiSelected.values.childNodes,u=0;u<n.length;u++){e=!1;for(var h=0,p=t;h<p.length;h++)a=p[h],String(n[u].id)===String(a.dataset.id)&&(e=!0);e||(0!==t.length&&HTMLElement.prototype.insertAdjacentElement?0===u?this.multiSelected.values.insertBefore(this.valueDiv(n[u]),t[u]):t[u-1].insertAdjacentElement("afterend",this.valueDiv(n[u])):this.multiSelected.values.appendChild(this.valueDiv(n[u])))}if(0===n.length){var g=document.createElement("span");g.classList.add(this.main.config.disabled),g.innerHTML=this.main.config.placeholderText,this.multiSelected.values.innerHTML=g.outerHTML}}},a.prototype.valueDiv=function(e){var t=this,n=document.createElement("div");n.classList.add(this.main.config.value),n.dataset.id=e.id;var r=document.createElement("span");if(r.classList.add(this.main.config.valueText),r.innerHTML=e.innerHTML&&!0!==this.main.config.valuesUseText?e.innerHTML:e.text,n.appendChild(r),!e.mandatory){var i=document.createElement("span");i.classList.add(this.main.config.valueDelete),i.innerHTML=this.main.config.deselectLabel,i.onclick=function(n){n.preventDefault(),n.stopPropagation();var r=!1;if(t.main.beforeOnChange||(r=!0),t.main.beforeOnChange){for(var i=t.main.data.getSelected(),o=JSON.parse(JSON.stringify(i)),a=0;a<o.length;a++)o[a].id===e.id&&o.splice(a,1);!1!==t.main.beforeOnChange(o)&&(r=!0)}r&&(t.main.data.removeFromSelected(e.id,"id"),t.main.render(),t.main.select.setValue(),t.main.data.onDataChange())},n.appendChild(i)}return n},a.prototype.contentDiv=function(){var e=document.createElement("div");return e.classList.add(this.main.config.content),e},a.prototype.searchDiv=function(){var e=this,t=document.createElement("div"),n=document.createElement("input"),r=document.createElement("div");t.classList.add(this.main.config.search);var o={container:t,input:n};return this.main.config.showSearch||(t.classList.add(this.main.config.hide),n.readOnly=!0),n.type="search",n.placeholder=this.main.config.searchPlaceholder,n.tabIndex=0,n.setAttribute("aria-label",this.main.config.searchPlaceholder),n.setAttribute("autocapitalize","off"),n.setAttribute("autocomplete","off"),n.setAttribute("autocorrect","off"),n.onclick=function(t){setTimeout((function(){""===t.target.value&&e.main.search("")}),10)},n.onkeydown=function(t){"ArrowUp"===t.key?(e.main.open(),e.highlightUp(),t.preventDefault()):"ArrowDown"===t.key?(e.main.open(),e.highlightDown(),t.preventDefault()):"Tab"===t.key?e.main.data.contentOpen?e.main.close():setTimeout((function(){e.main.close()}),e.main.config.timeoutDelay):"Enter"===t.key&&t.preventDefault()},n.onkeyup=function(t){var i=t.target;if("Enter"===t.key){if(e.main.addable&&t.ctrlKey)return r.click(),t.preventDefault(),void t.stopPropagation();var o=e.list.querySelector("."+e.main.config.highlighted);o&&o.click()}else"ArrowUp"===t.key||"ArrowDown"===t.key||("Escape"===t.key?e.main.close():e.main.config.showSearch&&e.main.data.contentOpen?e.main.search(i.value):n.value="");t.preventDefault(),t.stopPropagation()},n.onfocus=function(){e.main.open()},t.appendChild(n),this.main.addable&&(r.classList.add(this.main.config.addable),r.innerHTML="+",r.onclick=function(t){if(e.main.addable){t.preventDefault(),t.stopPropagation();var n=e.search.input.value;if(""===n.trim())return void e.search.input.focus();var r=e.main.addable(n),o="";if(!r)return;"object"==typeof r?i.validateOption(r)&&(e.main.addData(r),o=r.value?r.value:r.text):(e.main.addData(e.main.data.newOption({text:r,value:r})),o=r),e.main.search(""),setTimeout((function(){e.main.set(o,"value",!1,!1)}),100),e.main.config.closeOnSelect&&setTimeout((function(){e.main.close()}),100)}},t.appendChild(r),o.addable=r),o},a.prototype.highlightUp=function(){var e=this.list.querySelector("."+this.main.config.highlighted),t=null;if(e)for(t=e.previousSibling;null!==t&&t.classList.contains(this.main.config.disabled);)t=t.previousSibling;else{var n=this.list.querySelectorAll("."+this.main.config.option+":not(."+this.main.config.disabled+")");t=n[n.length-1]}if(t&&t.classList.contains(this.main.config.optgroupLabel)&&(t=null),null===t){var i=e.parentNode;if(i.classList.contains(this.main.config.optgroup)&&i.previousSibling){var o=i.previousSibling.querySelectorAll("."+this.main.config.option+":not(."+this.main.config.disabled+")");o.length&&(t=o[o.length-1])}}t&&(e&&e.classList.remove(this.main.config.highlighted),t.classList.add(this.main.config.highlighted),r.ensureElementInView(this.list,t))},a.prototype.highlightDown=function(){var e=this.list.querySelector("."+this.main.config.highlighted),t=null;if(e)for(t=e.nextSibling;null!==t&&t.classList.contains(this.main.config.disabled);)t=t.nextSibling;else t=this.list.querySelector("."+this.main.config.option+":not(."+this.main.config.disabled+")");if(null===t&&null!==e){var n=e.parentNode;n.classList.contains(this.main.config.optgroup)&&n.nextSibling&&(t=n.nextSibling.querySelector("."+this.main.config.option+":not(."+this.main.config.disabled+")"))}t&&(e&&e.classList.remove(this.main.config.highlighted),t.classList.add(this.main.config.highlighted),r.ensureElementInView(this.list,t))},a.prototype.listDiv=function(){var e=document.createElement("div");return e.classList.add(this.main.config.list),e},a.prototype.options=function(e){void 0===e&&(e="");var t,n=this.main.data.filtered||this.main.data.data;if((this.list.innerHTML="")!==e)return(t=document.createElement("div")).classList.add(this.main.config.option),t.classList.add(this.main.config.disabled),t.innerHTML=e,void this.list.appendChild(t);if(this.main.config.isAjax&&this.main.config.isSearching)return(t=document.createElement("div")).classList.add(this.main.config.option),t.classList.add(this.main.config.disabled),t.innerHTML=this.main.config.searchingText,void this.list.appendChild(t);if(0===n.length){var r=document.createElement("div");return r.classList.add(this.main.config.option),r.classList.add(this.main.config.disabled),r.innerHTML=this.main.config.searchText,void this.list.appendChild(r)}for(var i=function(e){if(e.hasOwnProperty("label")){var t=e,n=document.createElement("div");n.classList.add(o.main.config.optgroup);var r=document.createElement("div");r.classList.add(o.main.config.optgroupLabel),o.main.config.selectByGroup&&o.main.config.isMultiple&&r.classList.add(o.main.config.optgroupLabelSelectable),r.innerHTML=t.label,n.appendChild(r);var i=t.options;if(i){for(var a=0,s=i;a<s.length;a++){var l=s[a];n.appendChild(o.option(l))}if(o.main.config.selectByGroup&&o.main.config.isMultiple){var u=o;r.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation();for(var t=0,r=n.children;t<r.length;t++){var i=r[t];-1!==i.className.indexOf(u.main.config.option)&&i.click()}}))}}o.list.appendChild(n)}else o.list.appendChild(o.option(e))},o=this,a=0,s=n;a<s.length;a++)i(s[a])},a.prototype.option=function(e){if(e.placeholder){var t=document.createElement("div");return t.classList.add(this.main.config.option),t.classList.add(this.main.config.hide),t}var n=document.createElement("div");n.classList.add(this.main.config.option),e.class&&e.class.split(" ").forEach((function(e){n.classList.add(e)})),e.style&&(n.style.cssText=e.style);var i=this.main.data.getSelected();n.dataset.id=e.id,this.main.config.searchHighlight&&this.main.slim&&e.innerHTML&&""!==this.main.slim.search.input.value.trim()?n.innerHTML=r.highlight(e.innerHTML,this.main.slim.search.input.value,this.main.config.searchHighlighter):e.innerHTML&&(n.innerHTML=e.innerHTML),this.main.config.showOptionTooltips&&n.textContent&&n.setAttribute("title",n.textContent);var o=this;n.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation();var n=this.dataset.id;if(!0===e.selected&&o.main.config.allowDeselectOption){var r=!1;if(o.main.beforeOnChange&&o.main.config.isMultiple||(r=!0),o.main.beforeOnChange&&o.main.config.isMultiple){for(var a=o.main.data.getSelected(),s=JSON.parse(JSON.stringify(a)),l=0;l<s.length;l++)s[l].id===n&&s.splice(l,1);!1!==o.main.beforeOnChange(s)&&(r=!0)}r&&(o.main.config.isMultiple?(o.main.data.removeFromSelected(n,"id"),o.main.render(),o.main.select.setValue(),o.main.data.onDataChange()):o.main.set(""))}else{if(e.disabled||e.selected)return;if(o.main.config.limit&&Array.isArray(i)&&o.main.config.limit<=i.length)return;if(o.main.beforeOnChange){var u=void 0,c=JSON.parse(JSON.stringify(o.main.data.getObjectFromData(n)));c.selected=!0,o.main.config.isMultiple?(u=JSON.parse(JSON.stringify(i))).push(c):u=JSON.parse(JSON.stringify(c)),!1!==o.main.beforeOnChange(u)&&o.main.set(n,"id",o.main.config.closeOnSelect)}else o.main.set(n,"id",o.main.config.closeOnSelect)}}));var a=i&&r.isValueInArrayOfObjects(i,"id",e.id);return(e.disabled||a)&&(n.onclick=null,o.main.config.allowDeselectOption||n.classList.add(this.main.config.disabled),o.main.config.hideSelectedOption&&n.classList.add(this.main.config.hide)),a?n.classList.add(this.main.config.optionSelected):n.classList.remove(this.main.config.optionSelected),n},a);function a(e){this.main=e.main,this.container=this.containerDiv(),this.content=this.contentDiv(),this.search=this.searchDiv(),this.list=this.listDiv(),this.options(),this.singleSelected=null,this.multiSelected=null,this.main.config.isMultiple?(this.multiSelected=this.multiSelectedDiv(),this.multiSelected&&this.container.appendChild(this.multiSelected.container)):(this.singleSelected=this.singleSelectedDiv(),this.container.appendChild(this.singleSelected.container)),this.main.config.addToBody?(this.content.classList.add(this.main.config.id),document.body.appendChild(this.content)):this.container.appendChild(this.content),this.content.appendChild(this.search.container),this.content.appendChild(this.list)}t.Slim=o}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(e){return t[e]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=2).default;function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var t,n}()},1377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(9097)),i=u(n(5358)),o=u(n(275)),a=u(n(6237)),s=n(3098),l=n(8538);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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 d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cfg=t,this.indentation=new i.default(this.cfg.indent),this.inlineBlock=new o.default,this.params=new a.default(this.cfg.params),this.previousReservedToken={},this.tokens=[],this.index=0}var t,n;return t=e,n=[{key:"tokenizer",value:function(){throw new Error("tokenizer() not implemented by subclass")}},{key:"tokenOverride",value:function(e){return e}},{key:"format",value:function(e){return this.tokens=this.tokenizer().tokenize(e),this.getFormattedQueryFromTokens().trim()}},{key:"getFormattedQueryFromTokens",value:function(){var e=this,t="";return this.tokens.forEach((function(n,i){e.index=i,(n=e.tokenOverride(n)).type===r.default.LINE_COMMENT?t=e.formatLineComment(n,t):n.type===r.default.BLOCK_COMMENT?t=e.formatBlockComment(n,t):n.type===r.default.RESERVED_TOP_LEVEL?(t=e.formatTopLevelReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_TOP_LEVEL_NO_INDENT?(t=e.formatTopLevelReservedWordNoIndent(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED_NEWLINE?(t=e.formatNewlineReservedWord(n,t),e.previousReservedToken=n):n.type===r.default.RESERVED?(t=e.formatWithSpaces(n,t),e.previousReservedToken=n):t=n.type===r.default.OPEN_PAREN?e.formatOpeningParentheses(n,t):n.type===r.default.CLOSE_PAREN?e.formatClosingParentheses(n,t):n.type===r.default.PLACEHOLDER?e.formatPlaceholder(n,t):","===n.value?e.formatComma(n,t):":"===n.value?e.formatWithSpaceAfter(n,t):"."===n.value?e.formatWithoutSpaces(n,t):";"===n.value?e.formatQuerySeparator(n,t):e.formatWithSpaces(n,t)})),t}},{key:"formatLineComment",value:function(e,t){return this.addNewline(t+this.show(e))}},{key:"formatBlockComment",value:function(e,t){return this.addNewline(this.addNewline(t)+this.indentComment(e.value))}},{key:"indentComment",value:function(e){return e.replace(/\n[\t ]*/g,"\n"+this.indentation.getIndent()+" ")}},{key:"formatTopLevelReservedWordNoIndent",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t)+this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatTopLevelReservedWord",value:function(e,t){return this.indentation.decreaseTopLevel(),t=this.addNewline(t),this.indentation.increaseTopLevel(),t+=this.equalizeWhitespace(this.show(e)),this.addNewline(t)}},{key:"formatNewlineReservedWord",value:function(e,t){return(0,l.isAnd)(e)&&(0,l.isBetween)(this.tokenLookBehind(2))?this.formatWithSpaces(e,t):this.addNewline(t)+this.equalizeWhitespace(this.show(e))+" "}},{key:"equalizeWhitespace",value:function(e){return e.replace(/[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g," ")}},{key:"formatOpeningParentheses",value:function(e,t){var n,i,o=(c(n={},r.default.OPEN_PAREN,!0),c(n,r.default.LINE_COMMENT,!0),c(n,r.default.OPERATOR,!0),n);return 0!==e.whitespaceBefore.length||o[null===(i=this.tokenLookBehind())||void 0===i?void 0:i.type]||(t=(0,s.trimSpacesEnd)(t)),t+=this.show(e),this.inlineBlock.beginIfPossible(this.tokens,this.index),this.inlineBlock.isActive()||(this.indentation.increaseBlockLevel(),t=this.addNewline(t)),t}},{key:"formatClosingParentheses",value:function(e,t){return this.inlineBlock.isActive()?(this.inlineBlock.end(),this.formatWithSpaceAfter(e,t)):(this.indentation.decreaseBlockLevel(),this.formatWithSpaces(e,this.addNewline(t)))}},{key:"formatPlaceholder",value:function(e,t){return t+this.params.get(e)+" "}},{key:"formatComma",value:function(e,t){return t=(0,s.trimSpacesEnd)(t)+this.show(e)+" ",this.inlineBlock.isActive()||(0,l.isLimit)(this.previousReservedToken)?t:this.addNewline(t)}},{key:"formatWithSpaceAfter",value:function(e,t){return(0,s.trimSpacesEnd)(t)+this.show(e)+" "}},{key:"formatWithoutSpaces",value:function(e,t){return(0,s.trimSpacesEnd)(t)+this.show(e)}},{key:"formatWithSpaces",value:function(e,t){return t+this.show(e)+" "}},{key:"formatQuerySeparator",value:function(e,t){return this.indentation.resetIndentation(),(0,s.trimSpacesEnd)(t)+this.show(e)+"\n".repeat(this.cfg.linesBetweenQueries||1)}},{key:"show",value:function(e){var t=e.type,n=e.value;return!this.cfg.uppercase||t!==r.default.RESERVED&&t!==r.default.RESERVED_TOP_LEVEL&&t!==r.default.RESERVED_TOP_LEVEL_NO_INDENT&&t!==r.default.RESERVED_NEWLINE&&t!==r.default.OPEN_PAREN&&t!==r.default.CLOSE_PAREN?n:n.toUpperCase()}},{key:"addNewline",value:function(e){return(e=(0,s.trimSpacesEnd)(e)).endsWith("\n")||(e+="\n"),e+this.indentation.getIndent()}},{key:"tokenLookBehind",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index-e]}},{key:"tokenLookAhead",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.tokens[this.index+e]}}],n&&f(t.prototype,n),e}();t.default=d,e.exports=t.default},5358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(3098);function i(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 o="top-level",a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indent=t||" ",this.indentTypes=[]}var t,n;return t=e,(n=[{key:"getIndent",value:function(){return this.indent.repeat(this.indentTypes.length)}},{key:"increaseTopLevel",value:function(){this.indentTypes.push(o)}},{key:"increaseBlockLevel",value:function(){this.indentTypes.push("block-level")}},{key:"decreaseTopLevel",value:function(){this.indentTypes.length>0&&(0,r.last)(this.indentTypes)===o&&this.indentTypes.pop()}},{key:"decreaseBlockLevel",value:function(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===o;);}},{key:"resetIndentation",value:function(){this.indentTypes=[]}}])&&i(t.prototype,n),e}();t.default=a,e.exports=t.default},275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(9097))&&r.__esModule?r:{default:r};function o(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 a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.level=0}var t,n;return t=e,(n=[{key:"beginIfPossible",value:function(e,t){0===this.level&&this.isInlineBlock(e,t)?this.level=1:this.level>0?this.level++:this.level=0}},{key:"end",value:function(){this.level--}},{key:"isActive",value:function(){return this.level>0}},{key:"isInlineBlock",value:function(e,t){for(var n=0,r=0,o=t;o<e.length;o++){var a=e[o];if((n+=a.value.length)>50)return!1;if(a.type===i.default.OPEN_PAREN)r++;else if(a.type===i.default.CLOSE_PAREN&&0==--r)return!0;if(this.isForbiddenToken(a))return!1}return!1}},{key:"isForbiddenToken",value:function(e){var t=e.type,n=e.value;return t===i.default.RESERVED_TOP_LEVEL||t===i.default.RESERVED_NEWLINE||t===i.default.COMMENT||t===i.default.BLOCK_COMMENT||";"===n}}])&&o(t.prototype,n),e}();t.default=a,e.exports=t.default},6237:(e,t)=>{"use strict";function n(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)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.params=t,this.index=0}var t,r;return t=e,(r=[{key:"get",value:function(e){var t=e.key,n=e.value;return this.params?t?this.params[t]:this.params[this.index++]:n}}])&&n(t.prototype,r),e}();t.default=r,e.exports=t.default},4795:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(9097))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(3663)),s=n(3098);function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){(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 h(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 p=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.WHITESPACE_REGEX=/^([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/,this.NUMBER_REGEX=/^((\x2D[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?[0-9]+(\.[0-9]+)?([Ee]\x2D?[0-9]+(\.[0-9]+)?)?|0x[0-9A-Fa-f]+|0b[01]+)\b/,this.OPERATOR_REGEX=a.createOperatorRegex(["<>","<=",">="].concat(function(e){if(Array.isArray(e))return d(e)}(n=t.operators||[])||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return d(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)?d(e,t):void 0}}(n)||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.")}())),this.BLOCK_COMMENT_REGEX=/^(\/\*(?:(?![])[\s\S])*?(?:\*\/|$))/,this.LINE_COMMENT_REGEX=a.createLineCommentRegex(t.lineCommentTypes),this.RESERVED_TOP_LEVEL_REGEX=a.createReservedWordRegex(t.reservedTopLevelWords),this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX=a.createReservedWordRegex(t.reservedTopLevelWordsNoIndent),this.RESERVED_NEWLINE_REGEX=a.createReservedWordRegex(t.reservedNewlineWords),this.RESERVED_PLAIN_REGEX=a.createReservedWordRegex(t.reservedWords),this.WORD_REGEX=a.createWordRegex(t.specialWordChars),this.STRING_REGEX=a.createStringRegex(t.stringTypes),this.OPEN_PAREN_REGEX=a.createParenRegex(t.openParens),this.CLOSE_PAREN_REGEX=a.createParenRegex(t.closeParens),this.INDEXED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.indexedPlaceholderTypes,"[0-9]*"),this.IDENT_NAMED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.namedPlaceholderTypes,"[a-zA-Z0-9._$]+"),this.STRING_NAMED_PLACEHOLDER_REGEX=a.createPlaceholderRegex(t.namedPlaceholderTypes,a.createStringPattern(t.stringTypes))}var t,n;return t=e,(n=[{key:"tokenize",value:function(e){for(var t,n=[];e.length;){var r=this.getWhitespace(e);(e=e.substring(r.length)).length&&(t=this.getNextToken(e,t),e=e.substring(t.value.length),n.push(c(c({},t),{},{whitespaceBefore:r})))}return n}},{key:"getWhitespace",value:function(e){var t=e.match(this.WHITESPACE_REGEX);return t?t[1]:""}},{key:"getNextToken",value:function(e,t){return this.getCommentToken(e)||this.getStringToken(e)||this.getOpenParenToken(e)||this.getCloseParenToken(e)||this.getPlaceholderToken(e)||this.getNumberToken(e)||this.getReservedWordToken(e,t)||this.getWordToken(e)||this.getOperatorToken(e)}},{key:"getCommentToken",value:function(e){return this.getLineCommentToken(e)||this.getBlockCommentToken(e)}},{key:"getLineCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.LINE_COMMENT,regex:this.LINE_COMMENT_REGEX})}},{key:"getBlockCommentToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.BLOCK_COMMENT,regex:this.BLOCK_COMMENT_REGEX})}},{key:"getStringToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.STRING,regex:this.STRING_REGEX})}},{key:"getOpenParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPEN_PAREN,regex:this.OPEN_PAREN_REGEX})}},{key:"getCloseParenToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.CLOSE_PAREN,regex:this.CLOSE_PAREN_REGEX})}},{key:"getPlaceholderToken",value:function(e){return this.getIdentNamedPlaceholderToken(e)||this.getStringNamedPlaceholderToken(e)||this.getIndexedPlaceholderToken(e)}},{key:"getIdentNamedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.IDENT_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getStringNamedPlaceholderToken",value:function(e){var t=this;return this.getPlaceholderTokenWithKey({input:e,regex:this.STRING_NAMED_PLACEHOLDER_REGEX,parseKey:function(e){return t.getEscapedPlaceholderKey({key:e.slice(2,-1),quoteChar:e.slice(-1)})}})}},{key:"getIndexedPlaceholderToken",value:function(e){return this.getPlaceholderTokenWithKey({input:e,regex:this.INDEXED_PLACEHOLDER_REGEX,parseKey:function(e){return e.slice(1)}})}},{key:"getPlaceholderTokenWithKey",value:function(e){var t=e.input,n=e.regex,r=e.parseKey,i=this.getTokenOnFirstMatch({input:t,regex:n,type:o.default.PLACEHOLDER});return i&&(i.key=r(i.value)),i}},{key:"getEscapedPlaceholderKey",value:function(e){var t=e.key,n=e.quoteChar;return t.replace(new RegExp((0,s.escapeRegExp)("\\"+n),"gu"),n)}},{key:"getNumberToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.NUMBER,regex:this.NUMBER_REGEX})}},{key:"getOperatorToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.OPERATOR,regex:this.OPERATOR_REGEX})}},{key:"getReservedWordToken",value:function(e,t){if(!t||!t.value||"."!==t.value)return this.getTopLevelReservedToken(e)||this.getNewlineReservedToken(e)||this.getTopLevelReservedTokenNoIndent(e)||this.getPlainReservedToken(e)}},{key:"getTopLevelReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL,regex:this.RESERVED_TOP_LEVEL_REGEX})}},{key:"getNewlineReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_NEWLINE,regex:this.RESERVED_NEWLINE_REGEX})}},{key:"getTopLevelReservedTokenNoIndent",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED_TOP_LEVEL_NO_INDENT,regex:this.RESERVED_TOP_LEVEL_NO_INDENT_REGEX})}},{key:"getPlainReservedToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.RESERVED,regex:this.RESERVED_PLAIN_REGEX})}},{key:"getWordToken",value:function(e){return this.getTokenOnFirstMatch({input:e,type:o.default.WORD,regex:this.WORD_REGEX})}},{key:"getTokenOnFirstMatch",value:function(e){var t=e.input,n=e.type,r=e.regex,i=t.match(r);return i?{type:n,value:i[1]}:void 0}}])&&h(t.prototype,n),e}();t.default=p,e.exports=t.default},3663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createOperatorRegex=function(e){return new RegExp("^(".concat((0,r.sortByLengthDesc)(e).map(r.escapeRegExp).join("|"),"|.)"),"u")},t.createLineCommentRegex=function(e){return new RegExp("^((?:".concat(e.map((function(e){return(0,r.escapeRegExp)(e)})).join("|"),").*?)(?:\r\n|\r|\n|$)"),"u")},t.createReservedWordRegex=function(e){if(0===e.length)return new RegExp("^\b$","u");var t=(0,r.sortByLengthDesc)(e).join("|").replace(/ /g,"\\s+");return new RegExp("^(".concat(t,")\\b"),"iu")},t.createWordRegex=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new RegExp("^([\\p{Alphabetic}\\p{Mark}\\p{Decimal_Number}\\p{Connector_Punctuation}\\p{Join_Control}".concat(e.join(""),"]+)"),"u")},t.createStringRegex=function(e){return new RegExp("^("+i(e)+")","u")},t.createStringPattern=i,t.createParenRegex=function(e){return new RegExp("^("+e.map(o).join("|")+")","iu")},t.createPlaceholderRegex=function(e,t){if((0,r.isEmpty)(e))return!1;var n=e.map(r.escapeRegExp).join("|");return new RegExp("^((?:".concat(n,")(?:").concat(t,"))"),"u")};var r=n(3098);function i(e){var t={"``":"((`[^`]*($|`))+)","{}":"((\\{[^\\}]*($|\\}))+)","[]":"((\\[[^\\]]*($|\\]))(\\][^\\]]*($|\\]))*)",'""':'(("[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',"''":"(('[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","N''":"((N'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)","U&''":"((U&'[^'\\\\]*(?:\\\\.[^'\\\\]*)*('|$))+)",'U&""':'((U&"[^"\\\\]*(?:\\\\.[^"\\\\]*)*("|$))+)',$$:"((?<tag>\\$\\w*\\$)[\\s\\S]*?(?:\\k<tag>|$))"};return e.map((function(e){return t[e]})).join("|")}function o(e){return 1===e.length?(0,r.escapeRegExp)(e):"\\b"+e+"\\b"}},8538:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEnd=t.isWindow=t.isBy=t.isSet=t.isLimit=t.isBetween=t.isAnd=void 0;var r,i=(r=n(9097))&&r.__esModule?r:{default:r},o=function(e,t){return function(n){return(null==n?void 0:n.type)===e&&t.test(null==n?void 0:n.value)}},a=o(i.default.RESERVED_NEWLINE,/^AND$/i);t.isAnd=a;var s=o(i.default.RESERVED,/^BETWEEN$/i);t.isBetween=s;var l=o(i.default.RESERVED_TOP_LEVEL,/^LIMIT$/i);t.isLimit=l;var u=o(i.default.RESERVED_TOP_LEVEL,/^[S\u017F]ET$/i);t.isSet=u;var c=o(i.default.RESERVED,/^BY$/i);t.isBy=c;var f=o(i.default.RESERVED_TOP_LEVEL,/^WINDOW$/i);t.isWindow=f;var d=o(i.default.CLOSE_PAREN,/^END$/i);t.isEnd=d},9097:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={WORD:"word",STRING:"string",RESERVED:"reserved",RESERVED_TOP_LEVEL:"reserved-top-level",RESERVED_TOP_LEVEL_NO_INDENT:"reserved-top-level-no-indent",RESERVED_NEWLINE:"reserved-newline",OPERATOR:"operator",OPEN_PAREN:"open-paren",CLOSE_PAREN:"close-paren",LINE_COMMENT:"line-comment",BLOCK_COMMENT:"block-comment",NUMBER:"number",PLACEHOLDER:"placeholder"},e.exports=t.default},8007:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ABS","ACTIVATE","ALIAS","ALL","ALLOCATE","ALLOW","ALTER","ANY","ARE","ARRAY","AS","ASC","ASENSITIVE","ASSOCIATE","ASUTIME","ASYMMETRIC","AT","ATOMIC","ATTRIBUTES","AUDIT","AUTHORIZATION","AUX","AUXILIARY","AVG","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BUFFERPOOL","BY","CACHE","CALL","CALLED","CAPTURE","CARDINALITY","CASCADED","CASE","CAST","CCSID","CEIL","CEILING","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOB","CLONE","CLOSE","CLUSTER","COALESCE","COLLATE","COLLECT","COLLECTION","COLLID","COLUMN","COMMENT","COMMIT","CONCAT","CONDITION","CONNECT","CONNECTION","CONSTRAINT","CONTAINS","CONTINUE","CONVERT","CORR","CORRESPONDING","COUNT","COUNT_BIG","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SERVER","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATAPARTITIONNAME","DATAPARTITIONNUM","DATE","DAY","DAYS","DB2GENERAL","DB2GENRL","DB2SQL","DBINFO","DBPARTITIONNAME","DBPARTITIONNUM","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFINITION","DELETE","DENSERANK","DENSE_RANK","DEREF","DESCRIBE","DESCRIPTOR","DETERMINISTIC","DIAGNOSTICS","DISABLE","DISALLOW","DISCONNECT","DISTINCT","DO","DOCUMENT","DOUBLE","DROP","DSSIZE","DYNAMIC","EACH","EDITPROC","ELEMENT","ELSE","ELSEIF","ENABLE","ENCODING","ENCRYPTION","END","END-EXEC","ENDING","ERASE","ESCAPE","EVERY","EXCEPTION","EXCLUDING","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXP","EXPLAIN","EXTENDED","EXTERNAL","EXTRACT","FALSE","FENCED","FETCH","FIELDPROC","FILE","FILTER","FINAL","FIRST","FLOAT","FLOOR","FOR","FOREIGN","FREE","FULL","FUNCTION","FUSION","GENERAL","GENERATED","GET","GLOBAL","GOTO","GRANT","GRAPHIC","GROUP","GROUPING","HANDLER","HASH","HASHED_VALUE","HINT","HOLD","HOUR","HOURS","IDENTITY","IF","IMMEDIATE","IN","INCLUDING","INCLUSIVE","INCREMENT","INDEX","INDICATOR","INDICATORS","INF","INFINITY","INHERIT","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTEGRITY","INTERSECTION","INTERVAL","INTO","IS","ISOBID","ISOLATION","ITERATE","JAR","JAVA","KEEP","KEY","LABEL","LANGUAGE","LARGE","LATERAL","LC_CTYPE","LEADING","LEAVE","LEFT","LIKE","LINKTYPE","LN","LOCAL","LOCALDATE","LOCALE","LOCALTIME","LOCALTIMESTAMP","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","LOWER","MAINTAINED","MATCH","MATERIALIZED","MAX","MAXVALUE","MEMBER","MERGE","METHOD","MICROSECOND","MICROSECONDS","MIN","MINUTE","MINUTES","MINVALUE","MOD","MODE","MODIFIES","MODULE","MONTH","MONTHS","MULTISET","NAN","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NEW_TABLE","NEXTVAL","NO","NOCACHE","NOCYCLE","NODENAME","NODENUMBER","NOMAXVALUE","NOMINVALUE","NONE","NOORDER","NORMALIZE","NORMALIZED","NOT","NULL","NULLIF","NULLS","NUMERIC","NUMPARTS","OBID","OCTET_LENGTH","OF","OFFSET","OLD","OLD_TABLE","ON","ONLY","OPEN","OPTIMIZATION","OPTIMIZE","OPTION","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","PACKAGE","PADDED","PAGESIZE","PARAMETER","PART","PARTITION","PARTITIONED","PARTITIONING","PARTITIONS","PASSWORD","PATH","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","PIECESIZE","PLAN","POSITION","POWER","PRECISION","PREPARE","PREVVAL","PRIMARY","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","RANGE","RANK","READ","READS","REAL","RECOVERY","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RENAME","REPEAT","RESET","RESIGNAL","RESTART","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROUTINE","ROW","ROWNUMBER","ROWS","ROWSET","ROW_NUMBER","RRN","RUN","SAVEPOINT","SCHEMA","SCOPE","SCRATCHPAD","SCROLL","SEARCH","SECOND","SECONDS","SECQTY","SECURITY","SENSITIVE","SEQUENCE","SESSION","SESSION_USER","SIGNAL","SIMILAR","SIMPLE","SMALLINT","SNAN","SOME","SOURCE","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLID","SQLSTATE","SQLWARNING","SQRT","STACKED","STANDARD","START","STARTING","STATEMENT","STATIC","STATMENT","STAY","STDDEV_POP","STDDEV_SAMP","STOGROUP","STORES","STYLE","SUBMULTISET","SUBSTRING","SUM","SUMMARY","SYMMETRIC","SYNONYM","SYSFUN","SYSIBM","SYSPROC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","TABLESPACE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TYPE","UESCAPE","UNDO","UNIQUE","UNKNOWN","UNNEST","UNTIL","UPPER","USAGE","USER","USING","VALIDPROC","VALUE","VARCHAR","VARIABLE","VARIANT","VARYING","VAR_POP","VAR_SAMP","VCAT","VERSION","VIEW","VOLATILE","VOLUMES","WHEN","WHENEVER","WHILE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","WLM","WRITE","XMLELEMENT","XMLEXISTS","XMLNAMESPACES","YEAR","YEARS"],h=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FETCH FIRST","FROM","GROUP BY","GO","HAVING","INSERT INTO","INTERSECT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``","[]"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:["**","!=","!>","!>","||"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},1231:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DO_DOMAIN_IDS","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","GENERAL","GRANT","GROUP","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","IS","ITERATE","JOIN","KEY","KEYS","KILL","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_HEARTBEAT_PERIOD","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NULL","NUMERIC","ON","OPTIMIZE","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PAGE_CHECKSUM","PARSE_VCOL_EXPR","PARTITION","POSITION","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","READ","READS","READ_WRITE","REAL","RECURSIVE","REF_SYSTEM_ID","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","RETURNING","REVOKE","RIGHT","RLIKE","ROWS","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SLOW","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STRAIGHT_JOIN","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],h=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},59:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],h=["ADD","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","CROSS JOIN","NATURAL JOIN","STRAIGHT_JOIN","NATURAL LEFT JOIN","NATURAL LEFT OUTER JOIN","NATURAL RIGHT JOIN","NATURAL RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:["``","''",'""'],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--","#"],specialWordChars:["@"],operators:[":=","<<",">>","!=","<>","<=>","&&","||","->","->>"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},883:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","CONNECT","CONTINUE","CORRELATE","COVER","CREATE","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FIRST","FLATTEN","FOR","FORCE","FROM","FUNCTION","GRANT","GROUP","GSI","HAVING","IF","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LAST","LEFT","LET","LETTING","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MISSING","NAMESPACE","NEST","NOT","NULL","NUMBER","OBJECT","OFFSET","ON","OPTION","OR","ORDER","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROCEDURE","PUBLIC","RAW","REALM","REDUCE","RENAME","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","SATISFIES","SCHEMA","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TO","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WITH","WITHIN","WORK","XOR"],h=["DELETE FROM","EXCEPT ALL","EXCEPT","EXPLAIN DELETE FROM","EXPLAIN UPDATE","EXPLAIN UPSERT","FROM","GROUP BY","HAVING","INFER","INSERT INTO","LET","LIMIT","MERGE","NEST","ORDER BY","PREPARE","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNNEST","UPDATE","UPSERT","USE KEYS","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","OR","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``"],openParens:["(","[","{"],closeParens:[")","]","}"],namedPlaceholderTypes:["$"],lineCommentTypes:["#","--"],operators:["==","!="]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},8477:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(1377)),o=n(8538),a=l(n(4795)),s=l(n(9097));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var p=["A","ACCESSIBLE","AGENT","AGGREGATE","ALL","ALTER","ANY","ARRAY","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BETWEEN","BFILE_BASE","BINARY_INTEGER","BINARY","BLOB_BASE","BLOCK","BODY","BOOLEAN","BOTH","BOUND","BREADTH","BULK","BY","BYTE","C","CALL","CALLING","CASCADE","CASE","CHAR_BASE","CHAR","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLONE","CLOSE","CLUSTER","CLUSTERS","COALESCE","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONTINUE","CONVERT","COUNT","CRASH","CREATE","CREDENTIAL","CURRENT","CURRVAL","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE_BASE","DATE","DAY","DECIMAL","DEFAULT","DEFINE","DELETE","DEPTH","DESC","DETERMINISTIC","DIRECTORY","DISTINCT","DO","DOUBLE","DROP","DURATION","ELEMENT","ELSIF","EMPTY","END","ESCAPE","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTENDS","EXTERNAL","EXTRACT","FALSE","FETCH","FINAL","FIRST","FIXED","FLOAT","FOR","FORALL","FORCE","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSTANTIABLE","INT","INTEGER","INTERFACE","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMITED","LOCAL","LOCK","LONG","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUTE","MLSLABEL","MOD","MODE","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NATURAL","NATURALN","NCHAR","NEW","NEXTVAL","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NULLIF","NUMBER_BASE","NUMBER","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","OLD","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","ORACLE","ORADATA","ORDER","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERLAPS","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARENT","PARTITION","PASCAL","PCTFREE","PIPE","PIPELINED","PLS_INTEGER","PLUGGABLE","POSITIVE","POSITIVEN","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","REAL","RECORD","REF","REFERENCE","RELEASE","RELIES_ON","REM","REMAINDER","RENAME","RESOURCE","RESULT_CACHE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","ROWID","ROWNUM","ROWTYPE","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SEARCH","SECOND","SEGMENT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SHARE","SHORT","SIZE_T","SIZE","SMALLINT","SOME","SPACE","SPARSE","SQL","SQLCODE","SQLDATA","SQLERRM","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUCCESSFUL","SUM","SYNONYM","SYSDATE","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSACTION","TRANSACTIONAL","TRIGGER","TRUE","TRUSTED","TYPE","UB1","UB2","UB4","UID","UNDER","UNIQUE","UNPLUG","UNSIGNED","UNTRUSTED","USE","USER","USING","VALIDATE","VALIST","VALUE","VARCHAR","VARCHAR2","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHENEVER","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"],g=["ADD","ALTER COLUMN","ALTER TABLE","BEGIN","CONNECT BY","DECLARE","DELETE FROM","DELETE","END","EXCEPT","EXCEPTION","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","LOOP","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","START WITH","UPDATE","VALUES","WHERE"],m=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],v=["AND","CROSS APPLY","ELSE","END","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(y,e);var t,n,r,i,l=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(){return u(this,y),l.apply(this,arguments)}return t=y,(n=[{key:"tokenizer",value:function(){return new a.default({reservedWords:p,reservedTopLevelWords:g,reservedNewlineWords:v,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"N''","''","``"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],specialWordChars:["_","$","#",".","@"],operators:["||","**","!=",":="]})}},{key:"tokenOverride",value:function(e){return(0,o.isSet)(e)&&(0,o.isBy)(this.previousReservedToken)?{type:s.default.RESERVED,value:e.value}:e}}])&&c(t.prototype,n),y}(i.default);t.default=y,e.exports=t.default},781:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BY","CACHE","CALL","CALLED","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAIN","CHAR","CHARACTER","CHARACTERISTICS","CHECK","CHECKPOINT","CLASS","CLOSE","CLUSTER","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNS","COMMENT","COMMENTS","COMMIT","COMMITTED","CONCURRENTLY","CONFIGURATION","CONFLICT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTENT","CONTINUE","CONVERSION","COPY","COST","CREATE","CROSS","CSV","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINER","DELETE","DELIMITER","DELIMITERS","DEPENDS","DESC","DETACH","DICTIONARY","DISABLE","DISCARD","DISTINCT","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","EACH","ELSE","ENABLE","ENCODING","ENCRYPTED","END","ENUM","ESCAPE","EVENT","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXPLAIN","EXPRESSION","EXTENSION","EXTERNAL","EXTRACT","FALSE","FAMILY","FETCH","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FORCE","FOREIGN","FORWARD","FREEZE","FROM","FULL","FUNCTION","FUNCTIONS","GENERATED","GLOBAL","GRANT","GRANTED","GREATEST","GROUP","GROUPING","GROUPS","HANDLER","HAVING","HEADER","HOLD","HOUR","IDENTITY","IF","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDE","INCLUDING","INCREMENT","INDEX","INDEXES","INHERIT","INHERITS","INITIALLY","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","INVOKER","IS","ISNULL","ISOLATION","JOIN","KEY","LABEL","LANGUAGE","LARGE","LAST","LATERAL","LEADING","LEAKPROOF","LEAST","LEFT","LEVEL","LIKE","LIMIT","LISTEN","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LOCKED","LOGGED","MAPPING","MATCH","MATERIALIZED","MAXVALUE","METHOD","MINUTE","MINVALUE","MODE","MONTH","MOVE","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEW","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NORMALIZE","NORMALIZED","NOT","NOTHING","NOTIFY","NOTNULL","NOWAIT","NULL","NULLIF","NULLS","NUMERIC","OBJECT","OF","OFF","OFFSET","OIDS","OLD","ON","ONLY","OPERATOR","OPTION","OPTIONS","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OVER","OVERLAPS","OVERLAY","OVERRIDING","OWNED","OWNER","PARALLEL","PARSER","PARTIAL","PARTITION","PASSING","PASSWORD","PLACING","PLANS","POLICY","POSITION","PRECEDING","PRECISION","PREPARE","PREPARED","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROGRAM","PUBLICATION","QUOTE","RANGE","READ","REAL","REASSIGN","RECHECK","RECURSIVE","REF","REFERENCES","REFERENCING","REFRESH","REINDEX","RELATIVE","RELEASE","RENAME","REPEATABLE","REPLACE","REPLICA","RESET","RESTART","RESTRICT","RETURNING","RETURNS","REVOKE","RIGHT","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROUTINES","ROW","ROWS","RULE","SAVEPOINT","SCHEMA","SCHEMAS","SCROLL","SEARCH","SECOND","SECURITY","SELECT","SEQUENCE","SEQUENCES","SERIALIZABLE","SERVER","SESSION","SESSION_USER","SET","SETOF","SETS","SHARE","SHOW","SIMILAR","SIMPLE","SKIP","SMALLINT","SNAPSHOT","SOME","SQL","STABLE","STANDALONE","START","STATEMENT","STATISTICS","STDIN","STDOUT","STORAGE","STORED","STRICT","STRIP","SUBSCRIPTION","SUBSTRING","SUPPORT","SYMMETRIC","SYSID","SYSTEM","TABLE","TABLES","TABLESAMPLE","TABLESPACE","TEMP","TEMPLATE","TEMPORARY","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRANSFORM","TREAT","TRIGGER","TRIM","TRUE","TRUNCATE","TRUSTED","TYPE","TYPES","UESCAPE","UNBOUNDED","UNCOMMITTED","UNENCRYPTED","UNION","UNIQUE","UNKNOWN","UNLISTEN","UNLOGGED","UNTIL","UPDATE","USER","USING","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARCHAR","VARIADIC","VARYING","VERBOSE","VERSION","VIEW","VIEWS","VOLATILE","WHEN","WHERE","WHITESPACE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","XML","XMLATTRIBUTES","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLNAMESPACES","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","YEAR","YES","ZONE"],h=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FETCH FIRST","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","U&''",'U&""',"$$"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["$"],namedPlaceholderTypes:[":"],lineCommentTypes:["--"],operators:["!=","<<",">>","||/","|/","::","->>","->","~~*","~~","!~~*","!~~","~*","!~*","!~","!!"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},6381:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["AES128","AES256","ALLOWOVERWRITE","ANALYSE","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GZIP","IDENTITY","IGNORE","ILIKE","INITIALLY","INTO","LEADING","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY13","MOSTLY32","MOSTLY8","NATURAL","NEW","NULLS","OFF","OFFLINE","OFFSET","OLD","ON","ONLY","OPEN","ORDER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","REJECTLOG","RESORT","RESTORE","SESSION_USER","SIMILAR","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WITH","WITHOUT","PREDICATE","COLUMNS","COMPROWS","COMPRESSION","COPY","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE","VACUUM","COPY","UNLOAD","EVEN","ALL"],h=["ADD","AFTER","ALTER COLUMN","ALTER TABLE","DELETE FROM","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","INTERSECT","TOP","LIMIT","MODIFY","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UNION ALL","UNION","UPDATE","VALUES","WHERE","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","FORMAT","DELIMITER","FIXEDWIDTH","AVRO","JSON","ENCRYPTED","BZIP2","GZIP","LZOP","PARQUET","ORC","ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","NULL AS","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS","COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE","MANIFEST","REGION","IAM_ROLE","MASTER_SYMMETRIC_KEY","SSH","ACCEPTANYDATE","ACCEPTINVCHARS","ACCESS_KEY_ID","SECRET_ACCESS_KEY","AVRO","BLANKSASNULL","BZIP2","COMPROWS","COMPUPDATE","CREDENTIALS","DATEFORMAT","DELIMITER","EMPTYASNULL","ENCODING","ENCRYPTED","ESCAPE","EXPLICIT_IDS","FILLRECORD","FIXEDWIDTH","FORMAT","IAM_ROLE","GZIP","IGNOREBLANKLINES","IGNOREHEADER","JSON","LZOP","MANIFEST","MASTER_SYMMETRIC_KEY","MAXERROR","NOLOAD","NULL AS","READRATIO","REGION","REMOVEQUOTES","ROUNDEC","SSH","STATUPDATE","TIMEFORMAT","SESSION_TOKEN","TRIMBLANKS","TRUNCATECOLUMNS","EXTERNAL","DATA CATALOG","HIVE METASTORE","CATALOG_ROLE"],p=[],g=["AND","ELSE","OR","OUTER APPLY","WHEN","VACUUM","COPY","UNLOAD","ANALYZE","ANALYSE","DISTKEY","SORTKEY","COMPOUND","INTERLEAVED","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''","``"],openParens:["("],closeParens:[")"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["@","#","$"],lineCommentTypes:["--"],operators:["|/","||/","<<",">>","!=","||"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7310:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=l(n(1377)),o=n(8538),a=l(n(4795)),s=l(n(9097));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}function d(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var p=["ALL","ALTER","ANALYSE","ANALYZE","ARRAY_ZIP","ARRAY","AS","ASC","AVG","BETWEEN","CASCADE","CASE","CAST","COALESCE","COLLECT_LIST","COLLECT_SET","COLUMN","COLUMNS","COMMENT","CONSTRAINT","CONTAINS","CONVERT","COUNT","CUME_DIST","CURRENT ROW","CURRENT_DATE","CURRENT_TIMESTAMP","DATABASE","DATABASES","DATE_ADD","DATE_SUB","DATE_TRUNC","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DAY","DAYS","DECODE","DEFAULT","DELETE","DENSE_RANK","DESC","DESCRIBE","DISTINCT","DISTINCTROW","DIV","DROP","ELSE","ENCODE","END","EXISTS","EXPLAIN","EXPLODE_OUTER","EXPLODE","FILTER","FIRST_VALUE","FIRST","FIXED","FLATTEN","FOLLOWING","FROM_UNIXTIME","FULL","GREATEST","GROUP_CONCAT","HOUR_MINUTE","HOUR_SECOND","HOUR","HOURS","IF","IFNULL","IN","INSERT","INTERVAL","INTO","IS","LAG","LAST_VALUE","LAST","LEAD","LEADING","LEAST","LEVEL","LIKE","MAX","MERGE","MIN","MINUTE_SECOND","MINUTE","MONTH","NATURAL","NOT","NOW()","NTILE","NULL","NULLIF","OFFSET","ON DELETE","ON UPDATE","ON","ONLY","OPTIMIZE","OVER","PERCENT_RANK","PRECEDING","RANGE","RANK","REGEXP","RENAME","RLIKE","ROW","ROWS","SECOND","SEPARATOR","SEQUENCE","SIZE","STRING","STRUCT","SUM","TABLE","TABLES","TEMPORARY","THEN","TO_DATE","TO_JSON","TO","TRAILING","TRANSFORM","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNIQUE","UNIX_TIMESTAMP","UNLOCK","UNSIGNED","USING","VARIABLES","VIEW","WHEN","WITH","YEAR_MONTH"],g=["ADD","AFTER","ALTER COLUMN","ALTER DATABASE","ALTER SCHEMA","ALTER TABLE","CLUSTER BY","CLUSTERED BY","DELETE FROM","DISTRIBUTE BY","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","OPTIONS","ORDER BY","PARTITION BY","PARTITIONED BY","RANGE","ROWS","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","TBLPROPERTIES","UPDATE","USING","VALUES","WHERE","WINDOW"],m=["EXCEPT ALL","EXCEPT","INTERSECT ALL","INTERSECT","UNION ALL","UNION"],v=["AND","CREATE OR","CREATE","ELSE","LATERAL VIEW","OR","OUTER APPLY","WHEN","XOR","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN","ANTI JOIN","SEMI JOIN","LEFT ANTI JOIN","LEFT SEMI JOIN","RIGHT OUTER JOIN","RIGHT SEMI JOIN","NATURAL ANTI JOIN","NATURAL FULL OUTER JOIN","NATURAL INNER JOIN","NATURAL LEFT ANTI JOIN","NATURAL LEFT OUTER JOIN","NATURAL LEFT SEMI JOIN","NATURAL OUTER JOIN","NATURAL RIGHT OUTER JOIN","NATURAL RIGHT SEMI JOIN","NATURAL SEMI JOIN"],y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(y,e);var t,n,r,i,l=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(r);if(i){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function y(){return u(this,y),l.apply(this,arguments)}return t=y,(n=[{key:"tokenizer",value:function(){return new a.default({reservedWords:p,reservedTopLevelWords:g,reservedNewlineWords:v,reservedTopLevelWordsNoIndent:m,stringTypes:['""',"''","``","{}"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:["$"],lineCommentTypes:["--"],operators:["!=","<=>","&&","||","=="]})}},{key:"tokenOverride",value:function(e){if((0,o.isWindow)(e)){var t=this.tokenLookAhead();if(t&&t.type===s.default.OPEN_PAREN)return{type:s.default.RESERVED,value:e.value}}if((0,o.isEnd)(e)){var n=this.tokenLookBehind();if(n&&n.type===s.default.OPERATOR&&"."===n.value)return{type:s.default.WORD,value:e.value}}return e}}])&&c(t.prototype,n),y}(i.default);t.default=y,e.exports=t.default},1681:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ABS","ALL","ALLOCATE","ALTER","AND","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CARDINALITY","CASCADED","CASE","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER","CHARACTER_LENGTH","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLLECT","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CONVERT","CORR","CORRESPONDING","COUNT","COVAR_POP","COVAR_SAMP","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DENSE_RANK","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","ELSE","END","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXP","EXTERNAL","EXTRACT","FALSE","FETCH","FILTER","FLOAT","FLOOR","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","FUSION","GET","GLOBAL","GRANT","GROUP","GROUPING","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERSECTION","INTERVAL","INTO","IS","JOIN","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LN","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOWER","MATCH","MAX","MEMBER","MERGE","METHOD","MIN","MINUTE","MOD","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NORMALIZE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OCCURRENCES_REGEX","OF","OLD","ON","ONLY","OPEN","OR","ORDER","OUT","OUTER","OVER","OVERLAPS","OVERLAY","PARAMETER","PARTITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","POSITION","POSITION_REGEX","POWER","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","RANK","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROW_NUMBER","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SPECIFICTYPE","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQRT","START","STATIC","STDDEV_POP","STDDEV_SAMP","SUBMULTISET","SUBSTRING","SUBSTRING_REGEX","SUM","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATE","TRANSLATE_REGEX","TRANSLATION","TREAT","TRIGGER","TRIM","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","UPPER","USER","USING","VALUE","VALUES","VAR_POP","VAR_SAMP","VARBINARY","VARCHAR","VARYING","WHEN","WHENEVER","WHERE","WIDTH_BUCKET","WINDOW","WITH","WITHIN","WITHOUT","YEAR"],h=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","FETCH FIRST","FETCH NEXT","FETCH PRIOR","FETCH LAST","FETCH ABSOLUTE","FETCH RELATIVE","FROM","GROUP BY","HAVING","INSERT INTO","LIMIT","ORDER BY","SELECT","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","INTERSECT DISTINCT","UNION","UNION ALL","UNION DISTINCT","EXCEPT","EXCEPT ALL","EXCEPT DISTINCT"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN","NATURAL JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"''"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:["?"],namedPlaceholderTypes:[],lineCommentTypes:["--"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},7202:(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(1377)),o=a(n(4795));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=["ADD","EXTERNAL","PROCEDURE","ALL","FETCH","PUBLIC","ALTER","FILE","RAISERROR","AND","FILLFACTOR","READ","ANY","FOR","READTEXT","AS","FOREIGN","RECONFIGURE","ASC","FREETEXT","REFERENCES","AUTHORIZATION","FREETEXTTABLE","REPLICATION","BACKUP","FROM","RESTORE","BEGIN","FULL","RESTRICT","BETWEEN","FUNCTION","RETURN","BREAK","GOTO","REVERT","BROWSE","GRANT","REVOKE","BULK","GROUP","RIGHT","BY","HAVING","ROLLBACK","CASCADE","HOLDLOCK","ROWCOUNT","CASE","IDENTITY","ROWGUIDCOL","CHECK","IDENTITY_INSERT","RULE","CHECKPOINT","IDENTITYCOL","SAVE","CLOSE","IF","SCHEMA","CLUSTERED","IN","SECURITYAUDIT","COALESCE","INDEX","SELECT","COLLATE","INNER","SEMANTICKEYPHRASETABLE","COLUMN","INSERT","SEMANTICSIMILARITYDETAILSTABLE","COMMIT","INTERSECT","SEMANTICSIMILARITYTABLE","COMPUTE","INTO","SESSION_USER","CONSTRAINT","IS","SET","CONTAINS","JOIN","SETUSER","CONTAINSTABLE","KEY","SHUTDOWN","CONTINUE","KILL","SOME","CONVERT","LEFT","STATISTICS","CREATE","LIKE","SYSTEM_USER","CROSS","LINENO","TABLE","CURRENT","LOAD","TABLESAMPLE","CURRENT_DATE","MERGE","TEXTSIZE","CURRENT_TIME","NATIONAL","THEN","CURRENT_TIMESTAMP","NOCHECK","TO","CURRENT_USER","NONCLUSTERED","TOP","CURSOR","NOT","TRAN","DATABASE","NULL","TRANSACTION","DBCC","NULLIF","TRIGGER","DEALLOCATE","OF","TRUNCATE","DECLARE","OFF","TRY_CONVERT","DEFAULT","OFFSETS","TSEQUAL","DELETE","ON","UNION","DENY","OPEN","UNIQUE","DESC","OPENDATASOURCE","UNPIVOT","DISK","OPENQUERY","UPDATE","DISTINCT","OPENROWSET","UPDATETEXT","DISTRIBUTED","OPENXML","USE","DOUBLE","OPTION","USER","DROP","OR","VALUES","DUMP","ORDER","VARYING","ELSE","OUTER","VIEW","END","OVER","WAITFOR","ERRLVL","PERCENT","WHEN","ESCAPE","PIVOT","WHERE","EXCEPT","PLAN","WHILE","EXEC","PRECISION","WITH","EXECUTE","PRIMARY","WITHIN GROUP","EXISTS","PRINT","WRITETEXT","EXIT","PROC"],h=["ADD","ALTER COLUMN","ALTER TABLE","CASE","DELETE FROM","END","EXCEPT","FROM","GROUP BY","HAVING","INSERT INTO","INSERT","LIMIT","ORDER BY","SELECT","SET CURRENT SCHEMA","SET SCHEMA","SET","UPDATE","VALUES","WHERE"],p=["INTERSECT","INTERSECT ALL","MINUS","UNION","UNION ALL"],g=["AND","ELSE","OR","WHEN","JOIN","INNER JOIN","LEFT JOIN","LEFT OUTER JOIN","RIGHT JOIN","RIGHT OUTER JOIN","FULL JOIN","FULL OUTER JOIN","CROSS JOIN"],m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,e);var t,n,r,i,a=(r=m,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(r);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function m(){return s(this,m),a.apply(this,arguments)}return t=m,(n=[{key:"tokenizer",value:function(){return new o.default({reservedWords:d,reservedTopLevelWords:h,reservedNewlineWords:g,reservedTopLevelWordsNoIndent:p,stringTypes:['""',"N''","''","[]"],openParens:["(","CASE"],closeParens:[")","END"],indexedPlaceholderTypes:[],namedPlaceholderTypes:["@"],lineCommentTypes:["--"],specialWordChars:["#","@"],operators:[">=","<=","<>","!=","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]})}}])&&l(t.prototype,n),m}(i.default);t.default=m,e.exports=t.default},1627:(e,t,n)=>{"use strict";t.WU=void 0;var r=h(n(8007)),i=h(n(1231)),o=h(n(59)),a=h(n(883)),s=h(n(8477)),l=h(n(781)),u=h(n(6381)),c=h(n(7310)),f=h(n(1681)),d=h(n(7202));function h(e){return e&&e.__esModule?e:{default:e}}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)}var g={db2:r.default,mariadb:i.default,mysql:o.default,n1ql:a.default,plsql:s.default,postgresql:l.default,redshift:u.default,spark:c.default,sql:f.default,tsql:d.default};t.WU=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid query argument. Extected string, instead got "+p(e));var n=f.default;if(void 0!==t.language&&(n=g[t.language]),void 0===n)throw Error("Unsupported SQL dialect: ".concat(t.language));return new n(t).format(e)},Object.keys(g)},3098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortByLengthDesc=t.escapeRegExp=t.isEmpty=t.last=t.trimSpacesEnd=void 0,t.trimSpacesEnd=function(e){return e.replace(/[\t ]+$/,"")},t.last=function(e){return e[e.length-1]},t.isEmpty=function(e){return!Array.isArray(e)||0===e.length},t.escapeRegExp=function(e){return e.replace(/[\$\(-\+\.\?\[-\^\{-\}]/g,"\\$&")},t.sortByLengthDesc=function(e){return e.sort((function(e,t){return t.length-e.length||e.localeCompare(t)}))}},5690:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},594:e=>{"use strict";var t=Function.prototype.bind;e.exports=function(e){var n=function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return new(t.apply(e,[null].concat(r)))};return n.__proto__=e,n.prototype=e.prototype,n}},539:(e,t,n)=>{var r=n(5470),i=n(7219),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a function")}},5954:(e,t,n)=>{var r=n(2467),i=n(7219),o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not a constructor")}},5904:(e,t,n)=>{var r=n(5470),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},1992:(e,t,n)=>{var r=n(166),i=n(1114),o=n(2520).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},2389:(e,t,n)=>{var r=n(7353),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},9542:(e,t,n)=>{var r=n(5754),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw o(i(e)+" is not an object")}},1773:(e,t,n)=>{var r=n(5197),i=n(8120),o=n(2634),a=function(e){return function(t,n,a){var s,l=r(t),u=o(l),c=i(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4463:(e,t,n)=>{var r=n(6752);e.exports=r([].slice)},3019:(e,t,n)=>{var r=n(166)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},4834:(e,t,n)=>{var r=n(6752),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},378:(e,t,n)=>{var r=n(2439),i=n(5470),o=n(4834),a=n(166)("toStringTag"),s=Object,l="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:l?o(t):"Object"==(r=o(t))&&i(t.callee)?"Arguments":r}},5038:(e,t,n)=>{var r=n(6752),i=Error,o=r("".replace),a=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},9210:(e,t,n)=>{var r=n(4033),i=n(2851),o=n(6807),a=n(2520);e.exports=function(e,t,n){for(var s=i(t),l=a.f,u=o.f,c=0;c<s.length;c++){var f=s[c];r(e,f)||n&&r(n,f)||l(e,f,u(t,f))}}},4012:(e,t,n)=>{var r=n(9493);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},625:(e,t,n)=>{"use strict";var r=n(7133).IteratorPrototype,i=n(1114),o=n(4750),a=n(5921),s=n(1774),l=function(){return this};e.exports=function(e,t,n,u){var c=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,c,!1,!0),s[c]=l,e}},3900:(e,t,n)=>{var r=n(6265),i=n(2520),o=n(4750);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},4750:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2802:(e,t,n)=>{var r=n(5470),i=n(3900),o=n(3285),a=n(2626);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;return r(n)&&o(n,u,s),s.global?l?e[t]=n:a(t,n):(s.unsafe?e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)),e}},2626:(e,t,n)=>{var r=n(9126),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},1221:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(8712),a=n(6859),s=n(5470),l=n(625),u=n(3434),c=n(9436),f=n(5921),d=n(3900),h=n(2802),p=n(166),g=n(1774),m=n(7133),v=a.PROPER,y=a.CONFIGURABLE,b=m.IteratorPrototype,E=m.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",x="values",_="entries",T=function(){return this};e.exports=function(e,t,n,a,p,m,C){l(n,t,a);var O,I,A,R=function(e){if(e===p&&D)return D;if(!E&&e in L)return L[e];switch(e){case S:case x:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",k=!1,L=e.prototype,M=L[w]||L["@@iterator"]||p&&L[p],D=!E&&M||R(p),P="Array"==t&&L.entries||M;if(P&&(O=u(P.call(new e)))!==Object.prototype&&O.next&&(o||u(O)===b||(c?c(O,b):s(O[w])||h(O,w,T)),f(O,N,!0,!0),o&&(g[N]=T)),v&&p==x&&M&&M.name!==x&&(!o&&y?d(L,"name",x):(k=!0,D=function(){return i(M,this)})),p)if(I={values:R(x),keys:m?D:R(S),entries:R(_)},C)for(A in I)(E||k||!(A in L))&&h(L,A,I[A]);else r({target:t,proto:!0,forced:E||k},I);return o&&!C||L[w]===D||h(L,w,D,{name:p}),g[t]=D,I}},6265:(e,t,n)=>{var r=n(9493);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3889:(e,t,n)=>{var r=n(9126),i=n(5754),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},9923:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8585:(e,t,n)=>{var r=n(3889)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},8311:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},6877:(e,t,n)=>{var r=n(529),i=n(9126);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},3875:(e,t,n)=>{var r=n(529);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},9031:(e,t,n)=>{var r=n(4834),i=n(9126);e.exports="process"==r(i.process)},392:(e,t,n)=>{var r=n(529);e.exports=/web0s(?!.*chrome)/i.test(r)},529:(e,t,n)=>{var r=n(6785);e.exports=r("navigator","userAgent")||""},6718:(e,t,n)=>{var r,i,o=n(9126),a=n(529),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},5222:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1832:(e,t,n)=>{var r=n(9493),i=n(4750);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},8905:(e,t,n)=>{var r=n(9126),i=n(6807).f,o=n(3900),a=n(2802),s=n(2626),l=n(9210),u=n(3037);e.exports=function(e,t){var n,c,f,d,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(d=t[c],f=e.dontCallGetSet?(h=i(n,c))&&h.value:n[c],!u(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,c,d,e)}}},9493:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},794:(e,t,n)=>{var r=n(7770),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},1885:(e,t,n)=>{var r=n(6752),i=n(539),o=n(7770),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},7770:(e,t,n)=>{var r=n(9493);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1482:(e,t,n)=>{var r=n(7770),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6859:(e,t,n)=>{var r=n(6265),i=n(4033),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},6752:(e,t,n)=>{var r=n(7770),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},6785:(e,t,n)=>{var r=n(9126),i=n(5470),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},6843:(e,t,n)=>{var r=n(378),i=n(269),o=n(1774),a=n(166)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[r(e)]}},6525:(e,t,n)=>{var r=n(1482),i=n(539),o=n(9542),a=n(7219),s=n(6843),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw l(a(e)+" is not iterable")}},269:(e,t,n)=>{var r=n(539);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},9126:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},4033:(e,t,n)=>{var r=n(6752),i=n(5727),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},2349:e=>{e.exports={}},4342:(e,t,n)=>{var r=n(9126);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},5711:(e,t,n)=>{var r=n(6785);e.exports=r("document","documentElement")},8751:(e,t,n)=>{var r=n(6265),i=n(9493),o=n(3889);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},3208:(e,t,n)=>{var r=n(6752),i=n(9493),o=n(4834),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?s(e,""):a(e)}:a},2259:(e,t,n)=>{var r=n(6752),i=n(5470),o=n(3951),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},5863:(e,t,n)=>{var r=n(5754),i=n(3900);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},179:(e,t,n)=>{var r,i,o,a=n(3811),s=n(9126),l=n(6752),u=n(5754),c=n(3900),f=n(4033),d=n(3951),h=n(784),p=n(2349),g="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new v),b=l(y.get),E=l(y.has),w=l(y.set);r=function(e,t){if(E(y,e))throw new m(g);return t.facade=e,w(y,e,t),t},i=function(e){return b(y,e)||{}},o=function(e){return E(y,e)}}else{var S=h("state");p[S]=!0,r=function(e,t){if(f(e,S))throw new m(g);return t.facade=e,c(e,S,t),t},i=function(e){return f(e,S)?e[S]:{}},o=function(e){return f(e,S)}}e.exports={set:r,get:i,has:o,enforce:function(e){return o(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},1015:(e,t,n)=>{var r=n(166),i=n(1774),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},5470:e=>{e.exports=function(e){return"function"==typeof e}},2467:(e,t,n)=>{var r=n(6752),i=n(9493),o=n(5470),a=n(378),s=n(6785),l=n(2259),u=function(){},c=[],f=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=r(d.exec),p=!d.exec(u),g=function(e){if(!o(e))return!1;try{return f(u,c,e),!0}catch(e){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!h(d,l(e))}catch(e){return!0}};m.sham=!0,e.exports=!f||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},3037:(e,t,n)=>{var r=n(9493),i=n(5470),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},5754:(e,t,n)=>{var r=n(5470);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},8712:e=>{e.exports=!1},6412:(e,t,n)=>{var r=n(6785),i=n(5470),o=n(7353),a=n(2766),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},6543:(e,t,n)=>{var r=n(1885),i=n(1482),o=n(9542),a=n(7219),s=n(1015),l=n(2634),u=n(7353),c=n(6525),f=n(6843),d=n(6094),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},g=p.prototype;e.exports=function(e,t,n){var m,v,y,b,E,w,S,x=n&&n.that,_=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),O=r(t,x),I=function(e){return m&&d(m,"normal",e),new p(!0,e)},A=function(e){return _?(o(e),C?O(e[0],e[1],I):O(e[0],e[1])):C?O(e,I):O(e)};if(T)m=e;else{if(!(v=f(e)))throw h(a(e)+" is not iterable");if(s(v)){for(y=0,b=l(e);b>y;y++)if((E=A(e[y]))&&u(g,E))return E;return new p(!1)}m=c(e,v)}for(w=m.next;!(S=i(w,m)).done;){try{E=A(S.value)}catch(e){d(m,"throw",e)}if("object"==typeof E&&E&&u(g,E))return E}return new p(!1)}},6094:(e,t,n)=>{var r=n(1482),i=n(9542),o=n(269);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},7133:(e,t,n)=>{"use strict";var r,i,o,a=n(9493),s=n(5470),l=n(1114),u=n(3434),c=n(2802),f=n(166),d=n(8712),h=f("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(r=i):p=!0),null==r||a((function(){var e={};return r[h].call(e)!==e}))?r={}:d&&(r=l(r)),s(r[h])||c(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},1774:e=>{e.exports={}},2634:(e,t,n)=>{var r=n(3740);e.exports=function(e){return r(e.length)}},3285:(e,t,n)=>{var r=n(9493),i=n(5470),o=n(4033),a=n(6265),s=n(6859).CONFIGURABLE,l=n(2259),u=n(179),c=u.enforce,f=u.get,d=Object.defineProperty,h=a&&!r((function(){return 8!==d((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||s&&e.name!==t)&&d(e,"name",{value:t,configurable:!0}),h&&n&&o(n,"arity")&&e.length!==n.arity&&d(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=c(e);return o(r,"source")||(r.source=p.join("string"==typeof t?t:"")),e};Function.prototype.toString=g((function(){return i(this)&&f(this).source||l(this)}),"toString")},7999:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},9275:(e,t,n)=>{var r,i,o,a,s,l,u,c,f=n(9126),d=n(1885),h=n(6807).f,p=n(3096).set,g=n(3875),m=n(6877),v=n(392),y=n(9031),b=f.MutationObserver||f.WebKitMutationObserver,E=f.document,w=f.process,S=f.Promise,x=h(f,"queueMicrotask"),_=x&&x.value;_||(r=function(){var e,t;for(y&&(e=w.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},g||y||v||!b||!E?!m&&S&&S.resolve?((u=S.resolve(void 0)).constructor=S,c=d(u.then,u),a=function(){c(r)}):y?a=function(){w.nextTick(r)}:(p=d(p,f),a=function(){p(r)}):(s=!0,l=E.createTextNode(""),new b(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},7138:(e,t,n)=>{var r=n(6718),i=n(9493);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},3811:(e,t,n)=>{var r=n(9126),i=n(5470),o=n(2259),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},5987:(e,t,n)=>{"use strict";var r=n(539),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},2351:(e,t,n)=>{var r=n(3550);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},1114:(e,t,n)=>{var r,i=n(9542),o=n(8976),a=n(5222),s=n(2349),l=n(5711),u=n(3889),c=n(784)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},h=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&r?h(r):((t=u("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):h(r);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[c]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[c]=e):n=p(),void 0===t?n:o.f(n,t)}},8976:(e,t,n)=>{var r=n(6265),i=n(7774),o=n(2520),a=n(9542),s=n(5197),l=n(2743);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=l(t),u=i.length,c=0;u>c;)o.f(e,n=i[c++],r[n]);return e}},2520:(e,t,n)=>{var r=n(6265),i=n(8751),o=n(7774),a=n(9542),s=n(2194),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=c(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},6807:(e,t,n)=>{var r=n(6265),i=n(1482),o=n(4693),a=n(4750),s=n(5197),l=n(2194),u=n(4033),c=n(8751),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=l(t),c)try{return f(e,t)}catch(e){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},4528:(e,t,n)=>{var r=n(7683),i=n(5222).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},237:(e,t)=>{t.f=Object.getOwnPropertySymbols},3434:(e,t,n)=>{var r=n(4033),i=n(5470),o=n(5727),a=n(784),s=n(4012),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},7353:(e,t,n)=>{var r=n(6752);e.exports=r({}.isPrototypeOf)},7683:(e,t,n)=>{var r=n(6752),i=n(4033),o=n(5197),a=n(1773).indexOf,s=n(2349),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);for(;t.length>u;)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},2743:(e,t,n)=>{var r=n(7683),i=n(5222);e.exports=Object.keys||function(e){return r(e,i)}},4693:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},9436:(e,t,n)=>{var r=n(6752),i=n(9542),o=n(5904);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},5763:(e,t,n)=>{"use strict";var r=n(2439),i=n(378);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},1330:(e,t,n)=>{var r=n(1482),i=n(5470),o=n(5754),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},2851:(e,t,n)=>{var r=n(6785),i=n(6752),o=n(4528),a=n(237),s=n(9542),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},6284:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},700:(e,t,n)=>{var r=n(9126),i=n(4783),o=n(5470),a=n(3037),s=n(2259),l=n(166),u=n(8311),c=n(8712),f=n(6718),d=i&&i.prototype,h=l("species"),p=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===f)return!0;if(c&&(!d.catch||!d.finally))return!0;if(f>=51&&/native code/.test(e))return!1;var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[h]=r,!(p=n.then((function(){}))instanceof r)||!t&&u&&!g}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:p}},4783:(e,t,n)=>{var r=n(9126);e.exports=r.Promise},701:(e,t,n)=>{var r=n(9542),i=n(5754),o=n(5987);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},5976:(e,t,n)=>{var r=n(4783),i=n(3019),o=n(700).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},6201:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},5762:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},3398:(e,t,n)=>{"use strict";var r=n(6785),i=n(2520),o=n(166),a=n(6265),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},5921:(e,t,n)=>{var r=n(2520).f,i=n(4033),o=n(166)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},784:(e,t,n)=>{var r=n(930),i=n(8045),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},3951:(e,t,n)=>{var r=n(9126),i=n(2626),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},930:(e,t,n)=>{var r=n(8712),i=n(3951);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.8",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE",source:"https://github.com/zloirock/core-js"})},7535:(e,t,n)=>{var r=n(9542),i=n(5954),o=n(166)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},8095:(e,t,n)=>{var r=n(6752),i=n(3399),o=n(3550),a=n(5762),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(e){return function(t,n){var r,c,f=o(a(t)),d=i(n),h=f.length;return d<0||d>=h?e?"":void 0:(r=l(f,d))<55296||r>56319||d+1===h||(c=l(f,d+1))<56320||c>57343?e?s(f,d):r:e?u(f,d,d+2):c-56320+(r-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},3096:(e,t,n)=>{var r,i,o,a,s=n(9126),l=n(794),u=n(1885),c=n(5470),f=n(4033),d=n(9493),h=n(5711),p=n(4463),g=n(3889),m=n(3759),v=n(3875),y=n(9031),b=s.setImmediate,E=s.clearImmediate,w=s.process,S=s.Dispatch,x=s.Function,_=s.MessageChannel,T=s.String,C=0,O={};try{r=s.location}catch(e){}var I=function(e){if(f(O,e)){var t=O[e];delete O[e],t()}},A=function(e){return function(){I(e)}},R=function(e){I(e.data)},N=function(e){s.postMessage(T(e),r.protocol+"//"+r.host)};b&&E||(b=function(e){m(arguments.length,1);var t=c(e)?e:x(e),n=p(arguments,1);return O[++C]=function(){l(t,void 0,n)},i(C),C},E=function(e){delete O[e]},y?i=function(e){w.nextTick(A(e))}:S&&S.now?i=function(e){S.now(A(e))}:_&&!v?(a=(o=new _).port2,o.port1.onmessage=R,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(N)?(i=N,s.addEventListener("message",R,!1)):i="onreadystatechange"in g("script")?function(e){h.appendChild(g("script")).onreadystatechange=function(){h.removeChild(this),I(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:E}},8120:(e,t,n)=>{var r=n(3399),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},5197:(e,t,n)=>{var r=n(3208),i=n(5762);e.exports=function(e){return r(i(e))}},3399:(e,t,n)=>{var r=n(7999);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},3740:(e,t,n)=>{var r=n(3399),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5727:(e,t,n)=>{var r=n(5762),i=Object;e.exports=function(e){return i(r(e))}},344:(e,t,n)=>{var r=n(1482),i=n(5754),o=n(6412),a=n(269),s=n(1330),l=n(166),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,l=a(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},2194:(e,t,n)=>{var r=n(344),i=n(6412);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},2439:(e,t,n)=>{var r={};r[n(166)("toStringTag")]="z",e.exports="[object z]"===String(r)},3550:(e,t,n)=>{var r=n(378),i=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return i(e)}},7219:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},8045:(e,t,n)=>{var r=n(6752),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},2766:(e,t,n)=>{var r=n(7138);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7774:(e,t,n)=>{var r=n(6265),i=n(9493);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3759:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},166:(e,t,n)=>{var r=n(9126),i=n(930),o=n(4033),a=n(8045),s=n(7138),l=n(2766),u=i("wks"),c=r.Symbol,f=c&&c.for,d=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&f?f(t):d(t)}return u[e]}},8086:(e,t,n)=>{"use strict";var r=n(8905),i=n(7353),o=n(3434),a=n(9436),s=n(9210),l=n(1114),u=n(3900),c=n(4750),f=n(5038),d=n(5863),h=n(6543),p=n(2351),g=n(166),m=n(1832),v=g("toStringTag"),y=Error,b=[].push,E=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,s=i(w,this);a?n=a(new y,s?o(this):w):(n=s?this:l(w),u(n,v,"Error")),void 0!==t&&u(n,"message",p(t)),m&&u(n,"stack",f(n.stack,1)),d(n,r);var c=[];return h(e,b,{that:c}),u(n,"errors",c),n};a?a(E,y):s(E,y,{name:!0});var w=E.prototype=l(y.prototype,{constructor:c(1,E),message:c(1,""),name:c(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:E})},7296:(e,t,n)=>{n(8086)},2913:(e,t,n)=>{"use strict";var r=n(5197),i=n(1992),o=n(1774),a=n(179),s=n(2520).f,l=n(1221),u=n(8712),c=n(6265),f="Array Iterator",d=a.set,h=a.getterFor(f);e.exports=l(Array,"Array",(function(e,t){d(this,{type:f,target:r(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&c&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(e){}},6745:(e,t,n)=>{var r=n(2439),i=n(2802),o=n(5763);r||i(Object.prototype,"toString",o,{unsafe:!0})},2578:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(539),a=n(5987),s=n(6284),l=n(6543);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=s((function(){var n=o(t.resolve),a=[],s=0,u=1;l(e,(function(e){var o=s++,l=!1;u++,i(n,t,e).then((function(e){l||(l=!0,a[o]={status:"fulfilled",value:e},--u||r(a))}),(function(e){l||(l=!0,a[o]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return c.error&&u(c.value),n.promise}})},3361:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(539),a=n(5987),s=n(6284),l=n(6543);r({target:"Promise",stat:!0,forced:n(5976)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,c=s((function(){var n=o(t.resolve),a=[],s=0,c=1;l(e,(function(e){var o=s++,l=!1;c++,i(n,t,e).then((function(e){l||(l=!0,a[o]=e,--c||r(a))}),u)})),--c||r(a)}));return c.error&&u(c.value),n.promise}})},8322:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(539),a=n(6785),s=n(5987),l=n(6284),u=n(6543),c="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),f=r.resolve,d=r.reject,h=l((function(){var r=o(t.resolve),a=[],s=0,l=1,h=!1;u(e,(function(e){var o=s++,u=!1;l++,i(r,t,e).then((function(e){u||h||(h=!0,f(e))}),(function(e){u||h||(u=!0,a[o]=e,--l||d(new n(a,c)))}))})),--l||d(new n(a,c))}));return h.error&&d(h.value),r.promise}})},5287:(e,t,n)=>{"use strict";var r=n(8905),i=n(8712),o=n(700).CONSTRUCTOR,a=n(4783),s=n(6785),l=n(5470),u=n(2802),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(a)){var f=s("Promise").prototype.catch;c.catch!==f&&u(c,"catch",f,{unsafe:!0})}},3256:(e,t,n)=>{"use strict";var r,i,o,a=n(8905),s=n(8712),l=n(9031),u=n(9126),c=n(1482),f=n(2802),d=n(9436),h=n(5921),p=n(3398),g=n(539),m=n(5470),v=n(5754),y=n(2389),b=n(7535),E=n(3096).set,w=n(9275),S=n(4342),x=n(6284),_=n(6201),T=n(179),C=n(4783),O=n(700),I=n(5987),A="Promise",R=O.CONSTRUCTOR,N=O.REJECTION_EVENT,k=O.SUBCLASSING,L=T.getterFor(A),M=T.set,D=C&&C.prototype,P=C,U=D,j=u.TypeError,B=u.document,F=u.process,H=I.f,z=H,V=!!(B&&B.createEvent&&u.dispatchEvent),G="unhandledrejection",W=function(e){var t;return!(!v(e)||!m(t=e.then))&&t},q=function(e,t){var n,r,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&Q(t),t.rejection=1),!0===s?n=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===e.promise?u(j("Promise-chain cycle")):(r=W(n))?c(r,n,l,u):l(n)):u(o)}catch(e){f&&!i&&f.exit(),u(e)}},Y=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)q(n,e);e.notified=!1,t&&!e.rejection&&$(e)})))},X=function(e,t,n){var r,i;V?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!N&&(i=u["on"+e])?i(r):e===G&&S("Unhandled promise rejection",n)},$=function(e){c(E,u,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=x((function(){l?F.emit("unhandledRejection",r,n):X(G,n,r)})),e.rejection=l||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){c(E,u,(function(){var t=e.facade;l?F.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(r){e(t,r,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw j("Promise can't be resolved itself");var r=W(t);r?w((function(){var n={done:!1};try{c(r,t,J(ee,n,e),J(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,Y(e,!1))}catch(t){Z({done:!1},t,e)}}};if(R&&(U=(P=function(e){y(this,U),g(e),c(r,this);var t=L(this);try{e(J(ee,t),J(Z,t))}catch(e){Z(t,e)}}).prototype,(r=function(e){M(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=f(U,"then",(function(e,t){var n=L(this),r=H(b(this,P));return n.parent=!0,r.ok=!m(e)||e,r.fail=m(t)&&t,r.domain=l?F.domain:void 0,0==n.state?n.reactions.add(r):w((function(){q(r,n)})),r.promise})),i=function(){var e=new r,t=L(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Z,t)},I.f=H=function(e){return e===P||void 0===e?new i(e):z(e)},!s&&m(C)&&D!==Object.prototype)){o=D.then,k||f(D,"then",(function(e,t){var n=this;return new P((function(e,t){c(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete D.constructor}catch(e){}d&&d(D,U)}a({global:!0,constructor:!0,wrap:!0,forced:R},{Promise:P}),h(P,A,!1,!0),p(A)},3072:(e,t,n)=>{"use strict";var r=n(8905),i=n(8712),o=n(4783),a=n(9493),s=n(6785),l=n(5470),u=n(7535),c=n(701),f=n(2802),d=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=l(e);return this.then(n?function(n){return c(t,e()).then((function(){return n}))}:e,n?function(n){return c(t,e()).then((function(){throw n}))}:e)}}),!i&&l(o)){var h=s("Promise").prototype.finally;d.finally!==h&&f(d,"finally",h,{unsafe:!0})}},4174:(e,t,n)=>{n(3256),n(3361),n(5287),n(1273),n(3169),n(829)},1273:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(539),a=n(5987),s=n(6284),l=n(6543);r({target:"Promise",stat:!0,forced:n(5976)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=o(t.resolve);l(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},3169:(e,t,n)=>{"use strict";var r=n(8905),i=n(1482),o=n(5987);r({target:"Promise",stat:!0,forced:n(700).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},829:(e,t,n)=>{"use strict";var r=n(8905),i=n(6785),o=n(8712),a=n(4783),s=n(700).CONSTRUCTOR,l=n(701),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},6868:(e,t,n)=>{"use strict";var r=n(8095).charAt,i=n(3550),o=n(179),a=n(1221),s="String Iterator",l=o.set,u=o.getterFor(s);a(String,"String",(function(e){l(this,{type:s,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},9234:(e,t,n)=>{"use strict";var r=n(8905),i=n(5987),o=n(6284);r({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=i.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},2883:(e,t,n)=>{var r=n(9126),i=n(9923),o=n(8585),a=n(2913),s=n(3900),l=n(166),u=l("iterator"),c=l("toStringTag"),f=a.values,d=function(e,t){if(e){if(e[u]!==f)try{s(e,u,f)}catch(t){e[u]=f}if(e[c]||s(e,c,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var h in i)d(r[h]&&r[h].prototype,h);d(o,"DOMTokenList")},189:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),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})},n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{Arc:()=>fh,BezierCurve:()=>lh,BoundingRect:()=>wr,Circle:()=>Td,CompoundPath:()=>hh,Ellipse:()=>Id,Group:()=>Vr,Image:()=>wa,IncrementalDisplayable:()=>Ih,Line:()=>rh,LinearGradient:()=>vh,OrientedBoundingRect:()=>Th,Path:()=>pa,Point:()=>fr,Polygon:()=>Kd,Polyline:()=>Zd,RadialGradient:()=>bh,Rect:()=>Aa,Ring:()=>qd,Sector:()=>Vd,Text:()=>Va,applyTransform:()=>Wh,clipPointsByRect:()=>$h,clipRectByRect:()=>Kh,createIcon:()=>Qh,extendPath:()=>Lh,extendShape:()=>kh,getShapeClass:()=>Dh,getTransform:()=>Gh,groupTransition:()=>Xh,initProps:()=>Vs,isElementRemoved:()=>Gs,lineLineIntersect:()=>Zh,linePolygonIntersect:()=>Jh,makeImage:()=>Uh,makePath:()=>Ph,mergePath:()=>Bh,registerShape:()=>Mh,removeElement:()=>Ws,removeElementWithFadeOut:()=>Ys,resizePath:()=>Fh,setTooltipConfig:()=>tp,subPixelOptimize:()=>Vh,subPixelOptimizeLine:()=>Hh,subPixelOptimizeRect:()=>zh,transformDirection:()=>qh,traverseElements:()=>rp,updateProps:()=>zs}),n(7296),n(2913),n(6745),n(4174),n(2578),n(8322),n(3072),n(6868),n(9234),n(2883);var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)};function r(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}Object.create,Object.create;var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},o=new function(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?o.worker=!0:"undefined"==typeof navigator?(o.node=!0,o.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,o);const a=o;var s,l,u="12px sans-serif",c=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-20)/100;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),f={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!s){var n=f.createCanvas();s=n&&n.getContext("2d")}if(s)return l!==t&&(l=s.font=t||u),s.measureText(e);e=e||"";var r=/^([0-9]*?)px$/.exec(t=t||u),i=+(r&&r[1])||12,o=0;if(t.indexOf("mono")>=0)o=i*e.length;else for(var a=0;a<e.length;a++){var d=c[e[a]];o+=null==d?i:d*i}return{width:o}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},d=D(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),h=D(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),p=Object.prototype.toString,g=Array.prototype,m=g.forEach,v=g.filter,y=g.slice,b=g.map,E=function(){}.constructor,w=E?E.prototype:null,S="__proto__",x=2311;function _(){return x++}function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function C(e){if(null==e||"object"!=typeof e)return e;var t=e,n=p.call(e);if("[object Array]"===n){if(!ae(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=C(e[r])}}else if(h[n]){if(!ae(e)){var o=e.constructor;if(o.from)t=o.from(e);else for(t=new o(e.length),r=0,i=e.length;r<i;r++)t[r]=e[r]}}else if(!d[n]&&!ae(e)&&!X(e))for(var a in t={},e)e.hasOwnProperty(a)&&a!==S&&(t[a]=C(e[a]));return t}function O(e,t,n){if(!W(t)||!W(e))return n?C(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==S){var i=e[r],o=t[r];!W(o)||!W(i)||F(o)||F(i)||X(o)||X(i)||q(o)||q(i)||ae(o)||ae(i)?!n&&r in e||(e[r]=C(t[r])):O(i,o,n)}return e}function I(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==S&&(e[n]=t[n]);return e}function A(e,t,n){for(var r=U(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}function R(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function N(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else A(e,t,n)}function k(e){return!!e&&"string"!=typeof e&&"number"==typeof e.length}function L(e,t,n){if(e&&t)if(e.forEach&&e.forEach===m)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function M(e,t,n){if(!e)return[];if(!t)return ee(e);if(e.map&&e.map===b)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function D(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function P(e,t,n){if(!e)return[];if(!t)return ee(e);if(e.filter&&e.filter===v)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function U(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}f.createCanvas;var j=w&&H(w.bind)?w.call.bind(w.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(y.call(arguments)))}};function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(y.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):"[object Array]"===p.call(e)}function H(e){return"function"==typeof e}function z(e){return"string"==typeof e}function V(e){return"[object String]"===p.call(e)}function G(e){return"number"==typeof e}function W(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function q(e){return!!d[p.call(e)]}function Y(e){return!!h[p.call(e)]}function X(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function $(e){return null!=e.colorStops}function K(e){return e!=e}function Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function J(e,t){return null!=e?e:t}function Z(e,t,n){return null!=e?e:null!=t?t:n}function ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return y.apply(e,t)}function te(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ne(e,t){if(!e)throw new Error(t)}function re(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ie="__ec_primitive__";function oe(e){e[ie]=!0}function ae(e){return e[ie]}var se=function(){function e(t){this.data={};var n=F(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&L(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return U(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function le(e){return new se(e)}function ue(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&I(n,t),n}function ce(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function fe(e,t){return e.hasOwnProperty(t)}function de(){}var he=180/Math.PI;function pe(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function ge(e){return[e[0],e[1]]}function me(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function ve(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ye(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function be(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ee=be,we=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Se(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function xe(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function _e(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Te(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Ce=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},Oe=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ce(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new Ce(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new Ce(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new Ce(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ce(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ce(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}();const Ie=Oe;var Ae=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[e].length-1,u=i[e][l];return u&&u.callAtLast?i[e].splice(l,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(e,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,t[0]);break;case 2:l.h.call(l.ctx,t[0],t[1]);break;default:l.h.apply(l.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,t[0]);break;case 2:u.h.call(a,t[0],t[1]);break;default:u.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}();const Re=Ae;var Ne=Math.log(2);function ke(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var l=Math.round(Math.log((1<<s)-1&~i)/Ne);return e[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&i||(f+=(h%2?-1:1)*e[n][d]*ke(e,t-1,c,u,i|p,o),h++)}return o[a]=f,f}function Le(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ke(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ke(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var Me=[];function De(e,t,n,r,i){if(t.getBoundingClientRect&&a.domSupported&&!Pe(t)){var o=t.___zrEVENTSAVED||(t.___zrEVENTSAVED={}),s=function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[s]+":0",i[l]+":0",r[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),l=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;a.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?Le(s,a):Le(a,s))}(s,o,i);if(l)return l(e,n,r),!0}return!1}function Pe(e){return"CANVAS"===e.nodeName.toUpperCase()}var Ue=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,je=[],Be=a.browser.firefox&&+a.browser.version.split(".")[0]<39;function Fe(e,t,n,r){return n=n||{},r?He(e,t,n):Be&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):He(e,t,n),n}function He(e,t,n){if(a.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Pe(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(De(je,e,r,i))return n.zrX=je[0],void(n.zrY=je[1])}n.zrX=n.zrY=0}function ze(e){return e||window.event}function Ve(e,t,n){if(null!=(t=ze(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&Fe(e,i,t,n)}else{Fe(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return null==n||null==r?t:3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&Ue.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}var Ge=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},We=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],l=Fe(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Ye)if(Ye.hasOwnProperty(t)){var n=Ye[t](this._track,e);if(n)return n}},e}();function qe(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var Ye={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=qe(i)/qe(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}},Xe="silent";function $e(){Ge(this.event)}var Ke=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return r(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Re),Qe=function(e,t){this.x=e,this.y=t},Je=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ze=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o._hovered=new Qe(0,0),o.storage=t,o.painter=n,o.painterRoot=i,r=r||new Ke,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Ie(o),o}return r(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(Je,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=tt(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new Qe(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Qe(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:$e}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){for(var r=this.storage.getDisplayList(),i=new Qe(e,t),o=r.length-1;o>=0;o--){var a=void 0;if(r[o]!==n&&!r[o].ignore&&(a=et(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==Xe)){i.target=r[o];break}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new We);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new Qe;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(Re);function et(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}r=r.__hostTarget||r.parent}return!i||Xe}return!1}function tt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ze.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=tt(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||Ee(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));const nt=Ze;function rt(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function it(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,l=r;s<l;)i(a,e[o=s+l>>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;u>0;)e[s+u]=e[s+u-1],u--}e[s]=a}}function ot(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){for(s=r-i;l<s&&o(e,t[n+i+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[n+i-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function at(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){for(s=i+1;l<s&&o(e,t[n+i-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l<s&&o(e,t[n+i+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function st(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<32)it(e,n,r,n+(o=rt(e,n,r,t)),t);else{var a=function(e,t){var n,r,i=7,o=0;e.length;var a=[];function s(s){var l=n[s],u=r[s],c=n[s+1],f=r[s+1];r[s]=u+f,s===o-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),o--;var d=at(e[c],e,l,u,0,t);l+=d,0!=(u-=d)&&0!==(f=ot(e[l+u-1],e,c,f,f-1,t))&&(u<=f?function(n,r,o,s){var l=0;for(l=0;l<r;l++)a[l]=e[n+l];var u=0,c=o,f=n;if(e[f++]=e[c++],0!=--s)if(1!==r){for(var d,h,p,g=i;;){d=0,h=0,p=!1;do{if(t(e[c],a[u])<0){if(e[f++]=e[c++],h++,d=0,0==--s){p=!0;break}}else if(e[f++]=a[u++],d++,h=0,1==--r){p=!0;break}}while((d|h)<g);if(p)break;do{if(0!==(d=at(e[c],a,u,r,0,t))){for(l=0;l<d;l++)e[f+l]=a[u+l];if(f+=d,u+=d,(r-=d)<=1){p=!0;break}}if(e[f++]=e[c++],0==--s){p=!0;break}if(0!==(h=ot(a[u],e,c,s,0,t))){for(l=0;l<h;l++)e[f+l]=e[c+l];if(f+=h,c+=h,0==(s-=h)){p=!0;break}}if(e[f++]=a[u++],1==--r){p=!0;break}g--}while(d>=7||h>=7);if(p)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===r){for(l=0;l<s;l++)e[f+l]=e[c+l];e[f+s]=a[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)e[f+l]=a[u+l]}}else{for(l=0;l<s;l++)e[f+l]=e[c+l];e[f+s]=a[u]}else for(l=0;l<r;l++)e[f+l]=a[u+l]}(l,u,c,f):function(n,r,o,s){var l=0;for(l=0;l<s;l++)a[l]=e[o+l];var u=n+r-1,c=s-1,f=o+s-1,d=0,h=0;if(e[f--]=e[u--],0!=--r)if(1!==s){for(var p=i;;){var g=0,m=0,v=!1;do{if(t(a[c],e[u])<0){if(e[f--]=e[u--],g++,m=0,0==--r){v=!0;break}}else if(e[f--]=a[c--],m++,g=0,1==--s){v=!0;break}}while((g|m)<p);if(v)break;do{if(0!=(g=r-at(a[c],e,n,r,r-1,t))){for(r-=g,h=1+(f-=g),d=1+(u-=g),l=g-1;l>=0;l--)e[h+l]=e[d+l];if(0===r){v=!0;break}}if(e[f--]=a[c--],1==--s){v=!0;break}if(0!=(m=s-ot(e[u],a,0,s,s-1,t))){for(s-=m,h=1+(f-=m),d=1+(c-=m),l=0;l<m;l++)e[h+l]=a[d+l];if(s<=1){v=!0;break}}if(e[f--]=e[u--],0==--r){v=!0;break}p--}while(g>=7||m>=7);if(v)break;p<0&&(p=0),p+=2}if((i=p)<1&&(i=1),1===s){for(h=1+(f-=r),d=1+(u-=r),l=r-1;l>=0;l--)e[h+l]=e[d+l];e[f]=a[c]}else{if(0===s)throw new Error;for(d=f-(s-1),l=0;l<s;l++)e[d+l]=a[l]}}else{for(h=1+(f-=r),d=1+(u-=r),l=r-1;l>=0;l--)e[h+l]=e[d+l];e[f]=a[c]}else for(d=f-(s-1),l=0;l<s;l++)e[d+l]=a[l]}(l,u,c,f))}return n=[],r=[],{mergeRuns:function(){for(;o>1;){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;o>1;){var e=o-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[o]=e,r[o]=t,o+=1}}}(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((o=rt(e,n,r,t))<s){var l=i;l>s&&(l=s),it(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var lt=!1;function ut(){lt||(lt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ct(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ft=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ct}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,st(n,ct)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var l=a[s];e.__dirty&&(l.__dirty|=1),this._updateAndAddDisplayable(l,t,n)}e.__dirty=0}else{var u=e;t&&t.length?u.__clipPaths=t:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ut(),u.z=0),isNaN(u.z2)&&(ut(),u.z2=0),isNaN(u.zlevel)&&(ut(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=R(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const dt=ft,ht=a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var pt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-pt.bounceOut(1-e)},bounceOut: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},bounceInOut:function(e){return e<.5?.5*pt.bounceIn(2*e):.5*pt.bounceOut(2*e-1)+.5}};const gt=pt;var mt=Math.pow,vt=Math.sqrt,yt=1e-4,bt=vt(3),Et=1/3,wt=pe(),St=pe(),xt=pe();function _t(e){return e>-1e-8&&e<1e-8}function Tt(e){return e>1e-8||e<-1e-8}function Ct(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Ot(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function It(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,h=0;if(_t(c)&&_t(f))_t(s)?o[0]=0:(_=-l/s)>=0&&_<=1&&(o[h++]=_);else{var p=f*f-4*c*d;if(_t(p)){var g=f/c,m=-g/2;(_=-s/a+g)>=0&&_<=1&&(o[h++]=_),m>=0&&m<=1&&(o[h++]=m)}else if(p>0){var v=vt(p),y=c*s+1.5*a*(-f+v),b=c*s+1.5*a*(-f-v);(_=(-s-((y=y<0?-mt(-y,Et):mt(y,Et))+(b=b<0?-mt(-b,Et):mt(b,Et))))/(3*a))>=0&&_<=1&&(o[h++]=_)}else{var E=(2*c*s-3*a*f)/(2*vt(c*c*c)),w=Math.acos(E)/3,S=vt(c),x=Math.cos(w),_=(-s-2*S*x)/(3*a),T=(m=(-s+S*(x+bt*Math.sin(w)))/(3*a),(-s+S*(x-bt*Math.sin(w)))/(3*a));_>=0&&_<=1&&(o[h++]=_),m>=0&&m<=1&&(o[h++]=m),T>=0&&T<=1&&(o[h++]=T)}}return h}function At(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(_t(a))Tt(o)&&(c=-s/o)>=0&&c<=1&&(i[l++]=c);else{var u=o*o-4*a*s;if(_t(u))i[0]=-o/(2*a);else if(u>0){var c,f=vt(u),d=(-o-f)/(2*a);(c=(-o+f)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function Rt(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function Nt(e,t,n,r,i,o,a,s,l,u,c){var f,d,h,p,g,m=.005,v=1/0;wt[0]=l,wt[1]=u;for(var y=0;y<1;y+=.05)St[0]=Ct(e,n,i,a,y),St[1]=Ct(t,r,o,s,y),(p=we(wt,St))<v&&(f=y,v=p);v=1/0;for(var b=0;b<32&&!(m<yt);b++)d=f-m,h=f+m,St[0]=Ct(e,n,i,a,d),St[1]=Ct(t,r,o,s,d),p=we(St,wt),d>=0&&p<v?(f=d,v=p):(xt[0]=Ct(e,n,i,a,h),xt[1]=Ct(t,r,o,s,h),g=we(xt,wt),h<=1&&g<v?(f=h,v=g):m*=.5);return c&&(c[0]=Ct(e,n,i,a,f),c[1]=Ct(t,r,o,s,f)),vt(v)}function kt(e,t,n,r,i,o,a,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,g=Ct(e,n,i,a,p),m=Ct(t,r,o,s,p),v=g-u,y=m-c;f+=Math.sqrt(v*v+y*y),u=g,c=m}return f}function Lt(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Mt(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Dt(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Pt(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ut(e,t,n,r,i,o,a,s,l){var u,c=.005,f=1/0;wt[0]=a,wt[1]=s;for(var d=0;d<1;d+=.05)St[0]=Lt(e,n,i,d),St[1]=Lt(t,r,o,d),(m=we(wt,St))<f&&(u=d,f=m);f=1/0;for(var h=0;h<32&&!(c<yt);h++){var p=u-c,g=u+c;St[0]=Lt(e,n,i,p),St[1]=Lt(t,r,o,p);var m=we(St,wt);if(p>=0&&m<f)u=p,f=m;else{xt[0]=Lt(e,n,i,g),xt[1]=Lt(t,r,o,g);var v=we(xt,wt);g<=1&&v<f?(u=g,f=v):c*=.5}}return l&&(l[0]=Lt(e,n,i,u),l[1]=Lt(t,r,o,u)),vt(f)}function jt(e,t,n,r,i,o,a){for(var s=e,l=t,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,h=Lt(e,n,i,d),p=Lt(t,r,o,d),g=h-s,m=p-l;u+=Math.sqrt(g*g+m*m),s=h,l=p}return u}var Bt=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ft(e){var t=e&&Bt.exec(e);if(t){var n=t[1].split(","),r=+re(n[0]),i=+re(n[1]),o=+re(n[2]),a=+re(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:It(0,r,o,1,e,s)&&Ct(0,i,a,1,s[0])}}}const Ht=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||de,this.ondestroy=e.ondestroy||de,this.onrestart=e.onrestart||de,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=H(e)?e:gt[e]||Ft(e)},e}();var zt=function(e){this.value=e},Vt=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new zt(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Gt=function(){function e(e){this._list=new Vt,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(null==r[e]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=t:a=new zt(t),a.key=e,n.insertEntry(a),r[e]=a}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Wt=Gt;var qt={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Yt(e){return(e=Math.round(e))<0?0:e>255?255:e}function Xt(e){return e<0?0:e>1?1:e}function $t(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Yt(parseFloat(t)/100*255):Yt(parseInt(t,10))}function Kt(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?Xt(parseFloat(t)/100):Xt(parseFloat(t))}function Qt(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function Jt(e,t,n){return e+(t-e)*n}function Zt(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function en(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var tn=new Wt(20),nn=null;function rn(e,t){nn&&en(nn,t),nn=tn.put(e,nn||t.slice())}function on(e,t){if(e){t=t||[];var n=tn.get(e);if(n)return en(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in qt)return en(t,qt[r]),rn(e,t),t;var i,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Zt(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===o?parseInt(r.slice(4),16)/15:1),rn(e,t),t):void Zt(t,0,0,0,1):7===o||9===o?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Zt(t,(16711680&i)>>16,(65280&i)>>8,255&i,9===o?parseInt(r.slice(7),16)/255:1),rn(e,t),t):void Zt(t,0,0,0,1):void 0;var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var l=r.substr(0,a),u=r.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Zt(t,+u[0],+u[1],+u[2],1):Zt(t,0,0,0,1);c=Kt(u.pop());case"rgb":return 3!==u.length?void Zt(t,0,0,0,1):(Zt(t,$t(u[0]),$t(u[1]),$t(u[2]),c),rn(e,t),t);case"hsla":return 4!==u.length?void Zt(t,0,0,0,1):(u[3]=Kt(u[3]),an(u,t),rn(e,t),t);case"hsl":return 3!==u.length?void Zt(t,0,0,0,1):(an(u,t),rn(e,t),t);default:return}}Zt(t,0,0,0,1)}}function an(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Kt(e[1]),i=Kt(e[2]),o=i<=.5?i*(r+1):i+r-i*r,a=2*i-o;return Zt(t=t||[],Yt(255*Qt(a,o,n+1/3)),Yt(255*Qt(a,o,n)),Yt(255*Qt(a,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function sn(e,t){var n=on(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return un(n,4===n.length?"rgba":"rgb")}}function ln(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),o=Math.ceil(r),a=on(t[i]),s=on(t[o]),l=r-i,u=un([Yt(Jt(a[0],s[0],l)),Yt(Jt(a[1],s[1],l)),Yt(Jt(a[2],s[2],l)),Xt(Jt(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}function un(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function cn(e,t){var n=on(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}Math.round,a.hasGlobalWindow&&H(window.btoa);var fn=Array.prototype.slice;function dn(e,t,n){return(t-e)*n+e}function hn(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=dn(t[o],n[o],r);return e}function pn(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function gn(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function mn(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function vn(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:fn.call(i[s]));var l=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var u=0;u<l;u++)isNaN(r[s][u])&&(r[s][u]=i[s][u])}}function yn(e){if(k(e)){var t=e.length;if(k(e[0])){for(var n=[],r=0;r<t;r++)n.push(fn.call(e[r]));return n}return fn.call(e)}return e}function bn(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}function En(e){return 4===e||5===e}function wn(e){return 1===e||2===e}var Sn=[0,0,0,0],xn=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(k(t)){var l=function(e){return k(e&&e[0])?2:1}(t);a=l,(1===l&&!G(t[0])||2===l&&!G(t[0][0]))&&(o=!0)}else if(G(t)&&!K(t))a=0;else if(z(t))if(isNaN(+t)){var u=on(t);u&&(s=u,a=3)}else a=0;else if($(t)){var c=I({},s);c.colorStops=M(t.colorStops,(function(e){return{offset:e.offset,color:on(e.color)}})),"linear"===t.type?a=4:"radial"===t.type&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var f={time:e,value:s,rawValue:t,percent:0};return n&&(f.easing=n,f.easingFunc=H(n)?n:gt[n]||Ft(n)),r.push(f),f},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=wn(r),l=En(r),u=0;u<i;u++){var c=n[u],f=c.value,d=o.value;c.percent=c.time/e,a||(s&&u!==i-1?vn(f,d,r):l&&mn(f.colorStops,d.colorStops))}if(!a&&5!==r&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var h=n[0].value;for(u=0;u<i;u++)0===r?n[u].additiveValue=n[u].value-h:3===r?n[u].additiveValue=pn([],n[u].value,h,-1):wn(r)&&(n[u].additiveValue=1===r?pn([],n[u].value,h,-1):gn([],n[u].value,h,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,f=3===s,d=this._lastFr,h=Math.min;if(1===u)r=i=l[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=h(d+1,u-1);n>=0&&!(l[n].percent<=t);n--);n=h(n,u-2)}else{for(n=d;n<u&&!(l[n].percent>t);n++);n=h(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var p=i.percent-r.percent,g=0===p?1:h((t-r.percent)/p,1);i.easingFunc&&(g=i.easingFunc(g));var m=o?this._additiveValue:f?Sn:e[c];if(!wn(s)&&!f||m||(m=this._additiveValue=[]),this.discrete)e[c]=g<1?r.rawValue:i.rawValue;else if(wn(s))1===s?hn(m,r[a],i[a],g):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=dn(t[a][s],n[a][s],r)}}(m,r[a],i[a],g);else if(En(s)){var v=r[a],y=i[a],b=4===s;e[c]={type:b?"linear":"radial",x:dn(v.x,y.x,g),y:dn(v.y,y.y,g),colorStops:M(v.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:dn(e.offset,n.offset,g),color:bn(hn([],e.color,n.color,g))}})),global:y.global},b?(e[c].x2=dn(v.x2,y.x2,g),e[c].y2=dn(v.y2,y.y2,g)):e[c].r=dn(v.r,y.r,g)}else if(f)hn(m,r[a],i[a],g),o||(e[c]=bn(m));else{var E=dn(r[a],i[a],g);o?this._additiveValue=E:e[c]=E}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(on(e[n],Sn),pn(Sn,Sn,r,1),e[n]=bn(Sn)):1===t?pn(e[n],e[n],r,1):2===t&&gn(e[n],e[n],r,1)},e}(),_n=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?T("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,U(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new xn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,f=c[c.length-1];l=f&&f.value,3===u.valType&&l&&(l=bn(l))}else l=this._target[a];if(null==l)continue;e>0&&s.addKeyframe(0,yn(l),r),this._trackKeys.push(a)}s.addKeyframe(e,yn(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(t._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var f=new Ht({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return M(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=yn(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||U(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const Tn=_n;function Cn(){return(new Date).getTime()}var On=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return r(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Cn()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,ht((function t(){e._running&&(ht(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=Cn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Cn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Cn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Tn(e,t.loop);return this.addAnimator(n),n},t}(Re);const In=On;var An,Rn,Nn=a.domSupported,kn=(Rn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:An=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:M(An,(function(e){var t=e.replace("mouse","pointer");return Rn.hasOwnProperty(t)?t:e}))}),Ln=["mousemove","mouseup"],Mn=["pointermove","pointerup"],Dn=!1;function Pn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Un(e){e&&(e.zrByTouch=!0)}function jn(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Bn=function(e,t){this.stopPropagation=de,this.stopImmediatePropagation=de,this.preventDefault=de,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},Fn={mousedown:function(e){e=Ve(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ve(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Ve(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){jn(this,(e=Ve(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Dn=!0,e=Ve(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Dn||(e=Ve(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){Un(e=Ve(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Fn.mousemove.call(this,e),Fn.mousedown.call(this,e)},touchmove:function(e){Un(e=Ve(this.dom,e)),this.handler.processGesture(e,"change"),Fn.mousemove.call(this,e)},touchend:function(e){Un(e=Ve(this.dom,e)),this.handler.processGesture(e,"end"),Fn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&Fn.click.call(this,e)},pointerdown:function(e){Fn.mousedown.call(this,e)},pointermove:function(e){Pn(e)||Fn.mousemove.call(this,e)},pointerup:function(e){Fn.mouseup.call(this,e)},pointerout:function(e){Pn(e)||Fn.mouseout.call(this,e)}};L(["click","dblclick","contextmenu"],(function(e){Fn[e]=function(t){t=Ve(this.dom,t),this.trigger(e,t)}}));var Hn={pointermove:function(e){Pn(e)||Hn.mousemove.call(this,e)},pointerup:function(e){Hn.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function zn(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function Vn(e){var t,n,r,i,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,r=o[a],i=e.listenerOpts[a],t.removeEventListener(n,r,i));e.mounted={}}var Gn=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t};const Wn=function(e){function t(t,n){var r,i,o,s=e.call(this)||this;return s.__pointerCapturing=!1,s.dom=t,s.painterRoot=n,s._localHandlerScope=new Gn(t,Fn),Nn&&(s._globalHandlerScope=new Gn(document,Hn)),r=s,i=s._localHandlerScope,o=i.domHandlers,a.pointerEventsSupported?L(kn.pointer,(function(e){zn(i,e,(function(t){o[e].call(r,t)}))})):(a.touchEventsSupported&&L(kn.touch,(function(e){zn(i,e,(function(t){o[e].call(r,t),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(i)}))})),L(kn.mouse,(function(e){zn(i,e,(function(t){t=ze(t),i.touching||o[e].call(r,t)}))}))),s}return r(t,e),t.prototype.dispose=function(){Vn(this._localHandlerScope),Nn&&Vn(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Nn&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?function(e,t){function n(n){zn(t,n,(function(r){r=ze(r),jn(e,r.target)||(r=function(e,t){return Ve(e.dom,new Bn(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}a.pointerEventsSupported?L(Mn,n):a.touchEventsSupported||L(Ln,n)}(this,t):Vn(t)}},t}(Re);var qn=1;a.hasGlobalWindow&&(qn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Yn=qn,Xn="#333",$n="#ccc";function Kn(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Qn(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Jn(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Zn(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+a*u,e[1]=-r*u+a*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function er(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}var tr=Kn;function nr(e){return e>5e-5||e<-5e-5}var rr=[],ir=[],or=[1,0,0,1,0,0],ar=Math.abs,sr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return nr(this.rotation)||nr(this.x)||nr(this.y)||nr(this.scaleX-1)||nr(this.scaleY-1)||nr(this.skewX)||nr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):tr(n),e&&(t?Qn(n,e,n):function(e,t){e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5]}(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&tr(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(rr);var n=rr[0]<0?-1:1,r=rr[1]<0?-1:1,i=((rr[0]-n)*t+n)/rr[0]||0,o=((rr[1]-r)*t+r)/rr[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],er(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Qn(ir,e.invTransform,t),t=ir);var n=this.originX,r=this.originY;(n||r)&&(or[4]=n,or[5]=r,Qn(ir,t,or),ir[4]-=n,ir[5]-=r,t=ir),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&xe(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&xe(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ar(e[0]-1)>1e-10&&ar(e[3]-1)>1e-10?Math.sqrt(ar(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){!function(e,t){for(var n=0;n<lr.length;n++){var r=lr[n];e[r]=t[r]}}(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var h=n+a,p=r+s;t[4]=-h*i-f*p*o,t[5]=-p*o-d*h*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=d*i,t[2]=f*o,l&&Zn(t,t,l),t[4]+=n+u,t[5]+=r+c,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),lr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];const ur=sr;var cr=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}();const fr=cr;var dr=Math.min,hr=Math.max,pr=new fr,gr=new fr,mr=new fr,vr=new fr,yr=new fr,br=new fr,Er=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=dr(e.x,this.x),n=dr(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hr(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=hr(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return Jn(i,i,[-t.x,-t.y]),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(i,i,[n,r]),Jn(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(o<l||u<i||s<c||f<a);if(n){var h=1/0,p=0,g=Math.abs(o-l),m=Math.abs(u-i),v=Math.abs(s-c),y=Math.abs(f-a),b=Math.min(g,m),E=Math.min(v,y);o<l||u<i?b>p&&(p=b,g<m?fr.set(br,-g,0):fr.set(br,m,0)):b<h&&(h=b,g<m?fr.set(yr,g,0):fr.set(yr,-m,0)),s<c||f<a?E>p&&(p=E,v<y?fr.set(br,0,-v):fr.set(br,0,y)):b<h&&(h=b,v<y?fr.set(yr,0,v):fr.set(yr,0,-y))}return n&&fr.copy(n,d?yr:br),d},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}pr.x=mr.x=n.x,pr.y=vr.y=n.y,gr.x=vr.x=n.x+n.width,gr.y=mr.y=n.y+n.height,pr.transform(r),vr.transform(r),gr.transform(r),mr.transform(r),t.x=dr(pr.x,gr.x,mr.x,vr.x),t.y=dr(pr.y,gr.y,mr.y,vr.y);var l=hr(pr.x,gr.x,mr.x,vr.x),u=hr(pr.y,gr.y,mr.y,vr.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}();const wr=Er;var Sr={};function xr(e,t){var n=Sr[t=t||u];n||(n=Sr[t]=new Wt(500));var r=n.get(e);return null==r&&(r=f.measureText(e,t).width,n.put(e,r)),r}function _r(e,t,n,r){var i=xr(e,t),o=Ir(t),a=Cr(0,i,n),s=Or(0,o,r);return new wr(a,s,i,o)}function Tr(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return _r(i[0],t,n,r);for(var o=new wr(0,0,0,0),a=0;a<i.length;a++){var s=_r(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Cr(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Or(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function Ir(e){return xr("国",e)}function Ar(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Rr(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Ar(r[0],n.width),u+=Ar(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+a,u+=s,f="middle";break;case"top":l+=a/2,u-=i,c="center",f="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=a-i,u+=s,c="right",f="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,f="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",f="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Nr="__zr_normal__",kr=lr.concat(["ignore"]),Lr=D(lr,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Mr={},Dr=new wr(0,0,0,0),Pr=function(){function e(e){this.id=_(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=Dr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Mr,n,u):Rr(Mr,n,u),i.x=Mr.x,i.y=Mr.y,o=Mr.align,a=Mr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var f=void 0,d=void 0;"center"===c?(f=.5*u.width,d=.5*u.height):(f=Ar(c[0],u.width),d=Ar(c[1],u.height)),l=!0,i.originX=-i.x+f+(r?0:u.x),i.originY=-i.y+d+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(m=n.insideFill,v=n.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,v=n.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$n:Xn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&on(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,un(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(W(e))for(var n=U(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==Nr)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,kr)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Nr,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Nr;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(R(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||r);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(e,t,n,l),c&&c.useState(e,t,n,l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}T("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=e[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,e)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],f=!!(c&&c.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),h=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&h&&h.duration>0,h);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=R(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=R(r,e),o=R(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];I(n,i),i.textConfig&&I(t=t||{},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<kr.length;u++){var c=kr[u],f=i&&Lr[c];t&&null!=t[c]?f?(l=!0,s[c]=t[c]):this[c]=t[c]:a&&null!=n[c]&&(f?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var d=this.animators[u],h=d.targetName;d.getLoop()||d.__changeFinalValue(h?(t||n)[h]:t||n)}l&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new ur,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),I(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this,i=new Tn(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=R(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ur(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ur(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ur(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){return this[n]||o(this,this[n]=[]),this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function Ur(e,t,n,r,i){var o=[];Fr(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},f=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return o}function jr(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Br(e,t,n){if(k(t[n]))if(k(e[n])||(e[n]=[]),Y(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),jr(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(k(i[0]))for(var s=i[0].length,l=0;l<a;l++)o[l]?jr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else jr(o,i,a);o.length=i.length}else e[n]=t[n]}function Fr(e,t,n,r,i,o,a,s){for(var l=U(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!W(o),p=e.animators,g=[],m=0;m<l.length;m++){var v=l[m],y=r[v];if(null!=y&&null!=n[v]&&(h||o[v]))if(!W(y)||k(y)||$(y))g.push(v);else{if(t){s||(n[v]=y,e.updateDuringAnimation(t));continue}Fr(e,v,n[v],y,i,o&&o[v],a,s)}else s||(n[v]=y,e.updateDuringAnimation(t),g.push(v))}var b=g.length;if(!f&&b)for(var E=0;E<p.length;E++)if((S=p[E]).targetName===t&&S.stopTracks(g)){var w=R(p,S);p.splice(w,1)}if(i.force||(g=P(g,(function(e){return!((t=r[e])===(i=n[e])||k(t)&&k(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i})),b=g.length),b>0||i.force&&!a.length){var S,x=void 0,_=void 0,T=void 0;if(s)for(_={},d&&(x={}),E=0;E<b;E++)_[v=g[E]]=n[v],d?x[v]=r[v]:n[v]=r[v];else if(d)for(T={},E=0;E<b;E++)T[v=g[E]]=yn(n[v]),Br(n,r,v);(S=new Tn(n,!1,!1,f?P(p,(function(e){return e.targetName===t})):null)).targetName=t,i.scope&&(S.scope=i.scope),d&&x&&S.whenWithKeys(0,x,g),T&&S.whenWithKeys(0,T,g),S.whenWithKeys(null==u?500:u,s?_:r,g).delay(c||0),e.addAnimator(S,t),a.push(S)}}N(Pr,Re),N(Pr,ur);const Hr=Pr;var zr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return r(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=R(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=R(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new wr(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(wr.applyTransform(t,s,l),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(Hr);zr.prototype.type="group";const Vr=zr;var Gr={},Wr={},qr=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new dt,o=n.renderer||"canvas";Gr[o]||(o=U(Gr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var s=new Gr[o](t,i,n,e),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=a.node||a.worker||l?null:new Wn(s.getViewportRoot(),s.root);this.handler=new nt(i,s,u,s.root),this.animation=new In({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return cn(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=cn(t[i].color,1);return(n/=r)<.4}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=Cn();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=Cn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Vr&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,function(e){delete Wr[e]}(this.id)},e}();function Yr(e,t){var n=new qr(_(),e,t);return Wr[n.id]=n,n}function Xr(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function $r(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return z(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function Kr(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function Qr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return function(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}(e)}function Jr(e,t){var n=Math.max(Qr(e),Qr(t)),r=e+t;return n>20?r:Kr(r,n)}function Zr(e){var t=2*Math.PI;return(e%t+t)%t}function ei(e){return e>-1e-4&&e<1e-4}var ti=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ni(e){if(e instanceof Date)return e;if(z(e)){var t=ti.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function ri(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function ii(e,t){var n=ri(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function oi(e){var t=parseFloat(e);return t==e&&(0!==t||!z(e)||e.indexOf("x")<=0)?t:NaN}function ai(){return Math.round(9*Math.random())}function si(e,t){return 0===t?e:si(t,e%t)}function li(e,t){return null==e?t:null==t?e:e*t/si(e,t)}function ui(e,t,n){return(t-e)*n+e}var ci="series\0";function fi(e){return e instanceof Array?e:null==e?[]:[e]}function di(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var hi=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function pi(e){return!W(e)||F(e)||e instanceof Date?e:e.value}function gi(e){return W(e)&&!(e instanceof Array)}function mi(e,t,n){var r=yi(t[e],null),i=yi(n[e],null);return null!=r&&null!=i&&r===i}function vi(e){return yi(e,"")}function yi(e,t){return null==e?t:z(e)?e:G(e)||V(e)?e+"":t}function bi(e){var t=e.name;return!(!t||!t.indexOf(ci))}function Ei(e){return e&&null!=e.id&&0===vi(e.id).indexOf("\0_ec_\0")}function wi(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?M(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?M(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function Si(){var e="__ec_inner_"+xi++;return function(t){return t[e]||(t[e]={})}}var xi=ai();function _i(e,t,n){var r=Ti(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(t,r){var i=Oi(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function Ti(e,t){var n;if(z(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=le(),o={},a=!1;return L(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();!s||!l||t&&t.includeMainTypes&&R(t.includeMainTypes,s)<0||(a=a||!!s,(i.get(s)||i.set(s,{}))[l]=e)}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Ci={useDefault:!0,enableAll:!1,enableNone:!1};function Oi(e,t,n,r){r=r||Ci;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return"none"===i||!1===i?(ne(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(ne(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function Ii(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ai(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(G(r))return Kr(p=ui(n||0,r,i),o?Math.max(Qr(n||0),Qr(r)):t);if(z(r))return i<1?n:r;for(var a=[],s=n,l=r,u=Math.max(s?s.length:0,l.length),c=0;c<u;++c){var f=e.getDimensionInfo(c);if(f&&"ordinal"===f.type)a[c]=(i<1&&s?s:l)[c];else{var d=s&&s[c]?s[c]:0,h=l[c],p=ui(d,h,i);a[c]=Kr(p,o?Math.max(Qr(d),Qr(h)):t)}}return a}var Ri="___EC__COMPONENT__CONTAINER___",Ni="___EC__EXTENDED_CLASS___";function ki(e){var t={main:"",sub:""};if(e){var n=e.split(".");t.main=n[0]||"",t.sub=n[1]||""}return t}function Li(e,t){e.$constructor=e,e.extend=function(e){var t,n,i=this;return H(n=i)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t}(i):(t=function(){(e.$constructor||i).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),I(t.prototype,e),t[Ni]=!0,t.extend=this.extend,t.superCall=Pi,t.superApply=Ui,t.superClass=i,t}}function Mi(e,t){e.extend=t.extend}var Di=Math.round(10*Math.random());function Pi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Ui(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ji(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=ki(r);if(i.sub){if(i.sub!==Ri){var o=function(e){var n=t[e.main];return n&&n[Ri]||((n=t[e.main]={})[Ri]=!0),n}(i);o[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Ri]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=ki(e),r=[],i=t[n.main];return i&&i[Ri]?L(i,(function(e,t){t!==Ri&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=ki(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return L(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=ki(e),r=t[n.main];return r&&r[Ri]}}function Bi(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&R(r,s)>=0||i&&R(i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var Fi=Bi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Hi=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Fi(this,e,t)},e}(),zi=new Wt(50);function Vi(e){if("string"==typeof e){var t=zi.get(e);return t&&t.image}return e}function Gi(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=zi.get(e),a={hostEl:n,cb:r,cbPayload:i};if(o)!qi(t=o.image)&&o.pending.push(a);else{var s=f.loadImage(e,Wi,Wi);s.__zrImageSrc=e,zi.put(e,s.__cachedImgObj={image:s,pending:[a]})}return t}return e}return t}function Wi(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function qi(e){return e&&e.width&&e.height}var Yi=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Xi(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=$i(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Ki(o[a],i);return o.join("\n")}function $i(e,t,n,r){var i=I({},r=r||{});i.font=t,n=J(n,"..."),i.maxIterations=J(r.maxIterations,2);var o=i.minChar=J(r.minChar,0);i.cnCharWidth=xr("国",t);var a=i.ascCharWidth=xr("a",t);i.placeholder=J(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var u=xr(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Ki(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=xr(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Qi(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=xr(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Qi(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Ji=function(){},Zi=function(e){this.tokens=[],e&&(this.tokens=e)},eo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function to(e,t,n,r,i){var o,a,s=""===t,l=i&&n.rich[i]||{},u=e.lines,c=l.font||n.font,f=!1;if(r){var d=l.padding,h=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var p=Ar(l.width,r.width)+h;u.length>0&&p+r.accumWidth>r.width&&(o=t.split("\n"),f=!0),r.accumWidth=p}else{var g=io(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,a=g.linesWidths,o=g.lines}}else o=t.split("\n");for(var m=0;m<o.length;m++){var v=o[m],y=new Ji;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:xr(v,c),m||f)u.push(new Zi([y]));else{var b=(u[u.length-1]||(u[0]=new Zi)).tokens,E=b.length;1===E&&b[0].isLineHolder?b[0]=y:(v||!E||s)&&b.push(y)}}}var no=D(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function ro(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=383}(e)||!!no[e]}function io(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if("\n"!==d){var h=xr(d,t),p=!r&&!ro(d);(o.length?c+h>n:i+c+h>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=h):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=h)):p?(o.push(l),a.push(u),l=d,u=h):(o.push(d),a.push(h)):(c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var oo="__zr_style_"+Math.round(10*Math.random()),ao={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},so={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ao[oo]=!0;var lo=["z","z2","invisible"],uo=["invisible"],co=function(e){function t(t){return e.call(this,t)||this}var n;return r(t,e),t.prototype._init=function(t){for(var n=U(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(i=this,o=e,a=t,fo.copy(i.getBoundingRect()),i.transform&&fo.applyTransform(i.transform),ho.width=o,ho.height=a,!fo.intersect(ho))||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths)for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1;if(r&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new wr(0,0,0,0)),t?wr.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new wr(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:I(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return ue(ao,e)},t.prototype.useStyle=function(e){e[oo]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[oo]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,lo)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=U(u),f=0;f<c.length;f++)(h=c[f])in s&&(s[h]=s[h],this.style[h]=u[h]);var d=U(s);for(f=0;f<d.length;f++){var h=d[f];this.style[h]=this.style[h]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?uo:lo;for(f=0;f<p.length;f++)h=p[f],n&&null!=n[h]?this[h]=n[h]:l&&null!=r[h]&&(this[h]=r[h])},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return I(e,t),e},t.prototype.getAnimationStyleProps=function(){return so},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=3)),t}(Hr),fo=new wr(0,0,0,0),ho=new wr(0,0,0,0);const po=co;var go=Math.min,mo=Math.max,vo=Math.sin,yo=Math.cos,bo=2*Math.PI,Eo=pe(),wo=pe(),So=pe();function xo(e,t,n,r,i,o){i[0]=go(e,n),i[1]=go(t,r),o[0]=mo(e,n),o[1]=mo(t,r)}var _o=[],To=[];function Co(e,t,n,r,i,o,a,s,l,u){var c=At,f=Ct,d=c(e,n,i,a,_o);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,n,i,a,_o[h]);l[0]=go(p,l[0]),u[0]=mo(p,u[0])}for(d=c(t,r,o,s,To),h=0;h<d;h++){var g=f(t,r,o,s,To[h]);l[1]=go(g,l[1]),u[1]=mo(g,u[1])}l[0]=go(e,l[0]),u[0]=mo(e,u[0]),l[0]=go(a,l[0]),u[0]=mo(a,u[0]),l[1]=go(t,l[1]),u[1]=mo(t,u[1]),l[1]=go(s,l[1]),u[1]=mo(s,u[1])}function Oo(e,t,n,r,i,o,a,s){var l=Dt,u=Lt,c=mo(go(l(e,n,i),1),0),f=mo(go(l(t,r,o),1),0),d=u(e,n,i,c),h=u(t,r,o,f);a[0]=go(e,i,d),a[1]=go(t,o,h),s[0]=mo(e,i,d),s[1]=mo(t,o,h)}function Io(e,t,n,r,i,o,a,s,l){var u=_e,c=Te,f=Math.abs(i-o);if(f%bo<1e-4&&f>1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(Eo[0]=yo(i)*n+e,Eo[1]=vo(i)*r+t,wo[0]=yo(o)*n+e,wo[1]=vo(o)*r+t,u(s,Eo,wo),c(l,Eo,wo),(i%=bo)<0&&(i+=bo),(o%=bo)<0&&(o+=bo),i>o&&!a?o+=bo:i<o&&a&&(i+=bo),a){var d=o;o=i,i=d}for(var h=0;h<o;h+=Math.PI/2)h>i&&(So[0]=yo(h)*n+e,So[1]=vo(h)*r+t,u(s,So,s),c(l,So,l))}var Ao={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ro=[],No=[],ko=[],Lo=[],Mo=[],Do=[],Po=Math.min,Uo=Math.max,jo=Math.cos,Bo=Math.sin,Fo=Math.abs,Ho=Math.PI,zo=2*Ho,Vo="undefined"!=typeof Float32Array,Go=[];function Wo(e){return Math.round(e/Ho*1e8)/1e8%2*Ho}var qo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=Fo(n/Yn/e)||0,this._uy=Fo(n/Yn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ao.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Fo(e-this._xi),r=Fo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Ao.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(Ao.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Ao.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),Go[0]=r,Go[1]=i,function(e,t){var n=Wo(e[0]);n<0&&(n+=zo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=zo?i=n+zo:t&&n-i>=zo?i=n-zo:!t&&n>i?i=n+(zo-Wo(n-i)):t&&n<i&&(i=n-(zo-Wo(i-n))),e[0]=n,e[1]=i}(Go,o),r=Go[0];var a=(i=Go[1])-r;return this.addData(Ao.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=jo(i)*n+e,this._yi=Bo(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Ao.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ao.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Vo||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();for(Vo&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n)),i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Vo&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ko[0]=ko[1]=Mo[0]=Mo[1]=Number.MAX_VALUE,Lo[0]=Lo[1]=Do[0]=Do[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case Ao.M:n=i=t[e++],r=o=t[e++],Mo[0]=i,Mo[1]=o,Do[0]=i,Do[1]=o;break;case Ao.L:xo(n,r,t[e],t[e+1],Mo,Do),n=t[e++],r=t[e++];break;case Ao.C:Co(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],Mo,Do),n=t[e++],r=t[e++];break;case Ao.Q:Oo(n,r,t[e++],t[e++],t[e],t[e+1],Mo,Do),n=t[e++],r=t[e++];break;case Ao.A:var l=t[e++],u=t[e++],c=t[e++],f=t[e++],d=t[e++],h=t[e++]+d;e+=1;var p=!t[e++];s&&(i=jo(d)*c+l,o=Bo(d)*f+u),Io(l,u,c,f,d,h,p,Mo,Do),n=jo(h)*c+l,r=Bo(h)*f+u;break;case Ao.R:xo(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],Mo,Do);break;case Ao.Z:n=i,r=o}_e(ko,ko,Mo),Te(Lo,Lo,Do)}return 0===e&&(ko[0]=ko[1]=Lo[0]=Lo[1]=0),new wr(ko[0],ko[1],Lo[0]-ko[0],Lo[1]-ko[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,f=0;f<t;){var d=e[f++],h=1===f;h&&(a=i=e[f],s=o=e[f+1]);var p=-1;switch(d){case Ao.M:i=a=e[f++],o=s=e[f++];break;case Ao.L:var g=e[f++],m=(b=e[f++])-o;(Fo(A=g-i)>n||Fo(m)>r||f===t-1)&&(p=Math.sqrt(A*A+m*m),i=g,o=b);break;case Ao.C:var v=e[f++],y=e[f++],b=(g=e[f++],e[f++]),E=e[f++],w=e[f++];p=kt(i,o,v,y,g,b,E,w,10),i=E,o=w;break;case Ao.Q:p=jt(i,o,v=e[f++],y=e[f++],g=e[f++],b=e[f++],10),i=g,o=b;break;case Ao.A:var S=e[f++],x=e[f++],_=e[f++],T=e[f++],C=e[f++],O=e[f++],I=O+C;f+=1,e[f++],h&&(a=jo(C)*_+S,s=Bo(C)*T+x),p=Uo(_,T)*Po(zo,Math.abs(O)),i=jo(I)*_+S,o=Bo(I)*T+x;break;case Ao.R:a=i=e[f++],s=o=e[f++],p=2*e[f++]+2*e[f++];break;case Ao.Z:var A=a-i;m=s-o,p=Math.sqrt(A*A+m*m),i=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,f,d=this.data,h=this._ux,p=this._uy,g=this._len,m=t<1,v=0,y=0,b=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=t*this._pathLen))e:for(var E=0;E<g;){var w=d[E++],S=1===E;switch(S&&(n=i=d[E],r=o=d[E+1]),w!==Ao.L&&b>0&&(e.lineTo(c,f),b=0),w){case Ao.M:n=i=d[E++],r=o=d[E++],e.moveTo(i,o);break;case Ao.L:a=d[E++],s=d[E++];var x=Fo(a-i),_=Fo(s-o);if(x>h||_>p){if(m){if(v+(X=l[y++])>u){var T=(u-v)/X;e.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break e}v+=X}e.lineTo(a,s),i=a,o=s,b=0}else{var C=x*x+_*_;C>b&&(c=a,f=s,b=C)}break;case Ao.C:var O=d[E++],I=d[E++],A=d[E++],R=d[E++],N=d[E++],k=d[E++];if(m){if(v+(X=l[y++])>u){Rt(i,O,A,N,T=(u-v)/X,Ro),Rt(o,I,R,k,T,No),e.bezierCurveTo(Ro[1],No[1],Ro[2],No[2],Ro[3],No[3]);break e}v+=X}e.bezierCurveTo(O,I,A,R,N,k),i=N,o=k;break;case Ao.Q:if(O=d[E++],I=d[E++],A=d[E++],R=d[E++],m){if(v+(X=l[y++])>u){Pt(i,O,A,T=(u-v)/X,Ro),Pt(o,I,R,T,No),e.quadraticCurveTo(Ro[1],No[1],Ro[2],No[2]);break e}v+=X}e.quadraticCurveTo(O,I,A,R),i=A,o=R;break;case Ao.A:var L=d[E++],M=d[E++],D=d[E++],P=d[E++],U=d[E++],j=d[E++],B=d[E++],F=!d[E++],H=D>P?D:P,z=Fo(D-P)>.001,V=U+j,G=!1;if(m&&(v+(X=l[y++])>u&&(V=U+j*(u-v)/X,G=!0),v+=X),z&&e.ellipse?e.ellipse(L,M,D,P,B,U,V,F):e.arc(L,M,H,U,V,F),G)break e;S&&(n=jo(U)*D+L,r=Bo(U)*P+M),i=jo(V)*D+L,o=Bo(V)*P+M;break;case Ao.R:n=i=d[E],r=o=d[E+1],a=d[E++],s=d[E++];var W=d[E++],q=d[E++];if(m){if(v+(X=l[y++])>u){var Y=u-v;e.moveTo(a,s),e.lineTo(a+Po(Y,W),s),(Y-=W)>0&&e.lineTo(a+W,s+Po(Y,q)),(Y-=q)>0&&e.lineTo(a+Uo(W-Y,0),s+q),(Y-=W)>0&&e.lineTo(a,s+Uo(q-Y,0));break e}v+=X}e.rect(a,s,W,q);break;case Ao.Z:if(m){var X;if(v+(X=l[y++])>u){T=(u-v)/X,e.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break e}v+=X}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Ao,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Yo=qo;function Xo(e,t,n,r,i,o,a){if(0===i)return!1;var s,l=i;if(a>t+l&&a>r+l||a<t-l&&a<r-l||o>e+l&&o>n+l||o<e-l&&o<n-l)return!1;if(e===n)return Math.abs(o-e)<=l/2;var u=(s=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return u*u/(s*s+1)<=l/2*l/2}function $o(e,t,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var f=l;return!(c>t+f&&c>r+f&&c>o+f&&c>s+f||c<t-f&&c<r-f&&c<o-f&&c<s-f||u>e+f&&u>n+f&&u>i+f&&u>a+f||u<e-f&&u<n-f&&u<i-f&&u<a-f)&&Nt(e,t,n,r,i,o,a,s,u,c,null)<=f/2}function Ko(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;return!(l>t+u&&l>r+u&&l>o+u||l<t-u&&l<r-u&&l<o-u||s>e+u&&s>n+u&&s>i+u||s<e-u&&s<n-u&&s<i-u)&&Ut(e,t,n,r,i,o,s,l,null)<=u/2}var Qo=2*Math.PI;function Jo(e){return(e%=Qo)<0&&(e+=Qo),e}var Zo=2*Math.PI;function ea(e,t,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Zo<1e-4)return!0;if(o){var f=r;r=Jo(i),i=Jo(f)}else r=Jo(r),i=Jo(i);r>i&&(i+=Zo);var d=Math.atan2(l,s);return d<0&&(d+=Zo),d>=r&&d<=i||d+Zo>=r&&d+Zo<=i}function ta(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var l=a*(n-e)+e;return l===i?1/0:l>i?s:0}var na=Yo.CMD,ra=2*Math.PI,ia=[-1,-1,-1],oa=[-1,-1];function aa(e,t,n,r,i,o,a,s,l,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var c,f=It(t,r,o,s,u,ia);if(0===f)return 0;for(var d=0,h=-1,p=void 0,g=void 0,m=0;m<f;m++){var v=ia[m],y=0===v||1===v?.5:1;Ct(e,n,i,a,v)<l||(h<0&&(h=At(t,r,o,s,oa),oa[1]<oa[0]&&h>1&&(void 0,c=oa[0],oa[0]=oa[1],oa[1]=c),p=Ct(t,r,o,s,oa[0]),h>1&&(g=Ct(t,r,o,s,oa[1]))),2===h?v<oa[0]?d+=p<t?y:-y:v<oa[1]?d+=g<p?y:-y:d+=s<g?y:-y:v<oa[0]?d+=p<t?y:-y:d+=s<p?y:-y)}return d}function sa(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,l=0;if(_t(o))Tt(a)&&(c=-s/a)>=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*o*s;if(_t(u))(c=-a/(2*o))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,f=vt(u),d=(-a-f)/(2*o);(c=(-a+f)/(2*o))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(t,r,o,s,ia);if(0===l)return 0;var u=Dt(t,r,o);if(u>=0&&u<=1){for(var c=0,f=Lt(t,r,o,u),d=0;d<l;d++){var h=0===ia[d]||1===ia[d]?.5:1;Lt(e,n,i,ia[d])<a||(ia[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}return h=0===ia[0]||1===ia[0]?.5:1,Lt(e,n,i,ia[0])<a?0:o<t?h:-h}function la(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);ia[0]=-l,ia[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=ra-1e-4){r=0,i=ra;var c=o?1:-1;return a>=ia[0]+e&&a<=ia[1]+e?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=ra,i+=ra);for(var d=0,h=0;h<2;h++){var p=ia[h];if(p+e>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=ra+g),(g>=r&&g<=i||g+ra>=r&&g+ra<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ua(e,t,n,r,i){for(var o,a,s=e.data,l=e.len(),u=0,c=0,f=0,d=0,h=0,p=0;p<l;){var g=s[p++],m=1===p;switch(g===na.M&&p>1&&(n||(u+=ta(c,f,d,h,r,i))),m&&(d=c=s[p],h=f=s[p+1]),g){case na.M:c=d=s[p++],f=h=s[p++];break;case na.L:if(n){if(Xo(c,f,s[p],s[p+1],t,r,i))return!0}else u+=ta(c,f,s[p],s[p+1],r,i)||0;c=s[p++],f=s[p++];break;case na.C:if(n){if($o(c,f,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=aa(c,f,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],f=s[p++];break;case na.Q:if(n){if(Ko(c,f,s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=sa(c,f,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],f=s[p++];break;case na.A:var v=s[p++],y=s[p++],b=s[p++],E=s[p++],w=s[p++],S=s[p++];p+=1;var x=!!(1-s[p++]);o=Math.cos(w)*b+v,a=Math.sin(w)*E+y,m?(d=o,h=a):u+=ta(c,f,o,a,r,i);var _=(r-v)*E/b+v;if(n){if(ea(v,y,E,w,w+S,x,t,_,i))return!0}else u+=la(v,y,E,w,w+S,x,_,i);c=Math.cos(w+S)*b+v,f=Math.sin(w+S)*E+y;break;case na.R:if(d=c=s[p++],h=f=s[p++],o=d+s[p++],a=h+s[p++],n){if(Xo(d,h,o,h,t,r,i)||Xo(o,h,o,a,t,r,i)||Xo(o,a,d,a,t,r,i)||Xo(d,a,d,h,t,r,i))return!0}else u+=ta(o,h,o,a,r,i),u+=ta(d,a,d,h,r,i);break;case na.Z:if(n){if(Xo(c,f,d,h,t,r,i))return!0}else u+=ta(c,f,d,h,r,i);c=d,f=h}}return n||function(e,t){return Math.abs(e-t)<1e-4}(f,h)||(u+=ta(c,f,d,h,r,i)||0),0!==u}var ca=A({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ao),fa={style:A({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},so.style)},da=lr.concat(["invisible","culling","z","z2","zlevel","parent"]),ha=function(e){function t(t){return e.call(this,t)||this}var n;return r(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<da.length;++s)i[da[s]]=this[da[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=U(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?I(this.style,a):this.useStyle(a):"shape"===o?I(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(z(e)){var t=cn(e,0);return t>.5?Xn:t>.2?"#eee":$n}if(e)return $n}return Xn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(z(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==cn(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Yo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return ua(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return ua(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return ue(ca,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=I({},r.shape),I(s,n.shape)):(s=I({},i?this.shape:r.shape),I(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=I({},this.shape);for(var u={},c=U(s),f=0;f<c.length;f++){var d=c[f];"object"==typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(t,{shape:u},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return fa},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return r(n,t),n.prototype.getDefaultStyle=function(){return C(e.style)},n.prototype.getDefaultShape=function(){return C(e.shape)},n}(t);for(var i in e)"function"==typeof e[i]&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=7)),t}(po);const pa=ha;var ga=A({strokeFirst:!0,font:u,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ca),ma=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return ue(ga,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Tr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(po);ma.prototype.type="tspan";const va=ma;var ya=A({x:0,y:0},ao),ba={style:A({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},so.style)},Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.createStyle=function(e){return ue(ya,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return ba},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new wr(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(po);Ea.prototype.type="image";const wa=Ea;var Sa=Math.round;function xa(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Sa(2*r)===Sa(2*i)&&(e.x1=e.x2=Ta(r,s,!0)),Sa(2*o)===Sa(2*a)&&(e.y1=e.y2=Ta(o,s,!0)),e):e}}function _a(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Ta(r,s,!0),e.y=Ta(i,s,!0),e.width=Math.max(Ta(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Ta(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Ta(e,t,n){if(!t)return e;var r=Sa(2*e);return(r+Sa(t))%2==0?r/2:(r+(n?1:-1))/2}var Ca=function(){this.x=0,this.y=0,this.width=0,this.height=0},Oa={},Ia=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new Ca},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=_a(Oa,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,l=t.y,u=t.width,c=t.height,f=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>u&&(n*=u/(a=n+r),r*=u/a),i+o>u&&(i*=u/(a=i+o),o*=u/a),r+i>c&&(r*=c/(a=r+i),i*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pa);Ia.prototype.type="rect";const Aa=Ia;var Ra={fill:"#000"},Na={style:A({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},so.style)},ka=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ra,n.attr(t),n}return r(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Ua(e=this.style),L(e.rich,Ua),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new wr(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ra},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return I(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=U(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},I(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return Na},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||u,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=Ir(o),l=J(t.lineHeight,s),u=!!t.backgroundColor,c="truncate"===t.lineOverflow,f=t.width,d=(n=null==f||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?io(e,t.font,f,"breakAll"===r,0).lines:[]).length*l,h=J(t.height,d);if(d>h&&c){var p=Math.floor(h/l);n=n.slice(0,p)}if(e&&a&&null!=f)for(var g=$i(f,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<n.length;m++)n[m]=Ki(n[m],g);var v=h,y=0;for(m=0;m<n.length;m++)y=Math.max(xr(n[m],o),y);null==f&&(f=y);var b=y;return i&&(v+=i[0]+i[2],b+=i[1]+i[3],f+=i[1]+i[3]),u&&(b=f),{lines:n,height:h,outerWidth:b,outerHeight:v,lineHeight:l,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:f}}(Ha(e),e),i=za(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,l=r.contentWidth,c=r.lines,f=r.lineHeight,d=this._defaultStyle,h=e.x||0,p=e.y||0,g=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",v=h,y=Or(p,r.contentHeight,m);if(i||n){var b=Cr(h,s,g),E=Or(p,a,m);i&&this._renderBackground(e,e,b,E,s,a)}y+=f/2,n&&(v=Fa(h,g,n),"top"===m?y+=n[0]:"bottom"===m&&(y-=n[2]));for(var w=0,S=!1,x=(Ba("fill"in e?e.fill:(S=!0,d.fill))),_=(ja("stroke"in e?e.stroke:o||d.autoStroke&&!S?null:(w=2,d.stroke))),T=e.textShadowBlur>0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),O=r.calculatedLineHeight,I=0;I<c.length;I++){var A=this._getOrCreateChild(va),R=A.createStyle();A.useStyle(R),R.text=c[I],R.x=v,R.y=y,g&&(R.textAlign=g),R.textBaseline="middle",R.opacity=e.opacity,R.strokeFirst=!0,T&&(R.shadowBlur=e.textShadowBlur||0,R.shadowColor=e.textShadowColor||"transparent",R.shadowOffsetX=e.textShadowOffsetX||0,R.shadowOffsetY=e.textShadowOffsetY||0),R.stroke=_,R.fill=x,_&&(R.lineWidth=e.lineWidth||w,R.lineDash=e.lineDash,R.lineDashOffset=e.lineDashOffset||0),R.font=t,Pa(R,e),y+=f,C&&A.setBoundingRect(new wr(Cr(R.x,e.width,R.textAlign),Or(R.y,O,R.textBaseline),l,O))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new eo;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Yi.lastIndex=0;null!=(r=Yi.exec(e));){var u=r.index;u>l&&to(n,e.substring(l,u),t,s),to(n,r[2],t,s,r[1]),l=Yi.lastIndex}l<e.length&&to(n,e.substring(l,e.length),t,s);var c=[],f=0,d=0,h=t.padding,p="truncate"===a,g="truncate"===t.lineOverflow;function m(e,t,n){e.width=t,e.lineHeight=n,f+=n,d=Math.max(d,t)}e:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,E=0,w=0;w<y.tokens.length;w++){var S=(k=y.tokens[w]).styleName&&t.rich[k.styleName]||{},x=k.textPadding=S.padding,_=x?x[1]+x[3]:0,T=k.font=S.font||t.font;k.contentHeight=Ir(T);var C=J(S.height,k.contentHeight);if(k.innerHeight=C,x&&(C+=x[0]+x[2]),k.height=C,k.lineHeight=Z(S.lineHeight,t.lineHeight,C),k.align=S&&S.align||t.align,k.verticalAlign=S&&S.verticalAlign||"middle",g&&null!=o&&f+k.lineHeight>o){w>0?(y.tokens=y.tokens.slice(0,w),m(y,E,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break e}var O=S.width,I=null==O||"auto"===O;if("string"==typeof O&&"%"===O.charAt(O.length-1))k.percentWidth=O,c.push(k),k.contentWidth=xr(k.text,T);else{if(I){var A=S.backgroundColor,R=A&&A.image;R&&qi(R=Vi(R))&&(k.width=Math.max(k.width,R.width*C/R.height))}var N=p&&null!=i?i-E:null;null!=N&&N<k.width?!I||N<_?(k.text="",k.width=k.contentWidth=0):(k.text=Xi(k.text,N-_,T,t.ellipsis,{minChar:t.truncateMinChar}),k.width=k.contentWidth=xr(k.text,T)):k.contentWidth=xr(k.text,T)}k.width+=_,E+=k.width,S&&(b=Math.max(b,k.lineHeight))}m(y,E,b)}for(n.outerWidth=n.width=J(i,d),n.outerHeight=n.height=J(o,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]),v=0;v<c.length;v++){var k,L=(k=c[v]).percentWidth;k.width=parseInt(L,10)/100*n.width}return n}(Ha(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,l=this._defaultStyle,u=e.align||l.align,c=e.verticalAlign||l.verticalAlign,f=Cr(a,r,u),d=Or(s,i,c),h=f,p=d;o&&(h+=o[3],p+=o[0]);var g=h+n;za(e)&&this._renderBackground(e,e,f,d,r,i);for(var m=!!e.backgroundColor,v=0;v<t.lines.length;v++){for(var y=t.lines[v],b=y.tokens,E=b.length,w=y.lineHeight,S=y.width,x=0,_=h,T=g,C=E-1,O=void 0;x<E&&(!(O=b[x]).align||"left"===O.align);)this._placeToken(O,e,w,p,_,"left",m),S-=O.width,_+=O.width,x++;for(;C>=0&&"right"===(O=b[C]).align;)this._placeToken(O,e,w,p,T,"right",m),S-=O.width,T-=O.width,C--;for(_+=(n-(_-h)-(g-T)-S)/2;x<=C;)O=b[x],this._placeToken(O,e,w,p,_+O.width/2,"center",m),_+=O.width,x++;p+=w}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,c=r+n/2;"top"===l?c=r+e.height/2:"bottom"===l&&(c=r+n-e.height/2),!e.isLineHolder&&za(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,c-e.height/2,e.width,e.height);var f=!!s.backgroundColor,d=e.textPadding;d&&(i=Fa(i,o,d),c-=e.height/2-d[0]-e.innerHeight/2);var h=this._getOrCreateChild(va),p=h.createStyle();h.useStyle(p);var g=this._defaultStyle,m=!1,v=0,y=Ba("fill"in s?s.fill:"fill"in t?t.fill:(m=!0,g.fill)),b=ja("stroke"in s?s.stroke:"stroke"in t?t.stroke:f||a||g.autoStroke&&!m?null:(v=2,g.stroke)),E=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=c,E&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||u,p.opacity=Z(s.opacity,t.opacity,1),Pa(p,s),b&&(p.lineWidth=Z(s.lineWidth,t.lineWidth,v),p.lineDash=J(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=b),y&&(p.fill=y);var w=e.contentWidth,S=e.contentHeight;h.setBoundingRect(new wr(Cr(p.x,w,p.textAlign),Or(p.y,S,p.textBaseline),w,S))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l,u=e.backgroundColor,c=e.borderWidth,f=e.borderColor,d=u&&u.image,h=u&&!d,p=e.borderRadius,g=this;if(h||e.lineHeight||c&&f){(a=this._getOrCreateChild(Aa)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=p,a.dirtyShape()}if(h)(l=a.style).fill=u||null,l.fillOpacity=J(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(wa)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=r,v.width=i,v.height=o}c&&f&&((l=a.style).lineWidth=c,l.stroke=f,l.strokeOpacity=J(e.strokeOpacity,1),l.lineDash=e.borderDash,l.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Z(e.opacity,t.opacity,1)},t.makeFont=function(e){var t,n="";return function(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}(e)&&(n=[e.fontStyle,e.fontWeight,(t=e.fontSize,"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?"12px":t+"px":t),e.fontFamily||"sans-serif"].join(" ")),n&&re(n)||e.textFont||e.font},t}(po),La={left:!0,right:1,center:1},Ma={top:1,bottom:1,middle:1},Da=["fontStyle","fontWeight","fontSize","fontFamily"];function Pa(e,t){for(var n=0;n<Da.length;n++){var r=Da[n],i=t[r];null!=i&&(e[r]=i)}}function Ua(e){if(e){e.font=ka.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||La[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||Ma[n]?n:"top",e.padding&&(e.padding=te(e.padding))}}function ja(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ba(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Fa(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Ha(e){var t=e.text;return null!=t&&(t+=""),t}function za(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Va=ka;var Ga=Si(),Wa=1,qa={},Ya=Si(),Xa=Si(),$a=["emphasis","blur","select"],Ka=["normal","emphasis","blur","select"],Qa="highlight",Ja="downplay",Za="select",es="unselect",ts="toggleSelect";function ns(e){return null!=e&&"none"!==e}var rs=new Wt(100);function is(e){if(z(e)){var t=rs.get(e);return t||(t=sn(e,-.1),rs.put(e,t)),t}if($(e)){var n=I({},e);return n.colorStops=M(e.colorStops,(function(e){return{offset:e.offset,color:sn(e.color,-.1)}})),n}return e}function os(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function as(e){os(e,"emphasis",2)}function ss(e){2===e.hoverState&&os(e,"normal",0)}function ls(e){os(e,"blur",1)}function us(e){1===e.hoverState&&os(e,"normal",0)}function cs(e){e.selected=!0}function fs(e){e.selected=!1}function ds(e,t,n){t(e,n)}function hs(e,t,n){ds(e,t,n),e.isGroup&&e.traverse((function(e){ds(e,t,n)}))}function ps(e,t){switch(t){case"emphasis":e.hoverState=2;break;case"normal":e.hoverState=0;break;case"blur":e.hoverState=1;break;case"select":e.selected=!0}}function gs(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&R(n,"select")>=0,o=!1;if(e instanceof pa){var a=Ya(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(ns(s)||ns(l)){var u=(r=r||{}).style||{};"inherit"===u.fill?(o=!0,r=I({},r),(u=I({},u)).fill=s):!ns(u.fill)&&ns(s)?(o=!0,r=I({},r),(u=I({},u)).fill=is(s)):!ns(u.stroke)&&ns(l)&&(o||(r=I({},r),u=I({},u)),u.stroke=is(l)),r.style=u}}if(r&&null==r.z2){o||(r=I({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:10)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=R(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=I({},n),a=I({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:9)}return n}(this,0,n)}return n}function ms(e){e.stateProxy=gs;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=gs),n&&(n.stateProxy=gs)}function vs(e,t){!_s(e,t)&&!e.__highByOuter&&hs(e,as)}function ys(e,t){!_s(e,t)&&!e.__highByOuter&&hs(e,ss)}function bs(e,t){e.__highByOuter|=1<<(t||0),hs(e,as)}function Es(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&hs(e,ss)}function ws(e){hs(e,us)}function Ss(e){hs(e,cs)}function xs(e){hs(e,fs)}function _s(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ts(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=Xa(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){us(e)})),a&&n.push(i)),o.isBlured=!1})),L(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Cs(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&ws(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(e){var i=a===e,u=e.coordinateSystem;if(u&&u.master&&(u=u.master),!("series"===n&&!i||"coordinateSystem"===n&&!(u&&s?u===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){ls(e)})),k(t))o(e.getData(),t);else if(W(t))for(var c=U(t),f=0;f<c.length;f++)o(e.getData(c[f]),t[c[f]]);l.push(e),Xa(e).isBlured=!0}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function Os(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){Xa(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){ls(e)}))}}}function Is(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Ga(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function As(e){L(e.getAllData(),(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?Ss(t):xs(t)}))}))}function Rs(e){var t=[];return e.eachSeries((function(e){L(e.getAllData(),(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function Ns(e,t,n){Ps(e,!0),hs(e,ms),function(e,t,n){var r=Ga(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}(e,t,n)}function ks(e,t,n,r){r?function(e){Ps(e,!1)}(e):Ns(e,t,n)}var Ls=["emphasis","blur","select"],Ms={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ds(e,t,n,r){n=n||"itemStyle";for(var i=0;i<Ls.length;i++){var o=Ls[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Ms[n]]()}}function Ps(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Us(e){return!(!e||!e.__highDownDispatcher)}function js(e){var t=e.type;return t===Za||t===es||t===ts}function Bs(e){var t=e.type;return t===Qa||t===Ja}var Fs=Si();function Hs(e,t,n,r,i,o,a){var s,l=!1;H(i)?(a=o,o=i,i=null):W(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===e;u||t.stopAnimation("leave");var c=function(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var l=void 0,u=void 0,c=void 0;return r?(l=J(r.duration,200),u=J(r.easing,"cubicOut"),c=0):(l=t.getShallow(s?"animationDurationUpdate":"animationDuration"),u=t.getShallow(s?"animationEasingUpdate":"animationEasing"),c=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(l=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(c=o.delay)),H(c)&&(c=c(n,i)),H(l)&&(l=l(n)),{duration:l||0,delay:c,easing:u}}return null}(e,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f={duration:c.duration,delay:c.delay||0,easing:c.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function zs(e,t,n,r,i,o){Hs("update",e,t,n,r,i,o)}function Vs(e,t,n,r,i,o){Hs("enter",e,t,n,r,i,o)}function Gs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if("leave"===e.animators[t].scope)return!0;return!1}function Ws(e,t,n,r,i,o){Gs(e)||Hs("leave",e,t,n,r,i,o)}function qs(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Ws(e,{style:{opacity:0}},t,n,r)}function Ys(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||qs(e,t,n,r)})):qs(e,t,n,r)}function Xs(e){Fs(e).oldStyle=e.style}var $s={};function Ks(e,t){for(var n=0;n<$a.length;n++){var r=$a[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function Qs(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=H(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var l={normal:r},u=0;u<$a.length;u++){var c=$a[u],f=t[c];l[c]=J(i?i.getFormattedLabel(o,c,null,a,f&&f.get("formatter")):null,r)}return l}function Js(e,t,n,r){n=n||$s;for(var i=e instanceof Va,o=!1,a=0;a<Ka.length;a++)if((d=t[Ka[a]])&&d.getShallow("show")){o=!0;break}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Va,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var l=Qs(n,t),u=t.normal,c=!!u.getShallow("show"),f=el(u,r&&r.normal,n,!1,!i);for(f.text=l.normal,i||e.setTextConfig(tl(u,n,!1)),a=0;a<$a.length;a++){var d,h=$a[a];if(d=t[h]){var p=s.ensureState(h),g=!!J(d.getShallow("show"),c);g!==c&&(p.ignore=!g),p.style=el(d,r&&r[h],n,!0,!i),p.style.text=l[h],i||(e.ensureState(h).textConfig=tl(d,n,!0))}}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(f.x=s.style.x),null!=s.style.y&&(f.y=s.style.y),s.ignore=!c,s.useStyle(f),s.dirty(),n.enableTextSetter&&(al(s).setLabelText=function(e){var r=Qs(n,t,e);Ks(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Zs(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<$a.length;r++){var i=$a[r];n[i]=e.getModel([i,t])}return n}function el(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||$s;var o,a=t.ecModel,s=a&&a.option.textStyle,l=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||$s).rich;if(n){t=t||{};for(var r=U(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=t.getModel(["rich",u]);ol(o[u]={},c,s,n,r,i,!1,!0)}o&&(e.rich=o);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");null!=d&&(e.margin=d),ol(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&I(o,t),o}function tl(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=J(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var nl=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rl=["align","lineHeight","width","height","tag","verticalAlign"],il=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ol(e,t,n,r,i,o,a,s){n=!i&&n||$s;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=J(t.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(e.fill=u),null!=c&&(e.stroke=c);var d=J(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var h=J(t.getShallow("textBorderType"),n.textBorderType);null!=h&&(e.lineDash=h);var p=J(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(e.lineDashOffset=p),i||null!=f||s||(f=r&&r.defaultOpacity),null!=f&&(e.opacity=f),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var g=0;g<nl.length;g++){var m=nl[g];null!=(y=J(t.getShallow(m),n[m]))&&(e[m]=y)}for(g=0;g<rl.length;g++)m=rl[g],null!=(y=t.getShallow(m))&&(e[m]=y);if(null==e.verticalAlign){var v=t.getShallow("baseline");null!=v&&(e.verticalAlign=v)}if(!a||!r.disableBox){for(g=0;g<il.length;g++){var y;m=il[g],null!=(y=t.getShallow(m))&&(e[m]=y)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!l||(e.backgroundColor=l),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!l||(e.borderColor=l)}}var al=Si(),sl=["textStyle","color"],ll=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ul=new Va,cl=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(sl):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},n=(t=this.ecModel)&&t.getModel("textStyle"),re([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ll.length;n++)t[ll[n]]=this.getShallow(ll[n]);return ul.useStyle(t),ul.update(),ul.getBoundingRect()},e}();const fl=cl;var dl,hl,pl=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],gl=Bi(pl),ml=function(){function e(){}return e.prototype.getLineStyle=function(e){return gl(this,e)},e}(),vl=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],yl=Bi(vl),bl=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return yl(this,e,t)},e}(),El=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){O(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(C(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"==typeof n?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Li(El),dl=El,hl=["__\0is_clz",Di++].join("_"),dl.prototype[hl]=!0,dl.isInstance=function(e){return!(!e||!e[hl])},N(El,ml),N(El,bl),N(El,Hi),N(El,fl);const wl=El;var Sl=Math.round(10*Math.random());function xl(e){return[e||"",Sl++].join("_")}function _l(e,t){return O(O({},e,!0),t,!0)}var Tl="ZH",Cl="EN",Ol={},Il={},Al=a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Tl)>-1?Tl:"EN";function Rl(e,t){e=e.toUpperCase(),Il[e]=new wl(t),Ol[e]=t}Rl(Cl,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Rl(Tl,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Nl=36e5,kl=864e5,Ll=31536e6,Ml={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Dl={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Ml.hour,minute:"{yyyy}-{MM}-{dd} "+Ml.minute,second:"{yyyy}-{MM}-{dd} "+Ml.second,millisecond:Ml.none},Pl=["year","month","day","hour","minute","second","millisecond"],Ul=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function jl(e,t){return"0000".substr(0,t-(e+="").length)+e}function Bl(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Fl(e,t,n,r){var i=ni(e),o=i[Vl(n)](),a=i[Gl(n)]()+1,s=Math.floor((a-1)/4)+1,l=i[Wl(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[ql(n)](),f=(c-1)%12+1,d=i[Yl(n)](),h=i[Xl(n)](),p=i[$l(n)](),g=r instanceof wl?r:function(e){return Il[e]}(r||Al)||Il.EN,m=g.getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),E=m.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,jl(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,jl(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,E[u]).replace(/{e}/g,u+"").replace(/{HH}/g,jl(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,jl(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,jl(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,jl(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,jl(p,3)).replace(/{S}/g,p+"")}function Hl(e,t){var n=ni(e),r=n[Gl(t)]()+1,i=n[Wl(t)](),o=n[ql(t)](),a=n[Yl(t)](),s=n[Xl(t)](),l=0===n[$l(t)](),u=l&&0===s,c=u&&0===a,f=c&&0===o,d=f&&1===i;return d&&1===r?"year":d?"month":f?"day":c?"hour":u?"minute":l?"second":"millisecond"}function zl(e,t,n){var r=G(e)?ni(e):e;switch(t=t||Hl(e,n)){case"year":return r[Vl(n)]();case"half-year":return r[Gl(n)]()>=6?1:0;case"quarter":return Math.floor((r[Gl(n)]()+1)/4);case"month":return r[Gl(n)]();case"day":return r[Wl(n)]();case"half-day":return r[ql(n)]()/24;case"hour":return r[ql(n)]();case"minute":return r[Yl(n)]();case"second":return r[Xl(n)]();case"millisecond":return r[$l(n)]()}}function Vl(e){return e?"getUTCFullYear":"getFullYear"}function Gl(e){return e?"getUTCMonth":"getMonth"}function Wl(e){return e?"getUTCDate":"getDate"}function ql(e){return e?"getUTCHours":"getHours"}function Yl(e){return e?"getUTCMinutes":"getMinutes"}function Xl(e){return e?"getUTCSeconds":"getSeconds"}function $l(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Kl(e){return e?"setUTCFullYear":"setFullYear"}function Ql(e){return e?"setUTCMonth":"setMonth"}function Jl(e){return e?"setUTCDate":"setDate"}function Zl(e){return e?"setUTCHours":"setHours"}function eu(e){return e?"setUTCMinutes":"setMinutes"}function tu(e){return e?"setUTCSeconds":"setSeconds"}function nu(e){return e?"setUTCMilliseconds":"setMilliseconds"}function ru(e){if(isNaN(oi(e)))return z(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function iu(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ou=te,au=/([&<>"'])/g,su={"&":"&","<":"<",">":">",'"':""","'":"'"};function lu(e){return null==e?"":(e+"").replace(au,(function(e,t){return su[t]}))}function uu(e,t,n){function r(e){return e&&re(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?ni(e):e;if(!isNaN(+s))return Fl(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return V(e)?r(e):G(e)&&i(e)?e+"":"-";var l=oi(e);return i(l)?ru(l):V(e)?r(e):"boolean"==typeof e?e+"":"-"}var cu=["a","b","c","d","e","f","g"],fu=function(e,t){return"{"+e+(null==t?"":t)+"}"};function du(e,t,n){F(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=cu[o];e=e.replace(fu(a),fu(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(fu(cu[l],s),n?lu(u):u)}return e}function hu(e,t){return t=t||"transparent",z(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function pu(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var gu=L,mu=["left","right","top","bottom","width","height"],vu=[["width","left","right"],["height","top","bottom"]];function yu(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,f,d=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(f=a+m)>i||l.newline?(o+=s+n,a=0,f=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=f+n)}))}var bu=yu;function Eu(e,t,n){n=ou(n||0);var r=t.width,i=t.height,o=$r(e.left,r),a=$r(e.top,i),s=$r(e.right,r),l=$r(e.bottom,i),u=$r(e.width,r),c=$r(e.height,i),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var p=new wr(o+n[3],a+n[0],u,c);return p.margin=n,p}function wu(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function Su(e,t,n){var r=n&&n.ignoreSize;!F(r)&&(r=[r,r]);var i=a(vu[0],0),o=a(vu[1],1);function a(n,i){var o={},a=0,u={},c=0;if(gu(n,(function(t){u[t]=e[t]})),gu(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),r[i])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var f=0;f<n.length;f++){var d=n[f];if(!s(o,d)&&s(e,d)){o[d]=e[d];break}}return o}return u}function s(e,t){return e.hasOwnProperty(t)}function l(e,t){return null!=e[t]&&"auto"!==e[t]}function u(e,t,n){gu(e,(function(e){t[e]=n[e]}))}u(vu[0],e,i),u(vu[1],e,o)}function xu(e){return function(e,t){return t&&e&&gu(mu,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}({},e)}B(yu,"vertical"),B(yu,"horizontal");var _u=Si(),Tu=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=xl("ec_cpt_model"),i}return r(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wu(this),r=n?xu(e):{};O(e,t.getTheme().get(this.mainType)),O(e,this.getDefaultOption()),n&&Su(e,r,n)},t.prototype.mergeOption=function(e,t){O(this.option,e,!0);var n=wu(this);n&&Su(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[Ni])}(e))return e.defaultOption;var t=_u(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=O(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Oi(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(wl);Mi(Tu,wl),ji(Tu),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=ki(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=ki(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(Tu),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,t,r,i){if(e.length){var o=function(e){var t={},r=[];return L(e,(function(i){var o,a,s=n(t,i),l=function(e,t){var n=[];return L(e,(function(e){R(t,e)>=0&&n.push(e)})),n}(s.originalDeps=(o=i,a=[],L(Tu.getClassesByMainType(o),(function(e){a=a.concat(e.dependencies||e.prototype.dependencies||[])})),a=M(a,(function(e){return ki(e).main})),"dataset"!==o&&R(a,"dataset")<=0&&a.unshift("dataset"),a),e);s.entryCount=l.length,0===s.entryCount&&r.push(i),L(l,(function(e){R(s.predecessor,e)<0&&s.predecessor.push(e);var r=n(t,e);R(r.successor,e)<0&&r.successor.push(i)}))})),{graph:t,noEntryList:r}}(t),a=o.graph,s=o.noEntryList,l={};for(L(e,(function(e){l[e]=!0}));s.length;){var u=s.pop(),c=a[u],f=!!l[u];f&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),L(c.successor,f?h:d)}L(l,(function(){throw new Error("")}))}function d(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function h(e){l[e]=!0,d(e)}}}(Tu);const Cu=Tu;var Ou="";"undefined"!=typeof navigator&&(Ou=navigator.platform||"");var Iu="rgba(0, 0, 0, 0.2)";const Au={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Iu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Iu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Iu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Iu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Iu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Iu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Ou.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Ru=le(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Nu="original",ku="arrayRows",Lu="objectRows",Mu="keyedColumns",Du="typedArray",Pu="unknown",Uu="column",ju="row",Bu=Si();function Fu(e,t,n){var r={},i=Hu(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Bu(u).datasetMap,f=i.uid+"_"+n.seriesLayoutBy;L(e=e.slice(),(function(t,n){var i=W(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var d=c.get(f)||c.set(f,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function p(e){var t=e.dimsDef;return t?t.length:1}return L(e,(function(e,t){var n=e.name,i=p(e);if(null==o){var a=d.valueWayDim;h(r[n],a,i),h(l,a,i),d.valueWayDim+=i}else o===t?(h(r[n],0,i),h(s,0,i)):(a=d.categoryWayDim,h(r[n],a,i),h(l,a,i),d.categoryWayDim+=i)})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function Hu(e){if(!e.get("data",!0))return Oi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Ci).models[0]}function zu(e,t){return function(e,t,n,r,i,o){var a,s,l;if(Y(e))return 3;if(r){var u=r[o];W(u)?(s=u.name,l=u.type):z(u)&&(s=u)}if(null!=l)return"ordinal"===l?1:3;if(t===ku){var c=e;if(n===ju){for(var f=c[o],d=0;d<(f||[]).length&&d<5;d++)if(null!=(a=y(f[i+d])))return a}else for(d=0;d<c.length&&d<5;d++){var h=c[i+d];if(h&&null!=(a=y(h[o])))return a}}else if(t===Lu){var p=e;if(!s)return 3;for(d=0;d<p.length&&d<5;d++)if((m=p[d])&&null!=(a=y(m[s])))return a}else if(t===Mu){if(!s)return 3;if(!(f=e[s])||Y(f))return 3;for(d=0;d<f.length&&d<5;d++)if(null!=(a=y(f[d])))return a}else if(t===Nu){var g=e;for(d=0;d<g.length&&d<5;d++){var m,v=pi(m=g[d]);if(!F(v))return 3;if(null!=(a=y(v[o])))return a}}function y(e){var t=z(e);return null!=e&&isFinite(e)&&""!==e?t?2:3:t&&"-"!==e?1:void 0}return 3}(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}var Vu,Gu,Wu,qu=le(),Yu=Si(),Xu=(Si(),function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=fi(this.get("color",!0)),i=this.get("colorLayer",!0);return function(e,t,n,r,i,o,a){var s=t(o=o||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if((c=c||n)&&c.length){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}(this,Yu,r,i,e,t,n)},e.prototype.clearColorPalette=function(){!function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}(this,Yu)},e}());var $u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new wl(r),this._locale=new wl(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=Ju(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Ju(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):Wu(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&L(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=le(),s=t&&t.replaceMergeMainTypeMap;Bu(this).datasetMap=le(),L(e,(function(e,t){null!=e&&(Cu.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?C(e):O(n[t],e,!0))})),s&&s.each((function(e,t){Cu.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),Cu.topologicalTravel(o,Cu.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=qu.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,fi(e[t])),a=r.get(t),l=function(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=le();L(t,(function(e,n){W(e)||(t[n]=null)}));var s,l,u=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||Ei(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){L(r,(function(i,o){if(i&&null!=i.id){var a=vi(i.id),s=n.get(a);if(null!=s){var l=e[s];ne(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],r[o]=null}}}))}(u,e,a,t),r&&function(e,t){L(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!Ei(n)&&!Ei(o)&&mi("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(u,t),r||i?function(e,t,n){L(t,(function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Ei(r.existing)||r.existing&&null!=t.id&&!mi("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(u,t,i):o&&function(e,t){L(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(u,t),s=u,l=le(),L(s,(function(e){var t=e.existing;t&&l.set(t.id,e)})),L(s,(function(e){var t=e.newOption;ne(!t||null==t.id||!l.get(t.id)||l.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&l.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),L(s,(function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(W(r)){if(i.name=null!=r.name?vi(r.name):n?n.name:ci+t,n)i.id=vi(n.id);else if(null!=r.id)i.id=vi(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(l.get(i.id))}l.set(i.id,e)}})),u}(a,o,a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll");(function(e,t,n){L(e,(function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(l,t,Cu),n[t]=null,r.set(t,null),i.set(t,0);var u,c=[],f=[],d=0;L(l,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=Cu.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(u)return;u=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=I({componentIndex:n},e.keyInfo);I(r=new a(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(c.push(r.option),f.push(r),d++):(c.push(void 0),f.push(void 0))}),this),n[t]=c,r.set(t,f),i.set(t,d),"series"===t&&Vu(this)}),this),this._seriesIndices||Vu(this)},t.prototype.getOption=function(){var e=C(this.option);return L(e,(function(t,n){if(Cu.hasClass(n)){for(var r=fi(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ei(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e["\0_ec_inner"],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],L(fi(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=i?Ku("id",i,a):null!=o?Ku("name",o,a):P(a,(function(e){return!!e})),Qu(n,e)):[]},t.prototype.findComponents=function(e){var t,n=e.query,r=e.mainType,i=function(e){var t=r+"Index",n=r+"Id",i=r+"Name";return!e||null==e[t]&&null==e[n]&&null==e[i]?null:{mainType:r,index:e[t],id:e[n],name:e[i]}}(n);return t=Qu(i?this.queryComponents(i):P(this._componentsMap.get(r),(function(e){return!!e})),e),e.filter?P(t,e.filter):t},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(H(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=z(e)?r.get(e):W(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var l=a[s];l&&t.call(n,l,l.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=yi(e,null);return P(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return P(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return P(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){Gu(this),L(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){L(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){Gu(this),L(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return L(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Gu(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Gu(this);var n=[];L(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=le(n)},t.prototype.restoreData=function(e){Vu(this);var t=this._componentsMap,n=[];t.each((function(e,t){Cu.hasClass(t)&&n.push(t)})),Cu.topologicalTravel(n,Cu.getAllClassMainTypes(),(function(n){L(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(Vu=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=le(t)},Gu=function(e){},void(Wu=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=le({series:[]}),e._componentsCount=le();var n=t.aria;W(n)&&null==n.enabled&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;L(t,(function(t,r){"colorLayer"===r&&n||Cu.hasClass(r)||("object"==typeof t?e[r]=e[r]?O(e[r],t,!1):C(t):null==e[r]&&(e[r]=t))}))}(t,e._theme.option),O(t,Au,!1),e._mergeOption(t,null)})),t}(wl);function Ku(e,t,n){if(F(t)){var r=le();return L(t,(function(e){null!=e&&null!=yi(e,null)&&r.set(e,!0)})),P(n,(function(t){return t&&r.get(t[e])}))}var i=yi(t,null);return P(n,(function(t){return t&&null!=i&&t[e]===i}))}function Qu(e,t){return t.hasOwnProperty("subType")?P(e,(function(e){return e&&e.subType===t.subType})):e}function Ju(e){var t=le();return e&&L(fi(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}N($u,Xu);const Zu=$u;var ec=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const tc=function(e){L(ec,(function(t){this[t]=j(e[t],e)}),this)};var nc={};const rc=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];L(nc,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){L(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){nc[e]=t},e.get=function(e){return nc[e]},e}();var ic=/^(min|max)?(.+)$/,oc=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(fi(e.series),(function(e){e&&e.data&&Y(e.data)&&oe(e.data)})),L(fi(e.dataset),(function(e){e&&e.source&&Y(e.source)&&oe(e.source)}))),e=C(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||a&&a.timeline);function d(e){L(t,(function(t){t(e,n)}))}return a?(i=a).timeline||(i.timeline=s):((f||c)&&(e.options=e.media=null),i=e),c&&F(u)&&L(u,(function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))})),d(i),L(l,(function(e){return d(e)})),L(o,(function(e){return d(e.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],C(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=C(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var u=0,c=o.length;u<c;u++)ac(o[u].query,r,i)&&s.push(u);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(l=M(s,(function(e){return C(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,l},e}();function ac(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,(function(e,t){var n=t.match(ic);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}})),i}const sc=oc;var lc=L,uc=W,cc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fc(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=cc.length;n<r;n++){var i=cc[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?O(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?O(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function dc(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,A(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function hc(e){dc(e,"itemStyle"),dc(e,"lineStyle"),dc(e,"areaStyle"),dc(e,"label"),dc(e,"labelLine"),dc(e,"upperLabel"),dc(e,"edgeLabel")}function pc(e,t){var n=uc(e)&&e[t],r=uc(n)&&n.textStyle;if(r)for(var i=0,o=hi.length;i<o;i++){var a=hi[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}function gc(e){e&&(hc(e),pc(e,"label"),e.emphasis&&pc(e.emphasis,"label"))}function mc(e){return F(e)?e:e?[e]:[]}function vc(e){return(F(e)?e[0]:e)||{}}function yc(e){e&&L(bc,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var bc=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ec=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Sc(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<wc.length;n++){var r=wc[n][1],i=wc[n][0];null!=t[r]&&(t[i]=t[r])}}function xc(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function _c(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Tc(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Tc(e[n].children,t)}function Cc(e,t){(function(e,t){lc(mc(e.series),(function(e){uc(e)&&function(e){if(uc(e)){fc(e),hc(e),pc(e,"label"),pc(e,"upperLabel"),pc(e,"edgeLabel"),e.emphasis&&(pc(e.emphasis,"label"),pc(e.emphasis,"upperLabel"),pc(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(fc(t),gc(t));var n=e.markLine;n&&(fc(n),gc(n));var r=e.markArea;r&&gc(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Y(o))for(var a=0;a<o.length;a++)gc(o[a]);L(e.categories,(function(e){hc(e)}))}if(i&&!Y(i))for(a=0;a<i.length;a++)gc(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)gc(s[a])}if((n=e.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)F(l[a])?(gc(l[a][0]),gc(l[a][1])):gc(l[a])}"gauge"===e.type?(pc(e,"axisLabel"),pc(e,"title"),pc(e,"detail")):"treemap"===e.type?(dc(e.breadcrumb,"itemStyle"),L(e.levels,(function(e){hc(e)}))):"tree"===e.type&&hc(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),lc(n,(function(t){lc(mc(e[t]),(function(e){e&&(pc(e,"axisLabel"),pc(e.axisPointer,"label"))}))})),lc(mc(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;pc(t,"axisLabel"),pc(t&&t.axisPointer,"label")})),lc(mc(e.calendar),(function(e){dc(e,"itemStyle"),pc(e,"dayLabel"),pc(e,"monthLabel"),pc(e,"yearLabel")})),lc(mc(e.radar),(function(e){pc(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),lc(mc(e.geo),(function(e){uc(e)&&(gc(e),lc(mc(e.regions),(function(e){gc(e)})))})),lc(mc(e.timeline),(function(e){gc(e),dc(e,"label"),dc(e,"itemStyle"),dc(e,"controlStyle",!0);var t=e.data;F(t)&&L(t,(function(e){W(e)&&(dc(e,"label"),dc(e,"itemStyle"))}))})),lc(mc(e.toolbox),(function(e){dc(e,"iconStyle"),lc(e.feature,(function(e){dc(e,"iconStyle")}))})),pc(vc(e.axisPointer),"label"),pc(vc(e.tooltip).axisPointer,"label")})(e,t),e.series=fi(e.series),L(e.series,(function(e){if(W(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),xc(e.label),(i=e.data)&&!Y(i))for(var n=0;n<i.length;n++)xc(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n="pointer.color".split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e);null!=r&&function(e,t,n,r){for(var i,o="itemStyle.color".split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];null==a[o[s]]&&(a[o[s]]=n)}(e,0,r)}else if("bar"===t){var i;if(Sc(e),Sc(e.backgroundStyle),Sc(e.emphasis),(i=e.data)&&!Y(i))for(n=0;n<i.length;n++)"object"==typeof i[n]&&(Sc(i[n]),Sc(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),_c(e),Tc(e.data,_c)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&A(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),yc(e)}})),e.dataRange&&(e.visualMap=e.dataRange),L(Ec,(function(t){var n=e[t];n&&(F(n)||(n=[n]),L(n,(function(e){yc(e)})))}))}function Oc(e){L(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex;a.modify(o,(function(o,l,u){var c,f,d=a.get(t.stackedDimension,u);if(isNaN(d))return i;s?f=a.getRawIndex(u):c=a.get(t.stackedByDimension,u);for(var h=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,c)),f>=0){var m=g.data.getByRawIndex(g.stackResultDimension,f);if(d>=0&&m>0||d<=0&&m<0){d=Jr(d,m),h=m;break}}}return r[0]=d,r[1]=h,r}))}))}var Ic,Ac,Rc,Nc,kc,Lc=function(e){this.data=e.data||(e.sourceFormat===Mu?{}:[]),this.sourceFormat=e.sourceFormat||Pu,this.seriesLayoutBy=e.seriesLayoutBy||Uu,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&1===zu(this,n)&&(r.type="ordinal")}};function Mc(e){return e instanceof Lc}function Dc(e,t,n){n=n||Uc(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:jc(i),startIndex:a,dimensionsDetectedCount:o};if(t===ku){var s=e;"auto"===r||null==r?Bc((function(e){null!=e&&"-"!==e&&(z(e)?null==a&&(a=1):a=0)}),n,s,10):a=G(r)?r:r?1:0,i||1!==a||(i=[],Bc((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:n===ju?s.length:s[0]?s[0].length:null}else if(t===Lu)i||(i=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t){var r=[];return L(t,(function(e,t){r.push(t)})),r}}(e));else if(t===Mu)i||(i=[],L(e,(function(e,t){i.push(t)})));else if(t===Nu){var l=pi(e[0]);o=F(l)&&l.length||1}return{startIndex:a,dimensionsDefine:jc(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new Lc({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:C(t)})}function Pc(e){return new Lc({data:e,sourceFormat:Y(e)?Du:Nu})}function Uc(e){var t=Pu;if(Y(e))t=Du;else if(F(e)){0===e.length&&(t=ku);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(F(i)){t=ku;break}if(W(i)){t=Lu;break}}}}else if(W(e))for(var o in e)if(fe(e,o)&&k(e[o])){t=Mu;break}return t}function jc(e){if(e){var t=le();return M(e,(function(e,n){var r={name:(e=W(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function Bc(e,t,n,r){if(t===ju)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function Fc(e){var t=e.sourceFormat;return t===Lu||t===Mu}var Hc=function(){function e(e,t){var n=Mc(e)?e:Pc(e);this._source=n;var r=this._data=n.data;n.sourceFormat===Du&&(this._offset=0,this._dimSize=t,this._data=r),kc(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;kc=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine;if(I(e,Nc[Qc(a,s)]),a===Du)e.getItem=t,e.count=r,e.fillStorage=n;else{var c=Gc(a,s);e.getItem=j(c,null,i,l,u);var f=Yc(a,s);e.count=j(f,null,i,l,u)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=t-e,f=n[a],d=0;d<c;d++){var h=i[d*o+a];f[e+d]=h,h<l&&(l=h),h>u&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={}).arrayRows_column={pure:!0,appendData:i},e.arrayRows_row={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e.objectRows={pure:!0,appendData:i},e.keyedColumns={pure:!0,appendData:function(e){var t=this._data;L(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e.original={appendData:i},e.typedArray={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Nc=e}(),e}(),zc=function(e,t,n,r){return e[r]},Vc=((Ic={}).arrayRows_column=function(e,t,n,r){return e[r+t]},Ic.arrayRows_row=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Ic.objectRows=zc,Ic.keyedColumns=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=e[n[a].name];o[a]=s?s[r]:null}return o},Ic.original=zc,Ic);function Gc(e,t){return Vc[Qc(e,t)]}var Wc=function(e,t,n){return e.length},qc=((Ac={}).arrayRows_column=function(e,t,n){return Math.max(0,e.length-t)},Ac.arrayRows_row=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Ac.objectRows=Wc,Ac.keyedColumns=function(e,t,n){var r=e[n[0].name];return r?r.length:0},Ac.original=Wc,Ac);function Yc(e,t){return qc[Qc(e,t)]}var Xc=function(e,t,n){return e[t]},$c=((Rc={}).arrayRows=Xc,Rc.objectRows=function(e,t,n){return e[n]},Rc.keyedColumns=Xc,Rc.original=function(e,t,n){var r=pi(e);return r instanceof Array?r[t]:r},Rc.typedArray=Xc,Rc);function Kc(e){return $c[e]}function Qc(e,t){return e===ku?e+"_"+t:e}function Jc(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return Kc(o)(r,a,s)}var l=r;return o===Nu&&(l=pi(r)),l}}}var Zc=/\{@(.+?)\}/g,ef=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,f="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);return o&&(s.value=o.interpolatedValue),null!=r&&F(s.value)&&(s.value=s.value[r]),i||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),H(i)?(s.status=t,s.dimensionIndex=r,i(s)):z(i)?du(i,s).replace(Zc,(function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Jc(a,e,i);if(o&&F(o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Jc(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function tf(e){var t,n;return W(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function nf(e){return new rf(e)}var rf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,h=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(o||d<h)){var p=this._progress;if(F(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],d,h,l,u);else this._doProgress(p,d,h,l,u)}this._dueIndex=h;var m=null!=this._settedOutputEnd?this._settedOutputEnd:h;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){of.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:of.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),F(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),of=function(){var e,t,n,r,i,o={reset:function(l,u,c,f){t=l,e=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function af(e){throw new Error(e)}function sf(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||G(e)||null==e||"-"===e||(e=+ni(e)),null==e||""===e?NaN:+e)}"undefined"!=typeof console&&console.warn&&console.log,le({number:function(e){return parseFloat(e)},time:function(e){return+ni(e)},trim:function(e){return z(e)?re(e):e}});var lf=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=G(e)?e:oi(e),r=G(t)?t:oi(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=z(e),s=z(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),uf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return sf(e,t)},e}();function cf(e){return mf(e.sourceFormat)||af(""),e.data}function ff(e){var t=e.sourceFormat,n=e.data;if(mf(t)||af(""),t===ku){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===Lu){for(r=[],i=0,o=n.length;i<o;i++)r.push(I({},n[i]));return r}}function df(e,t,n){if(null!=n)return G(n)||!isNaN(n)&&!fe(t,n)?e[n]:fe(t,n)?t[n]:void 0}function hf(e){return C(e)}var pf=le();function gf(e,t,n,r){t.length||af(""),W(e)||af("");var i=e.type,o=pf.get(i);o||af("");var a=M(t,(function(e){return function(e,t){var n=new uf,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==Uu&&af("");var a=[],s={},l=e.dimensionsDefine;if(l)L(l,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};a.push(r),null!=n&&(fe(s,n)&&af(""),s[n]=r)}));else for(var u=0;u<e.dimensionsDetectedCount;u++)a.push({index:u});var c=Gc(i,Uu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return c(r,o,a,e)},n.getRawData=j(cf,null,e)),n.cloneRawData=j(ff,null,e);var f=Yc(i,Uu);n.count=j(f,null,r,o,a);var d=Kc(i);n.retrieveValue=function(e,t){var n=c(r,o,a,e);return h(n,t)};var h=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=j(df,null,a,s),n.cloneAllDimensionInfo=j(hf,null,a),n}(e,o)}));return M(fi(o.transform({upstream:a[0],upstreamList:a,config:C(e.config)})),(function(e,n){var r;W(e)||af(""),e.data||af(""),mf(Uc(e.data))||af("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:Uu,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Uu,sourceHeader:0,dimensions:e.dimensions};return Dc(e.data,r,null)}))}function mf(e){return e===ku||e===Lu}var vf,yf="undefined",bf=typeof Uint32Array===yf?Array:Uint32Array,Ef=typeof Uint16Array===yf?Array:Uint16Array,wf=typeof Int32Array===yf?Array:Int32Array,Sf=typeof Float64Array===yf?Array:Float64Array,xf={float:Sf,int:wf,ordinal:Array,number:Array,time:Sf};function _f(e){return e>65535?bf:Ef}function Tf(e,t,n,r,i){var o=xf[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(r)}var Cf=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=le()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=vf[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Fc(r),this._dimensions=M(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new xf[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],l=o;l<a;l++){var u=n[l]=t.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),l=0;l<i;l++)Tf(n,l,(h=r[l]).type,s,!0);for(var u=[],c=a;c<s;c++)for(var f=c-a,d=0;d<i;d++){var h=r[d],p=vf.arrayRows.call(this,e[f]||u,h.property,f,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=M(o,(function(e){return e.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=[1/0,-1/0]),Tf(i,u,c.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var f=[],d=e;d<t;d++){f=r.getItem(d,f);for(var h=0;h<a;h++){var p=i[h],g=this._dimValueGetter(f,l[h],d,h);p[d]=g;var m=s[h];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var c=t-r[this.getRawIndex(l)],f=Math.abs(c);f<=n&&((f<o||f===o&&c>=0&&a<0)&&(o=f,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else for(e=new(n=_f(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(_f(n._rawCount))(r),o=[],a=e.length,s=0,l=e[0],u=n._chunks,c=0;c<r;c++){var f=void 0,d=n.getRawIndex(c);if(0===a)f=t(c);else if(1===a)f=t(u[l][d],c);else{for(var h=0;h<a;h++)o[h]=u[e[h]][d];o[h]=c,f=t.apply(null,o)}f&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=U(e),i=r.length;if(!i)return this;var o=t.count(),a=new(_f(t._rawCount))(o),s=0,l=r[0],u=e[l][0],c=e[l][1],f=t._chunks,d=!1;if(!t._indices){var h=0;if(1===i){for(var p=f[r[0]],g=0;g<n;g++)((b=p[g])>=u&&b<=c||isNaN(b))&&(a[s++]=h),h++;d=!0}else if(2===i){p=f[r[0]];var m=f[r[1]],v=e[r[1]][0],y=e[r[1]][1];for(g=0;g<n;g++){var b=p[g],E=m[g];(b>=u&&b<=c||isNaN(b))&&(E>=v&&E<=y||isNaN(E))&&(a[s++]=h),h++}d=!0}}if(!d)if(1===i)for(g=0;g<o;g++){var w=t.getRawIndex(g);((b=f[r[0]][w])>=u&&b<=c||isNaN(b))&&(a[s++]=w)}else for(g=0;g<o;g++){for(var S=!0,x=(w=t.getRawIndex(g),0);x<i;x++){var _=r[x];((b=f[_][w])<e[_][0]||b>e[_][1])&&(S=!1)}S&&(a[s++]=t.getRawIndex(g))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],l=e._rawExtent,u=0;u<t.length;u++)l[t[u]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var f=e.getRawIndex(c),d=0;d<o;d++)s[d]=r[t[d]][f];s[o]=c;var h=n&&n.apply(null,s);if(null!=h)for("object"!=typeof h&&(i[0]=h,h=i),u=0;u<h.length;u++){var p=t[u],g=h[u],m=l[p],v=r[p];v&&(v[f]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),l=0,u=Math.floor(1/t),c=this.getRawIndex(0),f=new(_f(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));f[l++]=c;for(var d=1;d<s-1;d+=u){for(var h=Math.min(d+u,s-1),p=Math.min(d+2*u,s),g=(p+h)/2,m=0,v=h;v<p;v++){var y=a[T=this.getRawIndex(v)];isNaN(y)||(m+=y)}m/=p-h;var b=d,E=Math.min(d+u,s),w=d-1,S=a[c];n=-1,i=b;var x=-1,_=0;for(v=b;v<E;v++){var T;y=a[T=this.getRawIndex(v)],isNaN(y)?(_++,x<0&&(x=T)):(r=Math.abs((w-g)*(y-S)-(w-v)*(m-S)))>n&&(n=r,i=T)}_>0&&_<E-b&&(f[l++]=Math.min(x,i),i=Math.max(x,i)),f[l++]=i,c=i}return f[l++]=this.getRawIndex(s-1),o._count=l,o._indices=f,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),l=o[e],u=this.count(),c=i._rawExtent[e]=[1/0,-1/0],f=new(_f(this._rawCount))(Math.ceil(u/s)),d=0,h=0;h<u;h+=s){s>u-h&&(s=u-h,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(h+p);a[p]=l[g]}var m=n(a),v=this.getRawIndex(Math.min(h+r(a,m)||0,u-1));l[v]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),f[d++]=v}return i._count=d,i._indices=f,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[e[s]][a];l[s]=i,t.apply(null,l)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=t[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,i,o=new e,a=this._chunks,s=t&&D(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=void 0,(i=(r=a[l]).constructor)===Array?r.slice():new i(r)):a[l];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=C(this._extent),e._rawExtent=C(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return sf(e[r],this._dimensions[r])}vf={arrayRows:e,objectRows:function(e,t,n,r){return sf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return sf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}();const Of=Cf;var If=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Rf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,t=[u._getVersionSign()]}else s=Y(a=o.get("data",!0))?Du:Nu,t=[];var c=this._getSourceMetaRawOption()||{},f=l&&l.metaRawOption||{},d=J(c.seriesLayoutBy,f.seriesLayoutBy)||null,h=J(c.sourceHeader,f.sourceHeader),p=J(c.dimensions,f.dimensions);e=d!==f.seriesLayoutBy||!!h!=!!f.sourceHeader||p?[Dc(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:p},s)]:[]}else{var g=n;if(i){var m=this._applyTransform(r);e=m.sourceList,t=m.upstreamSignList}else e=[Dc(g.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);null!=i&&1!==e.length&&Nf("");var o,a=[],s=[];return L(e,(function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||Nf(""),a.push(t),s.push(e._getVersionSign())})),r?t=function(e,t,n){var r=fi(e),i=r.length;i||af("");for(var o=0,a=i;o<a;o++)t=gf(r[o],t),o!==a-1&&(t.length=Math.max(t.length,1));return t}(r,a,n.componentIndex):null!=i&&(t=[(o=a[0],new Lc({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:C(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Rf(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new Of).initData(new Hc(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Rf(e)){var t=Hu(e);return t?[t.getSourceManager()]:[]}return M(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?Oi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Ci).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Rf(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Af(e){e.option.transform&&oe(e.option.transform)}function Rf(e){return"series"===e.mainType}function Nf(e){throw new Error(e)}function kf(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+lu(r+"")+"px;color:"+lu(n)+";font-weight:"+lu(i+""),valueStyle:"font-size:"+lu(a+"")+"px;color:"+lu(o)+";font-weight:"+lu(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Lf=[0,10,20,30],Mf=["","\n","\n\n","\n\n\n"];function Df(e,t){return t.type=e,t}function Pf(e){return"section"===e.type}function Uf(e){return Pf(e)?Bf:Ff}function jf(e){if(Pf(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,(function(e){var n=jf(e);n>=t&&(t=n+ +(r&&(!n||Pf(e)&&!e.noHeader)))})),t}return 0}function Bf(e,t,n,r){var i,o=t.noHeader,a=(i=jf(t),{html:Lf[i],richText:Mf[i]}),s=[],l=t.blocks||[];ne(!l||F(l)),l=l||[];var u=e.orderMode;if(t.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(fe(c,u)){var f=new lf(c[u],null);l.sort((function(e,t){return f.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===u&&l.reverse()}L(l,(function(n,i){var o=t.valueFormatter,l=Uf(n)(o?I(I({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=l&&s.push(l)}));var d="richText"===e.renderMode?s.join(a.richText):zf(s.join(""),o?n:a.html);if(o)return d;var h=uu(t.header,"ordinal",e.useUTC),p=kf(r,e.renderMode).nameStyle;return"richText"===e.renderMode?Vf(e,h,p)+a.richText+d:zf('<div style="'+p+';line-height:1;">'+lu(h)+"</div>"+d,n)}function Ff(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return M(e=F(e)?e:[e],(function(e,t){return uu(e,F(h)?h[t]:h,u)}))};if(!o||!a){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":uu(l,"ordinal",u),h=t.valueType,p=a?[]:c(t.value),g=!s||!o,m=!s&&o,v=kf(r,i),y=v.nameStyle,b=v.valueStyle;return"richText"===i?(s?"":f)+(o?"":Vf(e,d,y))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,o)}(e,p,g,m,b)):zf((s?"":f)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+lu(e)+"</span>"}(d,!s,y))+(a?"":function(e,t,n,r){return'<span style="'+(t?"float:right;margin-left:"+(n?"10px":"20px"):"")+";"+r+'">'+M(e=F(e)?e:[e],(function(e){return lu(e)})).join(" ")+"</span>"}(p,g,m,b)),n)}}function Hf(e,t,n,r,i,o){if(e)return Uf(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function zf(e,t){return'<div style="margin: '+t+'px 0 0;line-height:1;">'+e+'<div style="clear:both"></div></div>'}function Vf(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Gf(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Wf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=ai()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=function(e,t){var n=z(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+lu(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+lu(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}({color:t,type:e,renderMode:n,markerId:r});return z(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};F(t)?L(t,(function(e){return I(n,e)})):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();var qf=Si();function Yf(e,t){return e.getName(t)||e.getId(t)}var Xf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return r(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=nf({count:Kf,reset:Qf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(qf(this).sourceManager=new If(this)).prepareSource();var r=this.getInitialData(e,n);Zf(r,this),this.dataTask.context.data=r,qf(this).dataBeforeProcessed=r,$f(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=wu(this),r=n?xu(e):{},i=this.subType;Cu.hasClass(i)&&(i+="Series"),O(e,t.getTheme().get(this.subType)),O(e,this.getDefaultOption()),di(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Su(e,r,n)},t.prototype.mergeOption=function(e,t){e=O(this.option,e,!0),this.fillDataTextStyle(e.data);var n=wu(this);n&&Su(this.option,e,n);var r=qf(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Zf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,qf(this).dataBeforeProcessed=i,$f(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Y(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&di(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=td(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return qf(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=td(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}qf(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return le(e)},t.prototype.getSourceManager=function(){return qf(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return qf(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return function(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,f=o.getRawValue(a),d=F(f),h=function(e,t){return hu(e.getData().getItemVisual(t,"style")[e.visualDrawType])}(o,a);if(c>1||d&&!c){var p=function(e,t,n,r,i){var o=t.getData(),a=D(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(Df("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?L(r,(function(e){c(Jc(o,n,e),e)})):L(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(f,o,a,u,h);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=t=Jc(l,a,u[0]),n=g.type}else i=t=d?f[0]:f;var m=bi(o),v=m&&o.name||"",y=l.getName(a),b=s?v:y;return Df("section",{header:v,noHeader:s||!m,sortParam:i,blocks:[Df("nameValue",{markerType:"item",markerColor:h,name:b,noName:!re(b),value:t,valueType:n})].concat(r||[])})}({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(a.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Xu.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=Yf(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=U(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Yf(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=t[l];s[f=Yf(e,u)]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(u)}}else if("single"===o||!0===o){var c=t[a-1],f=Yf(e,c);i.selectedMap=((n={})[f]=!0,n),this._selectedDataIndicesMap=((r={})[f]=e.getRawIndex(c),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Cu.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(Cu);function $f(e){var t=e.name;bi(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return L(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function Kf(e){return e.model.getRawData().count()}function Qf(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Jf}function Jf(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Zf(e,t){L(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,B(ed,t))}))}function ed(e,t){var n=td(e);return n&&n.setOutputEnd((t||this).count()),t}function td(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}N(Xf,ef),N(Xf,Xu),Mi(Xf,Cu);const nd=Xf;var rd=function(){function e(){this.group=new Vr,this.uid=xl("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Li(rd),ji(rd);const id=rd;function od(){var e=Si();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var ad=Yo.CMD,sd=[[],[],[]],ld=Math.sqrt,ud=Math.atan2,cd=Math.sqrt,fd=Math.sin,dd=Math.cos,hd=Math.PI;function pd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function gd(e,t){return(e[0]*t[0]+e[1]*t[1])/(pd(e)*pd(t))}function md(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(gd(e,t))}function vd(e,t,n,r,i,o,a,s,l,u,c){var f=l*(hd/180),d=dd(f)*(e-n)/2+fd(f)*(t-r)/2,h=-1*fd(f)*(e-n)/2+dd(f)*(t-r)/2,p=d*d/(a*a)+h*h/(s*s);p>1&&(a*=cd(p),s*=cd(p));var g=(i===o?-1:1)*cd((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,m=g*a*h/s,v=g*-s*d/a,y=(e+n)/2+dd(f)*m-fd(f)*v,b=(t+r)/2+fd(f)*m+dd(f)*v,E=md([1,0],[(d-m)/a,(h-v)/s]),w=[(d-m)/a,(h-v)/s],S=[(-1*d-m)/a,(-1*h-v)/s],x=md(w,S);if(gd(w,S)<=-1&&(x=hd),gd(w,S)>=1&&(x=0),x<0){var _=Math.round(x/hd*1e6)/1e6;x=2*hd+_%2*hd}c.addData(u,y,b,a,s,E,x,f,o)}var yd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,bd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ed=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.applyTransform=function(e){},t}(pa);function wd(e){return null!=e.setData}function Sd(e,t){var n=function(e){var t=new Yo;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Yo.CMD,l=e.match(yd);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(bd)||[],p=h.length,g=0;g<p;g++)h[g]=parseFloat(h[g]);for(var m=0;m<p;){var v=void 0,y=void 0,b=void 0,E=void 0,w=void 0,S=void 0,x=void 0,_=r,T=i,C=void 0,O=void 0;switch(f){case"l":r+=h[m++],i+=h[m++],d=s.L,t.addData(d,r,i);break;case"L":r=h[m++],i=h[m++],d=s.L,t.addData(d,r,i);break;case"m":r+=h[m++],i+=h[m++],d=s.M,t.addData(d,r,i),o=r,a=i,f="l";break;case"M":r=h[m++],i=h[m++],d=s.M,t.addData(d,r,i),o=r,a=i,f="L";break;case"h":r+=h[m++],d=s.L,t.addData(d,r,i);break;case"H":r=h[m++],d=s.L,t.addData(d,r,i);break;case"v":i+=h[m++],d=s.L,t.addData(d,r,i);break;case"V":i=h[m++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),r=h[m-2],i=h[m-1];break;case"c":d=s.C,t.addData(d,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i,h[m++]+r,h[m++]+i),r+=h[m-2],i+=h[m-1];break;case"S":v=r,y=i,C=t.len(),O=t.data,n===s.C&&(v+=r-O[C-4],y+=i-O[C-3]),d=s.C,_=h[m++],T=h[m++],r=h[m++],i=h[m++],t.addData(d,v,y,_,T,r,i);break;case"s":v=r,y=i,C=t.len(),O=t.data,n===s.C&&(v+=r-O[C-4],y+=i-O[C-3]),d=s.C,_=r+h[m++],T=i+h[m++],r+=h[m++],i+=h[m++],t.addData(d,v,y,_,T,r,i);break;case"Q":_=h[m++],T=h[m++],r=h[m++],i=h[m++],d=s.Q,t.addData(d,_,T,r,i);break;case"q":_=h[m++]+r,T=h[m++]+i,r+=h[m++],i+=h[m++],d=s.Q,t.addData(d,_,T,r,i);break;case"T":v=r,y=i,C=t.len(),O=t.data,n===s.Q&&(v+=r-O[C-4],y+=i-O[C-3]),r=h[m++],i=h[m++],d=s.Q,t.addData(d,v,y,r,i);break;case"t":v=r,y=i,C=t.len(),O=t.data,n===s.Q&&(v+=r-O[C-4],y+=i-O[C-3]),r+=h[m++],i+=h[m++],d=s.Q,t.addData(d,v,y,r,i);break;case"A":b=h[m++],E=h[m++],w=h[m++],S=h[m++],x=h[m++],vd(_=r,T=i,r=h[m++],i=h[m++],S,x,b,E,w,d=s.A,t);break;case"a":b=h[m++],E=h[m++],w=h[m++],S=h[m++],x=h[m++],vd(_=r,T=i,r+=h[m++],i+=h[m++],S,x,b,E,w,d=s.A,t)}}"z"!==f&&"Z"!==f||(d=s.Z,t.addData(d),r=o,i=a),n=d}return t.toStatic(),t}(e),r=I({},t);return r.buildPath=function(e){if(wd(e))e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1);else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){!function(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=ad.M,f=ad.C,d=ad.L,h=ad.R,p=ad.A,g=ad.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:case d:r=1;break;case f:r=3;break;case g:r=2;break;case p:var m=t[4],v=t[5],y=ld(t[0]*t[0]+t[1]*t[1]),b=ld(t[2]*t[2]+t[3]*t[3]),E=ud(-t[1]/b,t[0]/y);l[i]*=y,l[i++]+=m,l[i]*=b,l[i++]+=v,l[i++]*=y,l[i++]*=b,l[i++]+=E,l[i++]+=E,o=i+=2;break;case h:s[0]=l[i++],s[1]=l[i++],xe(s,s,t),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],xe(s,s,t),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var w=sd[a];w[0]=l[i++],w[1]=l[i++],xe(w,w,t),l[o++]=w[0],l[o++]=w[1]}}e.increaseVersion()}}(n,e),this.dirtyShape()},r}var xd=function(){this.cx=0,this.cy=0,this.r=0},_d=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new xd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(pa);_d.prototype.type="circle";const Td=_d;var Cd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Od=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new Cd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,l=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),e.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),e.closePath()},t}(pa);Od.prototype.type="ellipse";const Id=Od;var Ad=Math.PI,Rd=2*Ad,Nd=Math.sin,kd=Math.cos,Ld=Math.acos,Md=Math.atan2,Dd=Math.abs,Pd=Math.sqrt,Ud=Math.max,jd=Math.min,Bd=1e-4;function Fd(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Pd(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,p=n+c,g=r+f,m=(d+p)/2,v=(h+g)/2,y=p-d,b=g-h,E=y*y+b*b,w=i-o,S=d*g-p*h,x=(b<0?-1:1)*Pd(Ud(0,w*w*E-S*S)),_=(S*b-y*x)/E,T=(-S*y-b*x)/E,C=(S*b+y*x)/E,O=(-S*y+b*x)/E,I=_-m,A=T-v,R=C-m,N=O-v;return I*I+A*A>R*R+N*N&&(_=C,T=O),{cx:_,cy:T,x0:-c,y0:-f,x1:_*(i/w-1),y1:T*(i/w-1)}}var Hd=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},zd=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new Hd},t.prototype.buildPath=function(e,t){!function(e,t){var n,r=Ud(t.r,0),i=Ud(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,c=t.cy,f=!!t.clockwise,d=Dd(l-s),h=d>Rd&&d%Rd;if(h>Bd&&(d=h),r>Bd)if(d>Rd-Bd)e.moveTo(u+r*kd(s),c+r*Nd(s)),e.arc(u,c,r,s,l,!f),i>Bd&&(e.moveTo(u+i*kd(l),c+i*Nd(l)),e.arc(u,c,i,l,s,f));else{var p=void 0,g=void 0,m=void 0,v=void 0,y=void 0,b=void 0,E=void 0,w=void 0,S=void 0,x=void 0,_=void 0,T=void 0,C=void 0,O=void 0,I=void 0,A=void 0,R=r*kd(s),N=r*Nd(s),k=i*kd(l),L=i*Nd(l),M=d>Bd;if(M){var D=t.cornerRadius;D&&(n=function(e){var t;if(F(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(D),p=n[0],g=n[1],m=n[2],v=n[3]);var P=Dd(r-i)/2;if(y=jd(P,m),b=jd(P,v),E=jd(P,p),w=jd(P,g),_=S=Ud(y,b),T=x=Ud(E,w),(S>Bd||x>Bd)&&(C=r*kd(l),O=r*Nd(l),I=i*kd(s),A=i*Nd(s),d<Ad)){var U=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<Bd))return[e+(d=(c*(t-o)-f*(e-i))/d)*l,t+d*u]}(R,N,I,A,C,O,k,L);if(U){var j=R-U[0],B=N-U[1],H=C-U[0],z=O-U[1],V=1/Nd(Ld((j*H+B*z)/(Pd(j*j+B*B)*Pd(H*H+z*z)))/2),G=Pd(U[0]*U[0]+U[1]*U[1]);_=jd(S,(r-G)/(V+1)),T=jd(x,(i-G)/(V-1))}}}if(M)if(_>Bd){var W=jd(m,_),q=jd(v,_),Y=Fd(I,A,R,N,r,W,f),X=Fd(C,O,k,L,r,q,f);e.moveTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),_<S&&W===q?e.arc(u+Y.cx,c+Y.cy,_,Md(Y.y0,Y.x0),Md(X.y0,X.x0),!f):(W>0&&e.arc(u+Y.cx,c+Y.cy,W,Md(Y.y0,Y.x0),Md(Y.y1,Y.x1),!f),e.arc(u,c,r,Md(Y.cy+Y.y1,Y.cx+Y.x1),Md(X.cy+X.y1,X.cx+X.x1),!f),q>0&&e.arc(u+X.cx,c+X.cy,q,Md(X.y1,X.x1),Md(X.y0,X.x0),!f))}else e.moveTo(u+R,c+N),e.arc(u,c,r,s,l,!f);else e.moveTo(u+R,c+N);i>Bd&&M?T>Bd?(W=jd(p,T),Y=Fd(k,L,C,O,i,-(q=jd(g,T)),f),X=Fd(R,N,I,A,i,-W,f),e.lineTo(u+Y.cx+Y.x0,c+Y.cy+Y.y0),T<x&&W===q?e.arc(u+Y.cx,c+Y.cy,T,Md(Y.y0,Y.x0),Md(X.y0,X.x0),!f):(q>0&&e.arc(u+Y.cx,c+Y.cy,q,Md(Y.y0,Y.x0),Md(Y.y1,Y.x1),!f),e.arc(u,c,i,Md(Y.cy+Y.y1,Y.cx+Y.x1),Md(X.cy+X.y1,X.cx+X.x1),f),W>0&&e.arc(u+X.cx,c+X.cy,W,Md(X.y1,X.x1),Md(X.y0,X.x0),!f))):(e.lineTo(u+k,c+L),e.arc(u,c,i,l,s,f)):e.lineTo(u+k,c+L)}else e.moveTo(u,c);e.closePath()}}}(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pa);zd.prototype.type="sector";const Vd=zd;var Gd=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Wd=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new Gd},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(pa);Wd.prototype.type="ring";const qd=Wd;function Yd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],f=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)_e(a,a,e[d]),Te(s,s,e[d]);_e(a,a,r[0]),Te(s,s,r[1])}for(d=0,h=e.length;d<h;d++){var p=e[d];if(n)i=e[d?d-1:h-1],o=e[(d+1)%h];else{if(0===d||d===h-1){l.push(ge(e[d]));continue}i=e[d-1],o=e[d+1]}ve(u,o,i),ye(u,u,t);var g=be(p,i),m=be(p,o),v=g+m;0!==v&&(g/=v,m/=v),ye(c,u,-g),ye(f,u,m);var y=me([],p,c),b=me([],p,f);r&&(Te(y,y,a),_e(y,y,s),Te(b,b,a),_e(b,b,s)),l.push(y),l.push(b)}return n&&l.push(l.shift()),l}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]),s=1;for(var f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Xd=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},$d=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultShape=function(){return new Xd},t.prototype.buildPath=function(e,t){Yd(e,t,!0)},t}(pa);$d.prototype.type="polygon";const Kd=$d;var Qd=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Jd=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Qd},t.prototype.buildPath=function(e,t){Yd(e,t,!1)},t}(pa);Jd.prototype.type="polyline";const Zd=Jd;var eh={},th=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},nh=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new th},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=xa(eh,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(pa);nh.prototype.type="line";const rh=nh;var ih=[],oh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ah(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?Ot:Ct)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Ot:Ct)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Mt:Lt)(e.x1,e.cpx1,e.x2,t),(n?Mt:Lt)(e.y1,e.cpy1,e.y2,t)]}var sh=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new oh},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,l=t.cpx2,u=t.cpy2,c=t.percent;0!==c&&(e.moveTo(n,r),null==l||null==u?(c<1&&(Pt(n,a,i,c,ih),a=ih[1],i=ih[2],Pt(r,s,o,c,ih),s=ih[1],o=ih[2]),e.quadraticCurveTo(a,s,i,o)):(c<1&&(Rt(n,a,l,i,c,ih),a=ih[1],l=ih[2],i=ih[3],Rt(r,s,u,o,c,ih),s=ih[1],u=ih[2],o=ih[3]),e.bezierCurveTo(a,s,l,u,i,o)))},t.prototype.pointAt=function(e){return ah(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=ah(this.shape,e,!0);return function(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}(t,t)},t}(pa);sh.prototype.type="bezier-curve";const lh=sh;var uh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},ch=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uh},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),u=Math.sin(o);e.moveTo(l*i+n,u*i+r),e.arc(n,r,i,o,a,!s)},t}(pa);ch.prototype.type="arc";const fh=ch;var dh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return r(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pa.prototype.getBoundingRect.call(this)},t}(pa);const hh=dh;var ph=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();const gh=ph;var mh=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return r(t,e),t}(gh);const vh=mh;var yh=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return r(t,e),t}(gh);const bh=yh;var Eh=[0,0],wh=[0,0],Sh=new fr,xh=new fr,_h=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new fr;for(n=0;n<2;n++)this._axes[n]=new fr;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var l=0;l<4;l++)n[l].transform(t);for(fr.sub(r[0],n[1],n[0]),fr.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Sh.set(1/0,1/0),xh.set(0,0),!this._intersectCheckOneSide(this,e,Sh,xh,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Sh,xh,r,-1)&&(n=!1,r)||r||fr.copy(t,n?Sh:xh),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Eh),this._getProjMinMaxOnAxis(s,t._corners,wh),Eh[1]<wh[0]||Eh[0]>wh[1]){if(a=!1,i)return a;var u=Math.abs(wh[0]-Eh[1]),c=Math.abs(Eh[0]-wh[1]);Math.min(u,c)>r.len()&&(u<c?fr.scale(r,l,-u*o):fr.scale(r,l,c*o))}else n&&(u=Math.abs(wh[0]-Eh[1]),c=Math.abs(Eh[0]-wh[1]),Math.min(u,c)<n.len()&&(u<c?fr.scale(n,l,u*o):fr.scale(n,l,-c*o)))}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,l=1;l<t.length;l++){var u=t[l].dot(r)+i[e];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},e}();const Th=_h;var Ch=[],Oh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return r(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new wr(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Ch)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0;return!1},t}(po);const Ih=Oh;var Ah=Math.max,Rh=Math.min,Nh={};function kh(e){return pa.extend(e)}function Lh(e,t){return n=Sd(e,t),function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return r(t,e),t}(Ed);var n}function Mh(e,t){Nh[e]=t}function Dh(e){if(Nh.hasOwnProperty(e))return Nh[e]}function Ph(e,t,n,r){var i=function(e,t){return new Ed(Sd(e,t))}(e,t);return n&&("center"===r&&(n=jh(n,i.getBoundingRect())),Fh(i,n)),i}function Uh(e,t,n){var r=new wa({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(jh(t,i))}}});return r}function jh(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var Bh=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new pa(t);return a.createPathProxy(),a.buildPath=function(e){if(wd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function Fh(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Hh(e){return xa(e.shape,e.shape,e.style),e}function zh(e){return _a(e.shape,e.shape,e.style),e}var Vh=Ta;function Gh(e,t){for(var n=Kn([]);e&&e!==t;)Qn(n,e.getLocalTransform(),n),e=e.parent;return n}function Wh(e,t,n){return t&&!k(t)&&(t=ur.getLocalTransform(t)),n&&(t=er([],t)),xe([],e,t)}function qh(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Wh(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Yh(e){return!e.isGroup}function Xh(e,t,n){if(e&&t){var r=function(e){var t={};return e.traverse((function(e){Yh(e)&&e.anid&&(t[e.anid]=e)})),t}(e);t.traverse((function(e){if(Yh(e)&&e.anid){var t=r[e.anid];if(t){var o=i(e);e.attr(i(t)),zs(e,o,n,Ga(e).dataIndex)}}}))}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=I({},e.shape)),t}}function $h(e,t){return M(e,(function(e){var n=e[0];n=Ah(n,t.x),n=Rh(n,t.x+t.width);var r=e[1];return r=Ah(r,t.y),[n,r=Rh(r,t.y+t.height)]}))}function Kh(e,t){var n=Ah(e.x,t.x),r=Rh(e.x+e.width,t.x+t.width),i=Ah(e.y,t.y),o=Rh(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Qh(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),A(i,n),new wa(r)):Ph(e.replace("path://",""),r,n,"center")}function Jh(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Zh(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Zh(e,t,n,r,i,o,a,s){var l,u=n-e,c=r-t,f=a-i,d=s-o,h=ep(f,d,u,c);if((l=h)<=1e-6&&l>=-1e-6)return!1;var p=e-i,g=t-o,m=ep(p,g,u,c)/h;if(m<0||m>1)return!1;var v=ep(p,g,f,d)/h;return!(v<0||v>1)}function ep(e,t,n,r){return e*r-n*t}function tp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=z(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&L(U(l),(function(e){fe(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Ga(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:A({content:r,formatterParams:s},i)}}function np(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function rp(e,t){if(e)if(F(e))for(var n=0;n<e.length;n++)np(e[n],t);else np(e,t)}Mh("circle",Td),Mh("ellipse",Id),Mh("sector",Vd),Mh("ring",qd),Mh("polygon",Kd),Mh("polyline",Zd),Mh("rect",Aa),Mh("line",rh),Mh("bezierCurve",lh),Mh("arc",fh);var ip=Si(),op=od(),ap=function(){function e(){this.group=new Vr,this.uid=xl("viewChart"),this.renderTask=nf({plan:up,reset:cp}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&lp(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&lp(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){rp(this.group,e)},e.markUpdateMethod=function(e,t){ip(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function sp(e,t,n){e&&Us(e)&&("emphasis"===t?bs:Es)(e,n)}function lp(e,t,n){var r=wi(e,t),i=t&&null!=t.highlightKey?function(e){var t=qa[e];return null==t&&Wa<=32&&(t=qa[e]=Wa++),t}(t.highlightKey):null;null!=r?L(fi(r),(function(t){sp(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){sp(e,n,i)}))}function up(e){return op(e.model)}function cp(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&ip(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](t,n,r,i),fp[l]}Li(ap),ji(ap);var fp={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const dp=ap;var hp="\0__throttleOriginMethod",pp="\0__throttleRate",gp="\0__throttleType";function mp(e,t,n){var r,i,o,a,s,l=0,u=0,c=null;function f(){u=(new Date).getTime(),c=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var h=s||t,p=s||n;s=null,i=r-(p?l:u)-h,clearTimeout(c),p?c=setTimeout(f,h):i>=0?f():c=setTimeout(f,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(e){s=e},d}function vp(e,t,n,r){var i=e[t];if(i){var o=i[hp]||i,a=i[gp];if(i[pp]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=mp(o,n,"debounce"===r))[hp]=o,i[gp]=r,i[pp]=n}return i}}function yp(e,t){var n=e[t];n&&n[hp]&&(n.clear&&n.clear(),e[t]=n[hp])}var bp=Si(),Ep={itemStyle:Bi(vl,!0),lineStyle:Bi(pl,!0)},wp={lineStyle:"stroke",itemStyle:"fill"};function Sp(e,t){return e.visualStyleMapper||Ep[t]||(console.warn("Unkown style type '"+t+"'."),Ep.itemStyle)}function xp(e,t){return e.visualDrawType||wp[t]||(console.warn("Unkown style type '"+t+"'."),"fill")}var _p={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Sp(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=xp(e,r),l=o[s],u=H(l)?l:null,c="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||c){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||H(o.fill)?f:o.fill,o.stroke="auto"===o.stroke||H(o.stroke)?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},o);i[s]=u(r),t.setItemVisual(n,"style",i)}}}},Tp=new wl,Cp={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Sp(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Tp.option=n[r];var a=i(Tp);I(e.ensureUniqueItemVisual(t,"style"),a),Tp.option.decal&&(e.setItemVisual(t,"decal",Tp.option.decal),Tp.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Op={performRawSeries:!0,overallReset:function(e){var t=le();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),bp(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=bp(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=xp(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(e)||e+"",c=n.count();l[s]=t.getColorFromPalette(u,o,c)}}))}}))}},Ip=Math.PI,Ap=function(){function e(e,t,n,r){this._stageTaskMap=le(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=le();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;L(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});ne(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}L(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var f,d=c.agentStubMap;d.each((function(e){a(r,e)&&(e.dirty(),f=!0)})),f&&c.dirty(),o.updatePayload(c,n);var h=o.getPerformArgs(c,r.block);d.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=le(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||nf({plan:Mp,reset:Dp,count:jp}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||nf({reset:Rp});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=le(),l=e.seriesType,u=e.getTargetSeries,c=!0,f=!1;function d(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(f=!0,nf({reset:Np,onDirty:Lp})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}ne(!e.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,L(n.getSeries(),d)),f&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return H(e)&&(e={overallReset:e,seriesType:Bp(e)}),e.uid=xl("stageHandler"),t&&(e.visualType=t),e},e}();function Rp(e){e.overallReset(e.ecModel,e.api,e.payload)}function Np(e){return e.overallProgress&&kp}function kp(){this.agent.dirty(),this.getDownstream().dirty()}function Lp(){this.agent&&this.agent.dirty()}function Mp(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Dp(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=fi(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?M(t,(function(e,t){return Up(t)})):Pp}var Pp=Up(0);function Up(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function jp(e){return e.data.count()}function Bp(e){Fp=null;try{e(Hp,zp)}catch(e){}return Fp}var Fp,Hp={},zp={};function Vp(e,t){for(var n in t.prototype)e[n]=de}Vp(Hp,Zu),Vp(zp,tc),Hp.eachSeriesByType=Hp.eachRawSeriesByType=function(e){Fp=e},Hp.eachComponent=function(e){"series"===e.mainType&&e.subType&&(Fp=e.subType)};const Gp=Ap;var Wp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const qp={color:Wp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Wp]};var Yp="#B9B8CE",Xp="#100C2A",$p=function(){return{axisLine:{lineStyle:{color:Yp}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Kp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Qp={darkMode:!0,color:Kp,backgroundColor:Xp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yp}},textStyle:{color:Yp},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yp}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yp},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yp}},timeline:{lineStyle:{color:Yp},label:{color:Yp},controlStyle:{color:Yp,borderColor:Yp}},calendar:{itemStyle:{color:Xp},dayLabel:{color:Yp},monthLabel:{color:Yp},yearLabel:{color:Yp}},timeAxis:$p(),logAxis:$p(),valueAxis:$p(),categoryAxis:$p(),line:{symbol:"circle"},graph:{color:Kp},gauge:{title:{color:Yp},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yp},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Qp.categoryAxis.splitLine.show=!1;const Jp=Qp;var Zp=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(z(e)){var i=ki(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};L(e,(function(e,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var f=i.slice(0,c);"data"!==f&&(t.mainType=f,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),eg=["symbol","symbolSize","symbolRotate","symbolOffset"],tg=eg.concat(["symbolKeepAspect"]),ng={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<eg.length;a++){var s=eg[a],l=e.get(s);H(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(I({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var u=U(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<u.length;a++){var s=u[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},rg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<tg.length;r++){var i=tg[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function ig(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var l=e.getData(),u=wi(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:F(u)?l.getName(u[0]):l.getName(u),selected:z(r)?r:I({},r)})}}))}function og(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var ag=Math.round(9*Math.random()),sg="function"==typeof Object.defineProperty,lg=function(){function e(){this._id="__ec_inner_"+ag++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return sg?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();const ug=lg;var cg=pa.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),fg=pa.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),dg=pa.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),h=.6*a,p=.7*a;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),hg=pa.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),pg={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},gg={};L({line:rh,rect:Aa,roundRect:Aa,square:Aa,circle:Td,diamond:fg,pin:dg,arrow:hg,triangle:cg},(function(e,t){gg[t]=new e}));var mg=pa.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Rr(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=gg[r];i||(i=gg[r="rect"]),pg[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vg(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function yg(e,t,n,r,i,o,a){var s,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?Uh(e.slice(8),new wr(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?Ph(e.slice(7),{},new wr(t,n,r,i),a?"center":"cover"):new mg({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=l,s.setColor=vg,o&&s.setColor(o),s}function bg(e,t){if(null!=e)return F(e)||(e=[e,e]),[$r(e[0],t[0])||0,$r(J(e[1],e[0]),t[1])||0]}function Eg(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,l*=o),e.createRadialGradient(a,s,0,a,s,l)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function wg(e){return parseInt(e,10)}function Sg(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||wg(s[r])||wg(e.style[r]))-(wg(s[o])||0)-(wg(s[a])||0)|0}function xg(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:G(t)?[t]:F(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=M(i,(function(e){return e/a})),o/=a)}return[i,o]}var _g=new Yo(!0);function Tg(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Cg(e){return"string"==typeof e&&"none"!==e}function Og(e){var t=e.fill;return null!=t&&"none"!==t}function Ig(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Ag(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Rg(e,t,n){var r=Gi(t.image,t.__image,n);if(qi(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*he),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var Ng=["shadowBlur","shadowOffsetX","shadowOffsetY"],kg=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Lg(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){Pg(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?ao.opacity:a}(r||t.blend!==n.blend)&&(o||(Pg(e,i),o=!0),e.globalCompositeOperation=t.blend||ao.blend);for(var s=0;s<Ng.length;s++){var l=Ng[s];(r||t[l]!==n[l])&&(o||(Pg(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(Pg(e,i),o=!0),e.shadowColor=t.shadowColor||ao.shadowColor),o}function Mg(e,t,n,r,i){var o=Ug(t,i.inHover),a=r?null:n&&Ug(n,i.inHover)||{};if(o===a)return!1;var s=Lg(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(Pg(e,i),s=!0),Cg(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(Pg(e,i),s=!0),Cg(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(Pg(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Pg(e,i),s=!0),e.lineWidth=l)}for(var u=0;u<kg.length;u++){var c=kg[u],f=c[0];(r||o[f]!==a[f])&&(s||(Pg(e,i),s=!0),e[f]=o[f]||c[1])}return s}function Dg(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Pg(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ug(e,t){return t&&e.__hoverStyle||e.style}function jg(e,t){Bg(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Bg(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(Pg(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(Pg(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),Dg(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(l=s=!0);var f,d,h=t instanceof pa&&t.autoBatch&&function(e){var t=Og(e),n=Tg(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(f=i,d=c.transform,f&&d?f[0]!==d[0]||f[1]!==d[1]||f[2]!==d[2]||f[3]!==d[3]||f[4]!==d[4]||f[5]!==d[5]:f||d)?(Pg(e,n),Dg(e,t)):h||Pg(e,n);var p=Ug(t,n.inHover);t instanceof pa?(1!==n.lastDrawType&&(l=!0,n.lastDrawType=1),Mg(e,t,c,l,n),h&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=Tg(n),a=Og(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||_g,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,p=a&&!!d.colorStops,g=o&&!!h.colorStops,m=a&&!!d.image,v=o&&!!h.image,y=void 0,b=void 0,E=void 0,w=void 0,S=void 0;(p||g)&&(S=t.getBoundingRect()),p&&(y=f?Eg(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Eg(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),m&&(E=f||!t.__canvasFillPattern?Rg(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=E),v&&(w=f||!t.__canvasStrokePattern?Rg(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=E),p?e.fillStyle=y:m&&(E?e.fillStyle=E:a=!1),g?e.strokeStyle=b:v&&(w?e.strokeStyle=w:o=!1)}var x,_,T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(x=(i=xg(t))[0],_=i[1]);var C=!0;(u||4&f)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),x&&(e.setLineDash(x),e.lineDashOffset=_),r||(n.strokeFirst?(o&&Ag(e,n),a&&Ig(e,n)):(a&&Ig(e,n),o&&Ag(e,n))),x&&e.setLineDash([])}(e,t,p,h),h&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):t instanceof va?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),Mg(e,t,c,l,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||u,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=xg(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Tg(n)&&e.strokeText(i,n.x,n.y),Og(n)&&e.fillText(i,n.x,n.y)):(Og(n)&&e.fillText(i,n.x,n.y),Tg(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,p)):t instanceof wa?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(e,t,n,r,i){Lg(e,Ug(t,i.inHover),n&&Ug(n,i.inHover),r,i)}(e,t,c,l,n),function(e,t,n){var r=t.__image=Gi(n.image,t.__image,t,t.onload);if(r&&qi(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var f=a-(u=n.sx),d=s-(c=n.sy);e.drawImage(r,u,c,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,p)):t.getTemporalDisplayables&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++)(c=r[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Bg(e,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c;for(var l=0,u=i.length;l<u;l++){var c;(c=i[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Bg(e,c,s,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),h&&r&&Pg(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Fg=new ug,Hg=new Wt(100),zg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vg(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&Fg.delete(e);var o=Fg.get(e);if(o)return o;var a=A(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,l=0;l<zg.length;++l){var u=a[zg[l]];if(null!=u&&!F(u)&&!z(u)&&!G(u)&&"boolean"!=typeof u){s=!1;break}o.push(u)}if(s){t=o.join(",")+(i?"-svg":"");var c=Hg.get(t);c&&(i?e.svgElement=c:e.image=c)}var d,h=Wg(a.dashArrayX),p=function(e){if(!e||"object"==typeof e&&0===e.length)return[0,0];if(G(e)){var t=Math.ceil(e);return[t,t]}var n=M(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),g=Gg(a.symbol),m=M(h,(function(e){return qg(e)})),v=qg(p),y=!i&&f.createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=function(){for(var e=1,t=0,n=m.length;t<n;++t)e=li(e,m[t]);var r=1;for(t=0,n=g.length;t<n;++t)r=li(r,g[t].length);e*=r;var i=v*m.length*g.length;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();y&&(y.width=E.width*n,y.height=E.height*n,d=y.getContext("2d")),function(){d&&(d.clearRect(0,0,y.width,y.height),a.backgroundColor&&(d.fillStyle=a.backgroundColor,d.fillRect(0,0,y.width,y.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(!(e<=0))for(var o=-v,s=0,l=0,u=0;o<E.height;){if(s%2==0){for(var c=l/2%g.length,f=0,m=0,w=0;f<2*E.width;){var S=0;for(t=0;t<h[u].length;++t)S+=h[u][t];if(S<=0)break;if(m%2==0){var x=.5*(1-a.symbolSize),_=f+h[u][m]*x,T=o+p[s]*x,C=h[u][m]*a.symbolSize,O=p[s]*a.symbolSize,I=w/2%g[c].length;A(_,T,C,O,g[c][I])}f+=h[u][m],++w,++m===h[u].length&&(m=0)}++u===h.length&&(u=0)}o+=p[s],++l,++s===p.length&&(s=0)}function A(e,t,o,s,l){var u=i?1:n,c=yg(l,e*u,t*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(c);f&&b.children.push(f)}else jg(d,c)}}(),s&&Hg.put(t,y||b),e.image=y,e.svgElement=b,e.svgWidth=E.width,e.svgHeight=E.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,Fg.set(e,s),e.dirty=!1,s}function Gg(e){if(!e||0===e.length)return[["rect"]];if(z(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!z(e[n])){t=!1;break}if(t)return Gg([e]);var r=[];for(n=0;n<e.length;++n)z(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Wg(e){if(!e||0===e.length)return[[0,0]];if(G(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!G(e[n])){t=!1;break}if(t)return Wg([e]);var r=[];for(n=0;n<e.length;++n)if(G(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else(i=M(e[n],(function(e){return Math.ceil(e)}))).length%2==1?r.push(i.concat(i)):r.push(i);return r}function qg(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}const Yg=new Re;var Xg={},$g="undefined"!=typeof window,Kg=2e3,Qg=4500,Jg={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Kg,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:Qg,ARIA:6e3,DECAL:7e3}},Zg=/^[a-zA-Z0-9_]+$/,em="__connectUpdateStatus";function tm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return rm(this,e,t);Om(this.id)}}function nm(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return rm(this,e,t)}}function rm(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Re.prototype[t].apply(e,n)}var im,om,am,sm,lm,um,cm,fm,dm,hm,pm,gm,mm,vm,ym,bm,Em,wm,Sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(Re),xm=Sm.prototype;xm.on=nm("on"),xm.off=nm("off");var _m=function(e){function t(t,n,r){var i=e.call(this,new Zp)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},z(n)&&(n=Lm[n]),i._dom=t;var o=i._zr=Yr(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:null!=r.useDirtyRect&&r.useDirtyRect});i._ssr=r.ssr,i._throttledZrFlush=mp(j(o.flush,o),17),(n=C(n))&&Cc(n,!0),i._theme=n,i._locale=function(e){if(z(e)){var t=Ol[e.toUpperCase()]||{};return e===Tl||e===Cl?C(t):O(C(t),C(Ol.EN),!1)}return O(C(e),C(Ol.EN),!1)}(r.locale||Al),i._coordSysMgr=new rc;var a=i._api=ym(i);function s(e,t){return e.__prio-t.__prio}return st(km,s),st(Rm,s),i._scheduler=new Gp(i,a,Rm,km),i._messageCenter=new Sm,i._initEvents(),i.resize=j(i.resize,i),o.animation.on("frame",i._onframe,i),hm(o,i),pm(o,i),oe(i),i}return r(t,e),t.prototype._onframe=function(){if(!this._disposed){wm(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{im(this),sm.update.call(this,null,this.__pendingUpdate.updateParams)}catch(e){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,e}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,fm.call(this,t),dm.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),um(this,r),e.performVisualTasks(r),vm(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this.__flagInMainProcess)if(this._disposed)Om(this.id);else{var r,i,o;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var a=new sc(this._api),s=this._theme,l=this._model=new Zu;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},Nm);var u={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:u},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{im(this),sm.update.call(this,null,u)}catch(e){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,e}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,fm.call(this,r),dm.call(this,r)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||$g&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(a.svgSupported){var e=this._zr;return L(e.storage.getDisplayList(),(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;L(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return L(r,(function(e){e.group.ignore=!1})),o}Om(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(Pm[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(Dm,(function(o,f){if(o.group===n){var d=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(C(e)),h=o.getDom().getBoundingClientRect();a=r(h.left,a),s=r(h.top,s),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:d,left:h.left,top:h.top})}}));var h=(l*=d)-(a*=d),p=(u*=d)-(s*=d),g=f.createCanvas(),m=Yr(g,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),t){var v="";return L(c,(function(e){var t=e.left-a,n=e.top-s;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Aa({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),L(c,(function(e){var t=new wa({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Om(this.id)},t.prototype.convertToPixel=function(e,t){return lm(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return lm(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return L(_i(this._model,e),(function(e,r){r.indexOf("Models")>=0&&L(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}}),this)}),this),!!n;Om(this.id)},t.prototype.getVisual=function(e,t){var n=_i(this._model,e,{defaultMainType:"series"}),r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?function(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}(r,i,t):function(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;L(Cm,(function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&og(o,(function(e){var t=Ga(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=I({},t.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&r["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),L(Am,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),L(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(ig("map","selectchanged",t,r,e),ig("pie","selectchanged",t,r,e)):"select"===e.fromAction?(ig("map","selected",t,r,e),ig("pie","selected",t,r,e)):"unselect"===e.fromAction&&(ig("map","unselected",t,r,e),ig("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Om(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Om(this.id);else{this._disposed=!0,this.getDom()&&Ii(this.getDom(),jm,"");var e=this,t=e._api,n=e._model;L(e._componentsViews,(function(e){e.dispose(n,t)})),L(e._chartsViews,(function(e){e.dispose(n,t)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Dm[e.id]}},t.prototype.resize=function(e){if(!this.__flagInMainProcess)if(this._disposed)Om(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&im(this),sm.update.call(this,{type:"resize",animation:I({duration:0},e&&e.animation)})}catch(e){throw this.__flagInMainProcess=!1,e}this.__flagInMainProcess=!1,fm.call(this,r),dm.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Om(this.id);else if(W(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Mm[e]){var n=Mm[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Om(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=Am[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Om(this.id);else if(W(t)||(t={silent:!!t}),Im[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;cm.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&a.browser.weChat&&this._throttledZrFlush(),fm.call(this,n),dm.call(this,n)}},t.prototype.updateLabelLayout=function(){Yg.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Om(this.id);else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),2===e.hoverState&&e.states.emphasis?t.push("emphasis"):1===e.hoverState&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return i(e,n,r,-1/0),!0}))}}function i(e,t,n,r){var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=Math.max(i(s[l],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(o&&(o.z=t,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function o(e,t){t.eachRendered((function(e){if(!Gs(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function s(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Gs(e))return;if(e instanceof pa&&function(e){var t=Ya(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}im=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),om(e,!0),om(e,!1),t.plan()},om=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(e){var l=e.__requireNewView;e.__requireNewView=!1;var u="_ec_"+e.id+"_"+e.type,c=!l&&o[u];if(!c){var f=ki(e.type);(c=new(t?id.getClass(f.main,f.sub):dp.getClass(f.sub))).init(n,s),o[u]=c,i.push(c),a.add(c.group)}e.__viewId=c.__id=u,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(c,e,n,s)}for(t?n.eachComponent((function(e,t){"series"!==e&&u(t)})):n.eachSeries(u),l=0;l<i.length;){var c=i[l];c.__alive?l++:(!t&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},am=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=le(),L(fi(u),(function(e){var t=yi(e,null);null!=t&&l.set(t,!0)}))),o&&o.eachComponent(s,(function(t){if(!l||null===l.get(t.id))if(Bs(n))if(t instanceof nd)n.type!==Qa||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=wi(i,t);o=(F(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var u=Ga(a);Cs(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);null!=c&&Cs(r,c,f,n)}}}(t,n,e._api);else{var r=Is(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===Qa&&i&&!n.notBlur&&Os(t.mainType,t.componentIndex,e._api),o&&L(o,(function(e){n.type===Qa?bs(e):Es(e)}))}else js(n)&&t instanceof nd&&(function(e,t,n){if(js(t)){var r=t.dataType,i=wi(e.getData(r),t);F(i)||(i=[i]),e[t.type===ts?"toggleSelect":t.type===Za?"select":"unselect"](i,r)}}(t,n,e._api),As(t),Em(e))}),e),o&&o.eachComponent(s,(function(t){l&&null!==l.get(t.id)||c(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else L([].concat(e._componentsViews).concat(e._chartsViews),c);function c(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},sm={prepareAndUpdate:function(e){im(this),sm.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),um(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),gm(this,r,i,t,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Yg.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,t);l&&l.update&&o.push(s)}else o.push(s)}}));var a=le();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),vm(this,r,i,t,{},a),Yg.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),dp.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),gm(this,n,this._api,t,{}),Yg.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),dp.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),Yg.trigger("afterupdate",r,this._api))},updateLayout:function(e){sm.update.call(this,e)}},lm=function(e,t,n,r){if(e._disposed)Om(e.id);else for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=_i(o,n),l=0;l<a.length;l++){var u=a[l];if(u[t]&&null!=(i=u[t](o,s,r)))return i}},um=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},cm=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=Im[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&ki(l[0]);this.__flagInMainProcess=!0;var f=[e],d=!1;e.batch&&(d=!0,f=M(e.batch,(function(t){return(t=A(I({},t),e)).batch=null,t})));var h,p=[],g=js(e),m=Bs(e);if(m&&Ts(this._api),L(f,(function(t){if((h=(h=a.action(t,n._model,n._api))||I({},t)).type=s.event||h.type,p.push(h),m){var r=Ti(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";am(n,u,t,o),Em(n)}else g?(am(n,u,t,"series"),Em(n)):c&&am(n,u,t,c.main,c.sub)})),"none"!==u&&!m&&!g&&!c)try{this.__pendingUpdate?(im(this),sm.update.call(this,e),this.__pendingUpdate=null):sm[u].call(this,e)}catch(e){throw this.__flagInMainProcess=!1,e}if(h=d?{type:s.event||i,escapeConnect:o,batch:p}:p[0],this.__flagInMainProcess=!1,!t){var v=this._messageCenter;if(v.trigger(h.type,h),g){var y={type:"selectchanged",escapeConnect:o,selected:Rs(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};v.trigger(y.type,y)}}},fm=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();cm.call(this,n,e)}},dm=function(e){!e&&this.trigger("updated")},hm=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__pendingUpdate||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},pm=function(e,t){e.on("mouseover",(function(e){var n=og(e.target,Us);n&&(function(e,t,n){var r=Ga(e),i=Is(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Os(r.componentMainType,r.componentIndex,n),L(o,(function(e){return vs(e,t)}))):(Cs(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Os(r.componentMainType,r.componentIndex,n),vs(e,t))}(n,e,t._api),Em(t))})).on("mouseout",(function(e){var n=og(e.target,Us);n&&(function(e,t,n){Ts(n);var r=Ga(e),i=Is(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,(function(e){return ys(e,t)})):ys(e,t)}(n,e,t._api),Em(t))})).on("click",(function(e){var n=og(e.target,(function(e){return null!=Ga(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Ga(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},gm=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);st(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),L(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(t),mm(e,t,n,r,i),L(e._chartsViews,(function(e){e.__alive=!1})),vm(e,t,n,r,i),L(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},mm=function(e,t,r,i,a,l){L(l||e._componentsViews,(function(e){var a=e.__model;o(0,e),e.render(a,t,r,i),n(a,e),s(a,e)}))},vm=function(e,t,r,i,l,u){var c=e._scheduler;l=I(l||{},{updatedSeries:t.getSeries()}),Yg.trigger("series:beforeupdate",t,r,l);var f=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;c.updatePayload(r,i),o(0,n),u&&u.get(t.uid)&&r.dirty(),r.perform(c.getPerformArgs(r))&&(f=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),As(t)})),c.unfinished=f||c.unfinished,Yg.trigger("series:layoutlabels",t,r,l),Yg.trigger("series:transition",t,r,l),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];n(t,r),s(t,r)})),function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!a.node&&!a.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),Yg.trigger("series:afterupdate",t,r,l)},Em=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},wm=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse((function(e){Gs(e)||t(e)})),e.__needsUpdateStatus=!1)},ym=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){bs(t,n),Em(e)},n.prototype.leaveEmphasis=function(t,n){Es(t,n),Em(e)},n.prototype.enterBlur=function(t){!function(e){hs(e,ls)}(t),Em(e)},n.prototype.leaveBlur=function(t){ws(t),Em(e)},n.prototype.enterSelect=function(t){Ss(t),Em(e)},n.prototype.leaveSelect=function(t){xs(t),Em(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(tc))(e)},bm=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][em]=t}L(Am,(function(n,r){e._messageCenter.on(r,(function(n){if(Pm[e.group]&&0!==e[em]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];L(Dm,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),L(i,(function(e){1!==e[em]&&e.dispatchAction(r)})),t(i,2)}}))}))}}(),t}(Re),Tm=_m.prototype;Tm.on=tm("on"),Tm.off=tm("off"),Tm.one=function(e,t,n){var r=this;this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)};var Cm=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Om(e){}var Im={},Am={},Rm=[],Nm=[],km=[],Lm={},Mm={},Dm={},Pm={},Um=+new Date-0,jm=(new Date,"_echarts_instance_");function Bm(e,t,n){var r=!(n&&n.ssr);if(r){var i=function(e){return Dm[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,jm)]}(e);if(i)return i}var o=new _m(e,t,n);return o.id="ec_"+Um++,Dm[o.id]=o,r&&Ii(e,jm,o.id),bm(o),Yg.trigger("afterinit",o),o}function Fm(e,t){Lm[e]=t}function Hm(e){R(Nm,e)<0&&Nm.push(e)}function zm(e,t){Ym(Rm,e,t,2e3)}function Vm(e,t){Yg.on(e,t)}function Gm(e,t,n){H(t)&&(n=t,t="");var r=W(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,Am[t]||(ne(Zg.test(r)&&Zg.test(t)),Im[r]||(Im[r]={action:n,actionInfo:e}),Am[t]=r)}function Wm(e,t){Ym(km,e,t,3e3,"visual")}var qm=[];function Ym(e,t,n,r,i){if((H(t)||W(t))&&(n=t,t=r),!(R(qm,n)>=0)){qm.push(n);var o=Gp.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Xm(e,t){Mm[e]=t}Wm(Kg,_p),Wm(Qg,Cp),Wm(Qg,Op),Wm(Kg,ng),Wm(Qg,rg),Wm(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=Vg(n,t))}));var i=r.getVisual("decal");i&&(r.getVisual("style").decal=Vg(i,t))}}))})),Hm(Cc),zm(900,(function(e){var t=le();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(Oc)})),Xm("default",(function(e,t){A(t=t||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Vr,r=new Aa({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Va({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Aa({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new fh({shape:{startAngle:-Ip/2,endAngle:-Ip/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Ip/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Ip/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Gm({type:Qa,event:Qa,update:Qa},de),Gm({type:Ja,event:Ja,update:Ja},de),Gm({type:Za,event:Za,update:Za},de),Gm({type:es,event:es,update:es},de),Gm({type:ts,event:ts,update:ts},de),Fm("light",qp),Fm("dark",Jp);var $m=[],Km={registerPreprocessor:Hm,registerProcessor:zm,registerPostInit:function(e){Vm("afterinit",e)},registerPostUpdate:function(e){Vm("afterupdate",e)},registerUpdateLifecycle:Vm,registerAction:Gm,registerCoordinateSystem:function(e,t){rc.register(e,t)},registerLayout:function(e,t){Ym(km,e,t,1e3,"layout")},registerVisual:Wm,registerTransform:function(e){var t=(e=C(e)).type;t||af("");var n=t.split(":");2!==n.length&&af("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,pf.set(t,e)},registerLoading:Xm,registerMap:function(e,t,n){var r=Xg.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){Xg[e]=t},PRIORITY:Jg,ComponentModel:Cu,ComponentView:id,SeriesModel:nd,ChartView:dp,registerComponentModel:function(e){Cu.registerClass(e)},registerComponentView:function(e){id.registerClass(e)},registerSeriesModel:function(e){nd.registerClass(e)},registerChartView:function(e){dp.registerClass(e)},registerSubTypeDefaulter:function(e,t){Cu.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){var n;n=t,Gr[e]=n}};function Qm(e){F(e)?L(e,(function(e){Qm(e)})):R($m,e)>=0||($m.push(e),H(e)&&(e={install:e}),e.install(Km))}var Jm=Si(),Zm={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ev=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=rv(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return J(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Fc(this.source),n=!iv(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=t?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var f=this.getSourceDimension(o);f&&(s=t?f.name:null,l=f.type)}i.push({property:s,type:l,ordinalMeta:u}),!t||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=Zm[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function tv(e){return e instanceof ev}function nv(e){for(var t=le(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function rv(e){var t=Jm(e);return t.dimNameMap||(t.dimNameMap=nv(e.dimensionsDefine))}function iv(e){return e>30}function ov(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}var av="undefined"!=typeof Float32Array,sv=av?Float32Array:Array;function lv(e){return F(e)?av?new Float32Array(e):e:new sv(e)}function uv(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function cv(e){return e.dim+e.index}function fv(e,t){var n=[];return t.eachSeriesByType(e,(function(e){pv(e)&&n.push(e)})),n}function dv(e){var t=function(e){var t={};L(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,l=a.count();s<l;++s){var u=a.get(o,s);t[i]?t[i].push(u):t[i]=[u]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return L(e,(function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],l=Math.abs(o[1]-o[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);r=s?l/c*s:l}else{var f=e.getData();r=Math.abs(o[1]-o[0])/f.count()}var d=$r(e.get("barWidth"),r),h=$r(e.get("barMaxWidth"),r),p=$r(e.get("barMinWidth")||(gv(e)?.5:1),r),g=e.get("barGap"),m=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:h,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:cv(i),stackId:uv(e)})})),function(e){var t={};L(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var f=e.barGap;null!=f&&(o.gap=f);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return L(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=U(r).length;o=Math.max(35-4*a,15)+"%"}var s=$r(o,i),l=$r(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),L(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width)r=e.width,t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--;else{var r=f;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==f&&(e.width=r,u-=r+l*r,c--)}})),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d,h=0;L(r,(function(e,t){e.width||(e.width=f),d=e,h+=e.width*(1+l)})),d&&(h-=d.width*l);var p=-h/2;L(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)}))})),n}(n)}function hv(e,t){var n=fv(e,t),r=dv(n);L(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=uv(e),o=r[cv(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function pv(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function gv(e){return e.pipelineContext&&e.pipelineContext.large}var mv={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},vv=function(e){return Math.round(e.length/2)};function yv(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),f=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/f);if(isFinite(d)&&d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d));var h=void 0;z(i)?h=mv[i]:H(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/d,h,vv))}}}}}function bv(e){return null==e?0:e.length||1}function Ev(e){return e}var wv=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||Ev,this._newKeyGetter=r||Ev,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],l=bv(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=bv(l),f=bv(u);if(c>1&&1===f)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&f>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===f)this._update&&this._update(u,l),r[s]=null;else if(c>1&&f>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=bv(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],l=bv(s);0===l?(t[a]=o,i&&n.push(a)):1===l?t[a]=[s,o]:s.push(o)}}},e}();const Sv=wv;var xv=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function _v(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}const Tv=function(e){this.otherDims={},null!=e&&I(this,e)};var Cv,Ov,Iv,Av,Rv,Nv,kv,Lv=W,Mv=M,Dv="undefined"==typeof Int32Array?Array:Int32Array,Pv=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Uv=["_approximateExtent"],jv=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;tv(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],f=z(c)?new Tv({name:c}):c instanceof Tv?c:new Tv(c),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var h=f.otherDims=f.otherDims||{};o.push(d),i[d]=f,null!=l[d]&&(s=!0),f.createInvertedIndices&&(a[d]=[]),0===h.itemName&&(this._nameDimIdx=u),0===h.itemId&&(this._idDimIdx=u),r&&(f.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=le();L(o,(function(e){p.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(G(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Of&&(r=e),!r){var o=this.dimensions,a=Mc(e)||k(e)?new Hc(e,o.length):e;r=new Of;var s=Mv(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=le(),o=[],a=[],s={};L(e.dimensions,(function(t){var n,l=e.getDimensionInfo(t),u=l.coordDim;if(u){var c=l.coordDimIndex;_v(r,u)[c]=t,l.isExtraCoord||(i.set(u,1),"ordinal"!==(n=l.type)&&"time"!==n&&(o[0]=t),_v(s,u)[c]=e.getDimensionIndex(l.name)),l.defaultTooltip&&a.push(t)}Ru.each((function(e,t){var n=_v(r,t),i=l.otherDims[t];null!=i&&!1!==i&&(n[i]=l.name)}))}));var l=[],u={};i.each((function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=M(l,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new xv(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&kv(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Du&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Nu&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&gi(s)&&(this.hasItemOption=!0),s){var l=s.name;null==r[a]&&null!=l&&(r[a]=yi(l,null));var u=s.id;null==i[a]&&null!=u&&(i[a]=yi(u,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)kv(this,a);Cv(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Lv(e)?I(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=Iv(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Ov(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return F(e)?r.getValues(Mv(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=Mv(Av(e),this._getStoreDimIndex,this);this._store.each(i,r?j(t,r):t)},e.prototype.filterSelf=function(e,t,n){H(e)&&(n=t,t=e,e=[]);var r=n||this,i=Mv(Av(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?j(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=U(e),i=[];return L(r,(function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){H(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=Mv(Av(e),this._getStoreDimIndex,this),a=Nv(this);return a._store=this._store.map(o,i?j(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this,o=Mv(Av(e),this._getStoreDimIndex,this);this._store.modify(o,i?j(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Nv(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=Nv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new wl(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Sv(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return Ov(e,t)}),(function(e){return Ov(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Lv(e)?I(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(F(i=this.getVisual(t))?i=i.slice():Lv(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Lv(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Lv(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){!function(e,t,n,r){if(r){var i=Ga(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var i=Ga(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t}))}}(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Mv(this.dimensions,this._getDimInfo,this),this.hostModel)),Rv(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ee(arguments)))})},e.internalField=(Cv=function(e){var t=e._invertedIndicesMap;L(t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new Dv(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},Iv=function(e,t,n){return yi(e._getCategory(t,n),null)},Ov=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=Iv(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},Av=function(e){return F(e)||(e=null!=e?[e]:[]),e},Nv=function(t){var n=new e(t._schema?t._schema:Mv(t.dimensions,t._getDimInfo,t),t.hostModel);return Rv(n,t),n},Rv=function(e,t){L(Pv.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,L(Uv,(function(n){e[n]=C(t[n])})),e._calculationInfo=I({},t._calculationInfo)},void(kv=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=Iv(e,i,t)),null==s&&null!=o&&(r[t]=s=Iv(e,o,t)),null==s&&null!=a){var l=e._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[t]=s}})),e}();const Bv=jv;function Fv(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){for(var i=0;r.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var Hv=function(e){this.coordSysDims=[],this.axisMap=le(),this.categoryAxisMap=le(),this.coordSysName=e},zv={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",Ci).models[0],o=e.getReferringComponents("yAxis",Ci).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Vv(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Vv(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",Ci).models[0];t.coordSysDims=["single"],n.set("single",i),Vv(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",Ci).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Vv(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Vv(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();L(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),Vv(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function Vv(e){return"category"===e.get("type")}const Gv=function(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Pc(e)):o=(r=i.getSource()).sourceFormat===Nu;var a=function(e){var t=e.get("coordinateSystem"),n=new Hv(t),r=zv[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=rc.get(r);return t&&t.coordSysDims&&(n=M(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=function(e){return"category"===e?"ordinal":"time"===e?"time":"float"}(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),l=n.useEncodeDefaulter,u=H(l)?l:l?B(Fu,s,t):null,c=function(e,t){Mc(e)||(e=Pc(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=le(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,(function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&iv(a),l=r===e.dimensionsDefine,u=l?rv(e):nv(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var f=le(c),d=new wf(a),h=0;h<d.length;h++)d[h]=-1;function p(e){var t=d[e];if(t<0){var n=r[e],i=W(n)?n:{name:n},a=new Tv,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return d[e]=l,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(h=0;h<a;h++)p(h);f.each((function(e,t){var n=fi(e).slice();if(1===n.length&&!z(n[0])&&n[0]<0)f.set(t,!1);else{var r=f.set(t,[]);L(n,(function(e,n){var i=z(e)?u.get(e):e;null!=i&&i<a&&(r[n]=i,m(p(i),t,n))}))}}));var g=0;function m(e,t,n){null!=Ru.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}L(n,(function(e){var t,n,r,i;if(z(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=I({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=f.get(t);if(!1!==s){if(!(s=fi(s)).length)for(var u=0;u<(n&&n.length||1);u++){for(;g<a&&null!=p(g).coordDim;)g++;g<a&&s.push(g++)}L(s,(function(e,o){var a=p(e);if(l&&null!=i.type&&(a.type=i.type),m(A(a,i),t,o),null==a.name&&n){var s=n[o];!W(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&A(a.otherDims,r)}))}}));var v=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=v?y||1:0;var E=v||"value";function w(e){null==e.name&&(e.name=e.coordDim)}if(s)L(o,(function(e){w(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var S=0;S<a;S++){var x=p(S);null==x.coordDim&&(x.coordDim=Fv(E,i,b),x.coordDimIndex=0,(!v||y<=0)&&(x.isExtraCoord=!0),y--),w(x),null!=x.type||1!==zu(e,S)&&(!x.isExtraCoord||null==x.otherDims.itemName&&null==x.otherDims.seriesName)||(x.type="ordinal")}return function(e){for(var t=le(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new ev({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),f=function(e,t,n){var r,i;return n&&L(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}(c.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(c),h=function(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!tv(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var l,u,c,f,d=!(!e||!e.get("stack"));if(L(r,(function(e,t){z(e)&&(r[t]=e={name:e}),d&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,p=u.type,g=0;L(r,(function(e){e.coordDim===h&&g++}));var m={name:c,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},v={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(m.storeDimIndex=o.ensureCalculationDimension(f,p),v.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(m),i.appendCalculationDimension(v)):(r.push(m),r.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:c}}(t,{schema:c,store:d}),p=new Bv(c,t);p.setCalculationInfo(h);var g=null!=f&&function(e){if(e.sourceFormat===Nu)return!F(pi(function(e){for(var t=0;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[])))}(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return p.hasItemOption=!1,p.initData(o?r:d,null,g),p};var Wv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.getInitialData=function(e,t){return Gv(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(nd);nd.registerClass(Wv);const qv=Wv;var Yv=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.getInitialData=function(){return Gv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=_l(qv.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(qv);const Xv=Yv;function $v(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var f=new Aa({shape:{x:a,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var g=H(i)?function(e){i(e,f)}:null;Vs(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return f}function Kv(e,t,n){var r=e.getArea(),i=Kr(r.r0,1),o=Kr(r.r,1),a=new Vd({shape:{cx:Kr(e.cx,1),cy:Kr(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,Vs(a,{shape:{endAngle:r.endAngle,r:o}},n)),a}var Qv=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Jv=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return r(t,e),t.prototype.getDefaultShape=function(){return new Qv},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,f=2*Math.PI,d=c?u-l<f:l-u<f;d||(l=u-(c?f:-f));var h=Math.cos(l),p=Math.sin(l),g=Math.cos(u),m=Math.sin(u);d?(e.moveTo(h*i+n,p*i+r),e.arc(h*s+n,p*s+r,a,-Math.PI+l,l,!c)):e.moveTo(h*o+n,p*o+r),e.arc(n,r,o,l,u,!c),e.arc(g*s+n,m*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&e.arc(n,r,i,u,l,c)},t}(pa);const Zv=Jv;function ey(e,t){return e.type===t}function ty(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Jc(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(Jc(e,t,n[a]));return o.join(" ")}}function ny(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!F(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}function ry(e,t,n){return t*Math.sin(e)*(n?-1:1)}function iy(e,t,n){return t*Math.cos(e)*(n?1:-1)}var oy=Math.max,ay=Math.min,sy=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return r(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){rp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,f=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,l);f&&this._enableRealtimeSort(f,a,n);var d=e.get("clip",!0)||f,h=function(e,t){var n=e.getArea&&e.getArea();if(ey(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(l,a);o.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],b=this._backgroundEls,E=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function S(e){var t=gy[l.type](a,e),n=function(e,t,n){return new("polar"===e.type?Vd:Aa)({shape:Sy(t,n,e),silent:!0,z2:0})}(l,i,t);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=gy[l.type](a,t,n);if(g&&S(t),a.hasValue(t)&&py[l.type](r)){var s=!1;d&&(s=ly[l.type](h,r));var m=uy[l.type](e,a,t,r,i,c,u.model,!1,p);f&&(m.forceLabelAnimation=!0),vy(m,a,t,n,r,e,i,"polar"===l.type),E?m.attr({shape:r}):f?cy(f,c,m,r,t,i,!1,!1):Vs(m,{shape:r},e,t),a.setItemGraphicEl(t,m),o.add(m),m.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),x=gy[l.type](a,t,r);if(g){var _=void 0;0===b.length?_=S(n):((_=b[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type&&_.setShape("r",v),y[t]=_);var T=gy[l.type](a,t);zs(_,{shape:Sy(i,T,l)},c,t)}var C=s.getItemGraphicEl(n);if(a.hasValue(t)&&py[l.type](x)){var O=!1;if(d&&(O=ly[l.type](h,x))&&o.remove(C),C?Xs(C):C=uy[l.type](e,a,t,x,i,c,u.model,!!C,p),f&&(C.forceLabelAnimation=!0),w){var I=C.getTextContent();if(I){var A=al(I);null!=A.prevValue&&(A.prevValue=A.value)}}else vy(C,a,t,r,x,e,i,"polar"===l.type);E?C.attr({shape:x}):f?cy(f,c,C,x,t,i,!0,w):zs(C,{shape:x},e,t,null),a.setItemGraphicEl(t,C),C.ignore=O,o.add(C)}else o.remove(C)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&Ys(n,e,t)})).execute();var x=this._backgroundGroup||(this._backgroundGroup=new Vr);x.removeAll();for(var _=0;_<y.length;++_)x.add(y[_]);o.add(x),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Ey(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Ey(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&function(e,t,n,r,i){return e?"polar"===e.type?Kv(e,false,n):"cartesian2d"===e.type?$v(e,false,n,void 0,void 0):null:null}(e.coordinateSystem,0,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:M(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:t(e.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){Ys(t,e,Ga(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(dp),ly={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=oy(t.x,e.x),s=ay(t.x+t.width,i),l=oy(t.y,e.y),u=ay(t.y+t.height,o),c=s<a,f=u<l;return t.x=c&&a>i?s:a,t.y=f&&l>o?u:l,t.width=c?0:s-a,t.height=f?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=ay(t.r,e.r),o=oy(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;return n<0&&(r=t.r,t.r=t.r0,t.r0=r),a}},uy={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new Aa({shape:I({},r),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[i?"height":"width"]=0),u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?Zv:Vd,c=new u({shape:r,z2:1});c.name="item";var f,d,h=my(i);if(c.calculateTextPosition=(f=h,d=({isRoundCap:u===Zv}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return Rr(e,t,n);var i=f(r),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,h=(u+c)/2,p=a.startAngle,g=a.endAngle,m=(p+g)/2,v=d?Math.abs(u-c)/2:0,y=Math.cos,b=Math.sin,E=s+u*y(p),w=l+u*b(p),S="left",x="top";switch(i){case"startArc":E=s+(c-o)*y(m),w=l+(c-o)*b(m),S="center",x="top";break;case"insideStartArc":E=s+(c+o)*y(m),w=l+(c+o)*b(m),S="center",x="bottom";break;case"startAngle":E=s+h*y(p)+ry(p,o+v,!1),w=l+h*b(p)+iy(p,o+v,!1),S="right",x="middle";break;case"insideStartAngle":E=s+h*y(p)+ry(p,-o+v,!1),w=l+h*b(p)+iy(p,-o+v,!1),S="left",x="middle";break;case"middle":E=s+h*y(m),w=l+h*b(m),S="center",x="middle";break;case"endArc":E=s+(u+o)*y(m),w=l+(u+o)*b(m),S="center",x="bottom";break;case"insideEndArc":E=s+(u-o)*y(m),w=l+(u-o)*b(m),S="center",x="top";break;case"endAngle":E=s+h*y(g)+ry(g,o+v,!0),w=l+h*b(g)+iy(g,o+v,!0),S="left",x="middle";break;case"insideEndAngle":E=s+h*y(g)+ry(g,-o+v,!0),w=l+h*b(g)+iy(g,-o+v,!0),S="right",x="middle";break;default:return Rr(e,t,n)}return(e=e||{}).x=E,e.y=w,e.align=S,e.verticalAlign=x,e}),o){var p=i?"r":"endAngle",g={};c.shape[p]=i?0:r.startAngle,g[p]=r[p],(s?zs:Vs)(c,{shape:g},o)}return c}};function cy(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?zs:Vs)(n,{shape:l},t,i,null),(a?zs:Vs)(n,{shape:u},t?e.baseAxis.model:null,i)}function fy(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var dy=["x","y","width","height"],hy=["cx","cy","r","startAngle","endAngle"],py={cartesian2d:function(e){return!fy(e,dy)},polar:function(e){return!fy(e,hy)}},gy={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function my(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function vy(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=r.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=Zs(r);Js(e,f,{labelFetcher:o,labelDataIndex:n,defaultText:ty(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var h=r.get(["label","position"]);e.textConfig.inside="middle"===h||null,function(e,t,n,r){if(G(r))e.setTextConfig({rotation:r});else if(F(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}(e,"outside"===h?c:h,my(a),r.get(["label","rotate"]))}!function(e,n,r,i){if(e){var o=al(e);o.prevValue=o.value,o.value=r;var a=n.normal;o.valueAnimation=a.get("valueAnimation"),o.valueAnimation&&(o.precision=a.get("precision"),o.defaultInterpolatedText=function(e){return ny(t,e)},o.statesModels=n)}}(d,f,o.getRawValue(n));var p=r.getModel(["emphasis"]);ks(e,p.get("focus"),p.get("blurScope"),p.get("disabled")),Ds(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",L(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var yy=function(){},by=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return r(t,e),t.prototype.getDefaultShape=function(){return new yy},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],e.rect(o[0],o[1],a[0],a[1])},t}(pa);function Ey(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new by({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),n&&n.push(c)}var f=new by({shape:{points:i.getLayout("largePoints")},incremental:!!r,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Ga(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",wy),f.on("mousemove",wy)),n&&n.push(f)}var wy=mp((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=3*c;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,e.offsetX,e.offsetY);Ga(this).dataIndex=t>=0?t:null}),30,!1);function Sy(e,t,n){if(ey(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var o=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}const xy=sy;Qm((function(e){e.registerChartView(xy),e.registerSeriesModel(Xv),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,B(hv,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:od(),reset:function(e){if(pv(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=ov(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),d=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,i),h=gv(e),p=e.get("barMinHeight")||0,g=u&&t.getDimensionIndex(u),m=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,l=h&&lv(3*i),u=h&&s&&lv(3*i),y=h&&lv(i),b=n.master.getRect(),E=f?b.width:b.height,w=t.getStore(),S=0;null!=(r=e.next());){var x=w.get(c?g:o,r),_=w.get(a,r),T=d,C=void 0;c&&(C=+x-w.get(o,r));var O=void 0,I=void 0,A=void 0,R=void 0;if(f){var N=n.dataToPoint([x,_]);c&&(T=n.dataToPoint([C,_])[0]),O=T,I=N[1]+v,A=N[0]-T,R=m,Math.abs(A)<p&&(A=(A<0?-1:1)*p)}else N=n.dataToPoint([_,x]),c&&(T=n.dataToPoint([_,C])[1]),O=N[0]+v,I=T,A=m,R=N[1]-T,Math.abs(R)<p&&(R=(R<=0?-1:1)*p);h?(l[S]=O,l[S+1]=I,l[S+2]=f?A:R,u&&(u[S]=f?b.x:O,u[S+1]=f?I:b.y,u[S+2]=E),y[r]=r):t.setItemLayout(r,{x:O,y:I,width:A,height:R}),S+=3}h&&t.setLayout({largePoints:l,largeDataIndices:y,largeBackgroundPoints:u,valueAxisHorizontal:f})}}}}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yv("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}));const _y=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return r(t,e),t.prototype.getInitialData=function(e){return Gv(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Vr,n=yg("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=yg(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var l="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(nd);var Ty=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return r(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=yg(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Cy,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){bs(this.childAt(0))},t.prototype.downplay=function(){Es(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{(d=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(f):zs(d,f,a,n),Xs(d)}if(this._updateCommon(e,n,s,r,i),l){var d=this.childAt(0);u||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,Vs(d,f,a,n))}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,f,d,h,p=this.childAt(0),g=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,f=r.labelStatesModels,d=r.hoverScale,h=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var m=r&&r.itemModel?r.itemModel:e.getItemModel(t),v=m.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),f=Zs(m),d=v.getShallow("scale"),h=m.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(y||0)*Math.PI/180||0);var b=bg(e.getItemVisual(t,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),h&&p.attr("cursor",h);var E=e.getItemVisual(t,"style"),w=E.fill;if(p instanceof wa){var S=p.style;p.useStyle(I({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},E))}else p.__isEmptyBrush?p.useStyle(I({},E)):p.useStyle(E),p.style.decal=null,p.setColor(w,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var x=e.getItemVisual(t,"liftZ"),_=this._z2;null!=x?null==_&&(this._z2=p.z2,p.z2+=x):null!=_&&(p.z2=_,this._z2=null);var T=i&&i.useNameLabel;Js(p,f,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):ty(e,t)},inheritColor:w,defaultOpacity:E.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=p.ensureState("emphasis");if(C.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a,d){var O=Math.max(G(d)?d:1.1,3/this._sizeY);C.scaleX=this._sizeX*O,C.scaleY=this._sizeY*O}this.setSymbolScale(1),ks(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Ga(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&Ws(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Ws(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return F(n=e.getItemVisual(t,"symbolSize"))||(n=[+n,+n]),[n[0]||0,n[1]||0];var n},t}(Vr);function Cy(e,t){this.parent.drift(e,t)}const Oy=Ty;function Iy(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function Ay(e){return null==e||W(e)||(e={isIgnore:e}),e||{}}function Ry(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Zs(t),cursorStyle:t.get("cursor")}}var Ny=function(){function e(e){this.group=new Vr,this._SymbolCtor=e||Oy}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Ay(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=Ry(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(Iy(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,f){var d=i.getItemGraphicEl(f),h=u(c);if(Iy(e,h,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==p)n.remove(d),(d=new o(e,c,s,l)).setPosition(h);else{d.updateData(e,c,s,l);var m={x:h[0],y:h[1]};a?d.attr(m):zs(d,m,r)}n.add(d),e.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ry(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Ay(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Iy(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){rp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();const ky=Ny;function Ly(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:G(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}(i,n),a=r.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(a),c="x"===s||"radius"===s?1:0,f=M(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,h=t.getCalculationInfo("stackResultDimension");return ov(t,f[0])&&(d=!0,f[0]=h),ov(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function My(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var Dy=Math.min,Py=Math.max;function Uy(e,t){return isNaN(e)||isNaN(t)}function jy(e,t,n,r,i,o,a,s,l){for(var u,c,f,d,h,p,g=n,m=0;m<r;m++){var v=t[2*g],y=t[2*g+1];if(g>=i||g<0)break;if(Uy(v,y)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](v,y),f=v,d=y;else{var b=v-u,E=y-c;if(b*b+E*E<.5){g+=o;continue}if(a>0){for(var w=g+o,S=t[2*w],x=t[2*w+1];S===v&&x===y&&m<r;)m++,g+=o,S=t[2*(w+=o)],x=t[2*w+1],b=(v=t[2*g])-u,E=(y=t[2*g+1])-c;var _=m+1;if(l)for(;Uy(S,x)&&_<r;)_++,S=t[2*(w+=o)],x=t[2*w+1];var T=.5,C=0,O=0,I=void 0,A=void 0;if(_>=r||Uy(S,x))h=v,p=y;else{C=S-u,O=x-c;var R=v-u,N=S-v,k=y-c,L=x-y,M=void 0,D=void 0;if("x"===s){var P=C>0?1:-1;h=v-P*(M=Math.abs(R))*a,p=y,I=v+P*(D=Math.abs(N))*a,A=y}else if("y"===s){var U=O>0?1:-1;h=v,p=y-U*(M=Math.abs(k))*a,I=v,A=y+U*(D=Math.abs(L))*a}else M=Math.sqrt(R*R+k*k),h=v-C*a*(1-(T=(D=Math.sqrt(N*N+L*L))/(D+M))),p=y-O*a*(1-T),A=y+O*a*T,I=Dy(I=v+C*a*T,Py(S,v)),A=Dy(A,Py(x,y)),I=Py(I,Dy(S,v)),p=y-(O=(A=Py(A,Dy(x,y)))-y)*M/D,h=Dy(h=v-(C=I-v)*M/D,Py(u,v)),p=Dy(p,Py(c,y)),I=v+(C=v-(h=Py(h,Dy(u,v))))*D/M,A=y+(O=y-(p=Py(p,Dy(c,y))))*D/M}e.bezierCurveTo(f,d,h,p,v,y),f=I,d=A}else e.lineTo(v,y)}u=v,c=y,g+=o}return m}var By=function(){this.smooth=0,this.smoothConstraint=!0},Fy=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return r(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new By},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Uy(n[2*i-2],n[2*i-1]);i--);for(;r<i&&Uy(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=jy(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Yo.CMD,a="x"===t,s=[],l=0;l<i.length;){var u=void 0,c=void 0,f=void 0,d=void 0,h=void 0,p=void 0,g=void 0;switch(i[l++]){case o.M:n=i[l++],r=i[l++];break;case o.L:if(u=i[l++],c=i[l++],(g=a?(e-n)/(u-n):(e-r)/(c-r))<=1&&g>=0){var m=a?(c-r)*g+r:(u-n)*g+n;return a?[e,m]:[m,e]}n=u,r=c;break;case o.C:u=i[l++],c=i[l++],f=i[l++],d=i[l++],h=i[l++],p=i[l++];var v=a?It(n,u,f,h,e,s):It(r,c,d,p,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0)return m=a?Ct(r,c,d,p,b):Ct(n,u,f,h,b),a?[e,m]:[m,e]}n=h,r=p}}},t}(pa),Hy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(By),zy=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return r(t,e),t.prototype.getDefaultShape=function(){return new Hy},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&Uy(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Uy(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=jy(e,n,i,o,o,1,t.smooth,a,t.connectNulls);jy(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(pa);function Vy(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Gy(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Wy(e,t){var n=Gy(e),r=n[0],i=n[1],o=Gy(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function qy(e){return G(e)?e:e?.5:0}function Yy(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,h=[];l[o]=h[o]=d,l[1-o]=u[1-o],h[1-o]=c[1-o],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function Xy(e,t){return isNaN(e)||isNaN(t)}function $y(e,t){return[e[2*t],e[2*t+1]]}function Ky(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<$a.length;t++)if(e.get([$a[t],"endLabel","show"]))return!0;return!1}function Qy(e,t,n,r){if(ey(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=Ky(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=$v(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=2*d):(f.x-=d,f.width+=2*d)}return l&&l(1,c),c}return Kv(t,n,r)}var Jy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.init=function(){var e=new Vr,t=new ky;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,f=this._coordSys,d=this._symbolDraw,h=this._polyline,p=this._polygon,g=this._lineGroup,m=e.get("animation"),v=!l.isEmpty(),y=l.get("origin"),b=Ly(i,a,y),E=v&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=lv(2*r),o=0;o<r;o++){var a=My(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,b),w=e.get("showSymbol"),S=e.get("connectNulls"),x=w&&!c&&function(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*Oy.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return L(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}(e,a,i),_=this._data;_&&_.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),_.setItemGraphicEl(t,null))})),w||d.remove(),o.add(g);var T,C=!c&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(T=i.getArea()).width?(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2):T.r0&&(T.r0-=.5,T.r+=.5)),this._clipShapeForSymbol=T;var O=function(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),u=M(o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord;return{coord:n,color:ln((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<o;s++){var l=e[s],u=l.coord;if(u<0)n=l;else{if(u>t){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}(u,"x"===i?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=d[0].coord-10,g=d[h-1].coord+10,m=g-p;if(m<.001)return"transparent";L(d,(function(e){e.offset=(e.coord-p)/m})),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var v=new vh(0,0,0,0,d,!0);return v[i]=p,v[i+"2"]=g,v}}}(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(h&&f.type===i.type&&C===this._step){v&&!p?p=this._newPolygon(u,E):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,hu(O));var I=g.getClipPath();I?Vs(I,{shape:Qy(this,i,!1,e).shape},e):g.setClipPath(Qy(this,i,!0,e)),w&&d.updateData(a,{isIgnore:x,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),Vy(this._stackedOnPoints,E)&&Vy(this._points,u)||(m?this._doUpdateAnimation(a,E,i,n,C,y,S):(C&&(u=Yy(u,i,C,S),E&&(E=Yy(E,i,C,S))),h.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:E})))}else w&&d.updateData(a,{isIgnore:x,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[u[2*e],u[2*e+1]]}}),m&&this._initSymbolLabelAnimation(a,i,T),C&&(u=Yy(u,i,C,S),E&&(E=Yy(E,i,C,S))),h=this._newPolyline(u),v&&(p=this._newPolygon(u,E)),c||this._initOrUpdateEndLabel(e,i,hu(O)),g.setClipPath(Qy(this,i,!0,e));var R=e.getModel("emphasis"),N=R.get("focus"),k=R.get("blurScope"),D=R.get("disabled");h.useStyle(A(s.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),Ds(h,e,"lineStyle"),h.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1),Ga(h).seriesIndex=e.seriesIndex,ks(h,N,k,D);var P=qy(e.get("smooth")),U=e.get("smoothMonotone");if(h.setShape({smooth:P,smoothMonotone:U,connectNulls:S}),p){var j=a.getCalculationInfo("stackedOnSeries"),B=0;p.useStyle(A(l.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),j&&(B=qy(j.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:B,smoothMonotone:U,connectNulls:S}),Ds(p,e,"areaStyle"),Ga(p).seriesIndex=e.seriesIndex,ks(p,N,k,D)}var F=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=i,this._stackedOnPoints=E,this._points=u,this._step=C,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,h),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,t){Ga(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=wi(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel"),f=e.get("z");(s=new Oy(i,o)).x=l,s.y=u,s.setZ(c,f);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=f,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else dp.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=wi(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else dp.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;ps(this._polyline,e),t&&ps(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new Fy({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new zy({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,l=s.get("animationDuration");H(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=H(u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var f=[e.x,e.y],d=void 0,h=void 0,p=void 0;if(n)if(i){var g=n,m=t.pointToCoord(f);r?(d=g.startAngle,h=g.endAngle,p=-m[1]/180*Math.PI):(d=g.r0,h=g.r,p=m[0])}else{var v=n;r?(d=v.x,h=v.x+v.width,p=e.x):(d=v.y+v.height,h=v.y,p=e.y)}var y=h===d?0:(p-d)/(h-d);a&&(y=1-y);var b=H(u)?u(o):l*y+c,E=s.getSymbolPath(),w=E.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),E.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(Ky(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Va({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t=e.length/2;t>0&&Xy(e[2*t-2],e[2*t-1]);t--);return t-1}(a);l>=0&&(Js(o,Zs(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?ny(i,n):ty(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,f=c.get("connectNulls"),d=o.get("precision"),h=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=t.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,b=(g?h:0)*(m?-1:1),E=(g?0:-h)*(m?-1:1),w=g?"x":"y",S=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=e[2*u+a],!isNaN(i)&&!isNaN(e[2*u+1-a]))if(0!==u){if(r<=t&&i>=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}(u,y,w),x=S.range,_=x[1]-x[0],T=void 0;if(_>=1){if(_>1&&!f){var C=$y(u,x[0]);s.attr({x:C[0]+b,y:C[1]+E}),i&&(T=c.getRawValue(x[0]))}else{(C=l.getPointOn(y,w))&&s.attr({x:C[0]+b,y:C[1]+E});var O=c.getRawValue(x[0]),I=c.getRawValue(x[1]);i&&(T=Ai(n,d,O,I,S.t))}r.lastFrameIndex=x[0]}else{var A=1===e||r.lastFrameIndex>0?x[0]:0;C=$y(u,A),i&&(T=c.getRawValue(A)),s.attr({x:C[0]+b,y:C[1]+E})}i&&al(s).setLabelText(T)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=function(e,t,n,r,i,o,a,s){for(var l=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),u=[],c=[],f=[],d=[],h=[],p=[],g=[],m=Ly(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<l.length;b++){var E=l[b],w=!0,S=void 0,x=void 0;switch(E.cmd){case"=":S=2*E.idx,x=2*E.idx1;var _=v[S],T=v[S+1],C=y[x],O=y[x+1];(isNaN(_)||isNaN(T))&&(_=C,T=O),u.push(_,T),c.push(C,O),f.push(n[S],n[S+1]),d.push(r[x],r[x+1]),g.push(t.getRawIndex(E.idx1));break;case"+":var I=E.idx,A=m.dataDimsForPoint,R=i.dataToPoint([t.get(A[0],I),t.get(A[1],I)]);x=2*I,u.push(R[0],R[1]),c.push(y[x],y[x+1]);var N=My(m,i,t,I);f.push(N[0],N[1]),d.push(r[x],r[x+1]),g.push(t.getRawIndex(I));break;case"-":w=!1}w&&(h.push(E),p.push(p.length))}p.sort((function(e,t){return g[e]-g[t]}));var k=u.length,L=lv(k),M=lv(k),D=lv(k),P=lv(k),U=[];for(b=0;b<p.length;b++){var j=p[b],B=2*b,F=2*j;L[B]=u[F],L[B+1]=u[F+1],M[B]=c[F],M[B+1]=c[F+1],D[B]=f[F],D[B+1]=f[F+1],P[B]=d[F],P[B+1]=d[F+1],U[b]=h[j]}return{current:L,next:M,stackedOnCurrent:D,stackedOnNext:P,status:U}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),f=c.current,d=c.stackedOnCurrent,h=c.next,p=c.stackedOnNext;if(i&&(f=Yy(c.current,n,i,a),d=Yy(c.stackedOnCurrent,n,i,a),h=Yy(c.next,n,i,a),p=Yy(c.stackedOnNext,n,i,a)),Wy(f,h)>3e3||l&&Wy(d,p)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=f;var g={shape:{points:h}};c.current!==f&&(g.shape.__points=c.next),s.stopAnimation(),zs(s,g,u),l&&(l.setShape({points:f,stackedOnPoints:d}),l.stopAnimation(),zs(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++)if("="===v[y].cmd){var b=e.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var e=s.shape.__points,t=0;t<m.length;t++){var n=m[t].el,r=2*m[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(dp);const Zy=Jy;function eb(e,t){return"all"===e||F(e)&&R(e,t)>=0||e===t}function tb(e){var t=nb(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=rb(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function nb(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ib(e)]}function rb(e){return!!e.get(["handle","show"])}function ib(e){return e.type+"||"+e.id}Qm((function(e){e.registerChartView(Zy),e.registerSeriesModel(_y),e.registerLayout({seriesType:"line",plan:od(),reset:function(e){var t=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,n){var r=M(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),i=r.length,o=t.getCalculationInfo("stackResultDimension");ov(t,r[0])&&(r[0]=o),ov(t,r[1])&&(r[1]=o);var a=t.getStore(),s=t.getDimensionIndex(r[0]),l=t.getDimensionIndex(r[1]);return i&&{progress:function(e,t){for(var r=lv((e.end-e.start)*i),o=[],u=[],c=e.start,f=0;c<e.end;c++){var d=void 0;if(1===i){var h=a.get(s,c);d=n.dataToPoint(h,null,u)}else o[0]=a.get(s,c),o[1]=a.get(l,c),d=n.dataToPoint(o,null,u);r[f++]=d[0],r[f++]=d[1]}t.setLayout("points",r)}}}}}),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,yv("line"))}));var ob={};const ab=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&tb(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=nb(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){ob[e]=t},t.getAxisPointerClass=function(e){return e&&ob[e]},t.type="axis",t}(id);var sb=Si(),lb=C,ub=j,cb=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var f=B(fb,t,c);this.updatePointerEl(a,l,f),this.updateLabelEl(a,l,f,t)}else a=this._group=new Vr,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);gb(a,t,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=nb(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(e,t,n,r,i){},t.prototype.createPointerEl=function(t,n,r,i){var o=n.pointer;if(o){var a=sb(t).pointerEl=new e[o.type](lb(n.pointer));t.add(a)}},t.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=sb(e).labelEl=new Va(lb(t.label));e.add(i),hb(i,r)}},t.prototype.updatePointerEl=function(e,t,n){var r=sb(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},t.prototype.updateLabelEl=function(e,t,n,r){var i=sb(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),hb(i,r))},t.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Qh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){Ge(e.event)},onmousedown:ub(this._onHandleDragMove,this,0,0),drift:ub(this._onHandleDragMove,this),ondragend:ub(this._onHandleDragEnd,this)}),r.add(i)),gb(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");F(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,vp(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},t.prototype._moveHandleToValue=function(e,t){fb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,pb(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(pb(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(pb(r)),sb(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),yp(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},t}();function fb(e,t,n,r){db(sb(n).lastProp,r)||(sb(n).lastProp=r,t?zs(n,r,e):(n.stopAnimation(),n.attr(r)))}function db(e,t){if(W(e)&&W(t)){var n=!0;return L(t,(function(t,r){n=n&&db(e[r],t)})),!!n}return e===t}function hb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function pb(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function gb(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}const mb=cb;var vb=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();ji(vb);const yb=vb;var bb=0,Eb=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++bb}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&M(r,wb);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!z(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=le(this.categories))},e}();function wb(e){return W(e)&&null!=e.value?e.value:e+""}const Sb=Eb;function xb(e){return"interval"===e.type||"log"===e.type}function _b(e){var t=Math.pow(10,ri(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Kr(n*t)}function Tb(e){return Qr(e)+2}function Cb(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Ob(e,t){return e>=t[0]&&e<=t[1]}function Ib(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Ab(e,t){return e*(t[1]-t[0])+t[0]}var Rb=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Sb({})),F(r)&&(r=new Sb({categories:M(r,(function(e){return W(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return r(t,e),t.prototype.parse=function(e){return null==e?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Ob(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Ib(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Ab(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){for(;null!=r[l];)l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yb);yb.registerClass(Rb);const Nb=Rb;var kb=Kr,Lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return r(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ob(e,this._extent)},t.prototype.normalize=function(e){return Ib(e,this._extent)},t.prototype.scale=function(e){return Ab(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Tb(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:kb(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=kb(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:kb(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,l=[],u=(o.value-a.value)/e;s<e-1;){var c=kb(a.value+(s+1)*u);c>r[0]&&c<r[1]&&l.push(c),s++}n.push(l)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Qr(e.value)||0:"auto"===n&&(n=this._intervalPrecision),ru(kb(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=function(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=ii(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Tb(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Cb(e,0,t),Cb(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[Kr(Math.ceil(e[0]/a)*a,s),Kr(Math.floor(e[1]/a)*a,s)],e),i}(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=kb(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=kb(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(yb);yb.registerClass(Lb);const Mb=Lb;var Db=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return r(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return Fl(e.value,Dl[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Bl(this._minLevelUnit))]||Dl.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(z(n))o=n;else if(H(n))o=n(e.value,t,{level:e.level});else{var a=I({},Ml);if(e.level>0)for(var s=0;s<Pl.length;++s)a[Pl[s]]="{primary|"+a[Pl[s]]+"}";var l=n?!1===n.inherit?n:A(n,a):a,u=Hl(e.value,i);if(l[u])o=l[u];else if(l.inherit){for(s=Ul.indexOf(u)-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(F(o)){var c=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[c=Math.min(c,o.length-1)]}}return Fl(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i,o=Ul,a=0;function s(e,t,n,i,o,a,s){for(var l=new Date(t),u=t,c=l[i]();u<n&&u<=r[1];)s.push({value:u}),c+=e,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(e,i,o){var a=[],l=!i.length;if(!function(e,t,n,r){var i=ni(t),o=ni(n),a=function(e){return zl(i,e,r)===zl(o,e,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(Bl(e),r[0],r[1],n)){l&&(i=[{value:zb(new Date(r[0]),e,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,f=i[u+1].value;if(c!==f){var d=void 0,h=void 0,p=void 0;switch(e){case"year":d=Math.max(1,Math.round(t/kl/365)),h=Vl(n),p=Kl(n);break;case"half-year":case"quarter":case"month":d=jb(t),h=Gl(n),p=Ql(n);break;case"week":case"half-week":case"day":d=Ub(t),h=Wl(n),p=Jl(n),!0;break;case"half-day":case"quarter-day":case"hour":d=Bb(t),h=ql(n),p=Zl(n);break;case"minute":d=Fb(t,!0),h=Yl(n),p=eu(n);break;case"second":d=Fb(t,!1),h=Xl(n),p=tu(n);break;case"millisecond":d=Hb(t),h=$l(n),p=nu(n)}s(d,c,f,h,p,0,a),"year"===e&&o.length>1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&a++<1e4;++h){var p=Bl(o[h]);if((i=o[h])===Bl(i)&&(l(o[h],u[u.length-1]||[],c),p!==(o[h+1]?Bl(o[h+1]):null))){if(c.length){d=f,c.sort((function(e,t){return e.value-t.value}));for(var g=[],m=0;m<c.length;++m){var v=c[m].value;0!==m&&c[m-1].value===v||(g.push(c[m]),v>=r[0]&&v<=r[1]&&f++)}var y=(r[1]-r[0])/t;if(f>1.5*y&&d>y/1.5)break;if(u.push(g),f>y||e===o[h])break}c=[]}}var b=P(M(u,(function(e){return P(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),E=[],w=b.length-1;for(h=0;h<b.length;++h)for(var S=b[h],x=0;x<S.length;++x)E.push({value:S[x].value,level:w-h});E.sort((function(e,t){return e.value-t.value}));var _=[];for(h=0;h<E.length;++h)0!==h&&E[h].value===E[h-1].value||_.push(E[h]);return _}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=kl,t[1]+=kl),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-kl}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Pb.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(Pb,this._approxInterval,0,o),o-1);this._interval=Pb[a][1],this._minLevelUnit=Pb[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return G(e)?e:+ni(e)},t.prototype.contain=function(e){return Ob(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ib(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ab(e,this._extent)},t.type="time",t}(Mb),Pb=[["second",1e3],["minute",6e4],["hour",Nl],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",Ll/2],["year",Ll]];function Ub(e,t){return(e/=kl)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function jb(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function Bb(e){return(e/=Nl)>12?12:e>6?6:e>3.5?4:e>2?2:1}function Fb(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Hb(e){return ii(e,!0)}function zb(e,t,n){var r=new Date(e);switch(Bl(t)){case"year":case"month":r[Ql(n)](0);case"day":r[Jl(n)](1);case"hour":r[Zl(n)](0);case"minute":r[eu(n)](0);case"second":r[tu(n)](0),r[nu(n)](0)}return r.getTime()}yb.registerClass(Db);const Vb=Db;var Gb=yb.prototype,Wb=Mb.prototype,qb=Kr,Yb=Math.floor,Xb=Math.ceil,$b=Math.pow,Kb=Math.log,Qb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Mb,t._interval=0,t}return r(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return M(Wb.getTicks.call(this,e),(function(e){var t=e.value,i=Kr($b(this.base,t));return i=t===n[0]&&this._fixMin?Zb(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?Zb(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=this.base;e=Kb(e)/Kb(n),t=Kb(t)/Kb(n),Wb.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=Gb.getExtent.call(this);t[0]=$b(e,t[0]),t[1]=$b(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=Zb(t[0],n[0])),this._fixMax&&(t[1]=Zb(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Kb(e[0])/Kb(t),e[1]=Kb(e[1])/Kb(t),Gb.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r,i=(r=n,Math.pow(10,ri(r)));for(e/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[Kr(Xb(t[0]/i)*i),Kr(Yb(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){Wb.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ob(e=Kb(e)/Kb(this.base),this._extent)},t.prototype.normalize=function(e){return Ib(e=Kb(e)/Kb(this.base),this._extent)},t.prototype.scale=function(e){return e=Ab(e,this._extent),$b(this.base,e)},t.type="log",t}(yb),Jb=Qb.prototype;function Zb(e,t){return qb(e,Qr(t))}Jb.getMinorTicks=Wb.getMinorTicks,Jb.getLabel=Wb.getLabel,yb.registerClass(Qb);const eE=Qb;var tE=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);H(i)?this._modelMinNum=iE(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=iE(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(H(o)?this._modelMaxNum=iE(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=iE(e,o)),r)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=F(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ar(s[0],1),Ar(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=K(a)||K(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(a=f,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[rE[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[nE[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),nE={min:"_determinedMin",max:"_determinedMax"},rE={min:"_dataMin",max:"_dataMax"};function iE(e,t){return null==t?null:K(t)?NaN:e.parse(t)}function oE(e,t){var n=e.type,r=function(e,t,n){var r=e.rawExtentInfo;return r||(r=new tE(e,t,n),e.rawExtentInfo=r,r)}(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=fv("bar",a),l=!1;if(L(s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=dv(s),c=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t,n){if(e&&t){var r=e[cv(t)];return r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;L(a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;L(a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=c/(1-(s+l)/o)-c;return{min:e-=f*(s/u),max:t+=f*(l/u)}}(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function aE(e,t){var n=t,r=oE(e,n),i=r.extent,o=n.get("splitNumber");e instanceof eE&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function sE(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):z(r)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):H(r)?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(lE(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function lE(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function uE(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new wr(e.x,e.y,o,a)}function cE(e){var t=e.get("interval");return null==t?"auto":t}function fE(e){return"category"===e.type&&0===cE(e.getLabelModel())}function dE(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Th(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function hE(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,l=0,u=!1,c=[],f=0,d=0;d<a;d++){var h=e[d],p=h.rect;(s=p[t]-l)<0&&(p[t]-=s,h.label[t]-=s,u=!0);var g=Math.max(-s,0);c.push(g),f+=g,l=p[t]+p[n]}f>0&&o&&S(-f/a,0,a);var m,v,y=e[0],b=e[a-1];return E(),m<0&&x(-m,.8),v<0&&x(v,.8),E(),w(m,v,1),w(v,m,-1),E(),m<0&&_(-m),v<0&&_(v),u}function E(){m=y.rect[t]-r,v=i-b.rect[t]-b.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&x(-i*n,1)}else x(-e*n,1)}}function S(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function x(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=e[l-1].rect,c=Math.max(e[l].rect[t]-u[t]-u[n],0);o.push(c),s+=c}if(s){var f=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++)S(o[l]*f,0,l+1);else for(l=a-1;l>0;l--)S(-o[l-1]*f,l,a)}}function _(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),(e-=n)<=0)return}}function pE(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new wr(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(n.intersect(p.rect)){if(a&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new Th(p.localRect,p.transform)),f||(f=new Th(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var gE=Math.PI,mE=function(){function e(e,t){this.group=new Vr,this.opt=t,this.axisModel=e,A(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Vr({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!vE[e]},e.prototype.add=function(e){vE[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Zr(t-e);return ei(o)?(i=n>0?"top":"bottom",r="center"):ei(o-gE)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<gE?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),vE={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0];a&&(xe(s,s,a),xe(l,l,a));var u=I({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new rh({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var f=t.get(["axisLine","symbol"]);if(null!=f){var d=t.get(["axisLine","symbolSize"]);z(f)&&(f=[f,f]),(z(d)||G(d))&&(d=[d,d]);var h=bg(t.get(["axisLine","symbolOffset"])||0,d),p=d[0],g=d[1];L([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=yg(f[r],-p/2,-g/2,p,g,u.stroke,!0),o=t.r+t.offset;i.attr({rotation:t.rotate,x:s[0]+o*Math.cos(e.rotation),y:s[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=wE(i.getTicksCoords(),t.transform,l,A(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<u.length;c++)e.add(u[c]);return u}}(n,r,t,e),o=function(e,t,n,r){var i=n.axis;if(Q(r.axisLabelShow,n.get(["axisLabel","show"]))&&!i.scale.isBlank()){var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),l=(Q(r.labelRotate,o.get("rotate"))||0)*gE/180,u=mE.innerTextLayout(r.rotation,l,r.labelDirection),c=n.getCategories&&n.getCategories(!0),f=[],d=mE.isLabelSilent(n),h=n.get("triggerEvent");return L(s,(function(s,l){var p="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,g=s.formattedLabel,m=s.rawLabel,v=o;if(c&&c[p]){var y=c[p];W(y)&&y.textStyle&&(v=new wl(y.textStyle,o,n.ecModel))}var b=v.getTextColor()||n.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(p),w=new Va({x:E,y:r.labelOffset+r.labelDirection*a,rotation:u.rotation,silent:d,z2:10+(s.level||0),style:el(v,{text:g,align:v.getShallow("align",!0)||u.textAlign,verticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,fill:H(b)?b("category"===i.type?m:"value"===i.type?p+"":p,l):b})});if(w.anid="label_"+p,h){var S=mE.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=m,S.tickIndex=l,"category"===i.type&&(S.dataIndex=p),Ga(w).eventData=S}t.add(w),w.updateTransform(),f.push(w),e.add(w),w.decomposeTransform()})),f}}(n,r,t,e);(function(e,t,n){if(!fE(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];!1===r?(yE(o),yE(u)):bE(o,a)&&(r?(yE(a),yE(c)):(yE(o),yE(u))),!1===i?(yE(s),yE(f)):bE(l,s)&&(i?(yE(l),yE(d)):(yE(s),yE(f)))}})(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=A(s.getLineStyle(),A(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=wE(a[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])&&pE(dE(M(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,r){var i=Q(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,f=t.axis.getExtent(),d=f[0]>f[1]?-1:1,h=["start"===s?f[0]-d*c:"end"===s?f[1]+d*c:(f[0]+f[1])/2,EE(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*gE/180),EE(s)?o=mE.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=function(e,t,n,r){var i,o,a=Zr(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return ei(a-gE/2)?(o=l?"bottom":"top",i="center"):ei(a-1.5*gE)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*gE&&a>gE/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,p||0,f),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=t.get("nameTruncate",!0)||{},v=m.ellipsis,y=Q(e.nameTruncateMaxWidth,m.maxWidth,a),b=new Va({x:h[0],y:h[1],rotation:o.rotation,silent:mE.isLabelSilent(t),style:el(u,{text:i,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(tp({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var E=mE.makeAxisEventDataBase(t);E.targetType="axisName",E.name=i,Ga(b).eventData=E}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function yE(e){e&&(e.ignore=!0)}function bE(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Kn([]);return Zn(i,i,-e.rotation),n.applyTransform(Qn([],i,e.getLocalTransform())),r.applyTransform(Qn([],i,t.getLocalTransform())),n.intersect(r)}}function EE(e){return"middle"===e||"center"===e}function wE(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(xe(a,a,t),xe(s,s,t));var c=new rh({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});c.anid=i+"_"+e[l].tickValue,o.push(c)}return o}const SE=mE;function xE(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:lE(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),z(a)?o=a.replace("{value}",o):H(a)&&(o=a(s))}return o}function _E(e,t,n){var r=[1,0,0,1,0,0];return Zn(r,r,n.rotation),Jn(r,r,n.position),Wh([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function TE(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===u?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:f[0],"x"===u?p[d[l]]:f[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Q(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function CE(e){return"cartesian2d"===e.get("coordinateSystem")}function OE(e){var t={xAxisModel:null,yAxisModel:null};return L(t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,Ci).models[0];t[r]=o})),t}var IE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=AE(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=function(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}(r),f=RE[s](o,u,l);f.style=c,e.graphicKey=f.type,e.pointer=f}!function(e,t,n,r,i,o){var a=SE.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),function(e,t,n,r,i){var o=xE(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=ou(a.get("padding")||0),l=a.getFont(),u=Tr(o,l),c=i.position,f=u.width+s[1]+s[3],d=u.height+s[0]+s[2],h=i.align;"right"===h&&(c[0]-=f),"center"===h&&(c[0]-=f/2);var p=i.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(c,f,d,r);var g=a.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:el(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}(t,r,i,o,{position:_E(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}(t,e,TE(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=TE(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=_E(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=AE(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,f=[c,c];return f[l]=u[l],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:f,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},t}(mb);function AE(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var RE={line:function(e,t,n){var r,i,o;return{type:"Line",subPixelOptimize:!0,shape:(r=[t,n[0]],i=[t,n[1]],o=NE(e),{x1:r[o=o||0],y1:r[1-o],x2:i[o],y2:i[1-o]})}},shadow:function(e,t,n){var r,i,o,a=Math.max(1,e.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:(r=[t-a/2,n[0]],i=[a,s],o=NE(e),{x:r[o=o||0],y:r[1-o],width:i[o],height:i[1-o]})}}};function NE(e){return"x"===e.dim?0:1}const kE=IE,LE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Cu);var ME=Si(),DE=L;function PE(e,t,n){if(!a.node){var r=t.getZr();ME(r).records||(ME(r).records={}),function(e,t){function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);DE(ME(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}ME(e).initialized||(ME(e).initialized=!0,n("click",B(jE,"click")),n("mousemove",B(jE,"mousemove")),n("globalout",UE))}(r,t),(ME(r).records[e]||(ME(r).records[e]={})).handler=n}}function UE(e,t,n){e.handler("leave",null,n)}function jE(e,t,n,r){t.handler(e,n,r)}function BE(e,t){if(!a.node){var n=t.getZr();(ME(n).records||{})[e]&&(ME(n).records[e]=null)}}var FE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";PE("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){BE("axisPointer",t)},t.prototype.dispose=function(e,t){BE("axisPointer",t)},t.type="axisPointer",t}(id);const HE=FE;function zE(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=wi(o,e);if(null==a||a<0||F(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,f=u.dim,d="x"===c||"radius"===c?1:0,h=o.mapDimension(f),p=[];p[d]=o.get(h,a),p[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(o.getValues(M(l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var VE=Si();function GE(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||j(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){$E(i)&&(i=zE({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=$E(i),u=o.axesInfo,c=s.axesInfo,f="leave"===r||$E(i),d={},h={},p={list:[],map:{}},g={showPointer:B(qE,h),showTooltip:B(YE,p)};L(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);L(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(u,e);if(!f&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&WE(e,a,g,!1,d)}}))}));var m={};return L(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&L(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,XE(t),XE(e)))),m[e.key]=o}}))})),L(m,(function(e,t){WE(c[t],e,g,!0,d)})),function(e,t,n){var r=n.axesInfo=[];L(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(h,c,d),function(e,t,n,r){if(!$E(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}(p,i,e,a),function(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=VE(r)[i]||{},a=VE(r)[i]={};L(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&L(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];L(o,(function(e,t){!a[t]&&l.push(e)})),L(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function WE(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return L(t.seriesModels,(function(t,l){var u,c,f=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(f,e,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=t.getData().indicesOfNearest(f[0],e,"category"===n.type?.5:null)).length)return;u=t.getData().get(f[0],c[0])}if(null!=u&&isFinite(u)){var h=e-u,p=Math.abs(h);p<=a&&((p<a||h>=0&&s<0)&&(a=p,s=h,i=u,o.length=0),L(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&I(i,s[0]),!r&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function qE(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function YE(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=ib(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XE(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function $E(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function KE(e){ab.registerAxisPointerClass("CartesianAxisPointer",kE),e.registerComponentModel(LE),e.registerComponentView(HE),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!F(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];L(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=ib(n.model),l=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var u=n.model.getModel("tooltip",r);if(L(n.getAxes(),B(h,!1,null)),n.getTooltipAxes&&r&&u.get("show")){var c="axis"===u.get("trigger"),f="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||f)&&L(d.baseAxes,B(h,!f||"cross",c)),f&&L(d.otherAxes,B(h,"cross",!1))}}function h(r,s,c){var f=c.model.getModel("axisPointer",i),d=f.get("show");if(d&&("auto"!==d||r||rb(f))){null==s&&(s=f.get("triggerTooltip")),f=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};L(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=C(a.get(e))})),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&A(l,c.textStyle)}}return e.model.getModel("axisPointer",new wl(s,n,r))}(c,u,i,t,r,s):f;var h=f.get("snap"),p=ib(c.model),g=s||h||"category"===c.type,m=e.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:f,triggerTooltip:s,involveSeries:g,snap:h,useHandle:rb(f),seriesModels:[],linkGroup:null};l[p]=m,e.seriesInvolved=e.seriesInvolved||g;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(eb(o[r+"AxisId"],n.id)||eb(o[r+"AxisIndex"],n.componentIndex)||eb(o[r+"AxisName"],n.name))return i}}(o,c);if(null!=v){var y=a[v]||(a[v]={axesInfo:{}});y.axesInfo[p]=m,y.mapper=o[v].mapper,m.linkGroup=y}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&L(e.coordSysAxesInfo[ib(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},GE)}const QE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Cu);function JE(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function ZE(e){if(a.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var ew=ZE(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function tw(e,t){if(!e)return t;t=iu(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var nw=tw(ZE(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),rw=tw(ew,"transform"),iw="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(a.transform3dSupported?"will-change:transform;":"");function ow(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!a.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=a.transform3dSupported,s="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+rw+":"+s+";":[["top",0],["left",0],[ew,s]]}function aw(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){De(Me,t,r,i,!0)&&De(e,n,Me[0],Me[1])}(e,a,document.body,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var sw=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,a.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;aw(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(r):e.appendChild(r),this._container=e;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=i.handler;Ve(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){var t,n,r,i=this._container,o=(n="position",(r=(t=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t))?r[n]:null),a=i.style;"absolute"!==a.position&&"absolute"!==o&&(a.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=iw+function(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),d=Gf(e,"html"),h=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+h),t&&i&&r.push(function(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=a.transformSupported?","+rw+r:",left"+r+",top"+r),nw+":"+i}(i,n)),o&&r.push("background-color:"+o),L(["width","color","radius"],(function(t){var n="border-"+t,i=iu(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),L(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(f)),null!=d&&r.push("padding:"+ou(d).join("px ")+"px"),r.join(";")+";"}(e,!this._firstShow,this._longHide)+ow(i[0],i[1],!0)+"border-color:"+hu(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(z(i)&&"item"===n.get("trigger")&&!JE(n)&&(a=function(e,t,n){if(!z(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=hu(t);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(i),6),u="",c=rw+":";R(["left","right"],s)>-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var f=a*Math.PI/180,d=l+i,h=d*Math.abs(Math.cos(f))+d*Math.abs(Math.sin(f)),p=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;",(u+=";"+s+":-"+Math.round(100*((h-Math.SQRT2*i)/2+Math.SQRT2*i-(h-d)/2))/100+"px")+";"+c+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),z(e))o.innerHTML=e+a;else if(e){o.innerHTML="",F(e)||(e=[e]);for(var s=0;s<e.length;s++)X(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(aw(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style;L(ow(n[0],n[1]),(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",a.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const lw=sw;var uw=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),dw(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;W(e)&&af(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Va({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Gf(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=fw(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;dw(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=cw(i.borderWidth||0),a=fw(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function cw(e){return Math.max(0,e)}function fw(e){var t=cw(e.shadowBlur||0),n=cw(e.shadowOffsetX||0),r=cw(e.shadowOffsetY||0);return{left:cw(t-n),right:cw(t+n),top:cw(t-r),bottom:cw(t+r)}}function dw(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const hw=uw;var pw=new Aa({shape:{x:-1,y:-1,width:2,height:2}}),gw=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.init=function(e,t){if(!a.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new hw(t):new lw(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?vp(this,"_updatePosition",50,"fixRate"):yp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");PE("itemTooltip",this._api,j((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!a.node&&n.getDom()){var i=vw(r,n);this._ticket="";var o=r.dataByCoordSys,s=function(e,t,n){var r=Ti(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o,a=Oi(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(t){var n=Ga(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o?{componentMainType:i,componentIndex:a.componentIndex,el:o}:void 0}}(r,t,n);if(s){var l=s.el.getBoundingRect().clone();l.applyTransform(s.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:s.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=pw;u.x=r.x,u.y=r.y,u.update(),Ga(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=zE(r,t),f=c.point[0],d=c.point[1];null!=f&&null!=d&&this._tryShow({offsetX:f,offsetY:d,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(vw(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s&&"axis"===mw([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;this._lastDataByCoordSys=null,og(n,(function(e){return null!=Ga(e).dataIndex?(i=e,!0):null!=Ga(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=j(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=mw([t.tooltipOption],r),a=this._renderMode,s=[],l=Df("section",{blocks:[],noHeader:!0}),u=[],c=new Wf;L(e,(function(e){L(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=xE(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),f=Df("section",{header:o,noHeader:!re(o),sortBlocks:!0,blocks:[]});l.blocks.push(f),L(e.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,p=d.getDataParams(h);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=lE(t.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",hu(p.color),a);var g=tf(d.formatTooltip(h,!0,null)),m=g.frag;if(m){var v=mw([d],r).get("valueFormatter");f.blocks.push(v?I({valueFormatter:v},m):m)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var f=t.position,d=o.get("order"),h=Hf(l,c,a,d,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,f,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],f,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Ga(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),f=this._renderMode,d=e.positionDefault,h=mw([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=h.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new Wf;g.marker=m.makeTooltipMarker("item",hu(g.color),f);var v=tf(s.formatTooltip(l,!1,u)),y=h.get("order"),b=h.get("valueFormatter"),E=v.frag,w=E?Hf(b?I({valueFormatter:b},E):E,m,f,y,r.get("useUTC"),h.get("textStyle")):v.text,S="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,w,g,S,e.offsetX,e.offsetY,e.position,e.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Ga(t),i=r.tooltipConfig.option||{};z(i)&&(i={content:i,formatter:i});var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=e.positionDefault,l=mw(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",f=new Wf;this._showOrMove(l,(function(){var n=C(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var f=t,d=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(c)if(z(c)){var h=e.ecModel.get("useUTC"),p=F(n)?n[0]:n;f=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(f=Fl(p.axisValue,f,h)),f=du(f,n,!0)}else if(H(c)){var g=j((function(t,r){t===this._ticket&&(u.setContent(r,l,e,d,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,f=c(n,r,g)}else f=c;u.setContent(f,l,e,d,a),u.show(e,d),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||F(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:F(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),f=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),H(t)&&(t=t([n,r],o,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),F(t))n=$r(t[0],s),r=$r(t[1],l);else if(W(t)){var h=t;h.width=u[0],h.height=u[1];var p=Eu(h,{width:s,height:l});n=p.x,r=p.y,c=null,f=null}else if(z(t)&&a){var g=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}(t,d,u,e.get("borderWidth"));n=g[0],r=g[1]}else g=function(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}(n,r,i,s,l,c?null:20,f?null:20),n=g[0],r=g[1];c&&(n-=yw(c)?u[0]/2:"right"===c?u[0]:0),f&&(r-=yw(f)?u[1]/2:"bottom"===f?u[1]:0),JE(e)&&(g=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,[e=Math.max(e,0),t=Math.max(t,0)]}(n,r,i,s,l),n=g[0],r=g[1]),i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&L(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],l=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===l.length)&&L(a,(function(e,t){var n=l[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&L(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!a.node&&t.getDom()&&(yp(this,"_updatePosition"),this._tooltipContent.dispose(),BE("itemTooltip",t))},t.type="tooltip",t}(id);function mw(e,t,n){var r,i=t.ecModel;n?(r=new wl(n,i,i),r=new wl(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof wl&&(a=a.get("tooltip",!0)),z(a)&&(a={formatter:a}),a&&(r=new wl(a,r,i)))}return r}function vw(e,t){return e.dispatchAction||j(t.dispatchAction,t)}function yw(e){return"center"===e||"middle"===e}const bw=gw;Qm((function(e){Qm(KE),e.registerComponentModel(QE),e.registerComponentView(bw),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},de),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},de)}));var Ew=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Cu),ww=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=J(e.get("textBaseline"),e.get("textVerticalAlign")),l=new Va({style:el(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),f=new Va({style:el(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),h=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!d&&!p,f.silent=!h&&!p,d&&l.on("click",(function(){pu(d,"_"+e.get("target"))})),h&&f.on("click",(function(){pu(h,"_"+e.get("subtarget"))})),Ga(l).eventData=Ga(f).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(f);var g=r.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=Eu(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),r.x=v.x,r.y=v.y,r.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),f.setStyle(y),g=r.getBoundingRect();var b=v.margin,E=e.getItemStyle(["color","opacity"]);E.fill=e.get("backgroundColor");var w=new Aa({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:e.get("borderRadius")},style:E,subPixelOptimize:!0,silent:!0});r.add(w)}},t.type="title",t}(id);Qm((function(e){e.registerComponentModel(Ew),e.registerComponentView(ww)}));var Sw=n(6661),xw=n.n(Sw),_w="query.in.cancel",Tw="query.out.dataset",Cw="query.build.execute",Ow="active.panel",Iw="chart.draw";function Aw(e,t){e.css("height",t+"px")}var Rw,Nw,kw,Lw=515;function Mw(){var e=xw()(".footer"),t=xw()("#import-top"),n=t.find(".ud-canvas"),r=xw()("#import-detail"),i=xw()("#import-menu")[0],o=xw()(window)[0].innerHeight,a=e.offsetHeight;Aw(t,Lw),Aw(r,o-a-Lw-i.offsetHeight-50),t[0].getBoundingClientRect(),n[0].getBoundingClientRect()}function Dw(e,t){Lw+=t,xw()(window).trigger("resize")}xw().fn.grid=function(e){var t,n,r,i,o,a,s,l,u,c,f,d,h,p,g,m,v,y,b,E,w=1e7,S=e,x=xw()(this),_=[],T=[],C=-1,O=0,I=128,A=127,R=1e3,N=Math.floor(R/3),k=2*N,L=[],M=400,D=28,P=[],U=-1,j=-1;function B(e,t){if(e.questIndex!==t){var n,r=T[Math.floor(t/R)];if(r){var i=r[t%R];if(i)for(e.style.display="flex",n=0;n<_.length;n++)e.childNodes[n].innerHTML=null!==i[n]?i[n].toString():"null";else e.style.display="none";e.questIndex=t}else{for(n=0;n<_.length;n++)e.childNodes[n].innerHTML="";e.questIndex=-1}e.style.top=t*D-v+"px",e===y&&(t===U?(e.className="qg-r qg-r-active",e.childNodes[j].className+=" qg-c-active"):(e.className="qg-r",e.childNodes[j].className="qg-c qg-w"+j))}}function F(){for(var e=Math.max(0,Math.floor((h-M)/D)),t=Math.min(d/D,Math.ceil((h+M+M)/D)),n=e;n<t;n++)B(P[n&A],n)}function H(e){return null===T[e]||void 0===T[e]||0===T[e].length}function z(e,t){u&&clearTimeout(u),u=setTimeout((function(){!function(e,t){var n,r,i;if(function(){for(var e=0;e<T.length;e++)(e<a||e>s)&&T[e]&&delete T[e]}(),e!==t&&H(e)&&H(t))r=(n=e*R)+R*(t-e+1),i=function(n){T[e]=n.dataset.splice(0,R),T[t]=n.dataset,F()};else if(!H(e)||H(t)&&e!==t){if(H(e)&&e!==t||!H(t))return void F();r=(n=t*R)+R,i=function(e){T[t]=e.dataset,F()}}else r=(n=e*R)+R,i=function(t){T[e]=t.dataset,F()};xw().get("/exec",{query:l,limit:n+1+","+r,nm:!0}).done(i)}(e,t)}),75)}function V(e){switch(_[e].type){case"STRING":case"SYMBOL":return"text-align: left;";default:return""}}function G(e){for(var t=0;t<o.length;t++)e.push(".qg-w"+t+"{width:"+o[t]+"px;"+V(t)+"}");e.push(".qg-r{width:"+C+"px;}"),O=2}function W(e){var t=100,r=n.offsetWidth;2*C<r&&(t=50);for(var i=0;i<o.length;i++)e.push(".qg-w"+i+"{width:"+Math.min(100*o[i]/C,t)+"%;"+V(i)+"}");e.push(".qg-r{width:100%;}"),e.push(".qg-canvas{width:100%;}"),O=1}function q(){b.className="qg-c qg-w"+j}function Y(e){var t;(b=y.childNodes[j]).className+=" qg-c-active",e&&((t=Math.max(0,b.offsetLeft-5))<n.scrollLeft?n.scrollLeft=t:(t=b.offsetLeft+b.clientWidth+5)>n.scrollLeft+n.clientWidth&&(n.scrollLeft=t-n.clientWidth))}function X(e){if(U>0){U=Math.max(0,U-e),y.className="qg-r",q(),(y=P[U&A]).className="qg-r qg-r-active",Y();var t=U*D-v;t<n.scrollTop&&(n.scrollTop=Math.max(0,t))}}function $(e){if(U>-1&&U<f-1){U=Math.min(f-1,U+e),y.className="qg-r",q(),(y=P[U&A]).className="qg-r qg-r-active",Y();var t=U*D-M+D-v;t>n.scrollTop&&(n.scrollTop=t)}}function K(e){i.scrollLeft(n.scrollLeft);var t=n.scrollTop;if(t!==g||e){var r=h;t>=p-M?(h=Math.max(0,d-M),v=h-(g=t),$(f-U)):(0===t&&g>0?(h=0,v=0,X(U)):h+=t-g,g=t),function(e){var t=Math.max(0,Math.floor((h-M)/D)),n=Math.min(d/D,Math.ceil((h+M+M)/D));0!==e&&function(e,t,n){var r,i,o,l;if(t==t&&n==n)if(r=Math.floor(t/R),o=Math.floor(n/R),e>0){if(l=n%R,r>=a&&o<s)return;if(o===s)return void(l>k&&(s=o+1,a=o,z(o,o+1)));r<o?(z(r,o),a=r,s=o):l>k?(z(o,o+1),a=o,s=o+1):(s=r,a=r,z(r,r))}else{if(i=t%R,r>a&&o<=s)return;if(r===a)return void(i<N&&a>0&&(a=Math.max(0,r-1),s=r,z(r-1,r)));r<o?(z(r,o),a=r,s=o):i<N&&r>0?(z(r-1,r),a=Math.max(0,r-1),s=r):(a=r,s=r,z(r,r))}}(e,t,n),0===t?n=I:n>f-2&&(t=Math.max(0,n-I));for(var r=t;r<n;r++){var i=P[r&A];i&&B(i,r)}}(h-r)}c&&(c.empty(),c.append("time = "+new Date+"<br>"),c.append("y = "+h+"<br>"),c.append("M = "+m+"<br>"),c.append("o = "+v+"<br>"),c.append("h = "+p+"<br>"),c.append("vp = "+M+"<br>"),c.append("yMax = "+d+"<br>"),c.append("top = "+g+"<br>"),c.append("activeRow = "+U+"<br>"))}function Q(){if("none"!==xw()("#grid").css("display")){var e=window.innerHeight-xw()(window).scrollTop();M=Math.round(e-n.getBoundingClientRect().top)-75,M=Math.max(M,120),E=Math.floor(M/D),function(){if(T.length>0){var e=n.offsetWidth,r=null;if(C<e&&1!==O?r=W:C>e&&2!==O&&(r=G),r){t&&t.remove(),t=xw()('<style type="text/css" rel="stylesheet"/>').appendTo(xw()("head"));var i=[];r(i),i.push(".qg-c{height:28px;}"),t[0].styleSheet?t[0].styleSheet.cssText=i.join(" "):t[0].appendChild(document.createTextNode(i.join(" ")))}}}(),K(!0)}}function J(){y&&(y.className="qg-r"),this.focus(),(y=this.parentElement).className+=" qg-r-active",U=y.questIndex,b&&(b.className="qg-c qg-w"+j),b=this,j=this.cellIndex,b.className+=" qg-c-active"}function Z(){b&&y&&(b.click(),y.focus())}c=xw()("#debug"),i=x.find(".qg-header-row"),(n=x.find(".qg-viewport")[0]).onscroll=K,(r=x.find(".qg-canvas")).bind("keydown",(function(e){var t="which"in e?e.which:e.keyCode,n=!0;switch(t){case 33:X(E);break;case 38:L[91]?X(U):X(1);break;case 40:L[91]?$(f-U):$(1);break;case 34:$(E);break;case 39:j>-1&&j<_.length-1&&(q(),j++,Y(!0));break;case 37:j>0&&(q(),j--,Y(!0));break;case 35:L[17]?$(f-U):j>-1&&j!==_.length-1&&(q(),j=_.length-1,Y(!0));break;case 36:L[17]?X(U):j>0&&(q(),j=0,Y(!0));break;case 113:b&&q(),S.trigger("editor.focus");break;default:L[t]=!0,n=!1}n&&e.preventDefault()})),r.bind("keyup",(function(e){delete L["which"in e?e.which:e.keyCode]})),xw()(window).resize(Q),S.on(Tw,(function(e,u){xw()(".js-query-refresh .fa").removeClass("fa-spin"),setTimeout((function(){var e;g=0,h=0,v=0,f=0,t&&t.remove(),i.empty(),r.empty(),P=[],O=0,T=[],l=null,a=0,s=0,L=[],y=null,b=null,U=0,j=0,l=u.query,T.push(u.dataset),_=u.columns,function(){for(var e=0;e<I;e++){var t=xw()('<div class="qg-r" tabindex="'+e+'"/>');0===e&&(y=t);for(var n=0;n<_.length;n++){var i=xw()('<div class="qg-c qg-w'+n+'"/>').click(J).appendTo(t)[0];0===e&&0===n&&(b=i),i.cellIndex=n}t.css({top:-100,height:D}).appendTo(r),P.push(t[0])}}(),e=u.count,m=(d=(f+=e)*D)/(p=d<w?d:w),r.css("height",0===p?1:p),function(){var e,t,n;for(o=[],C=0,e=0;e<_.length;e++){var r=_[e],a=xw()('<div class="qg-header qg-w'+e+'" data-column-name="'+r.name+'"><span class="qg-header-type">'+r.type.toLowerCase()+'</span><span class="qg-header-name">'+r.name+"</span></div>").on("click",(function(e){S.trigger("editor.insert.column",e.currentTarget.getAttribute("data-column-name"))})).appendTo(i);switch(r.type){case"STRING":case"SYMBOL":a.addClass("qg-header-l")}n=Math.max(60,Math.ceil(8*(r.name.length+r.type.length)*1.2+8)),o.push(n),C+=n}var s=T[0].length>100?100:T[0].length;for(e=0;e<s;e++){var l=T[0][e],u=0;for(t=0;t<l.length;t++){var c=l[t],f=null!==c?c.toString():"null";n=Math.max(60,8*f.length+8),o[t]=Math.max(n,o[t]),u+=o[t]}C=Math.max(C,u)}}(),n.scrollTop=0,Q(),Z()}),0)})),S.on("grid.focus",Z),S.on("grid.refresh",(function(){l?S.trigger("query.in.exec",{q:l}):xw()(".js-query-refresh .fa").removeClass("fa-spin")})),S.on("grid.publish.query",(function(){l&&S.trigger("query.in.export",{q:l})})),S.on(Ow,Q),Q()},function(e){e.MSG_ACTIVE_PANEL="active.panel",e.MSG_EDITOR_EXECUTE="editor.execute",e.MSG_EDITOR_EXECUTE_ALT="editor.execute.alt",e.MSG_EDITOR_FOCUS="editor.focus",e.MSG_EDITOR_SET="editor.set",e.MSG_EDITOR_INSERT_COLUMN="editor.insert.column",e.MSG_EDITOR_INSERT_QUERY="editor.insert.query",e.GRID_FOCUS="grid.focus",e.MSG_QUERY_CANCEL="query.in.cancel",e.MSG_QUERY_DATASET="query.out.dataset",e.MSG_QUERY_ERROR="query.out.error",e.MSG_QUERY_EXEC="query.in.exec",e.MSG_QUERY_EXPORT="query.in.export",e.MSG_QUERY_FIND_N_EXEC="query.build.execute",e.MSG_QUERY_OK="query.out.ok",e.MSG_QUERY_RUNNING="query.out.running",e.MSG_QUERY_SCHEMA="query.out.schema",e.MSG_CONNECTION_OK="query.connection.ok",e.MSG_CONNECTION_ERROR="query.connection.error",e.REACT_READY="react.ready"}(Rw||(Rw={})),function(e){e.POWER_USER="POWER_USER"}(Nw||(Nw={})),function(e){e.MAIN="telemetry",e.CONFIG="telemetry_config"}(kw||(kw={}));var Pw="https://".concat("fara",".questdb.io");function Uw(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function jw(){return Uw()+Uw()+"-"+Uw()+"-"+Uw()+"-"+Uw()+"-"+Uw()+Uw()+Uw()}function Bw(e){return e.toFixed(0).replace(/./g,(function(e,t,n){return t&&"."!==e&&(n.length-t)%3==0?","+e:e}))}function Fw(e){return e<1024?e:e<1048576?Math.round(e/1024)+"KB":e<1073741824?Math.round(e/1024/1024)+"MB":Math.round(e/1024/1024/1024)+"GB"}function Hw(e){e.stopPropagation(),e.preventDefault&&e.preventDefault()}xw().fn.importManager=function(e){var t,n={},r=e,i=0,o=[],a=null,s=null,l=null;function u(e){if(e.lengthComputable){var t=e.loaded||e.position;s.find(" > .ud-progress").css("width",100*t/a.size+"%")}}function c(){var e=!1,t=!1;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];if(i.selected&&(e=!0,i.retry)){t=!0;break}}xw()("#btnImportClearSelected").attr("disabled",!e),xw()("#btnRetry").attr("disabled",!t)}function f(e,t){switch(e.retry){case 1:t.find(".js-row-append").addClass("label-danger"),t.find(".js-row-overwrite").removeClass("label-danger");break;case 2:t.find(".js-row-append").removeClass("label-danger"),t.find(".js-row-overwrite").addClass("label-danger");break;default:t.find(".js-row-append").removeClass("label-danger"),t.find(".js-row-overwrite").removeClass("label-danger")}e.selected?t.find(".js-row-toggle").removeClass("fa-square-o").addClass("fa-check-square-o"):t.find(".js-row-toggle").removeClass("fa-check-square-o").addClass("fa-square-o"),e.forceHeader?t.find(".js-row-toggle-header").addClass("label-success"):t.find(".js-row-toggle-header").removeClass("label-success"),e.skipLev?t.find(".js-row-lev").addClass("label-success"):t.find(".js-row-lev").removeClass("label-success"),c()}function d(e,t){t.retry=0,f(t,xw()("#"+t.id+" > .ud-c0"))}function h(){var e=xw().ajaxSettings.xhr();return e.upload&&e.upload.addEventListener("progress",u,!1),e}var p={xhr:h,url:"/imp?fmt=json",type:"POST",contentType:!1,processData:!1,cache:!1},g={type:"GET",contentType:!1,processData:!1,cache:!1};function m(){var e=xw()(this),t=n[e.parent().parent().attr("id")];t.selected=!t.selected,f(t,e.parent())}function v(){var e=xw()(this),t=n[e.parent().parent().attr("id")];1===t.retry?(t.retry=0,t.selected=!1):(t.retry=1,t.selected=!0),f(t,e.parent())}function y(){var e=xw()(this),t=n[e.parent().parent().attr("id")];2===t.retry?(t.retry=0,t.selected=!1):(t.retry=2,t.selected=!0),f(t,e.parent())}function b(){var e=xw()(this),t=n[e.parent().parent().attr("id")];t.forceHeader=!t.forceHeader,f(t,e.parent())}function E(){var e=xw()(this),t=n[e.parent().parent().attr("id")];t.skipLev=!t.skipLev,f(t,e.parent())}function w(){var e=xw()(this);R(n[e.parent().parent().attr("id")])}function S(){var e=xw()(this),t=n[e.parent().parent().attr("id")];r.trigger(Cw,t.name)}function x(e){var t=n[xw()(this).parent().attr("id")];t.importState>-1&&xw()(document).trigger("import.detail",t),Hw(e)}function _(e,t,n){var r=s;if(r.find(" > .ud-status").html(t),r.find(" > .ud-progress").remove(),a.selected=!1,n){var i=o.shift();i?A(i):(a=null,s=null,l=null)}xw()("#btnImportCancel").attr("disabled",null===a),xw()(document).trigger("import.detail.updated",e)}function T(e){if(a.delta=(new Date).getTime()-a.time,"OK"===e.status){a.response=e,a.importState=0,d(0,a),s.find(".js-row-imported").html(Bw(e.rowsImported)),s.find(".js-row-rejected").html(Bw(e.rowsRejected)),s.find(".js-row-header").html(e.header?"Yes":"No");var t=e.rowsRejected>0?"label-warning":"label-success";_(a,'<span class="label '+t+'">imported in '+a.delta/1e3+"s</span>",!0),window.bus.trigger(Rw.MSQ_QUERY_SCHEMA)}else a.importState=4,a.response=e.status,_(a,'<span class="label label-danger">failed</span>',!0)}function C(e){d(0,a),"abort"!==e.statusText?(a.importState=function(e){switch(e){case 0:return 3;case 400:return 4;case 500:return 5;default:return 101}}(e.status),a.response=e.responseJSON.status,_(a,'<span class="label label-danger">failed</span>',!0)):_(a,'<span class="label label-warning">aborted</span>',!0)}function O(){_(a,'<span class="label label-info">importing</span>',!1),s.append('<div class="ud-progress"></div>'),l=xw().ajax(function(){if(p.url="/imp?fmt=json",2===a.retry&&(p.url+="&overwrite=true"),a.forceHeader&&(p.url+="&forceHeader=true"),a.skipLev&&(p.url+="&skipLev=true"),p.xhr=h,p.data=new FormData,a.response&&a.response.columns){for(var e=[],t=0;t<a.response.columns.length;t++){var n=a.response.columns[t];n.altType&&n.type!==n.altType.text&&"AUTO"!==n.altType.text?e.push({name:n.name,type:n.altType.value}):0!==n.errors||"DATE"===n.type||void 0!==n.altType&&"AUTO"===n.altType.text||e.push({name:n.name,type:n.type})}p.data.append("schema",JSON.stringify(e))}return"file"===a.type?p.data.append("data",a.file):"clipboard"===a.type&&(p.url=p.url+"&name="+encodeURIComponent(a.name),p.data.append("data",a.content)),a.time=(new Date).getTime(),p}()).done(T).fail(C)}function I(e){switch(e.status){case"Exists":a.importState=1,_(a,'<span class="label label-danger">exists</span>',!0);break;case"Does not exist":a.importState=0,O();break;case"Reserved name":a.importState=2,_(a,'<span class="label label-danger">reserved</span>',!0);break;default:a.importState=101,_(a,'<span class="label label-danger">failed</span>',!0)}}function A(e){a=e,s=xw()("#"+e.id),e.retry?(a.importState=0,O()):(g.url="/chk?f=json&j="+encodeURIComponent(e.name),xw().ajax(g).then(I).fail(C))}function R(e){null==a?A(e):a!==e&&o.push(e)}function N(e){n[e.id]=e,function(e){var n=xw()('\n <div id="'.concat(e.id,'" class="ud-row" style="top: ').concat(i,'px;">\n <div class="ud-cell ud-c0">\n <i class="fa fa-square-o ud-checkbox js-row-toggle"></i>\n <span class="label js-row-append" title="Append">A</span>\n <span class="label js-row-overwrite" title="Overwrite">O</span>\n <span class="label js-row-lev" title="Skip lines with extra values">LEV</span>\n <span class="label js-row-toggle-header" title="Header">H</span>\n <i class="fa fa-upload js-row-upload"></i>\n </div>\n <div class="ud-cell ud-c1">').concat(e.name,'</div>\n <div class="ud-cell ud-c2"><i class="fa fa-eye js-row-query"></i></div>\n <div class="ud-cell ud-c3">').concat(e.sizeFmt,'</div>\n <div class="ud-cell ud-c4 js-row-imported">?</div>\n <div class="ud-cell ud-c5 js-row-rejected">?</div>\n <div class="ud-cell ud-c6 js-row-header">?</div>\n <div class="ud-cell ud-c7 ud-status">\n <span class="label">pending</span>\n </div>\n </div>\n '));t.append(n),n.find(".js-row-toggle").click(m),n.find(".js-row-append").click(v),n.find(".js-row-overwrite").click(y),n.find(".js-row-lev").click(E),n.find(".js-row-toggle-header").click(b),n.find(".js-row-upload").click(w),n.find(".js-row-query").click(S),n.find(".ud-c1").click(x),n.find(".ud-c2").click(x),n.find(".ud-c3").click(x),i+=35}(e),R(e)}return t=this.find("> .ud-canvas"),xw()(document).on("dropbox.files",(function(e,t){for(var n=0;n<t.files.length;n++){var r=t.files[n];N({id:jw(),name:r.name,size:r.size,file:r,type:"file",sizeFmt:Fw(r.size),selected:!1,imported:!1,forceHeader:!1})}})),xw()(document).on("dropbox.clipboard",(function(e,t){N({id:jw(),name:"clipboard-"+(new Date).getTime(),size:t.length,type:"clipboard",content:t,sizeFmt:Fw(t.length),selected:!1,imported:!1,forceHeader:!1})})),xw()(document).on("import.line.overwrite",(function(e,t){t.retry=2,f(t,xw()("#"+t.id+" > .ud-c0"))})),xw()(document).on("import.line.append",(function(e,t){t.retry=1,f(t,xw()("#"+t.id+" > .ud-c0"))})),xw()(document).on("import.line.abort",d),xw()("#btnImportClearSelected").click((function(){for(var e in n)if(n.hasOwnProperty(e)){var r=n[e];if(r.selected&&r!==a){var s=o.indexOf(r);s>-1&&delete o[s],xw()("#"+e).remove(),delete n[e],xw()(document).trigger("import.cleared",r)}}i=0;for(var l=t.find(".ud-row"),u=0;u<l.length;u++)xw()(l[u]).css("top",i),i+=35;c()})),xw()("#btnImportCancel").click((function(){null!==l&&l.abort()})),xw()("#btnRetry").click((function(){for(var e in n)if(n.hasOwnProperty(e)){var t=n[e];t.selected&&t.retry&&R(t)}})),this},xw().fn.dropbox=function(e){var t=xw()(),n=this;function r(){n.removeClass("drag-drop").addClass("drag-idle")}function i(e){Hw(e),r(),t=xw()(),xw()(document).trigger("dropbox.files",e.originalEvent.dataTransfer)}function o(e){var t;window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.originalEvent.clipboardData&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),xw()(document).trigger("dropbox.clipboard",t)}function a(e){Hw(e),0===t.size()&&n.addClass("drag-drop").removeClass("drag-idle"),t=t.add(e.target)}function s(e){setTimeout((function(){0===(t=t.not(e.target)).size()&&r()}),1)}function l(e,t){"import"===t?(xw()(document).on("drop",i),xw()(document).on("paste",o),xw()(document).on("dragenter",a),xw()(document).on("dragover",Hw),xw()(document).on("dragleave",s)):(xw()(document).unbind("drop",i),xw()(document).unbind("paste",o),xw()(document).unbind("dragenter",a),xw()(document).unbind("dragover",Hw),xw()(document).unbind("dragleave",s))}return function(){e.on(Ow,l);var t=xw()("#js-browse-files-input")[0];xw()("#js-browse-files").click((function(){t.click()})),t.onchange=function(){xw()(document).trigger("dropbox.files",t),t.value=""}}(),this},xw().fn.importEditor=function(e){var t,n,r=xw()(this),i=xw()(".stats-switcher"),o=xw()("#js-import-editor"),a=xw()("#js-import-error"),s=xw()("#js-import-placeholder"),l=xw()(this).find(".js-message"),u=xw()(this).find(".js-import-tab-name"),c=xw()(this).find(".import-rejected"),f=xw()(this).find(".import-imported"),d=xw()(this).find(".js-rejected-row-count"),h=xw()(this).find(".js-imported-row-count"),p=xw()(this).find(".ud-canvas"),g=xw()("#footer")[0].offsetHeight,m=[{text:"AUTO",value:null},{text:"BOOLEAN",value:"BOOLEAN"},{text:"BYTE",value:"BYTE"},{text:"DOUBLE",value:"DOUBLE"},{text:"DATE",value:"DATE"},{text:"FLOAT",value:"FLOAT"},{text:"INT",value:"INT"},{text:"LONG",value:"LONG"},{text:"SHORT",value:"SHORT"},{text:"CHAR",value:"CHAR"},{text:"STRING",value:"STRING"},{text:"SYMBOL",value:"SYMBOL"}],v=null,y=e;function b(){var e=p[0].getBoundingClientRect().top,t=Math.round(window.innerHeight-e);t=t-g-45,p[0].style.height=t+"px"}function E(){var e=xw()(this);t.appendTo(e.parent()),t.css("left",e.css("left")),t.css("width",e.css("width"));var n=parseInt(xw()(this).parent().find(".js-g-row").text())-1,r=v.response.columns[n];r.altType?t.val(r.altType.value):t.val(r.type),t.changeTargetDiv=e,t.changeTargetCol=r,t.show(),t.focus()}function w(){t.hide()}function S(e){return e.altType&&e.altType.text!==e.type?e.type+'<i class="fa fa-angle-double-right g-type-separator"></i>'+e.altType.text:e.type}function x(){var e=xw()(this).find("option:selected");t.changeTargetCol.altType={text:e.text(),value:e.val()},t.changeTargetDiv.html(S(t.changeTargetCol)),function(){for(var e=!1,t=0;t<v.response.columns.length;t++){var n=v.response.columns[t];if(n.altType&&n.type!==n.altType.text){e=!0;break}}xw()(document).trigger(e?"import.line.overwrite":"import.line.cancel",v)}(),w()}function _(e){if(0!==e.importState||e.response){if(e.response&&0===e.importState){u.html(n=e.response.location);var i=e.response.rowsImported,g=e.response.rowsRejected,m=i+g;if(c.css("width",Math.round(100*g/m)+"%"),f.css("width",Math.round(100*i/m)+"%"),d.html(g),h.html(i),p.empty(),e.response.columns)for(var v=0,y=0;y<e.response.columns.length;y++){var _=e.response.columns[y];p.append('<div class="ud-row" style="top: '+v+'px"><div class="ud-cell gc-1 g-other js-g-row">'+(y+1)+'</div><div class="ud-cell gc-2 g-other">'+(_.errors>0?'<i class="fa fa-exclamation-triangle g-warning"></i>':"")+_.name+'</div><div class="ud-cell gc-3 g-type">'+S(_)+'</div><div class="ud-cell gc-4 g-other">'+(void 0!==_.pattern?_.pattern:"")+'</div><div class="ud-cell gc-5 g-other">'+(void 0!==_.locale?_.locale:"")+'</div><div class="ud-cell gc-6 g-other">'+_.errors+"</div></div>"),v+=35}xw()(".g-type").click(E),xw()(".g-other").click(w),t.change(x),o.show(),a.hide(),b()}else{switch(e.importState){case 1:l.html("Table <strong>"+e.name+"</strong> already exists");break;case 2:l.html("Name <strong>"+e.name+"</strong> is reserved");break;case 3:l.html("Server is not responding...");break;case 4:l.html(e.response);break;case 5:l.html("Server encountered internal problem. Check server logs for more details.");break;default:l.html("Unknown error: "+e.responseStatus)}o.hide(),a.show(),s.hide()}r.show()}}xw()(document).on("import.detail",(function(e,t){v=t,_(t)})),xw()(document).on("import.detail.updated",(function(e,t){v===t&&t.response&&_(t)})),xw()(document).on("import.cleared",(function(e,t){t===v&&(v=null,o.hide(),a.hide(),s.show())})),function(){t=xw()('<select class="g-dynamic-select form-control m-b"/>');for(var e=0;e<m.length;e++){var n=m[e];xw()("<option />",{value:n.value,text:n.text}).appendTo(t)}}(),xw()(".import-stats-chart").click((function(){i.hasClass("stats-visible")?i.removeClass("stats-visible"):i.addClass("stats-visible")})),u.mouseover((function(){u.addClass("animated tada").one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){xw()(this).removeClass("animated").removeClass("tada")}))})),u.click((function(){y.trigger(Cw,n)})),xw()(window).resize(b),y.on(Ow,b)};var zw=2*Math.PI,Vw=Yo.CMD,Gw=["top","right","bottom","left"];function Ww(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0)}}function qw(e,t,n,r,i,o,a,s,l){a-=e,s-=t;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+e,f=(s/=u)*n+t;if(Math.abs(r-i)%zw<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var d=r;r=Jo(i),i=Jo(d)}else r=Jo(r),i=Jo(i);r>i&&(i+=zw);var h=Math.atan2(s,a);if(h<0&&(h+=zw),h>=r&&h<=i||h+zw>=r&&h+zw<=i)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+e,g=n*Math.sin(r)+t,m=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(p-a)*(p-a)+(g-s)*(g-s),b=(m-a)*(m-a)+(v-s)*(v-s);return y<b?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(b))}function Yw(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,f=r-t,d=Math.sqrt(c*c+f*f),h=(l*(c/=d)+u*(f/=d))/d;s&&(h=Math.min(Math.max(h,0),1)),h*=d;var p=a[0]=e+h*c,g=a[1]=t+h*f;return Math.sqrt((p-i)*(p-i)+(g-o)*(g-o))}function Xw(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=a[0]=Math.min(Math.max(i,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var $w=[];function Kw(e,t,n){var r=Xw(t.x,t.y,t.width,t.height,e.x,e.y,$w);return n.set($w[0],$w[1]),r}function Qw(e,t,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var p=c[h++];1===h&&(s=o=c[h],l=a=c[h+1]);var g=u;switch(p){case Vw.M:o=s=c[h++],a=l=c[h++];break;case Vw.L:g=Yw(o,a,c[h],c[h+1],f,d,$w,!0),o=c[h++],a=c[h++];break;case Vw.C:g=Nt(o,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,$w),o=c[h++],a=c[h++];break;case Vw.Q:g=Ut(o,a,c[h++],c[h++],c[h],c[h+1],f,d,$w),o=c[h++],a=c[h++];break;case Vw.A:var m=c[h++],v=c[h++],y=c[h++],b=c[h++],E=c[h++],w=c[h++];h+=1;var S=!!(1-c[h++]);r=Math.cos(E)*y+m,i=Math.sin(E)*b+v,h<=1&&(s=r,l=i),g=qw(m,v,b,E,E+w,S,(f-m)*b/y+m,d,$w),o=Math.cos(E+w)*y+m,a=Math.sin(E+w)*b+v;break;case Vw.R:g=Xw(s=o=c[h++],l=a=c[h++],c[h++],c[h++],f,d,$w);break;case Vw.Z:g=Yw(o,a,s,l,f,d,$w,!0),o=s,a=l}g<u&&(u=g,n.set($w[0],$w[1]))}return u}var Jw=new fr,Zw=new fr,eS=new fr,tS=new fr,nS=new fr;function rS(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Gw,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&er([],c),d=t.get("length2")||0;u&&eS.copy(u);for(var h=0;h<a.length;h++){Ww(a[h],0,s,Jw,tS),fr.scaleAndAdd(Zw,Jw,tS,d),Zw.transform(f);var p=e.getBoundingRect(),g=u?u.distance(Zw):e instanceof pa?Qw(Zw,e.path,eS):Kw(Zw,p,eS);g<l&&(l=g,Zw.transform(c),eS.transform(c),eS.toArray(o[0]),Zw.toArray(o[1]),Jw.toArray(o[2]))}!function(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Jw.fromArray(e[0]),Zw.fromArray(e[1]),eS.fromArray(e[2]),fr.sub(tS,Jw,Zw),fr.sub(nS,eS,Zw);var n=tS.len(),r=nS.len();if(!(n<.001||r<.001)){tS.scale(1/n),nS.scale(1/r);var i=tS.dot(nS);if(Math.cos(t)<i){var o=Yw(Zw.x,Zw.y,eS.x,eS.y,Jw.x,Jw.y,iS,!1);oS.fromArray(iS),oS.scaleAndAdd(nS,o/Math.tan(Math.PI-t));var a=eS.x!==Zw.x?(oS.x-Zw.x)/(eS.x-Zw.x):(oS.y-Zw.y)/(eS.y-Zw.y);if(isNaN(a))return;a<0?fr.copy(oS,Zw):a>1&&fr.copy(oS,eS),oS.toArray(e[1])}}}}(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var iS=[],oS=new fr;function aS(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function sS(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Ee(r[0],r[1]),o=Ee(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=Se([],r[1],r[0],a/i),l=Se([],r[1],r[2],a/o),u=Se([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)e.lineTo(r[c][0],r[c][1])}function lS(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function uS(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:lS(r&&r.shape.points)}}var cS=["align","verticalAlign","width","height","fontSize"],fS=new ur,dS=Si(),hS=Si();function pS(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var gS=["x","y","rotation"],mS=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),l=r.getBoundingRect().plain();wr.applyTransform(l,l,s),s?fS.setLocalTransform(s):(fS.x=fS.y=fS.rotation=fS.originX=fS.originY=0,fS.scaleX=fS.scaleY=1);var u,c=r.__hostTarget;if(c){u=c.getBoundingRect().plain();var f=c.getComputedTransform();wr.applyTransform(u,u,f)}var d=u&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:fS.x,y:fS.y,scaleX:fS.scaleX,scaleY:fS.scaleY,rotation:fS.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(H(r)||U(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),o=Ga(e);i&&!i.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){rS(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=(u=H(o.layoutOption)?o.layoutOption(uS(o,s)):o.layoutOption)||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var f=!1;if(null!=u.x?(a.x=$r(u.x,t),a.setStyle("x",0),f=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=$r(u.y,n),a.setStyle("y",0),f=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),f=!1)}dS(a).needsUpdateLabelLine=f,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var h=0;h<cS.length;h++){var p=cS[h];a.setStyle(p,null!=u[p]?u[p]:l.style[p])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var g=o.seriesModel;null!=o.dataIndex&&(g=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),a.on("drag",r(s,g.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=dE(this._labelList),i=P(r,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),o=P(r,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));hE(i,"x","width",0,t,undefined),hE(o,"y","height",0,n,void 0),pE(P(r,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;L(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!r,a=t.getTextContent();!o&&a&&(o=dS(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Ga(e),i=r.dataIndex;if(n&&null!=i){var o=t.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");!function(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,l=0;l<Ka.length;l++){var u=Ka[l],c=t[u],f="normal"===u;if(c){var d=c.get("show");if((f?s:J(i.states[u]&&i.states[u].ignore,s))||!J(d,a)){var h=f?r:r&&r.states[u];h&&(h.ignore=!0);continue}r||(r=new Zd,e.setTextGuideLine(r),f||!s&&a||aS(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),aS(r,!1,u,c)}}if(r){A(r.style,n),r.style.fill=null;var p=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=p||!1,r.buildPath=sS}}else r&&e.removeTextGuideLine()}(e,function(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<$a.length;r++){var i=$a[r];n[i]=e.getModel([i,t])}return n}(a),s),rS(e,c)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Gs(e))){var i=(h=dS(n)).oldLayout,o=Ga(e),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(i){n.attr(i);var u=e.prevStates;u&&(R(u,"select")>=0&&n.attr(h.oldLayoutSelect),R(u,"emphasis")>=0&&n.attr(h.oldLayoutEmphasis)),zs(n,s,t,a)}else if(n.attr(s),!al(n).valueAnimation){var c=J(n.style.opacity,1);n.style.opacity=0,Vs(n,{style:{opacity:c}},t,a)}if(h.oldLayout=s,n.states.select){var f=h.oldLayoutSelect={};pS(f,s,gS),pS(f,n.states.select,gS)}if(n.states.emphasis){var d=h.oldLayoutEmphasis={};pS(d,s,gS),pS(d,n.states.emphasis,gS)}!function(e,t,n,r,i){var o=al(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=J(o.interpolatedValue,o.prevValue),l=o.value;e.percent=0,(null==o.prevValue?Vs:zs)(e,{percent:1},r,t,null,(function(r){var u=Ai(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=Qs({labelDataIndex:t,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);Ks(e,c)}))}}(n,a,l,t,t)}if(r&&!r.ignore&&!r.invisible){i=(h=hS(r)).oldLayout;var h,p={points:r.shape.points};i?(r.attr({shape:i}),zs(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,Vs(r,{style:{strokePercent:1}},t)),h.oldLayout=p}},e}();const vS=mS;var yS=Si();function bS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=yS(t).labelManager;r||(r=yS(t).labelManager=new vS),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=yS(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function ES(e,t,n){var r=f.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}Qm(bS);var wS=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Yn,"string"==typeof t?i=ES(t,n,r):W(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(ce(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return r(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=ES("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new wr(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length)(t=new wr(0,0,0,0)).copy(e),o.push(t);else{for(var t,n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(e)){var f=new wr(0,0,0,0);f.copy(c),f.union(e),o[u]=f,n=!0;break}if(s){l.copy(e),l.union(c);var d=e.width*e.height,h=c.width*c.height,p=l.width*l.height-d-h;p<r&&(r=p,i=u)}}s&&(o[i].union(e),n=!0),n||((t=new wr(0,0,0,0)).copy(e),o.push(t)),s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c)if(h=e[c]){var f=h.shouldBePainted(n,r,!0,!0);(p=h.__isRendered&&(1&h.__dirty||!f)?h.getPrevPaintRect():null)&&u(p);var d=f&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;d&&u(d)}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h,p;f=(h=t[c]).shouldBePainted(n,r,!0,!0),!h||f&&h.__zr||!h.__isRendered||(p=h.getPrevPaintRect())&&u(p)}do{for(i=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var f=this.domBack;function d(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;$(t)?(a=t.__canvasGradient||Eg(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a):null!=t.image&&(a=Rg(i,t,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(f,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&L(n,(function(e){d(e.x*u,e.y*u,e.width*u,e.height*u)}))},t}(Re);const SS=wS;var xS=1e5,_S=314159,TS=.01,CS=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=I({},n||{}),this.dpr=n.devicePixelRatio||Yn,this._singleCanvas=i,this.root=e,e.style&&(ce(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,l=s.width,u=s.height;null!=n.width&&(l=n.width),null!=n.height&&(u=n.height),this.dpr=n.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=new SS(s,this,this.dpr);c.__builtin__=!0,c.initContext(),a[314159]=c,c.zlevel=_S,o.push(_S),this._domRoot=e}else{this._width=Sg(e,0,n),this._height=Sg(e,1,n);var f=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(f)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(xS)),r||(r=n.ctx).save(),Bg(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(xS)},e.prototype.paintOne=function(e,t){jg(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;ht((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(_S).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(a){var s,l=i[a],u=l.ctx,d=o&&l.createRepaintRects(e,t,h._width,h._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(p===l.__startIndex){var y=e[p];y.incremental&&y.notClear&&!n||l.clear(!1,v,d)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=e[s];if(i.__inHover&&(f=!0),r._doPaintEl(i,l,o,t,n,s===l.__endIndex-1),g&&Date.now()-m>15)break}n.prevElClipPaths&&u.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var E=h.dpr,w=0;w<d.length;++w){var S=d[w];u.save(),u.beginPath(),u.rect(S.x*E,S.y*E,S.width*E,S.height*E),u.clip(),b(S),u.restore()}else u.save(),b(),u.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return a.wxa&&L(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Bg(a,e,i,o),e.setPrevPaintRect(s))}else Bg(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=_S);var n=this._layers[e];return n||((n=new SS("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?O(n,this._layerConfig[e],!0):this._layerConfig[e-TS]&&O(n,this._layerConfig[e-TS],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++)if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,l=(s=e[i]).zlevel,u=void 0;r!==l&&(r=l,a=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,a=1):u=this.getLayer(l+(a>0?TS:0),this._needsManuallyCompositing),u.__builtin__||T("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,t(i),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,L(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?O(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];i!==e&&i!==e+TS||O(this._layers[i],n[e],!0)}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(R(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Sg(i,0,r),t=Sg(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(_S).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var t=new SS("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Bg(n,u,o,s===l-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const OS=CS;var IS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return r(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new If(this),Af(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Af(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Uu},t}(Cu),AS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return r(t,e),t.type="dataset",t}(id);Qm([function(e){e.registerPainter("canvas",OS)},function(e){e.registerComponentModel(IS),e.registerComponentView(AS)}]),Qm(bS);var RS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),F(t)&&L(t,(function(e,r){z(e)&&(e={type:e}),t[r]=O(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&bi(r)&&t.push(r.name)})),this._availableNames=n;var r=M(this.get("data")||t,(function(e){return(z(e)||G(e))&&(e={name:e}),new wl(e,this,this.ecModel)}),this);this._data=r},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;"single"===this.get("selectedMode")&&L(this._data,(function(e){t[e.get("name")]=!1})),t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;L(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;L(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&R(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Cu);const NS=RS;var kS=B,LS=L,MS=Vr,DS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return r(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new MS),this.group.add(this._selectorGroup=new MS),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),f=Eu(l,u,c),d=this.layoutInner(e,i,f,r,a,s),h=Eu(A({width:d.width,height:d.height},l),u,c);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(e,t){var n=ou(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),new Aa({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),l=le(),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),LS(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var f=new MS;return f.newline=!0,void s.add(f)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var h=d.getData(),p=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),m=h.getVisual("style");this._createItem(d,a,o,i,t,e,p,m,g,u).on("click",kS(PS,a,null,r,c)).on("mouseover",kS(jS,d.name,null,r,c)).on("mouseout",kS(BS,d.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var f=s.indexOfName(a),d=s.getItemVisual(f,"style"),h=s.getItemVisual(f,"legendIcon"),p=on(d.fill);p&&0===p[3]&&(p[3]=.2,d=I(I({},d),{fill:un(p,"rgba")})),this._createItem(n,a,o,i,t,e,{},d,h,u).on("click",kS(PS,null,a,r,c)).on("mouseover",kS(jS,null,a,r,c)).on("mouseout",kS(BS,null,a,r,c)),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();LS(e,(function(e){var r=e.type,i=new Va({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Js(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),Ns(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u){var c,f,d,h=e.visualDrawType,p=i.get("itemWidth"),g=i.get("itemHeight"),m=i.isSelected(t),v=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),b=r.get("icon"),E=function(e,t,n,r,i,o){function a(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),LS(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var s=t.getModel("itemStyle").getItemStyle(),l=0===e.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]),"inherit"===s.stroke&&(s.stroke=r[l]),"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity),a(s,r);var u=t.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var f=t.get("inactiveBorderWidth"),d=s[l];s.lineWidth="auto"===f?r.lineWidth>0&&d?2:0:s.lineWidth,s.fill=t.get("inactiveColor"),s.stroke=t.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(l=b||l||"roundRect",r,a,s,h,m),w=new MS,S=r.getModel("textStyle");if(!H(e.getLegendIcon)||b&&"inherit"!==b){var x="inherit"===b&&e.getData().getVisual("symbol")?"inherit"===v?e.getData().getVisual("symbolRotate"):v:0;w.add((c={itemWidth:p,itemHeight:g,icon:l,iconRotate:x,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:y},(d=yg(f=c.icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill,c.symbolKeepAspect)).setStyle(c.itemStyle),d.rotation=(c.iconRotate||0)*Math.PI/180,d.setOrigin([c.itemWidth/2,c.itemHeight/2]),f.indexOf("empty")>-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),d))}else w.add(e.getLegendIcon({itemWidth:p,itemHeight:g,icon:l,iconRotate:v,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:y}));var _="left"===o?p+5:-5,T=o,C=i.get("formatter"),O=t;z(C)&&C?O=C.replace("{name}",null!=t?t:""):H(C)&&(O=C(t));var I=r.get("inactiveColor");w.add(new Va({style:el(S,{text:O,x:_,y:g/2,fill:m?S.getTextColor():I,align:T,verticalAlign:"middle"})}));var A=new Aa({shape:w.getBoundingRect(),invisible:!0}),R=r.getModel("tooltip");return R.get("show")&&tp({el:A,componentModel:i,itemName:t,itemTooltipOption:R.option}),w.add(A),w.eachChild((function(e){e.silent=!0})),A.silent=!u,this.getContentGroup().add(w),Ns(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();bu(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){bu("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),f=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",g=0===h?"height":"width",m=0===h?"y":"x";"end"===o?f[h]+=l[p]+d:u[h]+=c[p]+d,f[1-h]+=l[g]/2-c[g]/2,s.x=f[0],s.y=f[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+f[1-h]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(id);function PS(e,t,n,r){BS(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),jS(e,t,n,r)}function US(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function jS(e,t,n,r){US(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function BS(e,t,n,r){US(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const FS=DS;function HS(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function zS(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name)),L(n.getData(),(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function VS(e){e.registerComponentModel(NS),e.registerComponentView(FS),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,HS),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",B(zS,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",B(zS,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",B(zS,"inverseSelect")),e.registerAction("legendSelect","legendselected",B(zS,"select")),e.registerAction("legendUnSelect","legendunselected",B(zS,"unSelect"))}(e)}function GS(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Su(t,n,{type:"box",ignoreSize:!!r})}const WS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=xu(t);e.prototype.init.call(this,t,n,r),GS(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),GS(this,this.option,t)},t.type="legend.scroll",t.defaultOption=_l(NS.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(NS);var qS=Vr,YS=["width","height"],XS=["x","y"],$S=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return r(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new qS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qS)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var l=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),f=F(c)?c:[c,c];h("pagePrev",0);var d=n.getModel("pageTextStyle");function h(e,t){var r=e+"DataIndex",o=Qh(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:j(l._pageGo,l,r,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});o.name=e,u.add(o)}u.add(new Va({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,l=YS[s],u=XS[s],c=YS[1-s],f=XS[1-s];i&&bu("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),h=a.getBoundingRect(),p=[-h.x,-h.y],g=C(n);i&&(g[l]=n[l]-h[l]-d);var m=this._layoutContentAndController(e,r,g,s,l,c,f,u);if(i){if("end"===o)p[s]+=m[l]+d;else{var v=h[l]+d;p[s]-=v,m[u]-=v}m[l]+=h[l]+d,p[1-s]+=m[f]+m[c]/2-h[c]/2,m[c]=Math.max(m[c],h[c]),m[f]=Math.min(m[f],h[f]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;bu(e.get("orient"),l,e.get("itemGap"),r?n.width:null,r?null:n.height),bu("horizontal",c,e.get("pageButtonItemGap",!0));var f=l.getBoundingRect(),d=c.getBoundingRect(),h=this._showController=f[i]>n[i],p=[-f.x,-f.y];t||(p[r]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));h&&("end"===e.get("pageButtonPosition",!0)?m[r]+=n[i]-d[i]:g[r]+=d[i]+v),m[1-r]+=f[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[i]=h?n[i]:f[i],y[o]=Math.max(f[o],d[o]),y[a]=Math.min(0,d[a]+m[1-r]),u.__rectSize=n[i],h){var b={x:0,y:0};b[i]=Math.max(n[i]-d[i]-v,0),b[o]=y[o],u.setClipPath(new Aa({shape:b})),u.__rectSize=b[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var E=this._getPageInfo(e);return null!=E.pageIndex&&zs(l,{x:E.contentPosition[0],y:E.contentPosition[1]},h?e:null),this._updatePageInfoView(e,E),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",z(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=YS[i],a=XS[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,f=c?1:0,d={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var h=y(u);d.contentPosition[i]=-h.s;for(var p=s+1,g=h,m=h,v=null;p<=c;++p)(!(v=y(l[p]))&&m.e>g.s+r||v&&!b(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=h,m=h,v=null;p>=-1;--p)(v=y(l[p]))&&b(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(FS);const KS=$S;function QS(e){Qm(VS),e.registerComponentModel(WS),e.registerComponentView(KS),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}const JS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Cu);var ZS=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),ex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ci).models[0]},t.type="cartesian2dAxis",t}(Cu);N(ex,ZS);var tx={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},nx=O({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tx),rx=O({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},tx);const ix={category:nx,value:rx,time:O({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rx),log:A({logBase:10},rx)};var ox={value:1,category:1,time:1,log:1};function ax(e,t,n,i){L(ox,(function(o,a){var s=O(O({},ix[a],!0),i,!0),l=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+a,n}return r(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=wu(this),r=n?xu(e):{};O(e,t.getTheme().get(a+"Axis")),O(e,this.getDefaultOption()),e.type=sx(e),n&&Su(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Sb.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+a,n.defaultOption=s,n}(n);e.registerComponentModel(l)})),e.registerSubTypeDefaulter(t+"Axis",sx)}function sx(e){return e.type||(e.data?"category":"value")}var lx=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return M(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),P(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),ux=["x","y"];function cx(e){return"interval"===e.type||"time"===e.type}var fx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ux,t}return r(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(cx(e)&&cx(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,f=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,f];this._invTransform=er([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return xe(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return xe(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-r;return new wr(n,r,i,o)},t}(lx);const dx=fx;var hx=Si();function px(e,t){var n,r,i=gx(e,"labels"),o=cE(t);return mx(i,o)||(H(o)?n=bx(e,o):(r="auto"===o?function(e){var t=hx(e).autoInterval;return null!=t?t:hx(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=yx(e,r)),vx(i,o,{labels:n,labelCategoryInterval:r}))}function gx(e,t){return hx(e)[t]||(hx(e)[t]=[])}function mx(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function vx(e,t,n){return e.push({key:t,value:n}),n}function yx(e,t,n){var r=sE(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=fE(e),d=a.get("showMinLabel")||f,h=a.get("showMaxLabel")||f;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-l!==o[1]&&g(o[1]),s}function bx(e,t,n){var r=e.scale,i=sE(e),o=[];return L(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var Ex=[0,1],Sx=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return function(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&xx(n=n.slice(),r.count()),Xr(e,Ex,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&xx(n=n.slice(),r.count());var i=Xr(e,n,Ex,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=M(function(e,t){return"category"===e.type?function(e,t){var n,r,i=gx(e,"ticks"),o=cE(t),a=mx(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),H(o))n=bx(e,o,!0);else if("auto"===o){var s=px(e,e.getLabelModel());r=s.labelCategoryInterval,n=M(s.labels,(function(e){return e.tickValue}))}else n=yx(e,r=o,!0);return vx(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:M(e.scale.getTicks(),(function(e){return e.value}))}}(this,t).ticks,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;L(t,(function(e){e.coord-=u/2})),a=1+e.scale.getExtent()[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*a},t.push(o)}var c=s[0]>s[1];f(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&f(o.coord,s[1])&&t.push({coord:s[1]})}function f(e,t){return e=Kr(e),t=Kr(t),c?e>t:e<t}}(this,n,t.get("alignWithLabel"),e.clamp),n},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");return e>0&&e<100||(e=5),M(this.scale.getMinorTicks(e),(function(e){return M(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return(e=this,"category"===e.type?function(e){var t=e.getLabelModel(),n=px(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=sE(e);return{labels:M(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)).labels;var e},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=sE(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=o[1];l+=s){var p,g,m=Tr(n({value:l}),t.font,"center","top");p=1.3*m.width,g=1.3*m.height,d=Math.max(d,p,7),h=Math.max(h,g,7)}var v=d/c,y=h/f;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(v,y))),E=hx(e.model),w=e.getExtent(),S=E.lastAutoInterval,x=E.lastTickCount;return null!=S&&null!=x&&Math.abs(S-b)<=1&&Math.abs(x-a)<=1&&S>b&&E.axisExtent0===w[0]&&E.axisExtent1===w[1]?b=S:(E.lastTickCount=a,E.lastAutoInterval=b,E.axisExtent0=w[0],E.axisExtent1=w[1]),b}(this)},e}();function xx(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var _x=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return r(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Sx);const Tx=_x;var Cx=Math.log,Ox=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ux,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=U(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,l=a.scale;xb(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(aE(l,s),xb(l)&&(t=a))}i.length&&(t||aE((t=i.pop()).scale,t.model),L(i,(function(e){!function(e,t,n){var r=Mb.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=oE(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if("log"===e.type){var d=Cx(e.base);u=[Cx(u[0])/d,Cx(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var h=r.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(e),g=u[0],m=u[1];if(c&&f)p=(m-g)/a;else if(c)for(m=u[0]+p*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)p=_b(p),m=u[0]+p*a;else if(f)for(g=u[1]-p*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)p=_b(p),g=u[1]-p*a;else{e.getTicks().length-1>a&&(p=_b(p));var v=p*a;(g=Kr((m=Math.ceil(u[1]/p)*p)-v))<0&&u[0]>=0?(g=0,m=Kr(v)):m>0&&u[1]<=0&&(m=0,g=-Kr(v))}var y=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(e,g+p*y,m+p*b),r.setInterval.call(e,p),(y||b)&&r.setNiceExtent.call(e,g+p,m-p)}(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};L(n.x,(function(e){Ax(n,"y",e,i)})),L(n.y,(function(e){Ax(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=Eu(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){L(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)}))}s(),i&&(L(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof Nb?n.count():(r=n.getTicks()).length;var a,s=e.getLabelModel(),l=sE(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=l(r?r[c]:{value:o[0]+c},c),d=uE(s.getTextRect(f),s.get("rotate")||0);a?a.union(d):a=d}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),L(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}W(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",Ci).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",Ci).models[0],a=e.gridModel,s=this._coordsList;return r?R(s,t=r.coordinateSystem)<0&&(t=null):i&&o?t=this.getCartesian(i.componentIndex,o.componentIndex):i?n=this.getAxis("x",i.componentIndex):o?n=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",l("x"),this),t.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(t){return function(n,r){if(Ix(n,e)){var l=n.get("position");"x"===t?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new Tx(t,function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new Nb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Vb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(yb.getClass(t)||Mb)}}(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[t][r]=u,s[t]++}}}this._axesMap=a,L(a.x,(function(t,n){L(a.y,(function(i,o){var a="x"+n+"y"+o,s=new dx(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){L(function(e,t){var n={};return L(e.mapDimensionsAll(t),(function(t){n[function(e,t){return ov(e,t)?e.getCalculationInfo("stackResultDimension"):t}(e,t)]=!0})),U(n)}(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}L(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(CE(e)){var r=OE(e),i=r.xAxisModel,o=r.yAxisModel;if(!Ix(i,t)||!Ix(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return L(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);R(t,i)<0&&t.push(i),R(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(CE(e)){var t=OE(e),n=t.xAxisModel,r=t.yAxisModel,i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=ux,e}();function Ix(e,t){return e.getCoordSysModel()===t}function Ax(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Rx(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&Rx(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(e){return e.dim+"_"+e.index}}function Rx(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}const Nx=Ox;var kx=Si(),Lx=["axisLine","axisTickLabel","axisName"],Mx=["splitArea","splitLine","minorSplitLine"],Dx=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return r(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Vr,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=TE(a,t),l=new SE(t,I({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(xb(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));L(Lx,l.add,l),this._axisGroup.add(l.getGroup()),L(Mx,(function(e){t.get([e,"show"])&&Px[e](this,this._axisGroup,t,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Xh(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){kx(this).splitAreaColors=null},t.type="cartesianAxis",t}(ab),Px={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=F(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:o}),d=[],h=[],p=a.getLineStyle(),g=0;g<f.length;g++){var m=i.toGlobalCoord(f[g].coord);u?(d[0]=m,d[1]=l.y,h[0]=m,h[1]=l.y+l.height):(d[0]=l.x,d[1]=m,h[0]=l.x+l.width,h[1]=m);var v=c++%s.length,y=f[g].tickValue;t.add(new rh({anid:null!=y?"line_"+f[g].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:A({stroke:s[v]},p),silent:!0}))}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var u=[],c=[],f=o.getLineStyle(),d=0;d<l.length;d++)for(var h=0;h<l[d].length;h++){var p=i.toGlobalCoord(l[d][h].coord);s?(u[0]=p,u[1]=a.y,c[0]=p,c[1]=a.y+a.height):(u[0]=a.x,u[1]=p,c[0]=a.x+a.width,c[1]=p),t.add(new rh({anid:"minor_line_"+l[d][h].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:f,silent:!0}))}},splitArea:function(e,t,n,r){!function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,f=kx(e).splitAreaColors,d=le(),h=0;if(f)for(var p=0;p<u.length;p++){var g=f.get(u[p].tickValue);if(null!=g){h=(g+(c-1)*p)%c;break}}var m=i.toGlobalCoord(u[0].coord),v=a.getAreaStyle();for(s=F(s)?s:[s],p=1;p<u.length;p++){var y=i.toGlobalCoord(u[p].coord),b=void 0,E=void 0,w=void 0,S=void 0;i.isHorizontal()?(b=m,E=l.y,w=y-b,S=l.height,m=b+w):(b=l.x,E=m,w=l.width,m=E+(S=y-E));var x=u[p-1].tickValue;null!=x&&d.set(x,h),t.add(new Aa({anid:null!=x?"area_"+x:null,shape:{x:b,y:E,width:w,height:S},style:A({fill:s[h]},v),autoBatch:!0,silent:!0})),h=(h+1)%c}kx(e).splitAreaColors=d}}}(e,t,n,r)}},Ux=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return r(t,e),t.type="xAxis",t}(Dx),jx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=Ux.type,t}return r(t,e),t.type="yAxis",t}(Dx),Bx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return r(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new Aa({shape:e.coordinateSystem.getRect(),style:A({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(id),Fx={offset:0};function Hx(e){e.registerComponentView(Bx),e.registerComponentModel(JS),e.registerCoordinateSystem("cartesian2d",Nx),ax(e,"x",ex,Fx),ax(e,"y",ex,Fx),e.registerComponentView(Ux),e.registerComponentView(jx),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}var zx=n(8012),Vx=n.n(zx),Gx="#eee",Wx=function(){return{axisLine:{lineStyle:{color:Gx}},axisTick:{lineStyle:{color:Gx}},axisLabel:{textStyle:{color:Gx}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:Gx}}}},qx=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"];const Yx=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({color:qx,backgroundColor:"#282a36",tooltip:{axisPointer:{lineStyle:{color:Gx},crossStyle:{color:Gx}}},legend:{textStyle:{color:Gx}},textStyle:{color:Gx},title:{textStyle:{color:Gx}},toolbox:{iconStyle:{normal:{borderColor:Gx}}},dataZoom:{textStyle:{color:Gx}},timeline:{lineStyle:{color:Gx},itemStyle:{normal:{color:qx[1]}},label:{normal:{textStyle:{color:Gx}}},controlStyle:{normal:{color:Gx,borderColor:Gx}}},timeAxis:Wx(),logAxis:Wx(),valueAxis:Wx(),categoryAxis:Wx(),line:{symbol:"circle"},graph:{color:qx},gauge:{title:{textStyle:{color:Gx}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}},"textStyle",{fontFamily:'"Open Sans", -apple-system, BlinkMacSystemFont, Helvetica, Roboto, sans-serif'});function Xx(e,t){if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]instanceof Array&&t[n]instanceof Array){if(!e[n].equals(t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}Qm([function(e){Qm(VS),Qm(QS)},function(e){Qm(Hx),Qm(KE)}]),xw().fn.quickVis=function(e){var t,n,r,i,o,a,s,l,u,c,f=e,d=xw()(this),h=xw()("#_qvis_frm_draw"),p=new Set,g={title:{},tooltip:{},legend:{data:["Series"]},xAxis:{data:[]},yAxis:{},series:[{name:"Y-axis",type:"bar",data:[]}]},m=new(Vx())({select:"#_qvis_frm_chart_type"}),v=new(Vx())({select:"#_qvis_frm_axis_x"}),y=new(Vx())({select:"#_qvis_frm_axis_y"});function b(){n.resize()}function E(){h.html('<i class="fa fa-play"></i><span>Draw</span>'),h.removeClass("js-chart-cancel").addClass("js-chart-draw")}function w(e){try{var t,r=e.columns,i=e.dataset;if(r&&i){var l,u=new Map;for(t=0;t<r.length;t++)u.set(r[t].name,t);if(null!=o){var c=u.get(o),f=[];for(t=0;t<i.length;t++)f[t]=i[t][c];l={type:"category",name:o,data:f}}else l={};var d=[];if(a.length>0)for(t=0;t<a.length;t++){var h=u.get(a[t]);if(h){for(var p=[],g=0;g<i.length;g++)p[g]=i[g][h];d[t]="area"===s?{type:"line",name:a[t],data:p,areaStyle:{},smooth:!0,symbol:"none"}:{name:a[t],type:s,data:p,large:!0}}}var m={tooltip:{trigger:"axis",axisPointer:{label:{show:!1}}},legend:{},xAxis:l,yAxis:{type:"value"},series:d};n.setOption(m,!0)}}finally{b(),E()}}function S(e){c=null,f.trigger("query.out.ok",{delta:(new Date).getTime()-i,count:e.count}),l=e,u=r,w(e)}function x(e){c=null,E(),f.trigger("query.out.error",{query:u,r:e.responseJSON,status:e.status,statusText:e.statusText,delta:(new Date).getTime()-i})}function _(){n.setOption(g,!0)}t=d.find(".quick-vis-canvas")[0],xw()(window).resize(b),f.on(Ow,b),n=Bm(t,Yx),f.on(Tw,(function(e,t){for(var n=[],i=t.columns,o=0;o<i.length;o++)n[o]={text:i[o].name,value:i[o].name};v.setData(n),y.setData(n),y.set(n.slice(1).map((function(e){return e.text}))),r=t.query,_()})),f.on(_w,(function(){c&&(c.abort(),c=null)})),f.on(Iw,(function(){h.html('<i class="fa fa-stop"></i><span>Cancel</span>'),h.removeClass("js-chart-draw").addClass("js-chart-cancel"),s=m.selected();var e=v.selected(),t=y.selected();if(Xx(e,o)&&Xx(t,a)&&r===u)w(l);else{p.clear(),(o=v.selected())&&p.add(o),a=y.selected(),function(e,t){for(var n=0;n<e.length;n++)t.add(e[n])}(y.selected(),p);var n="";p.forEach((function(e){""!==n&&(n+=","),n+=e}));var d={};d.query=r,d.count=!1,d.cols=n,d.src="vis",i=(new Date).getTime(),c=xw().get("/exec",d),f.trigger("query.out.running"),c.done(S).fail(x)}})),h.click((function(){return c?f.trigger(_w):f.trigger(Iw),!1})),_(),b()},xw().fn.splitter=function(e,t,n,r){var i,o,a,s,l=xw()(e),u=xw()(this),c="splitter."+t+".resize",f=n,d=r;function h(e){e.preventDefault(),e.pageY>f&&e.pageY<window.innerHeight+xw()(window).scrollTop()-d&&(a=e.pageY,i[0].style=s+"top: "+e.pageY+"px;")}function p(){xw()(document).off("mousemove",h),xw()(document).off("mouseup",p),i[0].style="display: none",u.removeClass("qs-dragging"),l.trigger(c,a-o)}function g(){var e=u[0].getBoundingClientRect();o=e.top+xw()(window).scrollTop(),s="position: absolute; left: "+e.left+"px; width: "+e.width+"px; height: "+e.height+"px;",i||(i=xw()('<div class="qs-ghost"></div>')).appendTo("body"),i[0].style=s+"top: "+o+"px;",u.addClass("qs-dragging"),xw()(document).mousemove(h),xw()(document).mouseup(p)}xw()(this).mousedown(g),xw()(this).on("touchstart",g),xw()(this).on("touchmove",(function(e){e.preventDefault();var t=e.originalEvent.touches[0].clientY;t>f&&t<window.innerHeight+xw()(window).scrollTop()-d&&(a=t,i[0].style=s+"top: "+t+"px;")})),xw()(this).on("touchend",p)};var $x=xw()({});window.bus=$x,xw()(document).ready((function(){$x.trigger("preferences.load"),xw()(window).trigger("resize")})),$x.on("react.ready",(function(){!function(e){var t=xw()("#grid"),n=xw()("#quick-vis");t.grid(e),n.quickVis(e)}($x),function(e){xw()(window).bind("resize",Mw),xw()("#dragTarget").dropbox(e),xw()("#import-file-list").importManager(e),xw()("#import-detail").importEditor(e),xw()("#import-splitter").splitter(e,"import",420,250),e.on("splitter.import.resize",Dw)}($x)}));var Kx=n(9703),Qx=n(4819),Jx=Kx.createContext(null),Zx=function(e){e()},e_=function(){return Zx},t_={notify:function(){}},n_=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=t_,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=e_(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=t_)},e}();const r_=function(e){var t=e.store,n=e.context,r=e.children,i=(0,Kx.useMemo)((function(){var e=new n_(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),o=(0,Kx.useMemo)((function(){return t.getState()}),[t]);(0,Kx.useEffect)((function(){var e=i.subscription;return e.trySubscribe(),o!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,o]);var a=n||Jx;return Kx.createElement(a.Provider,{value:i},r)};var i_=n(6504),o_=n.n(i_),a_=(n(2744),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?Kx.useLayoutEffect:Kx.useEffect),s_=n(5690),l_=function(){return Math.random().toString(36).substring(7).split("").join(".")},u_={INIT:"@@redux/INIT"+l_(),REPLACE:"@@redux/REPLACE"+l_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l_()}};function c_(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f_(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function d_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function p_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h_(n,!0).forEach((function(t){d_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m_(){return m_=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},m_.apply(this,arguments)}function v_(){return(0,Kx.useContext)(Jx)}function y_(e){void 0===e&&(e=Jx);var t=e===Jx?v_:function(){return(0,Kx.useContext)(e)};return function(){return t().store}}var b_=y_();function E_(e){void 0===e&&(e=Jx);var t=e===Jx?b_:y_(e);return function(){return t().dispatch}}var w_=E_(),S_=function(e,t){return e===t};function x_(e){void 0===e&&(e=Jx);var t=e===Jx?v_:function(){return(0,Kx.useContext)(e)};return function(e,n){void 0===n&&(n=S_);var r=t();return function(e,t,n,r){var i,o=(0,Kx.useReducer)((function(e){return e+1}),0),a=o[1],s=(0,Kx.useMemo)((function(){return new n_(n,r)}),[n,r]),l=(0,Kx.useRef)(),u=(0,Kx.useRef)(),c=(0,Kx.useRef)();try{i=e!==u.current||l.current?e(n.getState()):c.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return a_((function(){u.current=e,c.current=i,l.current=void 0})),a_((function(){function e(){try{var e=u.current(n.getState());if(t(e,c.current))return;c.current=e}catch(e){l.current=e}a({})}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),i}(e,n,r.store,r.subscription)}}var __,T_=x_();function C_(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}__=Qx.unstable_batchedUpdates,Zx=__;var O_=function(e,t){return O_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},O_(e,t)};function I_(e,t){function n(){this.constructor=e}O_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var A_=function(){return A_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A_.apply(this,arguments)},R_=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function N_(e){return null!==e&&"object"==typeof e}function k_(e){return"function"==typeof e}var L_=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),M_=L_,D_=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var t;if(!this.closed){var n=this,r=n._parentOrParents,i=n._unsubscribe,o=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var a=0;a<r.length;++a)r[a].remove(this);if(k_(i))try{i.call(this)}catch(e){t=e instanceof M_?P_(e.errors):[e]}if(R_(o)){a=-1;for(var s=o.length;++a<s;){var l=o[a];if(N_(l))try{l.unsubscribe()}catch(e){t=t||[],e instanceof M_?t=t.concat(P_(e.errors)):t.push(e)}}}if(t)throw new M_(t)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function P_(e){return e.reduce((function(e,t){return e.concat(t instanceof M_?t.errors:t)}),[])}var U_=function(e){function t(t,n){return e.call(this)||this}return I_(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(D_),j_=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return I_(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(U_),B_=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return I_(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(j_),F_=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),H_=function(e){function t(n,r){void 0===r&&(r=F_.now);var i=e.call(this,n,(function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()}))||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return I_(t,e),t.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(F_),z_=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I_(t,e),t}(H_))(B_),V_=!1,G_={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,V_=e},get useDeprecatedSynchronousErrorHandling(){return V_}};function W_(e){setTimeout((function(){throw e}),0)}var q_={closed:!0,next:function(e){},error:function(e){if(G_.useDeprecatedSynchronousErrorHandling)throw e;W_(e)},complete:function(){}},Y_=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),X_=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=q_;break;case 1:if(!n){o.destination=q_;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new $_(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new $_(o,n,r,i)}return o}return I_(t,e),t.prototype[Y_]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(D_),$_=function(e){function t(t,n,r,i){var o,a=e.call(this)||this;a._parentSubscriber=t;var s=a;return k_(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==q_&&(k_((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=o,a._error=r,a._complete=i,a}return I_(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;G_.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=G_.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):W_(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;W_(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};G_.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),G_.useDeprecatedSynchronousErrorHandling)throw e;W_(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!G_.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return G_.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(W_(t),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(X_),K_=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Q_(e){return e}function J_(e){return 0===e.length?Q_:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var Z_=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof X_)return e;if(e[Y_])return e[Y_]()}return e||t||n?new X_(e,t,n):new X_(q_)}(e,t,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||G_.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),G_.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){G_.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof X_?r:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=eT(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}}),r,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[K_]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:J_(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=eT(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))},e.create=function(t){return new e(t)},e}();function eT(e){if(e||(e=G_.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var tT=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),nT=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return I_(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(D_),rT=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return I_(t,e),t}(X_),iT=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return I_(t,e),t.prototype[Y_]=function(){return new rT(this)},t.prototype.lift=function(e){var t=new oT(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new tT;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new tT;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new tT;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new tT;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new tT;return this.hasError?(e.error(this.thrownError),D_.EMPTY):this.isStopped?(e.complete(),D_.EMPTY):(this.observers.push(e),new nT(this,e))},t.prototype.asObservable=function(){var e=new Z_;return e.source=this,e},t.create=function(e,t){return new oT(e,t)},t}(Z_),oT=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return I_(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):D_.EMPTY},t}(iT),aT=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};function sT(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var lT=sT(),uT=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function cT(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var fT=function(e){if(e&&"function"==typeof e[K_])return r=e,function(e){var t=r[K_]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(uT(e))return aT(e);if(cT(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,W_),e};if(e&&"function"==typeof e[lT])return t=e,function(e){for(var n=t[lT]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,i=N_(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function dT(e,t){return new Z_((function(n){var r=new D_,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function hT(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[K_]}(e))return function(e,t){return new Z_((function(n){var r=new D_;return r.add(t.schedule((function(){var i=e[K_]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(cT(e))return function(e,t){return new Z_((function(n){var r=new D_;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(uT(e))return dT(e,t);if(function(e){return e&&"function"==typeof e[lT]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new Z_((function(n){var r,i=new D_;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[lT](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof Z_?e:new Z_(fT(e))}var pT,gT=new Z_((function(e){return e.complete()}));function mT(e){return e&&"function"==typeof e.schedule}function vT(e,t){return t?dT(e,t):new Z_(aT(e))}function yT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return mT(n)?(e.pop(),dT(e,n)):vT(e)}pT||(pT={});var bT=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return yT(this.value);case"E":return t=this.error,new Z_((function(e){return e.error(t)}));case"C":return e?function(e){return new Z_((function(t){return e.schedule((function(){return t.complete()}))}))}(e):gT}var e,t;throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function ET(e,t){return void 0===t&&(t=0),function(n){return n.lift(new wT(e,t))}}var wT=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ST(e,this.scheduler,this.delay))},e}(),ST=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return I_(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new xT(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(bT.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(bT.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(bT.createComplete()),this.unsubscribe()},t}(X_),xT=function(){return function(e,t){this.notification=e,this.destination=t}}();function _T(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new TT(e,t))}}var TT=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new CT(e,this.project,this.thisArg))},e}(),CT=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return I_(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(X_),OT=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return I_(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(X_);function IT(e,t,n,r,i){if(void 0===i&&(i=new OT(e,n,r)),!i.closed)return t instanceof Z_?t.subscribe(i):fT(t)(i)}var AT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I_(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(X_);function RT(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t?function(r){return r.pipe(RT((function(n,r){return hT(e(n,r)).pipe(_T((function(e,i){return t(n,e,r,i)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new NT(e,n))})}var NT=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new kT(e,this.project,this.concurrent))},e}(),kT=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return I_(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=new OT(this,t,n),i=this.destination;i.add(r);var o=IT(this,e,void 0,void 0,r);o!==r&&i.add(o)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(AT),LT=1,MT=function(){return Promise.resolve()}(),DT={};function PT(e){return e in DT&&(delete DT[e],!0)}var UT=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return I_(t,e),t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=(i=t.flush.bind(t,null),o=LT++,DT[o]=!0,MT.then((function(){return PT(o)&&i()})),o)));var i,o},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(PT(n),t.scheduled=void 0)},t}(j_),jT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return I_(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(H_),BT=new jT(UT);function FT(e){return!R_(e)&&e-parseFloat(e)+1>=0}var HT=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=BT);var i=e.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=r,(!FT(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=BT),i}return I_(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=BT),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(Z_);function zT(e,t){return void 0===t&&(t=0),function(n){return n.lift(new VT(e,t))}}var VT=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new HT(t,this.delay,this.scheduler).subscribe(e)},e}();function GT(e,t){return function(n){return n.lift(new WT(e,t))}}var WT=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new qT(e,this.predicate,this.thisArg))},e}(),qT=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return I_(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(X_),YT=function(e,t){return e===t||"function"==typeof t&&e===t.toString()},XT=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return e.pipe(GT((function(e){var n=e.type,r=t.length;if(1===r)return YT(n,t[0]);for(var i=0;i<r;i++)if(YT(n,t[i]))return!0;return!1})))}},$T=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}}(),KT=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.source=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),$T(t,null,[{key:"of",value:function(){return new this(yT.apply(void 0,arguments))}},{key:"from",value:function(e,t){return new this(hT(e,t))}}]),$T(t,[{key:"lift",value:function(e){var n=new t(this);return n.operator=e,n}},{key:"ofType",value:function(){return XT.apply(void 0,arguments)(this)}}]),t}(Z_),QT=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(function(e){var t=r.__notifier.subscribe(e);return t&&!t.closed&&e.next(r.value),t})));return r.value=n,r.__notifier=new iT,r.__subscription=e.subscribe((function(e){e!==r.value&&(r.value=e,r.__notifier.next(e))})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Z_),JT=n(3360);n(8661);const ZT=function(e){function t(e,r,l,u,d){for(var h,p,g,m,E,S=0,x=0,_=0,T=0,C=0,k=0,M=g=h=0,P=0,U=0,j=0,B=0,F=l.length,H=F-1,z="",V="",G="",W="";P<F;){if(p=l.charCodeAt(P),P===H&&0!==x+T+_+S&&(0!==x&&(p=47===x?10:47),T=_=S=0,F++,H++),0===x+T+_+S){if(P===H&&(0<U&&(z=z.replace(f,"")),0<z.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt(P)}p=59}switch(p){case 123:for(h=(z=z.trim()).charCodeAt(0),g=1,B=++P;P<F;){switch(p=l.charCodeAt(P)){case 123:g++;break;case 125:g--;break;case 47:switch(p=l.charCodeAt(P+1)){case 42:case 47:e:{for(M=P+1;M<H;++M)switch(l.charCodeAt(M)){case 47:if(42===p&&42===l.charCodeAt(M-1)&&P+2!==M){P=M+1;break e}break;case 10:if(47===p){P=M+1;break e}}P=M}}break;case 91:p++;case 40:p++;case 34:case 39:for(;P++<H&&l.charCodeAt(P)!==p;);}if(0===g)break;P++}if(g=l.substring(B,P),0===h&&(h=(z=z.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<U&&(z=z.replace(f,"")),p=z.charCodeAt(1)){case 100:case 109:case 115:case 45:U=r;break;default:U=N}if(B=(g=t(r,U,g,p,d+1)).length,0<L&&(E=s(3,g,U=n(N,z,j),r,I,O,B,p,d,u),z=U.join(""),void 0!==E&&0===(B=(g=E.trim()).length)&&(p=0,g="")),0<B)switch(p){case 115:z=z.replace(w,a);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===R||2===R&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===u&&(V+=g,g="")}else g=""}else g=t(r,n(r,z,j),g,u,d+1);G+=g,g=j=U=M=h=0,z="",p=l.charCodeAt(++P);break;case 125:case 59:if(1<(B=(z=(0<U?z.replace(f,""):z).trim()).length))switch(0===M&&(h=z.charCodeAt(0),45===h||96<h&&123>h)&&(B=(z=z.replace(" ",":")).length),0<L&&void 0!==(E=s(1,z,r,e,I,O,V.length,u,d,u))&&0===(B=(z=E.trim()).length)&&(z="\0\0"),h=z.charCodeAt(0),p=z.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){W+=z+l.charAt(P);break}default:58!==z.charCodeAt(B-1)&&(V+=i(z,h,p,z.charCodeAt(2)))}j=U=M=h=0,z="",p=l.charCodeAt(++P)}}switch(p){case 13:case 10:47===x?x=0:0===1+h&&107!==u&&0<z.length&&(U=1,z+="\0"),0<L*D&&s(0,z,r,e,I,O,V.length,u,d,u),O=1,I++;break;case 59:case 125:if(0===x+T+_+S){O++;break}default:switch(O++,m=l.charAt(P),p){case 9:case 32:if(0===T+S+x)switch(C){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===T+x+S&&(U=j=1,m="\f"+m);break;case 108:if(0===T+x+S+A&&0<M)switch(P-M){case 2:112===C&&58===l.charCodeAt(P-3)&&(A=C);case 8:111===k&&(A=k)}break;case 58:0===T+x+S&&(M=P);break;case 44:0===x+_+T+S&&(U=1,m+="\r");break;case 34:case 39:0===x&&(T=T===p?0:0===T?p:T);break;case 91:0===T+x+_&&S++;break;case 93:0===T+x+_&&S--;break;case 41:0===T+x+S&&_--;break;case 40:0===T+x+S&&(0===h&&(2*C+3*k==533||(h=1)),_++);break;case 64:0===x+_+T+S+M+g&&(g=1);break;case 42:case 47:if(!(0<T+S+_))switch(x){case 0:switch(2*p+3*l.charCodeAt(P+1)){case 235:x=47;break;case 220:B=P,x=42}break;case 42:47===p&&42===C&&B+2!==P&&(33===l.charCodeAt(B+2)&&(V+=l.substring(B,P+1)),m="",x=0)}}0===x&&(z+=m)}k=C,C=p,P++}if(0<(B=V.length)){if(U=r,0<L&&void 0!==(E=s(2,V,U,e,I,O,B,u,d,u))&&0===(V=E).length)return W+V+G;if(V=U.join(",")+"{"+V+"}",0!=R*A){switch(2!==R||o(V,2)||(A=0),A){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(y,"::-webkit-input-$1")+V.replace(y,"::-moz-$1")+V.replace(y,":-ms-input-$1")+V}A=0}}return W+V+G}function n(e,t,n){var i=t.trim().split(g);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<o;++s)for(var u=0;u<a;++u)t[l++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===R||2===R&&o(l,1)?"-webkit-"+l+l:l}if(0===R||2===R&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(C,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return h.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(E,"tb");break;case 232:l=a.replace(E,"tb-rl");break;case 220:l=a.replace(E,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(x,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(x,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===T.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),M(2!==t?r:r.replace(_,"$1"),n,t)}function a(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(S," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,o,a,s,l,c){for(var f,d=0,h=t;d<L;++d)switch(f=k[d].call(u,e,h,n,r,i,o,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(M=null,e?"function"!=typeof e?R=1:(R=2,M=e):R=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<L){var i=s(-1,n,r,r,I,O,0,0,0,0);void 0!==i&&"string"==typeof i&&(n=i)}var o=t(N,r,n,0,0);return 0<L&&void 0!==(i=s(-2,o,r,r,I,O,o.length,0,0,0))&&(o=i),A=0,O=I=1,o}var c=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,E=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,T=/stretch|:\s*\w+\-(?:conte|avail)/,C=/([^-])(image-set\()/,O=1,I=1,A=0,R=1,N=[],k=[],L=0,M=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:L=k.length=0;break;default:if("function"==typeof t)k[L++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},eC={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var tC,nC=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,rC=(tC={},function(e){return void 0===tC[e]&&(tC[e]=function(e){return nC.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}(e)),tC[e]});const iC=rC;function oC(){return oC=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},oC.apply(this,arguments)}var aC=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},sC=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,JT.typeOf)(e)},lC=Object.freeze([]),uC=Object.freeze({});function cC(e){return"function"==typeof e}function fC(e){return e.displayName||e.name||"Component"}function dC(e){return e&&"string"==typeof e.styledComponentId}var hC="undefined"!=typeof process&&({NODE_ENV:"production"}.REACT_APP_SC_ATTR||{NODE_ENV:"production"}.SC_ATTR)||"data-styled",pC="active",gC="data-styled-version",mC="/*!sc*/\n",vC="undefined"!=typeof window&&"HTMLElement"in window,yC="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&({NODE_ENV:"production"}.REACT_APP_SC_DISABLE_SPEEDY||{NODE_ENV:"production"}.SC_DISABLE_SPEEDY)||!1,bC={};function EC(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+e+" for more information."+(n.length>0?" Additional arguments: "+n.join(", "):""))}var wC=function(e){var t=document.head,r=e||t,i=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(hC))return r}}(r),a=void 0!==o?o.nextSibling:null;i.setAttribute(hC,pC),i.setAttribute(gC,"5.1.1");var s=n.nc;return s&&i.setAttribute("nonce",s),r.insertBefore(i,a),i},SC=function(){function e(e){var t=this.element=wC(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}EC(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),xC=function(){function e(e){var t=this.element=wC(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),_C=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),TC=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&EC(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=""+this.tag.getRule(o)+mC;return t},e}(),CC=new Map,OC=new Map,IC=1,AC=function(e){if(CC.has(e))return CC.get(e);var t=IC++;return CC.set(e,t),OC.set(t,e),t},RC=function(e){return OC.get(e)},NC=function(e,t){t>=IC&&(IC=t+1),CC.set(e,t),OC.set(t,e)},kC="style["+hC+"]["+gC+'="5.1.1"]',LC=new RegExp("^"+hC+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),MC=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},DC=function(e,t){for(var n=t.innerHTML.split(mC),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(LC);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(NC(u,l),MC(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},PC=vC,UC={isServer:!vC,useCSSOMInjection:!yC},jC=function(){function e(e,t,n){void 0===e&&(e=UC),void 0===t&&(t={}),this.options=oC({},UC,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&vC&&PC&&(PC=!1,function(e){for(var t=document.querySelectorAll(kC),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(hC)!==pC&&(DC(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return AC(e)};var t=e.prototype;return t.reconstructWithOptions=function(t){return new e(oC({},this.options,{},t),this.gs,this.names)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.isServer,n=e.useCSSOMInjection,r=e.target;return t?new _C(r):n?new SC(r):new xC(r)}(this.options),new TC(e)));var e},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(AC(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(AC(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(AC(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=RC(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(void 0!==a&&0!==s.length){var l=hC+".g"+i+'[id="'+o+'"]',u="";void 0!==a&&a.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}'+mC}}}return r}(this)},e}(),BC=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},FC=function(e){return BC(5381,e)},HC=/^\s*\/\/.*$/gm;var zC=Kx.createContext(),VC=(zC.Consumer,Kx.createContext()),GC=(VC.Consumer,new jC),WC=function(e){var t,n,r,i=void 0===e?uC:e,o=i.options,a=void 0===o?uC:o,s=i.plugins,l=void 0===s?lC:s,u=new ZT(a),c=[],f=function(e){var t="/*|*/";function n(t){if(t)try{e(t+"}")}catch(e){}}return function(r,i,o,a,s,l,u,c,f,d){switch(r){case 1:if(0===f&&64===i.charCodeAt(0))return e(i+";"),"";break;case 2:if(0===c)return i+t;break;case 3:switch(c){case 102:case 112:return e(o[0]+i),"";default:return i+(0===d?t:"")}case-2:i.split("/*|*/}").forEach(n)}}}((function(e){c.push(e)})),d=function(e,r,i){return r>0&&-1!==i.slice(0,r).indexOf(n)&&i.slice(r-n.length,r)!==n?"."+t:e};function h(e,i,o,a){void 0===a&&(a="&");var s=e.replace(HC,""),l=i&&o?o+" "+i+" { "+s+" }":s;return t=a,n=i,r=new RegExp("\\"+n+"\\b","g"),u(o||!i?"":i,l)}return u.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},f,function(e){if(-2===e){var t=c;return c=[],t}}])),h.hash=l.length?l.reduce((function(e,t){return t.name||EC(15),BC(e,t.name)}),5381).toString():"",h}();function qC(){return(0,Kx.useContext)(zC)||GC}function YC(){return(0,Kx.useContext)(VC)||WC}var XC=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,WC.apply(void 0,n.stringifyArgs))},this.toString=function(){return EC(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),$C=/([A-Z])/g,KC=/^ms-/;function QC(e){return e.replace($C,"-$1").toLowerCase().replace(KC,"-ms-")}var JC=function(e){return null==e||!1===e||""===e},ZC=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!JC(t[n])){if(sC(t[n]))return r.push.apply(r,e(t[n],n)),r;if(cC(t[n]))return r.push(QC(n)+":",t[n],";"),r;r.push(QC(n)+": "+(i=n,(null==(o=t[n])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||i in eC?String(o).trim():o+"px")+";"))}var i,o;return r})),n?[n+" {"].concat(r,["}"]):r};function eO(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o<a;o+=1)""!==(r=eO(e[o],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return JC(e)?"":dC(e)?"."+e.styledComponentId:cC(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:eO(e(t),t,n):e instanceof XC?n?(e.inject(n),e.getName()):e:sC(e)?ZC(e):e.toString();var s}function tO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return cC(e)||sC(e)?eO(aC(lC,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:eO(aC(e,n))}function nO(e,t,n){if(void 0===n&&(n=uC),!(0,JT.isValidElementType)(t))return EC(1,String(t));var r=function(){return e(t,n,tO.apply(void 0,arguments))};return r.withConfig=function(r){return nO(e,t,oC({},n,{},r))},r.attrs=function(r){return nO(e,t,oC({},n,{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r}var rO=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},iO=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function oO(e,t,n){var r=e[n];rO(t)&&rO(r)?aO(r,t):e[n]=t}function aO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(rO(a))for(var s in a)iO(s)&&oO(e,a[s],s)}return e}var sO=/(a)(d)/gi,lO=function(e){return String.fromCharCode(e+(e>25?39:97))};function uO(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=lO(t%52)+n;return(lO(t%52)+n).replace(sO,"$1-$2")}function cO(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(cC(n)&&!dC(n))return!1}return!0}var fO=function(){function e(e,t){this.rules=e,this.staticRulesId="",this.isStatic=cO(e),this.componentId=t,this.baseHash=FC(t),jC.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId;if(this.isStatic&&!n.hash){if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))return this.staticRulesId;var i=eO(this.rules,e,t).join(""),o=uO(BC(this.baseHash,i.length)>>>0);if(!t.hasNameForId(r,o)){var a=n(i,"."+o,void 0,r);t.insertRules(r,o,a)}return this.staticRulesId=o,o}for(var s=this.rules.length,l=BC(this.baseHash,n.hash),u="",c=0;c<s;c++){var f=this.rules[c];if("string"==typeof f)u+=f;else{var d=eO(f,e,t),h=Array.isArray(d)?d.join(""):d;l=BC(l,h+c),u+=h}}var p=uO(l>>>0);if(!t.hasNameForId(r,p)){var g=n(u,"."+p,void 0,r);t.insertRules(r,p,g)}return p},e}(),dO=(new Set,function(e,t,n){return void 0===n&&(n=uC),e.theme!==n.theme&&e.theme||t||n.theme}),hO=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,pO=/(^-|-$)/g;function gO(e){return e.replace(hO,"-").replace(pO,"")}function mO(e){return"string"==typeof e&&!0}var vO=function(e){return uO(FC(e)>>>0)};function yO(e,t){return e&&t?e+" "+t:e||t}var bO=Kx.createContext();function EO(e){var t=(0,Kx.useContext)(bO),n=(0,Kx.useMemo)((function(){return function(e,t){return e?cC(e)?e(t):Array.isArray(e)||"object"!=typeof e?EC(8):t?oC({},t,{},e):e:EC(14)}(e.theme,t)}),[e.theme,t]);return e.children?Kx.createElement(bO.Provider,{value:n},e.children):null}bO.Consumer;var wO={};function SO(e,t,n){var r=dC(e),i=!mO(e),o=t.displayName,a=void 0===o?function(e){return mO(e)?"styled."+e:"Styled("+fC(e)+")"}(e):o,s=t.componentId,l=void 0===s?function(e,t){var n="string"!=typeof e?"sc":gO(e);wO[n]=(wO[n]||0)+1;var r=n+"-"+vO(n+wO[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):s,u=t.attrs,c=void 0===u?lC:u,f=t.displayName&&t.componentId?gO(t.displayName)+"-"+t.componentId:t.componentId||l,d=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=h?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var p,g=new fO(r?e.componentStyle.rules.concat(n):n,f),m=function(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,a=e.foldedComponentIds,s=e.shouldForwardProp,l=e.styledComponentId,u=e.target;(0,Kx.useDebugValue)(l);var c=function(e,t,n){void 0===e&&(e=uC);var r=oC({},t,{theme:e}),i={};return n.forEach((function(e){var t,n=e;for(t in cC(n)&&(n=n(r)),n)r[t]=i[t]="className"===t?yO(i[t],n[t]):n[t]})),[r,i]}(dO(t,(0,Kx.useContext)(bO),o)||uC,t,r),f=c[0],d=c[1],h=function(e,t,n,r){var i=qC(),o=YC(),a=e.isStatic&&!t?e.generateAndInjectStyles(uC,i,o):e.generateAndInjectStyles(n,i,o);return(0,Kx.useDebugValue)(a),a}(i,r.length>0,f),p=n,g=d.$as||t.$as||d.as||t.as||u,m=mO(g),v=d!==t?oC({},t,{},d):t,y=s||m&&iC,b={};for(var E in v)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?b.as=v[E]:y&&!y(E,iC)||(b[E]=v[E]));return t.style&&d.style!==t.style&&(b.style=oC({},t.style,{},d.style)),b.className=Array.prototype.concat(a,l,h!==l?h:null,t.className,d.className).filter(Boolean).join(" "),b.ref=p,(0,Kx.createElement)(g,b)}(p,e,t)};return m.displayName=a,(p=Kx.forwardRef(m)).attrs=d,p.componentStyle=g,p.displayName=a,p.shouldForwardProp=h,p.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):lC,p.styledComponentId=f,p.target=r?e.target:e,p.withComponent=function(e){var r=t.componentId,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}(t,["componentId"]),o=r&&r+"-"+(mO(e)?e:gO(fC(e)));return SO(e,oC({},i,{attrs:d,componentId:o}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?aO({},e.defaultProps,t):t}}),p.toString=function(){return"."+p.styledComponentId},i&&o_()(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var xO=function(e){return nO(SO,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){xO[e]=xO(e)}));var _O=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=cO(e)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(eO(this.rules,t,n).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){jC.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function TO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=tO.apply(void 0,[e].concat(n)),o="sc-global-"+vO(JSON.stringify(i)),a=new _O(i,o);function s(e){var t=qC(),n=YC(),r=(0,Kx.useContext)(bO),i=(0,Kx.useRef)(null);null===i.current&&(i.current=t.allocateGSInstance(o));var l=i.current;if(a.isStatic)a.renderStyles(l,bC,t,n);else{var u=oC({},e,{theme:dO(e,r,s.defaultProps)});a.renderStyles(l,u,t,n)}return(0,Kx.useEffect)((function(){return function(){return a.removeStyles(l,t)}}),lC),null}return Kx.memo(s)}function CO(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=tO.apply(void 0,[e].concat(n)).join(""),o=vO(i);return new XC(o,[i,o,"@keyframes"])}const OO=xO;var IO=tO(["\n animation: "," 1.5s cubic-bezier(0.62, 0.28, 0.23, 0.99) infinite;\n"],CO(["\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n"])),AO=function(e){var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)};function RO(e){return RO="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},RO(e)}function NO(){NO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==RO(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,c):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),c},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),S(n),c}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function kO(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)}var LO=function(){var e,t=(e=NO().mark((function e(t,n){var r,i,o,a;return NO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(Pw,"/").concat(t),n);case 3:if(r=e.sent,i=r.headers.get("content-type"),r.ok){e.next=7;break}return e.abrupt("return",{error:!0,message:r.statusText,status:r.status});case 7:if("application/json"!==i){e.next=12;break}return e.next=10,r.json();case 10:return o=e.sent,e.abrupt("return",{data:o,error:!1});case 12:return e.abrupt("return",{error:!1});case 15:return e.prev=15,e.t0=e.catch(0),a=e.t0,e.abrupt("return",{error:!0,message:a.message});case 19:case"end":return e.stop()}}),e,null,[[0,15]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){kO(o,r,i,a,s,"next",e)}function s(e){kO(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}();function MO(e,t){return new Z_((function(n){var r,i=new AbortController,o=i.signal,a=!0,s=!1,l=new D_;if(l.add((function(){s=!0,a&&i.abort()})),t){if(t.signal)if(t.signal.aborted)i.abort();else{var u=t.signal,c=function(){o.aborted||i.abort()};u.addEventListener("abort",c),l.add((function(){return u.removeEventListener("abort",c)}))}r=A_({},t,{signal:o})}else r={signal:o};return fetch(e,r).then((function(e){a=!1,n.next(e),n.complete()})).catch((function(e){a=!1,s||n.error(e)})),l}))}function DO(e,t){return"function"==typeof t?function(n){return n.pipe(DO((function(n,r){return hT(e(n,r)).pipe(_T((function(e,i){return t(n,e,r,i)})))})))}:function(t){return t.lift(new PO(e))}}var PO=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new UO(e,this.project))},e}(),UO=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return I_(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new OT(this,t,n),o=this.destination;o.add(i),this.innerSubscription=IT(this,e,void 0,void 0,i),this.innerSubscription!==i&&o.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t}(AT);function jO(e){return function(t){var n=new FO(e),r=t.lift(n);return n.caught=r}}var BO,FO=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new HO(e,this.selector,this.caught))},e}(),HO=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return I_(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var r=new OT(this,void 0,void 0);this.add(r);var i=IT(this,n,void 0,void 0,r);i!==r&&this.add(i)}},t}(AT),zO=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r="/"===e[0]?"":"/",i=n?"".concat(window.location.origin).concat(r).concat(e):e;return MO(i,t).pipe(DO((function(e){var t;return e.ok?null!==(t=e.headers.get("content-type"))&&void 0!==t&&t.startsWith("application/json")?e.json():Promise.resolve({}):yT({error:!0,message:e.statusText})})),jO((function(e){return console.error(e),yT({error:!0,message:e.message})})),_T((function(e){return e.error?e:{data:e,error:!1}})))};function VO(e){return VO="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},VO(e)}function GO(){GO=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==VO(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,c):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),c},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),S(n),c}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function WO(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 qO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WO(Object(n),!0).forEach((function(t){KO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YO(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 XO(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){YO(o,r,i,a,s,"next",e)}function s(e){YO(o,r,i,a,s,"throw",e)}a(void 0)}))}}function $O(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)}}function KO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.DDL="ddl",e.DQL="dql",e.ERROR="error"}(BO||(BO={}));var QO=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),KO(this,"_controllers",[]),KO(this,"abort",(function(){n._controllers.forEach((function(e){e.abort()})),n._controllers=[]})),this._host=t||window.location.origin}var t,n,r,i,o,a;return t=e,n=[{key:"query",value:(a=XO(GO().mark((function e(t,n){var r,i,o,a,s,l;return GO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.queryRaw(t,n);case 2:if((r=e.sent).type!==BO.DQL){e.next=7;break}return i=r.columns,o=r.count,a=r.dataset,s=r.timings,l=a.map((function(e){return e.reduce((function(e,t,n){return qO(qO({},e),{},KO({},i[n].name,t))}),{})})),e.abrupt("return",qO({columns:i,count:o,data:l,timings:s,type:BO.DQL},r.explain?{explain:r.explain}:{}));case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"queryRaw",value:(o=XO(GO().mark((function t(n,r){var i,o,a,s,l,u,c,f,d,h;return GO().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=new AbortController,o=qO(qO({},r),{},{count:!0,src:"con",query:n,timings:!0}),this._controllers.push(i),s=new Date,t.prev=4,t.next=7,fetch("".concat(this._host,"/exec?").concat(e.encodeParams(o)),{signal:i.signal});case 7:a=t.sent,t.next=22;break;case 10:if(t.prev=10,t.t0=t.catch(4),l={position:-1,query:n,type:BO.ERROR},u=qO(qO({},l),{},{error:"An error occured, please try again"}),!(t.t0 instanceof DOMException)){t.next=18;break}return t.next=17,Promise.reject(qO(qO({},l),{},{error:20===t.t0.code?"Cancelled by user":JSON.stringify(t.t0).toString()}));case 17:case 21:case 37:case 43:return t.abrupt("return",t.sent);case 18:return bus.trigger(Rw.MSG_CONNECTION_ERROR,u),t.next=21,Promise.reject(u);case 22:return t.prev=22,(c=this._controllers.indexOf(i))>=0&&this._controllers.splice(c,1),t.finish(22);case 26:if(!a.ok&&400!==a.status){t.next=39;break}return f=1e6*((new Date).getTime()-s.getTime()),t.next=30,a.json();case 30:if(d=t.sent,bus.trigger(Rw.MSG_CONNECTION_OK),!d.ddl){t.next=34;break}return t.abrupt("return",{query:n,type:BO.DDL});case 34:if(!d.error){t.next=38;break}return t.next=37,Promise.reject(qO(qO({},d),{},{type:BO.ERROR}));case 38:return t.abrupt("return",qO(qO({},d),{},{timings:qO(qO({},d.timings),{},{fetch:f}),type:BO.DQL}));case 39:return h={error:"QuestDB is not reachable [".concat(a.status,"]"),position:-1,query:n,type:BO.ERROR},bus.trigger(Rw.MSG_CONNECTION_ERROR,qO(qO({},h),{},{status:a.status})),t.next=43,Promise.reject(h);case 44:case"end":return t.stop()}}),t,this,[[4,10,22,26]])}))),function(e,t){return o.apply(this,arguments)})},{key:"showTables",value:(i=XO(GO().mark((function e(){var t;return GO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.query("tables();");case 2:if((t=e.sent).type!==BO.DQL){e.next=5;break}return e.abrupt("return",qO(qO({},t),{},{data:t.data.slice().sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))}));case 5:return e.abrupt("return",t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"showColumns",value:(r=XO(GO().mark((function e(t){return GO().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.query("SHOW COLUMNS FROM '".concat(t,"';"));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}],n&&$O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();KO(QO,"encodeParams",(function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}));var JO=function(e){return function(t){return t?t.theme.color[e]:void 0}},ZO=n(1627);function eI(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 tI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nI,rI=function(e,t){return(0,ZO.WU)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach((function(t){tI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:"postgresql"},t))};!function(e){e[e.SLOW=1500]="SLOW",e[e.REG=200]="REG",e[e.FAST=70]="FAST"}(nI||(nI={}));var iI=function(e,t){return TO(["\n .","-enter {\n opacity: 0;\n }\n\n .","-enter-active {\n opacity: 1;\n transition: all ","ms;\n }\n\n .","-exit {\n opacity: 1;\n }\n\n .","-exit-active {\n opacity: 0;\n transition: all ","ms;\n }\n"],e,e,t,e,e,t)},oI=tO(["\n .collapse-enter {\n max-height: 0;\n }\n\n .collapse-enter-active {\n max-height: ","px;\n transition: all ","ms;\n }\n\n .collapse-exit {\n max-height: ","px;\n }\n\n .collapse-exit-active {\n max-height: 0;\n transition: all ","ms;\n }\n"],(function(e){return e._height}),(function(e){return e.duration||nI.REG}),(function(e){return e._height}),(function(e){return e.duration||nI.REG})),aI=(nI.FAST,nI.FAST,tO(["\n transition: all ","ms cubic-bezier(0, 0, 0.38, 0.9);\n"],nI.FAST));function sI(){return sI=Object.assign?Object.assign.bind():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},sI.apply(this,arguments)}var lI={fontSize:"md",size:"md",type:"button"},uI=function(e){switch(e.size){case"sm":return"2rem";case"md":default:return"3rem";case"lg":return"5rem"}},cI=tO(["\n display: flex;\n height: ",";\n padding: 0 1rem;\n align-items: center;\n justify-content: center;\n background: transparent;\n border-radius: 4px;\n border: 1px solid transparent;\n outline: 0;\n font-size: ",";\n font-weight: 400;\n line-height: 1.15;\n ",";\n\n svg + span {\n margin-left: 0.5rem;\n }\n"],uI,(function(e){var t=e.fontSize;return e.theme.fontSize[t]}),aI),fI=function(e,t,n){return tO(["\n background: ",";\n color: ",";\n border-color: ",";\n\n &:focus {\n box-shadow: inset 0 0 0 1px ",";\n }\n\n &:hover:not([disabled]) {\n background: ",";\n color: ",";\n border-color: ",";\n }\n\n &:active:not([disabled]) {\n background: ",";\n filter: brightness(90%);\n }\n\n &:disabled {\n cursor: not-allowed;\n background: ",";\n color: ",";\n border-color: ",";\n }\n "],JO(e.background),JO(e.color),JO(e.border),JO("draculaForeground"),JO(t.background),JO(t.color),JO(t.border),JO(t.background),JO(n.background),JO(n.color),JO(n.border))},dI=OO.button.withConfig({displayName:"Button__PrimaryButtonStyled"})(["\n ",";\n ",";\n"],cI,fI({background:"draculaSelection",border:"draculaSelection",color:"draculaForeground"},{background:"draculaComment",border:"draculaSelection",color:"draculaForeground"},{background:"draculaSelection",border:"gray1",color:"gray1"})),hI=function(e,t){return Kx.createElement(dI,sI({},lI,e,{ref:t}))},pI=(0,Kx.forwardRef)(hI);pI.defaultProps=lI;var gI=OO.button.withConfig({displayName:"Button__SecondaryButtonStyled"})(["\n ",";\n ",";\n"],cI,fI({background:"draculaBackground",border:"draculaBackground",color:"draculaForeground"},{background:"draculaComment",border:"draculaComment",color:"draculaForeground"},{background:"gray1",border:"gray1",color:"draculaBackground"})),mI=function(e,t){return Kx.createElement(gI,sI({},lI,e,{ref:t}))},vI=(0,Kx.forwardRef)(mI);vI.defaultProps=lI;var yI=OO.button.withConfig({displayName:"Button__SuccessButtonStyled"})(["\n ",";\n ",";\n"],cI,fI({background:"draculaSelection",border:"draculaSelection",color:"draculaGreen"},{background:"draculaComment",border:"draculaSelection",color:"draculaGreen"},{background:"draculaSelection",border:"gray1",color:"gray1"})),bI=function(e,t){return Kx.createElement(yI,sI({},lI,e,{ref:t}))},EI=(0,Kx.forwardRef)(bI);EI.defaultProps=lI;var wI=OO.button.withConfig({displayName:"Button__ErrorButtonStyled"})(["\n ",";\n ",";\n"],cI,fI({background:"draculaSelection",border:"draculaSelection",color:"draculaRed"},{background:"draculaComment",border:"draculaSelection",color:"draculaRed"},{background:"draculaSelection",border:"gray1",color:"gray1"})),SI=function(e,t){return Kx.createElement(wI,sI({},lI,e,{ref:t}))},xI=(0,Kx.forwardRef)(SI);xI.defaultProps=lI;var _I=OO.button.withConfig({displayName:"Button__TransparentButtonStyled"})(["\n ",";\n ",";\n"],cI,fI({background:"transparent",border:"transparent",color:"draculaForeground"},{background:"draculaComment",border:"transparent",color:"draculaForeground"},{background:"draculaSelection",border:"gray1",color:"gray1"})),TI=function(e,t){return Kx.createElement(_I,sI({},lI,e,{ref:t}))},CI=(0,Kx.forwardRef)(TI);function OI(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}CI.defaultProps=lI;var II=function(e,t){var n=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return OI(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)?OI(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.")}()}((0,Kx.useState)(!1),2),r=n[0],i=n[1],o=function(n){n.key===e&&(null!=t&&t.preventDefault&&n.preventDefault(),i(!0))},a=function(n){n.key===e&&(null!=t&&t.preventDefault&&n.preventDefault(),i(!1))};return(0,Kx.useEffect)((function(){return window.addEventListener("keydown",o),window.addEventListener("keyup",a),function(){window.removeEventListener("keydown",o),window.removeEventListener("keyup",a)}})),r};function AI(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}var RI,NI=function(e,t){(0,Kx.useEffect)((function(){var n=Object.entries(t).reduce((function(e,t){var n=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return AI(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)?AI(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.")}()}(t,2),r=n[0],i=n[1];return"".concat(e," ").concat(r,": ").concat(i,";")}),"z-index: 100;");e.setAttribute("style",n)}),[e,t])};function kI(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return LI(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)?LI(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 LI(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(e){e[e.SM=767]="SM"}(RI||(RI={}));var MI=(0,Kx.createContext)({sm:window.innerWidth<=RI.SM}),DI=function(e){var t=e.children,n=kI((0,Kx.useState)({sm:window.innerWidth<=RI.SM}),2),r=n[0],i=n[1],o=kI((0,Kx.useState)(),2),a=o[0],s=o[1];return(0,Kx.useEffect)((function(){var e=function(e,t,n,r){var i,o=!1,a=0;function s(){i&&clearTimeout(i)}function l(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var f=this,d=Date.now()-a;function h(){a=Date.now(),n.apply(f,u)}function p(){i=void 0}o||(r&&!i&&h(),s(),void 0===r&&d>e?h():!0!==t&&(i=setTimeout(r?p:h,void 0===r?e-d:e)))}return"boolean"!=typeof t&&(r=n,n=t,t=void 0),l.cancel=function(){s(),o=!0},l}(16,(function(){s({sm:window.innerWidth<=RI.SM})}));return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,Kx.useEffect)((function(){a&&!function(e,t){if(C_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!C_(e[n[i]],t[n[i]]))return!1;return!0}(a,r)&&i(a)}),[r,a]),Kx.createElement(MI.Provider,{value:r},t)},PI=function(){return(0,Kx.useContext)(MI)},UI=function(e,t,n,r){(0,Kx.useEffect)((function(){if(clearTimeout(n.current),t&&!document.body.contains(e))return document.body.appendChild(e),void(null!=r&&r());t||(n.current=window.setTimeout((function(){document.body.contains(e)&&document.body.removeChild(e)}),nI.REG))}),[t,e,n,r])},jI=function(e){var t=e.icon,n=e.tooltip,r=e.placement;return Kx.createElement(jR,{modifiers:[{name:"offset",options:{offset:[-15,0]}}],placement:r,trigger:t},Kx.createElement(CN,null,n))};function BI(){return BI=Object.assign?Object.assign.bind():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},BI.apply(this,arguments)}var FI={size:"md",type:"text"},HI=OO.input.withConfig({displayName:"Input__InputStyled"})(["\n height: ",";\n border: none;\n padding: 0 1rem;\n line-height: 1.5;\n outline: none;\n background: ",";\n border-radius: 4px;\n color: ",";\n\n &:focus {\n box-shadow: inset 0 0 0 1px ",";\n }\n\n &::placeholder {\n color: ",";\n }\n"],uI,JO("draculaSelection"),JO("draculaForeground"),JO("draculaForeground"),JO("gray2")),zI=function(e,t){return Kx.createElement(HI,BI({},FI,e,{ref:t}))},VI=(0,Kx.forwardRef)(zI);VI.defaultProps=FI;var GI=["type"];function WI(){return WI=Object.assign?Object.assign.bind():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},WI.apply(this,arguments)}var qI=tO(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]),YI=tO(["\n color: ",";\n font-family: ",";\n font-size: ",";\n font-style: ",";\n font-weight: ",";\n text-transform: ",";\n ",";\n ",";\n"],(function(e){return e.color?JO(e.color):"inherit"}),(function(e){var t=e.code,n=e.theme;return t&&n.fontMonospace}),(function(e){var t=e.size,n=e.theme;return t?n.fontSize[t]:"inherit"}),(function(e){var t=e._style;return null!=t?t:"inherit"}),(function(e){return e.weight}),(function(e){return e.transform}),(function(e){var t=e.align;return t?"text-align: ".concat(t):""}),(function(e){return e.ellipsis&&qI})),XI=OO.label.withConfig({displayName:"Text__TextStyled"})(["\n ",";\n"],YI),$I=function(e){var t=e.type,n=function(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}(e,GI);return Kx.createElement(XI,WI({as:t},n,{type:t}))},KI=$I.defaultProps={color:"black",type:"span"},QI=OO.a.withConfig({displayName:"Link__Wrapper"})(["\n ",";\n text-decoration: none;\n line-height: 1;\n\n &:hover:not([disabled]),\n &:focus:not([disabled]) {\n color: ",";\n }\n"],YI,(function(e){return e.hoverColor?JO(e.hoverColor):"inherit"})),JI=function(e){return Kx.createElement(QI,e)};JI.defaultProps=KI;var ZI=OO.div.withConfig({displayName:"PaneContent"})(["\n display: flex;\n flex-direction: column;\n flex: 1;\n background: ",";\n overflow: auto;\n"],JO("draculaBackground")),eA=OO.div.withConfig({displayName:"PaneMenu"})(["\n position: relative;\n display: flex;\n height: 4rem;\n padding: 0 1rem;\n align-items: center;\n background: ",";\n box-shadow: 0 6px 6px -6px ",";\n border-bottom: 1px solid ",";\n border-top: 1px solid transparent;\n z-index: 5;\n"],JO("draculaBackgroundDarker"),JO("black"),JO("black")),tA=OO.div.withConfig({displayName:"PaneWrapper"})(["\n display: flex;\n flex-direction: column;\n flex: 1;\n"]);function nA(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function rA(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}function iA(e){var t=rA(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function oA(e){return e instanceof rA(e).Element||e instanceof Element}function aA(e){return e instanceof rA(e).HTMLElement||e instanceof HTMLElement}function sA(e){return e?(e.nodeName||"").toLowerCase():null}function lA(e){return(oA(e)?e.ownerDocument:e.document).documentElement}function uA(e){return nA(lA(e)).left+iA(e).scrollLeft}function cA(e){return rA(e).getComputedStyle(e)}function fA(e){var t=cA(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function dA(e,t,n){void 0===n&&(n=!1);var r,i,o=lA(t),a=nA(e),s=aA(t),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==sA(t)||fA(o))&&(l=(r=t)!==rA(r)&&aA(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:iA(r)),aA(t)?((u=nA(t)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=uA(o))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function hA(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function pA(e){return"html"===sA(e)?e:e.assignedSlot||e.parentNode||e.host||lA(e)}function gA(e){return["html","body","#document"].indexOf(sA(e))>=0?e.ownerDocument.body:aA(e)&&fA(e)?e:gA(pA(e))}function mA(e,t){void 0===t&&(t=[]);var n=gA(e),r="body"===sA(n),i=rA(n),o=r?[i].concat(i.visualViewport||[],fA(n)?n:[]):n,a=t.concat(o);return r?a:a.concat(mA(pA(o)))}function vA(e){return["table","td","th"].indexOf(sA(e))>=0}function yA(e){return aA(e)&&"fixed"!==cA(e).position?e.offsetParent:null}function bA(e){for(var t=rA(e),n=yA(e);n&&vA(n)&&"static"===cA(n).position;)n=yA(n);return n&&"body"===sA(n)&&"static"===cA(n).position?t:n||function(e){for(var t=pA(e);aA(t)&&["html","body"].indexOf(sA(t))<0;){var n=cA(t);if("none"!==n.transform||"none"!==n.perspective||"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}var EA="top",wA="bottom",SA="right",xA="left",_A="auto",TA=[EA,wA,SA,xA],CA="start",OA="end",IA="viewport",AA="popper",RA=TA.reduce((function(e,t){return e.concat([t+"-"+CA,t+"-"+OA])}),[]),NA=[].concat(TA,[_A]).reduce((function(e,t){return e.concat([t,t+"-"+CA,t+"-"+OA])}),[]),kA=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function LA(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var MA={placement:"bottom",modifiers:[],strategy:"absolute"};function DA(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function PA(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?MA:i;return function(e,t,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},MA),o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:s,setOptions:function(n){f(),s.options=Object.assign(Object.assign(Object.assign({},o),s.options),n),s.scrollParents={reference:oA(e)?mA(e):e.contextElement?mA(e.contextElement):[],popper:mA(t)};var i,a,u=function(e){var t=LA(e);return kA.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,s.options.modifiers),a=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=u.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:c,options:r});l.push(o||function(){})}})),c.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(DA(t,n)){s.rects={reference:dA(t,bA(n),"fixed"===s.options.strategy),popper:hA(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,l=void 0===a?{}:a,f=i.name;"function"==typeof o&&(s=o({state:s,options:l,name:f,instance:c})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){c.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){f(),u=!0}};if(!DA(e,t))return c;function f(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var UA={passive:!0};const jA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,l=rA(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,UA)})),s&&l.addEventListener("resize",n.update,UA),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,UA)})),s&&l.removeEventListener("resize",n.update,UA)}},data:{}};function BA(e){return e.split("-")[0]}function FA(e){return e.split("-")[1]}function HA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zA(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?BA(i):null,a=i?FA(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(o){case EA:t={x:s,y:n.y-r.height};break;case wA:t={x:s,y:n.y+n.height};break;case SA:t={x:n.x+n.width,y:l};break;case xA:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=o?HA(o):null;if(null!=u){var c="y"===u?"height":"width";switch(a){case CA:t[u]=Math.floor(t[u])-Math.floor(n[c]/2-r[c]/2);break;case OA:t[u]=Math.floor(t[u])+Math.ceil(n[c]/2-r[c]/2)}}return t}var VA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GA(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.offsets,a=e.position,s=e.gpuAcceleration,l=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(o),c=u.x,f=u.y,d=o.hasOwnProperty("x"),h=o.hasOwnProperty("y"),p=xA,g=EA,m=window;if(l){var v=bA(n);v===rA(n)&&(v=lA(n)),i===EA&&(g=wA,f-=v.clientHeight-r.height,f*=s?1:-1),i===xA&&(p=SA,c-=v.clientWidth-r.width,c*=s?1:-1)}var y,b=Object.assign({position:a},l&&VA);return s?Object.assign(Object.assign({},b),{},((y={})[g]=h?"0":"",y[p]=d?"0":"",y.transform=(m.devicePixelRatio||1)<2?"translate("+c+"px, "+f+"px)":"translate3d("+c+"px, "+f+"px, 0)",y)):Object.assign(Object.assign({},b),{},((t={})[g]=h?f+"px":"",t[p]=d?c+"px":"",t.transform="",t))}const WA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=NA.reduce((function(e,n){return e[n]=function(e,t,n){var r=BA(e),i=[xA,EA].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[xA,SA].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}};var qA={left:"right",right:"left",bottom:"top",top:"bottom"};function YA(e){return e.replace(/left|right|bottom|top/g,(function(e){return qA[e]}))}var XA={start:"end",end:"start"};function $A(e){return e.replace(/start|end/g,(function(e){return XA[e]}))}function KA(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function QA(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function JA(e,t){return t===IA?QA(function(e){var t=rA(e),n=lA(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+uA(e),y:s}}(e)):aA(t)?function(e){var t=nA(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):QA(function(e){var t=lA(e),n=iA(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+uA(e),s=-n.scrollTop;return"rtl"===cA(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:o,x:a,y:s}}(lA(e)))}function ZA(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function eR(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function tR(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.boundary,a=void 0===o?"clippingParents":o,s=n.rootBoundary,l=void 0===s?IA:s,u=n.elementContext,c=void 0===u?AA:u,f=n.altBoundary,d=void 0!==f&&f,h=n.padding,p=void 0===h?0:h,g=ZA("number"!=typeof p?p:eR(p,TA)),m=c===AA?"reference":AA,v=e.elements.reference,y=e.rects.popper,b=e.elements[d?m:c],E=function(e,t,n){var r="clippingParents"===t?function(e){var t=mA(e),n=["absolute","fixed"].indexOf(cA(e).position)>=0&&aA(e)?bA(e):e;return oA(n)?t.filter((function(e){return oA(e)&&KA(e,n)})):[]}(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce((function(t,n){var r=JA(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),JA(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(oA(b)?b:b.contextElement||lA(e.elements.popper),a,l),w=nA(v),S=zA({reference:w,element:y,strategy:"absolute",placement:i}),x=QA(Object.assign(Object.assign({},y),S)),_=c===AA?x:w,T={top:E.top-_.top+g.top,bottom:_.bottom-E.bottom+g.bottom,left:E.left-_.left+g.left,right:_.right-E.right+g.right},C=e.modifiersData.offset;if(c===AA&&C){var O=C[i];Object.keys(T).forEach((function(e){var t=[SA,wA].indexOf(e)>=0?1:-1,n=[EA,wA].indexOf(e)>=0?"y":"x";T[e]+=O[n]*t}))}return T}const nR={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,g=n.allowedAutoPlacements,m=t.options.placement,v=BA(m),y=l||(v!==m&&p?function(e){if(BA(e)===_A)return[];var t=YA(e);return[$A(e),t,$A(t)]}(m):[YA(m)]),b=[m].concat(y).reduce((function(e,n){return e.concat(BA(n)===_A?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?NA:l,c=FA(r),f=(c?s?RA:RA.filter((function(e){return FA(e)===c})):TA).filter((function(e){return u.indexOf(e)>=0})),d=f.reduce((function(t,n){return t[n]=tR(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[BA(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),E=t.rects.reference,w=t.rects.popper,S=new Map,x=!0,_=b[0],T=0;T<b.length;T++){var C=b[T],O=BA(C),I=FA(C)===CA,A=[EA,wA].indexOf(O)>=0,R=A?"width":"height",N=tR(t,{placement:C,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),k=A?I?SA:xA:I?wA:EA;E[R]>w[R]&&(k=YA(k));var L=YA(k),M=[];if(o&&M.push(N[O]<=0),s&&M.push(N[k]<=0,N[L]<=0),M.every((function(e){return e}))){_=C,x=!1;break}S.set(C,M)}if(x)for(var D=function(e){var t=b.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},P=p?3:1;P>0&&"break"!==D(P);P--);t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rR(e,t,n){return Math.max(e,Math.min(t,n))}const iR={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,g=void 0===p?0:p,m=tR(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),v=BA(t.placement),y=FA(t.placement),b=!y,E=HA(v),w="x"===E?"y":"x",S=t.modifiersData.popperOffsets,x=t.rects.reference,_=t.rects.popper,T="function"==typeof g?g(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):g,C={x:0,y:0};if(S){if(o){var O="y"===E?EA:xA,I="y"===E?wA:SA,A="y"===E?"height":"width",R=S[E],N=S[E]+m[O],k=S[E]-m[I],L=h?-_[A]/2:0,M=y===CA?x[A]:_[A],D=y===CA?-_[A]:-x[A],P=t.elements.arrow,U=h&&P?hA(P):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=j[O],F=j[I],H=rR(0,x[A],U[A]),z=b?x[A]/2-L-H-B-T:M-H-B-T,V=b?-x[A]/2+L+H+F+T:D+H+F+T,G=t.elements.arrow&&bA(t.elements.arrow),W=G?"y"===E?G.clientTop||0:G.clientLeft||0:0,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][E]:0,Y=S[E]+z-q-W,X=S[E]+V-q,$=rR(h?Math.min(N,Y):N,R,h?Math.max(k,X):k);S[E]=$,C[E]=$-R}if(s){var K="x"===E?EA:xA,Q="x"===E?wA:SA,J=S[w],Z=rR(J+m[K],J,J-m[Q]);S[w]=Z,C[w]=Z-J}t.modifiersData[r]=C}},requiresIfExists:["offset"]},oR={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=n.elements.arrow,o=n.modifiersData.popperOffsets,a=BA(n.placement),s=HA(a),l=[xA,SA].indexOf(a)>=0?"height":"width";if(i&&o){var u=n.modifiersData[r+"#persistent"].padding,c=hA(i),f="y"===s?EA:xA,d="y"===s?wA:SA,h=n.rects.reference[l]+n.rects.reference[s]-o[s]-n.rects.popper[l],p=o[s]-n.rects.reference[s],g=bA(i),m=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-p/2,y=u[f],b=m-c[l]-u[d],E=m/2-c[l]/2+v,w=rR(y,E,b),S=s;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-E,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,i=n.element,o=void 0===i?"[data-popper-arrow]":i,a=n.padding,s=void 0===a?0:a;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&KA(t.elements.popper,o)&&(t.elements.arrow=o,t.modifiersData[r+"#persistent"]={padding:ZA("number"!=typeof s?s:eR(s,TA))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aR(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function sR(e){return[EA,SA,wA,xA].some((function(t){return e[t]>=0}))}var lR=PA({defaultModifiers:[jA,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=zA({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s={placement:BA(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),GA(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),GA(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];aA(i)&&sA(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});aA(r)&&sA(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},WA,nR,iR,oR,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=tR(t,{elementContext:"reference"}),s=tR(t,{altBoundary:!0}),l=aR(a,r),u=aR(s,i,o),c=sR(l),f=sR(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),uR=n(5250),cR=n.n(uR),fR=function(e){return e.reduce((function(e,t){var n=t[0],r=t[1];return e[n]=r,e}),{})},dR="undefined"!=typeof window&&window.document&&window.document.createElement?Kx.useLayoutEffect:Kx.useEffect,hR=[],pR=function(e,t,n){void 0===n&&(n={});var r=Kx.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||hR},o=Kx.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),a=o[0],s=o[1],l=Kx.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,n=Object.keys(t.elements);s({styles:fR(n.map((function(e){return[e,t.styles[e]||{}]}))),attributes:fR(n.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),u=Kx.useMemo((function(){var e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return cR()(r.current,e)?r.current||e:(r.current=e,e)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),c=Kx.useRef();return dR((function(){c.current&&c.current.setOptions(u)}),[u]),dR((function(){if(null!=e&&null!=t){var r=(n.createPopper||lR)(e,t,u);return c.current=r,function(){r.destroy(),c.current=null}}}),[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:a.styles,attributes:a.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};function gR(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}function mR(e,t){return mR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mR(e,t)}function vR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mR(e,t)}function yR(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const bR=Kx.createContext(null);var ER="unmounted",wR="exited",SR="entering",xR="entered",_R="exiting",TR=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=wR,r.appearStatus=SR):i=xR:i=t.unmountOnExit||t.mountOnEnter?ER:wR,r.state={status:i},r.nextCallback=null,r}vR(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ER?{status:wR}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==SR&&n!==xR&&(t=SR):n!==SR&&n!==xR||(t=_R)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===SR?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===wR&&this.setState({status:ER})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Qx.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(o,a),this.safeSetState({status:SR},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:xR},(function(){t.props.onEntered(o,a)}))}))}))):this.safeSetState({status:xR},(function(){t.props.onEntered(o)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Qx.findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:_R},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:wR},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:wR},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Qx.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ER)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,gR(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return Kx.createElement(bR.Provider,{value:null},"function"==typeof n?n(e,r):Kx.cloneElement(Kx.Children.only(n),r))},t}(Kx.Component);function CR(){}TR.contextType=bR,TR.propTypes={},TR.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:CR,onEntering:CR,onEntered:CR,onExit:CR,onExiting:CR,onExited:CR},TR.UNMOUNTED=ER,TR.EXITED=wR,TR.ENTERING=SR,TR.ENTERED=xR,TR.EXITING=_R;const OR=TR;var IR=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=yR(n.className,r):n.setAttribute("class",yR(n.className&&n.className.baseVal||"",r)));var n,r}))},AR=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}vR(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&IR(e,r),i&&IR(e,i),o&&IR(e,o)},n.render=function(){var e=this.props,t=(e.classNames,gR(e,["classNames"]));return Kx.createElement(OR,m_({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Kx.Component);AR.defaultProps={classNames:""},AR.propTypes={};const RR=AR;function NR(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 kR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NR(Object(n),!0).forEach((function(t){LR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MR(e){return function(e){if(Array.isArray(e))return UR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||PR(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 DR(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||PR(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 PR(e,t){if(e){if("string"==typeof e)return UR(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)?UR(e,t):void 0}}function UR(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}var jR=function(e){var t=e.children,n=e.delay,r=e.modifiers,i=e.placement,o=e.trigger,a=DR((0,Kx.useState)(document.createElement("div")),1)[0],s=(0,Kx.useRef)(),l=(0,Kx.useRef)(),u=DR((0,Kx.useState)(!1),2),c=u[0],f=u[1],d=DR((0,Kx.useState)(null),2),h=d[0],p=d[1],g=DR((0,Kx.useState)(null),2),m=g[0],v=g[1],y=pR(h,a,{modifiers:[].concat(MR(r),[{name:"arrow",options:{element:m}},{name:"offset",options:{offset:[0,6]}},{name:"eventListeners",enabled:c}]),placement:i}),b=y.attributes,E=y.styles,w=y.forceUpdate,S=(0,Kx.useCallback)((function(){n?s.current=window.setTimeout((function(){f(!0)}),n):f(!0)}),[n]),x=(0,Kx.useCallback)((function(){clearTimeout(s.current),f(!1)}),[]);return(0,Kx.useEffect)((function(){return function(){clearTimeout(l.current),clearTimeout(s.current),document.body.contains(a)&&document.body.removeChild(a)}}),[a]),NI(a,E.popper),UI(a,c,l,w),Kx.createElement(Kx.Fragment,null,Kx.isValidElement(o)&&Kx.cloneElement(o,{onMouseEnter:S,onMouseLeave:x,ref:p}),Qx.createPortal(Kx.createElement(RR,{classNames:"fade-reg",in:c,timeout:nI.REG,unmountOnExit:!0},Kx.isValidElement(t)&&Kx.cloneElement(t,kR(kR({},b.popper),{},{arrow:{setArrowElement:v,styles:E.arrow}}))),a))};function BR(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 FR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e){return function(e){if(Array.isArray(e))return GR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||VR(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 zR(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||VR(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 VR(e,t){if(e){if("string"==typeof e)return GR(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)?GR(e,t):void 0}}function GR(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}jR.defaultProps={modifiers:[],placement:"auto"};var WR=function(e){var t=e.active,n=e.children,r=e.modifiers,i=e.onToggle,o=e.placement,a=e.trigger,s=zR((0,Kx.useState)(document.createElement("div")),1)[0],l=(0,Kx.useRef)(),u=zR((0,Kx.useState)(!1),2),c=u[0],f=u[1],d=zR((0,Kx.useState)(null),2),h=d[0],p=d[1],g=pR(h,s,{modifiers:[].concat(HR(r),[{name:"eventListeners",enabled:c}]),placement:o}),m=g.attributes,v=g.styles,y=(0,Kx.useCallback)((function(){var e=!c;f(e),i&&i(e)}),[c,i]),b=(0,Kx.useCallback)((function(e){var t=e.target;s.contains(t)||null!=h&&h.contains(t)||(f(!1),i&&i(!1))}),[s,i,h]);return NI(s,v.popper),UI(s,c,l),(0,Kx.useEffect)((function(){f(void 0===t?c||!1:t)}),[t,c]),(0,Kx.useEffect)((function(){return document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),function(){clearTimeout(l.current),document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b),document.body.contains(s)&&document.body.removeChild(s)}}),[s,b]),Kx.createElement(Kx.Fragment,null,Kx.isValidElement(a)&&Kx.cloneElement(a,{onClick:y,ref:p}),Kx.isValidElement(n)&&Kx.createElement(RR,{classNames:"fade-reg",in:c,timeout:nI.REG,unmountOnExit:!0},Kx.createElement(Kx.Fragment,null,Qx.createPortal(Kx.cloneElement(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BR(Object(n),!0).forEach((function(t){FR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},m.popper)),s))))};function qR(){return qR=Object.assign?Object.assign.bind():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},qR.apply(this,arguments)}function YR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XR(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}WR.defaultProps={modifiers:[],placement:"auto"};var $R=Kx.forwardRef((function(e,t){var n=e.children,r=e.iconAttrs,i=(e.iconVerticalAlign,e.iconViewBox),o=e.size,a=e.title,s=function(e,t){if(null==e)return{};var n,r,i=gR(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}(e,["children","iconAttrs","iconVerticalAlign","iconViewBox","size","title"]),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XR(Object(n),!0).forEach((function(t){YR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({viewBox:i,height:void 0!==e.height?e.height:o,width:void 0!==e.width?e.width:o,"aria-hidden":null==a?"true":void 0,focusable:"false",role:null!=a?"img":void 0},r),u=function(e){return Object.keys(e).reduce((function(t,n){return function(e){return iC(e)}(n)&&(t[n]=e[n]),t}),{})}(s);return Kx.createElement("svg",m_({},l,u,{ref:t}),a&&Kx.createElement("title",{key:"icon-title"},a),n)})),KR=OO($R).withConfig({displayName:"StyledIconBase",componentId:"ea9ulj-0"})(["display:inline-block;vertical-align:",";overflow:hidden;"],(function(e){return e.iconVerticalAlign})),QR=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),Kx.createElement("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}))}));function JR(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ZR(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)?ZR(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 ZR(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}QR.displayName="DragIndicator";var eN=TO(["\n html {\n user-select: none;\n cursor: ew-resize !important;\n pointer-events: none;\n }\n"]),tN=TO(["\n html {\n user-select: none;\n cursor: row-resize !important;\n pointer-events: none;\n }\n"]),nN=OO(QR).withConfig({displayName:"Splitter__HorizontalDragIcon"})(["\n position: absolute;\n"]),rN=OO(nN).withConfig({displayName:"Splitter__VerticalDragIcon"})(["\n transform: rotate(90deg);\n"]),iN=tO(["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid rgba(0, 0, 0, 0.1);\n background: ",";\n color: ",";\n\n &:hover {\n background: ",";\n color: ",";\n }\n"],JO("draculaBackgroundDarker"),JO("gray1"),JO("draculaSelection"),JO("draculaForeground")),oN=OO.div.withConfig({displayName:"Splitter__HorizontalWrapper"})(["\n ",";\n width: 1rem;\n height: 100%;\n border-top: none;\n border-bottom: none;\n cursor: ew-resize;\n flex-shrink: 0;\n"],iN),aN=OO.div.withConfig({displayName:"Splitter__VerticalWrapper"})(["\n ",";\n width: 100%;\n height: 1rem;\n border-left: none;\n border-right: none;\n cursor: row-resize;\n flex-shrink: 0;\n"],iN),sN=tO(["\n position: absolute;\n z-index: 20;\n background: ",";\n\n &:hover {\n background: ",";\n }\n"],JO("draculaPurple"),JO("draculaPurple")),lN=OO.div.withConfig({displayName:"Splitter__HorizontalGhost"})(["\n ",";\n width: 1rem;\n top: 0;\n bottom: 0;\n"],sN),uN=OO.div.withConfig({displayName:"Splitter__VerticalGhost"})(["\n ",";\n height: 1rem;\n left: 0;\n right: 0;\n"],sN),cN=function(e){var t=e.children,n=e.fallback,r=e.direction,i=e.max,o=e.min,a=e.onChange,s=JR((0,Kx.useState)(0),2),l=s[0],u=s[1],c=JR((0,Kx.useState)(0),2),f=c[0],d=c[1],h=JR((0,Kx.useState)(0),2),p=h[0],g=h[1],m=JR((0,Kx.useState)(!1),2),v=m[0],y=m[1],b=JR((0,Kx.useState)(),2),E=b[0],w=b[1],S=(0,Kx.useRef)(null),x=(0,Kx.useRef)(null),_=Kx.Children.toArray(t),T=(0,Kx.useCallback)((function(e){e.stopPropagation();var t="horizontal"===r?"clientX":"clientY",n="horizontal"===r?"outerWidth":"outerHeight",a=0;window.TouchEvent&&e instanceof TouchEvent&&(a=e.touches[0][t]),e instanceof MouseEvent&&(a=e[t]),null!=o&&null!=i&&a>o&&a<window[n]-i||null==o&&null!=i&&a<window[n]-i||null==i&&null!=o&&a>o||null==o&&null==i?g(a):null!=o&&a<=o&&x.current&&g(x.current.getBoundingClientRect().left)}),[r,i,o]),C=(0,Kx.useCallback)((function(){document.removeEventListener("mouseup",C),document.removeEventListener("mousemove",T),document.removeEventListener("touchend",C),document.removeEventListener("touchmove",T),y(!1)}),[T]),O=(0,Kx.useCallback)((function(e){var t;if(null!==(t=S.current)&&void 0!==t&&t.parentElement){var n="horizontal"===r?"clientX":"clientY",i="horizontal"===r?"x":"y",o=S.current.parentElement.getBoundingClientRect()[i],a=0;window.TouchEvent&&e.nativeEvent instanceof TouchEvent&&(a=e.nativeEvent.touches[0][n]),e.nativeEvent instanceof MouseEvent&&(a=e.nativeEvent[n]),d(a),u(o),y(!0),document.addEventListener("mouseup",C),document.addEventListener("mousemove",T,{passive:!0}),document.addEventListener("touchend",C),document.addEventListener("touchmove",T,{passive:!0})}}),[r,T,C]);(0,Kx.useEffect)((function(){if(!v&&p&&x.current){var e="horizontal"===r?"width":"height",t=x.current.getBoundingClientRect()[e]+(p-f),n=t<0?0:t;d(0),g(0),w(n),a&&a(n)}}),[r,p,a,f,v]),(0,Kx.useEffect)((function(){w(n)}),[n]);var I={display:"flex",flexGrow:0,flexBasis:null!=E?E:n,flexShrink:0};return 1===_.length?Kx.createElement(Kx.Fragment,null,_[0]):"horizontal"===r?Kx.createElement(Kx.Fragment,null,Kx.isValidElement(_[0])&&Kx.cloneElement(_[0],{ref:x,style:I}),Kx.createElement(oN,{onMouseDown:O,onTouchStart:O,ref:S},Kx.createElement(nN,{size:"16px"})),_[1],p>0&&Kx.createElement(Kx.Fragment,null,Kx.createElement(lN,{style:{left:"".concat(p-l,"px")}}),Kx.createElement(eN,null))):Kx.createElement(Kx.Fragment,null,Kx.isValidElement(_[0])&&Kx.cloneElement(_[0],{ref:x,style:I}),Kx.createElement(aN,{onMouseDown:O,onTouchStart:O,ref:S},Kx.createElement(rN,{size:"16px"})),_[1],p>0&&Kx.createElement(Kx.Fragment,null,Kx.createElement(uN,{style:{top:"".concat(p-l,"px")}}),Kx.createElement(tN,null)))},fN=OO.div.withConfig({displayName:"SwitchButton__Wrapper"})(["\n display: flex;\n flex-direction: row;\n\n & > :first-child:not(:last-child) {\n border-radius: 5px 0 0 5px;\n }\n\n & > :last-child:not(:first-child) {\n border-radius: 0 5px 5px 0;\n }\n"]),dN=function(e){var t=e.items,n=e.value,r=e.onSelect;return Kx.createElement(fN,null,t.map((function(e){return Kx.createElement(hN,{item:e,key:e.value,onSelect:r,value:n})})))},hN=function(e){var t=e.item,n=e.value,r=e.onSelect,i=t.value===n?pI:vI,o=(0,Kx.useCallback)((function(){return r(t.value)}),[t,r]);return Kx.createElement(i,{onClick:o},t.text)};function pN(){return pN=Object.assign?Object.assign.bind():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},pN.apply(this,arguments)}JO("draculaBackgroundDarker"),JO("draculaSelection");var gN,mN,vN={direction:"bottom",fontSize:"md",selected:!1,size:"md",type:"button"},yN=tO(["\n display: flex;\n height: ",";\n padding: 0 1rem;\n align-items: center;\n justify-content: center;\n background: transparent;\n border: none;\n outline: 0;\n opacity: ",";\n font-size: ",";\n font-weight: 400;\n line-height: 1.15;\n ",";\n ",";\n ",";\n\n svg + span {\n margin-left: 1rem;\n }\n"],uI,(function(e){return e.selected?"1":"0.5"}),(function(e){var t=e.fontSize;return e.theme.fontSize[t]}),(function(e){var t=e.direction;return"border-".concat(t||vN.direction,": 3px solid transparent;")}),aI,(function(e){return e.disabled&&"pointer-events: none;"})),bN=OO.button.withConfig({displayName:"ToggleButton__PrimaryToggleButtonStyled"})(["\n ",";\n ",";\n"],yN,(mN={background:"draculaComment",color:"draculaForeground"},tO(["\n background: ",";\n color: ",";\n ",";\n\n &:focus {\n box-shadow: inset 0 0 0 1px ",";\n }\n\n &:hover:not([disabled]) {\n background: ",";\n color: ",";\n opacity: 1;\n }\n\n &:active:not([disabled]) {\n background: ",";\n filter: brightness(90%);\n }\n "],JO((gN={background:"draculaBackgroundDarker",color:"draculaForeground"}).background),JO(gN.color),(function(e){var t=e.direction,n=e.selected,r=e.theme;return n&&"border-".concat(t||vN.direction,"-color: ").concat(r.color.draculaPink,";")}),JO("draculaForeground"),JO(mN.background),JO(mN.color),JO(mN.background)))),EN=function(e,t){return Kx.createElement(bN,pN({},vN,e,{ref:t}))},wN=(0,Kx.forwardRef)(EN);wN.defaultProps=vN;var SN=["arrow","children"];var xN=tO(["\n position: absolute;\n width: 7px;\n height: 7px;\n"]),_N=OO.div.withConfig({displayName:"Tooltip__TooltipArrow"})(["\n ",";\n\n &::before {\n ",';\n top: 0;\n left: 0;\n content: "";\n transform: rotate(45deg);\n background: ',";\n border: 1px solid ",";\n border-radius: 1px;\n }\n"],xN,xN,JO("draculaBackgroundDarker"),JO("gray1")),TN=OO.div.withConfig({displayName:"Tooltip__Wrapper"})(["\n position: relative;\n max-width: 260px;\n padding: 1rem;\n background: ",";\n border: 1px solid ",';\n border-radius: 1px;\n\n &[data-popper-placement^="right"] ',' {\n left: -4px;\n\n &::before {\n border-right: none;\n border-top: none;\n }\n }\n\n &[data-popper-placement^="left"] ',' {\n right: -4px;\n\n &::before {\n border-left: none;\n border-bottom: none;\n }\n }\n\n &[data-popper-placement^="top"] ',' {\n bottom: -4px;\n\n &::before {\n border-left: none;\n border-top: none;\n }\n }\n\n &[data-popper-placement^="bottom"] '," {\n top: -4px;\n\n &::before {\n border-right: none;\n border-bottom: none;\n }\n }\n"],JO("draculaBackgroundDarker"),JO("gray1"),_N,_N,_N,_N),CN=function(e){var t=e.arrow,n=e.children,r=function(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}(e,SN);return Kx.createElement(TN,r,Kx.createElement($I,{color:"draculaForeground"},n),t&&Kx.createElement(_N,{ref:t.setArrowElement,style:t.styles}))};function ON(e,t){return function(n){return e(t(n))}}function IN(e,t){return t(e)}function AN(e,t){return function(n){return e(t,n)}}function RN(e,t){return function(){return e(t)}}function NN(e){return function(t){return t[e]}}function kN(e,t){return t(e),e}function LN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}function MN(e){e()}function DN(e){return function(){return e}}function PN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.map(MN)}}function UN(){}function jN(e,t){return e(1,t)}function BN(e,t){e(0,t)}function FN(e){e(2)}function HN(e){return e(4)}function zN(e,t){return jN(e,AN(t,0))}function VN(e,t){var n=e(1,(function(e){n(),t(e)}));return n}function GN(){var e=[];return function(t,n){switch(t){case 2:return void e.splice(0,e.length);case 1:return e.push(n),function(){var t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:return void e.slice().forEach((function(e){e(n)}));default:throw new Error("unrecognized action "+t)}}}function WN(e){var t=e,n=GN();return function(e,r){switch(e){case 1:r(t);break;case 0:t=r;break;case 4:return t}return n(e,r)}}function qN(e){return kN(GN(),(function(t){return zN(e,t)}))}function YN(e,t){return kN(WN(t),(function(t){return zN(e,t)}))}function XN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(IN,e)}}function $N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=XN.apply(void 0,n);return function(t,n){switch(t){case 1:return jN(e,i(n));case 2:return void FN(e);default:throw new Error("unrecognized action "+t)}}}function KN(e,t){return e===t}function QN(e){var t;return void 0===e&&(e=KN),function(n){return function(r){e(t,r)||(t=r,n(r))}}}function JN(e){return function(t){return function(n){e(n)&&t(n)}}}function ZN(e){return function(t){return ON(t,e)}}function ek(e){return function(t){return function(){return t(e)}}}function tk(e,t){return function(n){return function(r){return n(t=e(t,r))}}}function nk(e){return function(t){return function(n){e>0?e--:t(n)}}}function rk(e){var t,n;return function(r){return function(i){t=i,n||(n=setTimeout((function(){n=void 0,r(t)}),e))}}}function ik(e){var t,n;return function(r){return function(i){t=i,n&&clearTimeout(n),n=setTimeout((function(){r(t)}),e)}}}function ok(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Array(t.length),i=0,o=null,a=Math.pow(2,t.length)-1;return t.forEach((function(e,t){var n=Math.pow(2,t);jN(e,(function(e){var s=i;i|=n,r[t]=e,s!==a&&i===a&&o&&(o(),o=null)}))})),function(e){return function(t){var n=function(){return e([t].concat(r))};i===a?n():o=n}}}function ak(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){switch(e){case 1:return PN.apply(void 0,t.map((function(e){return jN(e,n)})));case 2:return;default:throw new Error("unrecognized action "+e)}}}function sk(e,t){return void 0===t&&(t=KN),$N(e,QN(t))}function lk(){for(var e=GN(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=new Array(n.length),o=0,a=Math.pow(2,n.length)-1;return n.forEach((function(t,n){var r=Math.pow(2,n);jN(t,(function(t){i[n]=t,(o|=r)===a&&BN(e,i)}))})),function(t,n){switch(t){case 1:return o===a&&n(i),jN(e,n);case 2:return FN(e);default:throw new Error("unrecognized action "+t)}}}function uk(e,t,n){void 0===t&&(t=[]);var r=(void 0===n?{singleton:!0}:n).singleton;return{id:ck(),constructor:e,dependencies:t,singleton:r}}var ck=function(){return Symbol()};function fk(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 dk(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return fk(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)?fk(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var hk=["children"],pk="undefined"!=typeof document?Kx.useLayoutEffect:Kx.useEffect;function gk(e,t,n){var r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),o=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),s=(0,Kx.createContext)({});function l(e,n){e.propsReady&&BN(e.propsReady,!1);for(var o,a=dk(r);!(o=a()).done;){var s=o.value;BN(e[t.required[s]],n[s])}for(var l,u=dk(i);!(l=u()).done;){var c=l.value;c in n&&BN(e[t.optional[c]],n[c])}e.propsReady&&BN(e.propsReady,!0)}function u(e){return a.reduce((function(n,r){var i,o,a,s;return n[r]=(i=e[t.events[r]],s=function(){return o&&o()},function(e,t){switch(e){case 1:if(t){if(a===t)return;return s(),a=t,o=jN(i,t)}return s(),UN;case 2:return s(),void(a=null);default:throw new Error("unrecognized action "+e)}}),n}),{})}var c=(0,Kx.forwardRef)((function(c,f){var d=c.children,h=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}(c,hk),p=(0,Kx.useState)((function(){return kN(function(e){var t=new Map;return function e(n){var r=n.id,i=n.constructor,o=n.dependencies,a=n.singleton;if(a&&t.has(r))return t.get(r);var s=i(o.map((function(t){return e(t)})));return a&&t.set(r,s),s}(e)}(e),(function(e){return l(e,h)}))})),g=p[0],m=(0,Kx.useState)(RN(u,g))[0];return pk((function(){for(var e,t=dk(a);!(e=t()).done;){var n=e.value;n in h&&jN(m[n],h[n])}return function(){Object.values(m).map(FN)}}),[h,m,g]),pk((function(){l(g,h)})),(0,Kx.useImperativeHandle)(f,DN(function(e){return o.reduce((function(n,r){return n[r]=function(n){BN(e[t.methods[r]],n)},n}),{})}(g))),(0,Kx.createElement)(s.Provider,{value:g},n?(0,Kx.createElement)(n,function(e,t){for(var n={},r={},i=0,o=e.length;i<o;)r[e[i]]=1,i+=1;for(var a in t)r.hasOwnProperty(a)||(n[a]=t[a]);return n}([].concat(r,i,a),h),d):d)}));return{Component:c,usePublisher:function(e){return(0,Kx.useCallback)(AN(BN,(0,Kx.useContext)(s)[e]),[e])},useEmitterValue:function(e){var t=(0,Kx.useContext)(s)[e],n=(0,Kx.useState)(RN(HN,t)),r=n[0],i=n[1];return pk((function(){return jN(t,(function(e){e!==r&&i(DN(e))}))}),[t,r]),r},useEmitter:function(e,t){var n=(0,Kx.useContext)(s)[e];pk((function(){return jN(n,t)}),[t,n])}}}function mk(){return mk=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},mk.apply(this,arguments)}function vk(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function yk(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 bk(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return yk(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)?yk(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Ek,wk,Sk,xk="undefined"!=typeof document?Kx.useLayoutEffect:Kx.useEffect;(Sk=wk||(wk={}))[Sk.DEBUG=0]="DEBUG",Sk[Sk.INFO=1]="INFO",Sk[Sk.WARN=2]="WARN",Sk[Sk.ERROR=3]="ERROR";var _k=((Ek={})[wk.DEBUG]="debug",Ek[wk.INFO]="log",Ek[wk.WARN]="warn",Ek[wk.ERROR]="error",Ek),Tk=uk((function(){var e=WN(wk.ERROR);return{log:WN((function(t,n,r){var i;void 0===r&&(r=wk.INFO),r>=(null!=(i=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?i:HN(e))&&console[_k[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)})),logLevel:e}}),[],{singleton:!0});function Ck(e,t){void 0===t&&(t=!0);var n=(0,Kx.useRef)(null),r=function(e){};if("undefined"!=typeof ResizeObserver){var i=new ResizeObserver((function(t){var n=t[0].target;null!==n.offsetParent&&e(n)}));r=function(e){e&&t?(i.observe(e),n.current=e):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Ok(e,t){return void 0===t&&(t=!0),Ck(e,t).callbackRef}function Ik(e,t,n,r,i,o){return Ck((function(n){for(var a=function(e,t,n,r){var i=e.length;if(0===i)return null;for(var o=[],a=0;a<i;a++){var s=e.item(a);if(s&&void 0!==s.dataset.index){var l=parseInt(s.dataset.index),u=parseFloat(s.dataset.knownSize),c=t(s,"offsetHeight");if(0===c&&r("Zero-sized element, this should not happen",{child:s},wk.ERROR),c!==u){var f=o[o.length-1];0===o.length||f.size!==c||f.endIndex!==l-1?o.push({startIndex:l,endIndex:l,size:c}):o[o.length-1].endIndex++}}}return o}(n.children,t,0,i),s=n.parentElement;!s.dataset.virtuosoScroller;)s=s.parentElement;var l=o?o.scrollTop:"window"===s.firstElementChild.dataset.viewportType?window.pageYOffset||document.documentElement.scrollTop:s.scrollTop;r({scrollTop:Math.max(l,0),scrollHeight:(null!=o?o:s).scrollHeight,viewportHeight:(null!=o?o:s).offsetHeight}),null!==a&&e(a)}),n)}function Ak(e,t){return Math.round(e.getBoundingClientRect()[t])}function Rk(e,t,n,r,i){void 0===r&&(r=UN);var o=(0,Kx.useRef)(null),a=(0,Kx.useRef)(null),s=(0,Kx.useRef)(null),l=(0,Kx.useCallback)((function(n){var r=n.target,i=r===window||r===document?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,o=r===window?document.documentElement.scrollHeight:r.scrollHeight,l=r===window?window.innerHeight:r.offsetHeight;e({scrollTop:Math.max(i,0),scrollHeight:o,viewportHeight:l}),null!==a.current&&(i===a.current||i<=0||i===r.scrollHeight-Ak(r,"height"))&&(a.current=null,t(!0),s.current&&(clearTimeout(s.current),s.current=null))}),[e,t]);return(0,Kx.useEffect)((function(){var e=i||o.current;return r(i||o.current),l({target:e}),e.addEventListener("scroll",l,{passive:!0}),function(){r(null),e.removeEventListener("scroll",l)}}),[o,l,n,r,i]),{scrollerRef:o,scrollByCallback:function(e){o.current.scrollBy(e)},scrollToCallback:function(n){var r=o.current;if(r&&(!("offsetHeight"in r)||0!==r.offsetHeight)){var i,l,u,c="smooth"===n.behavior;if(r===window?(l=Math.max(Ak(document.documentElement,"height"),document.documentElement.scrollHeight),i=window.innerHeight,u=document.documentElement.scrollTop):(l=r.scrollHeight,i=Ak(r,"height"),u=r.scrollTop),n.top=Math.ceil(Math.max(Math.min(l-i,n.top),0)),Math.abs(i-l)<1.01||n.top===u)return e({scrollTop:u,scrollHeight:l,viewportHeight:i}),void(c&&t(!0));c?(a.current=n.top,s.current&&clearTimeout(s.current),s.current=setTimeout((function(){s.current=null,a.current=null,t(!0)}),1e3)):a.current=null,r.scrollTo(n)}}}}var Nk=uk((function(){var e=GN(),t=GN(),n=WN(0),r=GN(),i=WN(0),o=GN(),a=GN(),s=WN(0),l=WN(0),u=WN(0),c=GN(),f=GN(),d=WN(!1),h=WN(!1);return zN($N(e,ZN((function(e){return e.scrollTop}))),t),zN($N(e,ZN((function(e){return e.scrollHeight}))),a),zN(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:s,fixedHeaderHeight:l,footerHeight:u,scrollHeight:a,smoothScrollTargetReached:r,react18ConcurrentRendering:h,scrollTo:c,scrollBy:f,statefulScrollTop:i,deviation:n,scrollingInProgress:d}}),[],{singleton:!0}),kk={lvl:0};function Lk(e,t,n,r,i){return void 0===r&&(r=kk),void 0===i&&(i=kk),{k:e,v:t,lvl:n,l:r,r:i}}function Mk(e){return e===kk}function Dk(){return kk}function Pk(e,t){if(Mk(e))return kk;var n=e.k,r=e.l,i=e.r;if(t===n){if(Mk(r))return i;if(Mk(i))return r;var o=Hk(r);return Wk(Vk(e,{k:o[0],v:o[1],l:zk(r)}))}return Wk(Vk(e,t<n?{l:Pk(r,t)}:{r:Pk(i,t)}))}function Uk(e,t,n){if(void 0===n&&(n="k"),Mk(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){var r=Uk(e.r,t,n);return-1/0===r[0]?[e.k,e.v]:r}return Uk(e.l,t,n)}function jk(e,t,n){return Mk(e)?Lk(t,n,1):t===e.k?Vk(e,{k:t,v:n}):function(e){return Xk($k(e))}(Vk(e,t<e.k?{l:jk(e.l,t,n)}:{r:jk(e.r,t,n)}))}function Bk(e,t,n){if(Mk(e))return[];var r=e.k,i=e.v,o=e.r,a=[];return r>t&&(a=a.concat(Bk(e.l,t,n))),r>=t&&r<=n&&a.push({k:r,v:i}),r<=n&&(a=a.concat(Bk(o,t,n))),a}function Fk(e){return Mk(e)?[]:[].concat(Fk(e.l),[{k:e.k,v:e.v}],Fk(e.r))}function Hk(e){return Mk(e.r)?[e.k,e.v]:Hk(e.r)}function zk(e){return Mk(e.r)?e.l:Wk(Vk(e,{r:zk(e.r)}))}function Vk(e,t){return Lk(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function Gk(e){return Mk(e)||e.lvl>e.r.lvl}function Wk(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(Gk(t))return $k(Vk(e,{lvl:r-1}));if(Mk(t)||Mk(t.r))throw new Error("Unexpected empty nodes");return Vk(t.r,{l:Vk(t,{r:t.r.l}),r:Vk(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(Gk(e))return Xk(Vk(e,{lvl:r-1}));if(Mk(n)||Mk(n.l))throw new Error("Unexpected empty nodes");var i=n.l,o=Gk(i)?n.lvl-1:n.lvl;return Vk(i,{l:Vk(e,{r:i.l,lvl:r-1}),r:Xk(Vk(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}function qk(e,t,n){return Mk(e)?[]:Yk(Bk(e,Uk(e,t)[0],n),(function(e){return{index:e.k,value:e.v}}))}function Yk(e,t){var n=e.length;if(0===n)return[];for(var r=t(e[0]),i=r.index,o=r.value,a=[],s=1;s<n;s++){var l=t(e[s]),u=l.index,c=l.value;a.push({start:i,end:u-1,value:o}),i=u,o=c}return a.push({start:i,end:1/0,value:o}),a}function Xk(e){var t=e.r,n=e.lvl;return Mk(t)||Mk(t.r)||t.lvl!==n||t.r.lvl!==n?e:Vk(t,{l:Vk(e,{r:t.l}),lvl:n+1})}function $k(e){var t=e.l;return Mk(t)||t.lvl!==e.lvl?e:Vk(t,{r:Vk(e,{l:t.r})})}function Kk(e,t,n,r){void 0===r&&(r=0);for(var i=e.length-1;r<=i;){var o=Math.floor((r+i)/2),a=n(e[o],t);if(0===a)return o;if(-1===a){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error("Failed binary finding record in array - "+e.join(",")+", searched for "+t)}function Qk(e,t,n){return e[Kk(e,t,n)]}function Jk(e){var t=e.size,n=e.startIndex,r=e.endIndex;return function(e){return e.start===n&&(e.end===r||1/0===e.end)&&e.value===t}}function Zk(e,t){var n=e.index;return t===n?0:t<n?-1:1}function eL(e,t){var n=e.offset;return t===n?0:t<n?-1:1}function tL(e){return{index:e.index,value:e}}function nL(e,t,n){var r=e,i=0,o=0,a=0,s=0;if(0!==t){a=r[s=Kk(r,t-1,Zk)].offset;var l=Uk(n,t-1);i=l[0],o=l[1],r.length&&r[s].size===Uk(n,t)[1]&&(s-=1),r=r.slice(0,s+1)}else r=[];for(var u,c=bk(qk(n,t,1/0));!(u=c()).done;){var f=u.value,d=f.start,h=f.value,p=(d-i)*o+a;r.push({offset:p,size:h,index:d}),i=d,a=p,o=h}return{offsetTree:r,lastIndex:i,lastOffset:a,lastSize:o}}function rL(e,t){var n=t[0],r=t[1];n.length>0&&(0,t[2])("received item sizes",n,wk.DEBUG);var i=e.sizeTree,o=i,a=0;if(r.length>0&&Mk(i)&&2===n.length){var s=n[0].size,l=n[1].size;o=r.reduce((function(e,t){return jk(jk(e,t,s),t+1,l)}),o)}else{var u=function(e,t){for(var n,r=Mk(e)?0:1/0,i=bk(t);!(n=i()).done;){var o=n.value,a=o.size,s=o.startIndex,l=o.endIndex;if(r=Math.min(r,s),Mk(e))e=jk(e,0,a);else{var u=qk(e,s-1,l+1);if(!u.some(Jk(o))){for(var c,f=!1,d=!1,h=bk(u);!(c=h()).done;){var p=c.value,g=p.start,m=p.end,v=p.value;f?(l>=g||a===v)&&(e=Pk(e,g)):(d=v!==a,f=!0),m>l&&l>=g&&v!==a&&(e=jk(e,l+1,v))}d&&(e=jk(e,s,a))}}}return[e,r]}(o,n);o=u[0],a=u[1]}if(o===i)return e;var c=nL(e.offsetTree,a,o),f=c.offsetTree;return{sizeTree:o,offsetTree:f,lastIndex:c.lastIndex,lastOffset:c.lastOffset,lastSize:c.lastSize,groupOffsetTree:r.reduce((function(e,t){return jk(e,t,iL(t,f))}),Dk()),groupIndices:r}}function iL(e,t){if(0===t.length)return 0;var n=Qk(t,e,Zk);return n.size*(e-n.index)+n.offset}function oL(e,t,n){if(function(e){return void 0!==e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var r=aL("LAST"===e.index?n:e.index,t);return Math.max(0,r,Math.min(n,r))}function aL(e,t){if(!sL(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function sL(e){return!Mk(e.groupOffsetTree)}var lL={offsetHeight:"height",offsetWidth:"width"},uL=uk((function(e){var t=e[0].log,n=GN(),r=GN(),i=YN(r,0),o=GN(),a=GN(),s=WN(0),l=WN([]),u=WN(void 0),c=WN(void 0),f=WN((function(e,t){return Ak(e,lL[t])})),d=WN(void 0),h={offsetTree:[],sizeTree:Dk(),groupOffsetTree:Dk(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},p=WN(!1),g=YN($N(n,ok(l,t),tk(rL,h),QN()),h);zN($N(l,JN((function(e){return e.length>0})),ok(g),ZN((function(e){var t=e[0],n=e[1],r=t.reduce((function(e,t,r){return jk(e,t,iL(t,n.offsetTree)||r)}),Dk());return mk({},n,{groupIndices:t,groupOffsetTree:r})}))),g),zN($N(r,ok(g),JN((function(e){return e[0]<e[1].lastIndex})),ZN((function(e){var t=e[1];return[{startIndex:e[0],endIndex:t.lastIndex,size:t.lastSize}]}))),n),zN(u,c);var m=YN($N(u,ZN((function(e){return void 0===e}))),!0);zN($N(c,JN((function(e){return void 0!==e&&Mk(HN(g).sizeTree)})),ZN((function(e){return[{startIndex:0,endIndex:0,size:e}]}))),n);var v=qN($N(n,ok(g),tk((function(e,t){var n=t[1];return{changed:n!==e.sizes,sizes:n}}),{changed:!1,sizes:h}),ZN((function(e){return e.changed}))));jN($N(s,tk((function(e,t){return{diff:e.prev-t,prev:t}}),{diff:0,prev:0}),ZN((function(e){return e.diff}))),(function(e){e>0?(BN(p,!0),BN(o,e)):e<0&&BN(a,e)})),jN($N(s,ok(t)),(function(e){e[0]<0&&(0,e[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},wk.ERROR)}));var y=qN(o);zN($N(o,ok(g),ZN((function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return Fk(n.sizeTree).reduce((function(e,n){var r=n.k,i=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:r+t-1,size:e.prevSize}]),prevIndex:r+t,prevSize:i}}),{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges}))),n);var b=qN($N(a,ok(g),ZN((function(e){return iL(-e[0],e[1].offsetTree)}))));return zN($N(a,ok(g),ZN((function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var r=Fk(n.sizeTree).reduce((function(e,n){var r=n.v;return jk(e,Math.max(0,n.k+t),r)}),Dk());return mk({},n,{sizeTree:r},nL(n.offsetTree,0,r))}))),g),{data:d,totalCount:r,sizeRanges:n,groupIndices:l,defaultItemSize:c,fixedItemSize:u,unshiftWith:o,shiftWith:a,shiftWithOffset:b,beforeUnshiftWith:y,firstItemIndex:s,sizes:g,listRefresh:v,statefulTotalCount:i,trackItemSizes:m,itemSize:f,recalcInProgress:p}}),LN(Tk),{singleton:!0}),cL="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function fL(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&cL||(t.behavior="auto"),t.offset||(t.offset=0),t}var dL=uk((function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.listRefresh,o=e[1],a=o.scrollingInProgress,s=o.viewportHeight,l=o.scrollTo,u=o.smoothScrollTargetReached,c=o.headerHeight,f=o.footerHeight,d=e[2].log,h=GN(),p=WN(0),g=null,m=null,v=null;function y(){g&&(g(),g=null),v&&(v(),v=null),m&&(clearTimeout(m),m=null),BN(a,!1)}return zN($N(h,ok(n,s,r,p,c,f,d),ZN((function(e){var t=e[0],n=e[1],r=e[2],o=e[3],s=e[4],l=e[5],c=e[6],f=e[7],d=fL(t),p=d.align,b=d.behavior,E=d.offset,w=o-1,S=oL(d,n,w),x=iL(S,n.offsetTree)+l;"end"===p?(x=x-r+Uk(n.sizeTree,S)[1],S===w&&(x+=c)):"center"===p?x=x-r/2+Uk(n.sizeTree,S)[1]/2:x-=s,E&&(x+=E);var _=function(e){y(),e?(f("retrying to scroll to",{location:t},wk.DEBUG),BN(h,t)):f("list did not change, scroll successful",{},wk.DEBUG)};if(y(),"smooth"===b){var T=!1;v=jN(i,(function(e){T=T||e})),g=VN(u,(function(){_(T)}))}else g=VN($N(i,(function(e){var t=setTimeout((function(){e(!1)}),50);return function(n){n&&(e(!0),clearTimeout(t))}})),_);return m=setTimeout((function(){y()}),1200),BN(a,!0),f("scrolling from index to",{index:S,top:x,behavior:b},wk.DEBUG),{top:x,behavior:b}}))),l),{scrollToIndex:h,topListHeight:p}}),LN(uL,Nk,Tk),{singleton:!0}),hL="up",pL={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},gL=uk((function(e){var t=e[0],n=t.scrollContainerState,r=t.scrollTop,i=t.viewportHeight,o=t.headerHeight,a=t.footerHeight,s=t.scrollBy,l=WN(!1),u=WN(!0),c=GN(),f=GN(),d=WN(4),h=WN(0),p=qN($N(ak($N(sk(r),nk(1),ek(!0)),$N(sk(r),nk(1),ek(!1),ik(100))),QN())),g=YN($N(ak($N(s,ek(!0)),$N(s,ek(!1),ik(200))),QN()),!1);zN($N(lk(sk(r),sk(h)),ZN((function(e){return e[0]<=e[1]})),QN()),u),zN($N(u,rk(50)),f);var m=qN($N(lk(n,sk(i),sk(o),sk(a),sk(d)),tk((function(e,t){var n,r,i=t[0],o=i.scrollTop,a=i.scrollHeight,s=t[1],l={viewportHeight:s,scrollTop:o,scrollHeight:a};return o+s-a>-t[4]?(o>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-o):(n="SIZE_DECREASED",r=e.state.scrollTop-o||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:n,scrollTopDelta:r}):{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":s<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":o<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:l}}),pL),QN((function(e,t){return e&&e.atBottom===t.atBottom})))),v=YN($N(n,tk((function(e,t){var n=t.scrollTop,r=t.scrollHeight;return e.scrollHeight!==r?e.scrollTop!==n&&n===r-t.viewportHeight?{scrollHeight:r,scrollTop:n,jump:e.scrollTop-n,changed:!0}:{scrollHeight:r,scrollTop:n,jump:0,changed:!0}:{scrollTop:n,scrollHeight:r,jump:0,changed:!1}}),{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),JN((function(e){return e.changed})),ZN((function(e){return e.jump}))),0);zN($N(m,ZN((function(e){return e.atBottom}))),l),zN($N(l,rk(50)),c);var y=WN("down");zN($N(n,ZN((function(e){return e.scrollTop})),QN(),tk((function(e,t){return HN(g)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?hL:"down",prevScrollTop:t}}),{direction:"down",prevScrollTop:0}),ZN((function(e){return e.direction}))),y),zN($N(n,rk(50),ek("none")),y);var b=WN(0);return zN($N(p,JN((function(e){return!e})),ek(0)),b),zN($N(r,rk(100),ok(p),JN((function(e){return!!e[1]})),tk((function(e,t){return[e[1],t[0]]}),[0,0]),ZN((function(e){return e[1]-e[0]}))),b),{isScrolling:p,isAtTop:u,isAtBottom:l,atBottomState:m,atTopStateChange:f,atBottomStateChange:c,scrollDirection:y,atBottomThreshold:d,atTopThreshold:h,scrollVelocity:b,lastJumpDueToItemResize:v}}),LN(Nk)),mL=uk((function(e){var t=e[0].log,n=WN(!1),r=qN($N(n,JN((function(e){return e})),QN()));return jN(n,(function(e){e&&HN(t)("props updated",{},wk.DEBUG)})),{propsReady:n,didMount:r}}),LN(Tk),{singleton:!0}),vL=uk((function(e){var t=e[0],n=t.sizes,r=t.listRefresh,i=t.defaultItemSize,o=e[1].scrollTop,a=e[2].scrollToIndex,s=e[3].didMount,l=WN(!0),u=WN(0);return zN($N(s,ok(u),JN((function(e){return!!e[1]})),ek(!1)),l),jN($N(lk(r,s),ok(l,n,i),JN((function(e){var t=e[1],n=e[3];return e[0][1]&&(!Mk(e[2].sizeTree)||void 0!==n)&&!t})),ok(u)),(function(e){var t=e[1];setTimeout((function(){VN(o,(function(){BN(l,!0)})),BN(a,t)}))})),{scrolledToInitialItem:l,initialTopMostItemIndex:u}}),LN(uL,Nk,dL,mL),{singleton:!0});function yL(e){return!!e&&("smooth"===e?"smooth":"auto")}var bL=uk((function(e){var t=e[0],n=t.totalCount,r=t.listRefresh,i=e[1],o=i.isAtBottom,a=i.atBottomState,s=e[2].scrollToIndex,l=e[3].scrolledToInitialItem,u=e[4],c=u.propsReady,f=u.didMount,d=e[5].log,h=e[6].scrollingInProgress,p=WN(!1),g=null;function m(e){BN(s,{index:"LAST",align:"end",behavior:e})}return jN($N(lk($N(sk(n),nk(1)),f),ok(sk(p),o,l,h),ZN((function(e){var t=e[0],n=t[0],r=t[1]&&e[3],i="auto";return r&&(i=function(e,t){return"function"==typeof e?yL(e(t)):t&&yL(e)}(e[1],e[2]||e[4]),r=r&&!!i),{totalCount:n,shouldFollow:r,followOutputBehavior:i}})),JN((function(e){return e.shouldFollow}))),(function(e){var t=e.totalCount,n=e.followOutputBehavior;g&&(g(),g=null),g=VN(r,(function(){HN(d)("following output to ",{totalCount:t},wk.DEBUG),m(n),g=null}))})),jN($N(lk(sk(p),n,c),JN((function(e){return e[0]&&e[2]})),tk((function(e,t){var n=t[1];return{refreshed:e.value===n,value:n}}),{refreshed:!1,value:0}),JN((function(e){return e.refreshed})),ok(p,n)),(function(e){var t=e[1],n=VN(a,(function(e){!t||e.atBottom||"SIZE_INCREASED"!==e.notAtBottomBecause||g||(HN(d)("scrolling to bottom due to increased size",{},wk.DEBUG),m("auto"))}));setTimeout(n,100)})),jN(lk(sk(p),a),(function(e){var t=e[1];e[0]&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&m("auto")})),{followOutput:p}}),LN(uL,gL,dL,vL,mL,Tk,Nk));function EL(e){return e.reduce((function(e,t){return e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e}),{totalCount:0,groupIndices:[]})}var wL=uk((function(e){var t=e[0],n=t.totalCount,r=t.groupIndices,i=t.sizes,o=e[1],a=o.scrollTop,s=o.headerHeight,l=GN(),u=GN(),c=qN($N(l,ZN(EL)));return zN($N(c,ZN(NN("totalCount"))),n),zN($N(c,ZN(NN("groupIndices"))),r),zN($N(lk(a,i,s),JN((function(e){return sL(e[1])})),ZN((function(e){return Uk(e[1].groupOffsetTree,Math.max(e[0]-e[2],0),"v")[0]})),QN(),ZN((function(e){return[e]}))),u),{groupCounts:l,topItemsIndexes:u}}),LN(uL,Nk));function SL(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function xL(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function _L(e,t,n){return"number"==typeof e?n===hL&&"top"===t||"down"===n&&"bottom"===t?e:0:n===hL?"top"===t?e.main:e.reverse:"bottom"===t?e.main:e.reverse}function TL(e,t){return"number"==typeof e?e:e[t]||0}var CL=uk((function(e){var t=e[0],n=t.scrollTop,r=t.viewportHeight,i=t.deviation,o=t.headerHeight,a=t.fixedHeaderHeight,s=GN(),l=WN(0),u=WN(0),c=WN(0),f=YN($N(lk(sk(n),sk(r),sk(o),sk(s,SL),sk(c),sk(l),sk(a),sk(i),sk(u)),ZN((function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=i[0],a=i[1],s=e[4],l=e[6],u=e[7],c=e[8],f=t-u,d=e[5]+l,h=Math.max(r-f,0),p="none",g=TL(c,"top"),m=TL(c,"bottom");return o-=u,a+=r+l,(o+=r+l)>t+d-g&&(p=hL),(a-=u)<t-h+n+m&&(p="down"),"none"!==p?[Math.max(f-r-_L(s,"top",p)-g,0),f-h-l+n+_L(s,"bottom",p)+m]:null})),JN((function(e){return null!=e})),QN(SL)),[0,0]);return{listBoundary:s,overscan:c,topListHeight:l,increaseViewportBy:u,visibleRange:f}}),LN(Nk),{singleton:!0}),OL={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function IL(e,t,n){if(0===e.length)return[];if(!sL(t))return e.map((function(e){return mk({},e,{index:e.index+n,originalIndex:e.index})}));for(var r,i=[],o=qk(t.groupOffsetTree,e[0].index,e[e.length-1].index),a=void 0,s=0,l=bk(e);!(r=l()).done;){var u=r.value;(!a||a.end<u.index)&&(a=o.shift(),s=t.groupIndices.indexOf(a.start)),i.push(mk({},u.index===a.start?{type:"group",index:s}:{index:u.index-(s+1)+n,groupIndex:s},{size:u.size,offset:u.offset,originalIndex:u.index,data:u.data}))}return i}function AL(e,t,n,r,i){var o=0,a=0;if(e.length>0){o=e[0].offset;var s=e[e.length-1];a=s.offset+s.size}var l=o,u=r.lastOffset+(n-r.lastIndex)*r.lastSize-a;return{items:IL(e,r,i),topItems:IL(t,r,i),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:o,offsetBottom:u,top:l,bottom:a,totalCount:n,firstItemIndex:i}}var RL,NL,kL,LL=uk((function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=t.data,o=t.firstItemIndex,a=t.recalcInProgress,s=e[1],l=e[2],u=l.visibleRange,c=l.listBoundary,f=l.topListHeight,d=e[3],h=d.scrolledToInitialItem,p=d.initialTopMostItemIndex,g=e[4].topListHeight,m=e[5],v=e[6].didMount,y=WN([]),b=GN();zN(s.topItemsIndexes,y);var E=YN($N(lk(v,a,sk(u),sk(r),sk(n),sk(p),h,sk(y),sk(o),i),JN((function(e){return e[0]&&!e[1]})),ZN((function(e){var t=e[2],n=t[0],r=t[1],i=e[3],o=e[5],a=e[6],s=e[7],l=e[8],u=e[9],c=e[4],f=c.sizeTree,d=c.offsetTree;if(0===i||0===n&&0===r)return OL;if(Mk(f))return AL(function(e,t,n){if(sL(t)){var r=aL(e,t);return[{index:Uk(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}(o,i),c,u),[],i,c,l);var h=[];if(s.length>0)for(var p,g=s[0],m=s[s.length-1],v=0,y=bk(qk(f,g,m));!(p=y()).done;)for(var b=p.value,E=b.value,w=Math.max(b.start,g),S=Math.min(b.end,m),x=w;x<=S;x++)h.push({index:x,size:E,offset:v,data:u&&u[x]}),v+=E;if(!a)return AL([],h,i,c,l);var _=s.length>0?s[s.length-1]+1:0,T=function(e,t,n,r){return void 0===r&&(r=0),r>0&&(t=Math.max(t,Qk(e,r,Zk).offset)),Yk((o=n,s=Kk(i=e,t,a=eL),l=Kk(i,o,a,s),i.slice(s,l+1)),tL);var i,o,a,s,l}(d,n,r,_);if(0===T.length)return null;var C=i-1;return AL(kN([],(function(e){for(var t,i=bk(T);!(t=i()).done;){var o=t.value,a=o.value,s=a.offset,l=o.start,c=a.size;a.offset<n&&(s+=((l+=Math.floor((n-a.offset)/c))-o.start)*c),l<_&&(s+=(_-l)*c,l=_);for(var f=Math.min(o.end,C),d=l;d<=f&&!(s>=r);d++)e.push({index:d,size:c,offset:s,data:u&&u[d]}),s+=c}})),h,i,c,l)})),JN((function(e){return null!==e})),QN()),OL);return zN($N(i,JN((function(e){return void 0!==e})),ZN((function(e){return e.length}))),r),zN($N(E,ZN(NN("topListHeight"))),g),zN(g,f),zN($N(E,ZN((function(e){return[e.top,e.bottom]}))),c),zN($N(E,ZN((function(e){return e.items}))),b),mk({listState:E,topItemsIndexes:y,endReached:qN($N(E,JN((function(e){return e.items.length>0})),ok(r,i),JN((function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1})),ZN((function(e){return[e[1]-1,e[2]]})),QN(SL),ZN((function(e){return e[0]})))),startReached:qN($N(E,rk(200),JN((function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length})),ZN((function(e){return e.items[0].index})),QN())),rangeChanged:qN($N(E,JN((function(e){return e.items.length>0})),ZN((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),QN(xL))),itemsRendered:b},m)}),LN(uL,wL,CL,vL,dL,gL,mL),{singleton:!0}),ML=uk((function(e){var t=e[0],n=t.sizes,r=t.firstItemIndex,i=t.data,o=e[1].listState,a=e[2].didMount,s=WN(0);return zN($N(a,ok(s),JN((function(e){return 0!==e[1]})),ok(n,r,i),ZN((function(e){var t=e[0][1],n=e[1],r=e[2],i=e[3],o=void 0===i?[]:i,a=0;if(n.groupIndices.length>0)for(var s,l=bk(n.groupIndices);!((s=l()).done||s.value-a>=t);)a++;var u=t+a;return AL(Array.from({length:u}).map((function(e,t){return{index:t,size:0,offset:0,data:o[t]}})),[],u,n,r)}))),o),{initialItemCount:s}}),LN(uL,LL,mL),{singleton:!0}),DL=uk((function(e){var t=e[0].scrollVelocity,n=WN(!1),r=GN(),i=WN(!1);return zN($N(t,ok(i,n,r),JN((function(e){return!!e[1]})),ZN((function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=n.enter;if(r){if((0,n.exit)(t,i))return!1}else if(o(t,i))return!0;return r})),QN()),n),jN($N(lk(n,t,r),ok(i)),(function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])})),{isSeeking:n,scrollSeekConfiguration:i,scrollVelocity:t,scrollSeekRangeChanged:r}}),LN(gL),{singleton:!0}),PL=uk((function(e){var t=e[0].topItemsIndexes,n=WN(0);return zN($N(n,JN((function(e){return e>0})),ZN((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:n}}),LN(LL)),UL=uk((function(e){var t=e[0],n=t.footerHeight,r=t.headerHeight,i=t.fixedHeaderHeight,o=e[1].listState,a=GN(),s=YN($N(lk(n,r,i,o),ZN((function(e){var t=e[3];return e[0]+e[1]+e[2]+t.offsetBottom+t.bottom}))),0);return zN(sk(s),a),{totalListHeight:s,totalListHeightChanged:a}}),LN(Nk,LL),{singleton:!0}),jL=uk((function(e){var t=e[0],n=t.scrollBy,r=t.scrollTop,i=t.deviation,o=t.scrollingInProgress,a=e[1],s=a.isScrolling,l=a.isAtBottom,u=a.atBottomState,c=a.scrollDirection,f=e[3],d=f.beforeUnshiftWith,h=f.shiftWithOffset,p=f.sizes,g=f.recalcInProgress,m=e[4].log,v=qN($N(e[2].listState,ok(a.lastJumpDueToItemResize),tk((function(e,t){var n=e[1],r=t[0],i=r.items,o=r.totalCount,a=r.bottom+r.offsetBottom,s=0;return e[2]===o&&n.length>0&&i.length>0&&(0===i[0].originalIndex&&0===n[0].originalIndex||0!=(s=a-e[3])&&(s+=t[1])),[s,i,o,a]}),[0,[],0,0]),JN((function(e){return 0!==e[0]})),ok(r,c,o,m,l,u),JN((function(e){return!e[3]&&0!==e[1]&&e[2]===hL})),ZN((function(e){var t=e[0][0];return(0,e[4])("Upward scrolling compensation",{amount:t},wk.DEBUG),t}))));return zN($N(v,ok(i),ZN((function(e){return e[1]-e[0]}))),i),jN($N(lk(YN(s,!1),i),JN((function(e){return!e[0]&&0!==e[1]})),ZN((function(e){return e[1]}))),(function(e){e>0?(BN(n,{top:-e,behavior:"auto"}),BN(i,0)):(BN(i,0),VN(r,(function(){BN(g,!1)})),BN(n,{top:-e,behavior:"auto"}))})),zN($N(h,ZN((function(e){return{top:-e}}))),n),zN($N(d,ok(p),ZN((function(e){return e[0]*e[1].lastSize}))),v),{deviation:i}}),LN(Nk,gL,LL,uL,Tk)),BL=uk((function(e){var t=e[0].totalListHeight,n=e[1].didMount,r=e[2].scrollTo,i=WN(0);return jN($N(n,ok(i),JN((function(e){return 0!==e[1]})),ZN((function(e){return{top:e[1]}}))),(function(e){VN($N(t,JN((function(e){return 0!==e}))),(function(){setTimeout((function(){BN(r,e)}))}))})),{initialScrollTop:i}}),LN(UL,mL,Nk),{singleton:!0}),FL=uk((function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,r=WN(!1);return{alignToBottom:r,paddingTopAddition:YN($N(lk(r,t,n),JN((function(e){return e[0]})),ZN((function(e){return Math.max(0,e[1]-e[2])})),QN()),0)}}),LN(Nk,UL),{singleton:!0}),HL=uk((function(e){var t=e[0],n=t.scrollTo,r=t.scrollContainerState,i=GN(),o=GN(),a=GN(),s=WN(!1),l=WN(void 0);return zN($N(lk(i,o),ZN((function(e){var t=e[0],n=t.viewportHeight,r=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:r,viewportHeight:n}}))),r),zN($N(n,ok(o),ZN((function(e){var t=e[0];return mk({},t,{top:t.top+e[1].offsetTop})}))),a),{useWindowScroll:s,customScrollParent:l,windowScrollContainerState:i,windowViewportRect:o,windowScrollTo:a}}),LN(Nk)),zL=["done","behavior"],VL=uk((function(e){var t=e[0],n=t.sizes,r=t.totalCount,i=e[1],o=i.scrollTop,a=i.viewportHeight,s=i.headerHeight,l=i.scrollingInProgress,u=e[2].scrollToIndex,c=GN();return zN($N(c,ok(n,a,r,s,o),ZN((function(e){var t=e[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=t.done,u=t.behavior,c=vk(t,zL),f=null,d=oL(t,n,i-1),h=iL(d,n.offsetTree)+o;return h<a?f=mk({},c,{behavior:u,align:"start"}):h+Uk(n.sizeTree,d)[1]>a+r&&(f=mk({},c,{behavior:u,align:"end"})),f?s&&VN($N(l,nk(1),JN((function(e){return!1===e}))),s):s&&s(),f})),JN((function(e){return null!==e}))),u),{scrollIntoView:c}}),LN(uL,Nk,dL,LL,Tk),{singleton:!0}),GL=["listState","topItemsIndexes"],WL=uk((function(e){return mk({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}),LN(CL,ML,mL,DL,UL,BL,FL,HL,VL)),qL=uk((function(e){var t=e[0],n=t.totalCount,r=t.sizeRanges,i=t.fixedItemSize,o=t.defaultItemSize,a=t.trackItemSizes,s=t.itemSize,l=t.data,u=t.firstItemIndex,c=t.groupIndices,f=t.statefulTotalCount,d=e[1],h=d.initialTopMostItemIndex,p=d.scrolledToInitialItem,g=e[2],m=e[3],v=e[4],y=v.listState,b=v.topItemsIndexes,E=vk(v,GL),w=e[5].scrollToIndex,S=e[7].topItemCount,x=e[8].groupCounts,_=e[9],T=e[10];return zN(E.rangeChanged,_.scrollSeekRangeChanged),zN($N(_.windowViewportRect,ZN(NN("visibleHeight"))),g.viewportHeight),mk({totalCount:n,data:l,firstItemIndex:u,sizeRanges:r,initialTopMostItemIndex:h,scrolledToInitialItem:p,topItemsIndexes:b,topItemCount:S,groupCounts:x,fixedItemHeight:i,defaultItemHeight:o},m,{statefulTotalCount:f,listState:y,scrollToIndex:w,trackItemSizes:a,itemSize:s,groupIndices:c},E,_,g,T)}),LN(uL,vL,Nk,bL,LL,dL,jL,PL,wL,WL,Tk)),YL=(RL=function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"},kL=!1,function(){return kL||(kL=!0,NL=RL()),NL});function XL(e,t){var n=(0,Kx.useRef)(null),r=(0,Kx.useCallback)((function(r){if(null!==r){var i,o,a=r.getBoundingClientRect(),s=a.width;if(t){var l=t.getBoundingClientRect(),u=a.top-l.top;i=l.height-Math.max(0,u),o=u+t.scrollTop}else i=window.innerHeight-Math.max(0,a.top),o=a.top+window.pageYOffset;n.current={offsetTop:o,visibleHeight:i,visibleWidth:s},e(n.current)}}),[e,t]),i=Ck(r),o=i.callbackRef,a=i.ref,s=(0,Kx.useCallback)((function(){r(a.current)}),[r,a]);return(0,Kx.useEffect)((function(){if(t){t.addEventListener("scroll",s);var e=new ResizeObserver(s);return e.observe(t),function(){t.removeEventListener("scroll",s),e.unobserve(t)}}return window.addEventListener("scroll",s),window.addEventListener("resize",s),function(){window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}}),[s,t]),o}var $L=["placeholder"],KL=["style","children"],QL=["style","children"];function JL(e){return e}var ZL=uk((function(){var e=WN((function(e){return"Item "+e})),t=WN(null),n=WN((function(e){return"Group "+e})),r=WN({}),i=WN(JL),o=WN("div"),a=WN(UN),s=function(e,t){return void 0===t&&(t=null),YN($N(r,ZN((function(t){return t[e]})),QN()),t)};return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:a,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}}));function eM(e,t){var n=GN();return jN(n,(function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")})),zN(n,e),n}var tM=uk((function(e){var t=e[0],n=e[1],r={item:eM(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:eM(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:eM(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:eM(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:eM(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:GN(),maxHeightCacheSize:GN(),footer:GN(),header:GN(),HeaderContainer:GN(),FooterContainer:GN(),ItemContainer:GN(),ScrollContainer:GN(),GroupContainer:GN(),ListContainer:GN(),emptyComponent:GN(),scrollSeek:GN()};function i(e,t,r){zN($N(e,ok(n.components),ZN((function(e){var n,i=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),mk({},o,((n={})[t]=i,n))}))),n.components)}return jN(r.adjustForPrependedItems,(function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")})),jN(r.maxHeightCacheSize,(function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")})),jN(r.HeaderContainer,(function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")})),jN(r.FooterContainer,(function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")})),jN(r.scrollSeek,(function(e){var r=e.placeholder,i=vk(e,$L);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),BN(n.components,mk({},HN(n.components),{ScrollSeekPlaceholder:r})),BN(t.scrollSeekConfiguration,i)})),i(r.footer,"Footer","footer"),i(r.header,"Header","header"),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),i(r.emptyComponent,"EmptyPlaceholder","emptyComponent"),i(r.GroupContainer,"Group","GroupContainer"),mk({},t,n,r)}),LN(qL,ZL)),nM=function(e){return Kx.createElement("div",{style:{height:e.height}})},rM={position:YL(),zIndex:1,overflowAnchor:"none"},iM={overflowAnchor:"none"},oM=Kx.memo((function(e){var t=e.showTopList,n=void 0!==t&&t,r=EM("listState"),i=bM("sizeRanges"),o=EM("useWindowScroll"),a=EM("customScrollParent"),s=bM("windowScrollContainerState"),l=bM("scrollContainerState"),u=a||o?s:l,c=EM("itemContent"),f=EM("context"),d=EM("groupContent"),h=EM("trackItemSizes"),p=Ik(i,EM("itemSize"),h,n?UN:u,EM("log"),a),g=p.callbackRef,m=p.ref,v=Kx.useState(0),y=v[0],b=v[1];wM("deviation",(function(e){y!==e&&(m.current.style.marginTop=e+"px",b(e))}));var E=EM("EmptyPlaceholder"),w=EM("ScrollSeekPlaceholder")||nM,S=EM("ListComponent"),x=EM("ItemComponent"),_=EM("GroupComponent"),T=EM("computeItemKey"),C=EM("isSeeking"),O=EM("groupIndices").length>0,I=EM("paddingTopAddition"),A=EM("statefulTotalCount"),R=n?{}:{boxSizing:"border-box",paddingTop:r.offsetTop+I,paddingBottom:r.offsetBottom,marginTop:y};return!n&&0===A&&E?(0,Kx.createElement)(E,uM(E,f)):(0,Kx.createElement)(S,mk({},uM(S,f),{ref:g,style:R,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?r.topItems:r.items).map((function(e){var t=e.originalIndex,n=T(t+r.firstItemIndex,e.data,f);return C?(0,Kx.createElement)(w,mk({},uM(w,f),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?(0,Kx.createElement)(_,mk({},uM(_,f),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:rM}),d(e.index)):(0,Kx.createElement)(x,mk({},uM(x,f),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:iM}),O?c(e.index,e.groupIndex,e.data,f):c(e.index,e.data,f))})))})),aM={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},sM={width:"100%",height:"100%",position:"absolute",top:0},lM={width:"100%",position:YL(),top:0};function uM(e,t){if("string"!=typeof e)return{context:t}}var cM=Kx.memo((function(){var e=EM("HeaderComponent"),t=bM("headerHeight"),n=EM("headerFooterTag"),r=Ok((function(e){return t(Ak(e,"height"))})),i=EM("context");return e?(0,Kx.createElement)(n,{ref:r},(0,Kx.createElement)(e,uM(e,i))):null})),fM=Kx.memo((function(){var e=EM("FooterComponent"),t=bM("footerHeight"),n=EM("headerFooterTag"),r=Ok((function(e){return t(Ak(e,"height"))})),i=EM("context");return e?(0,Kx.createElement)(n,{ref:r},(0,Kx.createElement)(e,uM(e,i))):null}));function dM(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return Kx.memo((function(e){var i=e.style,o=e.children,a=vk(e,KL),s=t("scrollContainerState"),l=r("ScrollerComponent"),u=t("smoothScrollTargetReached"),c=r("scrollerRef"),f=r("context"),d=Rk(s,u,l,c),h=d.scrollerRef,p=d.scrollByCallback;return n("scrollTo",d.scrollToCallback),n("scrollBy",p),(0,Kx.createElement)(l,mk({ref:h,style:mk({},aM,i),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},a,uM(l,f)),o)}))}function hM(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return Kx.memo((function(e){var i=e.style,o=e.children,a=vk(e,QL),s=t("windowScrollContainerState"),l=r("ScrollerComponent"),u=t("smoothScrollTargetReached"),c=r("totalListHeight"),f=r("deviation"),d=r("customScrollParent"),h=r("context"),p=Rk(s,u,l,UN,d),g=p.scrollerRef,m=p.scrollByCallback,v=p.scrollToCallback;return xk((function(){return g.current=d||window,function(){g.current=null}}),[g,d]),n("windowScrollTo",v),n("scrollBy",m),(0,Kx.createElement)(l,mk({style:mk({position:"relative"},i,0!==c?{height:c+f}:{}),"data-virtuoso-scroller":!0},a,uM(l,h)),o)}))}var pM=function(e){var t=e.children,n=Ok(ON(bM("viewportHeight"),(function(e){return Ak(e,"height")})));return Kx.createElement("div",{style:sM,ref:n,"data-viewport-type":"element"},t)},gM=function(e){var t=e.children,n=XL(bM("windowViewportRect"),EM("customScrollParent"));return Kx.createElement("div",{ref:n,style:sM,"data-viewport-type":"window"},t)},mM=function(e){var t=e.children,n=EM("TopItemListComponent"),r=EM("headerHeight"),i=mk({},lM,{marginTop:r+"px"}),o=EM("context");return(0,Kx.createElement)(n||"div",{style:i,context:o},t)},vM=gk(tM,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Kx.memo((function(e){var t=EM("useWindowScroll"),n=EM("topItemsIndexes").length>0,r=EM("customScrollParent"),i=r||t?gM:pM;return Kx.createElement(r||t?xM:SM,mk({},e),Kx.createElement(i,null,Kx.createElement(cM,null),Kx.createElement(oM,null),Kx.createElement(fM,null)),n&&Kx.createElement(mM,null,Kx.createElement(oM,{showTopList:!0})))}))),yM=vM.Component,bM=vM.usePublisher,EM=vM.useEmitterValue,wM=vM.useEmitter,SM=dM({usePublisher:bM,useEmitterValue:EM,useEmitter:wM}),xM=hM({usePublisher:bM,useEmitterValue:EM,useEmitter:wM}),_M={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},TM={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},CM=Math.round,OM=Math.ceil,IM=Math.floor,AM=Math.min,RM=Math.max;function NM(e,t){return Array.from({length:t-e+1}).map((function(t,n){return{index:n+e}}))}var kM=uk((function(e){var t=e[0],n=t.overscan,r=t.visibleRange,i=t.listBoundary,o=e[1],a=o.scrollTop,s=o.viewportHeight,l=o.scrollBy,u=o.scrollTo,c=o.smoothScrollTargetReached,f=o.scrollContainerState,d=e[2],h=e[3],p=e[4],g=p.propsReady,m=p.didMount,v=e[5],y=v.windowViewportRect,b=v.windowScrollTo,E=v.useWindowScroll,w=v.customScrollParent,S=v.windowScrollContainerState,x=WN(0),_=WN(0),T=WN(_M),C=WN({height:0,width:0}),O=WN({height:0,width:0}),I=GN(),A=GN(),R=WN(0);zN($N(m,ok(_),JN((function(e){return 0!==e[1]})),ZN((function(e){return{items:NM(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}}))),T),zN($N(lk(sk(x),r,sk(O,(function(e,t){return e&&e.width===t.width&&e.height===t.height}))),ok(C),ZN((function(e){var t=e[0],n=t[0],r=t[1],i=r[0],o=r[1],a=t[2],s=e[1],l=a.height,u=a.width,c=s.width;if(0===n||0===c)return _M;if(0===u)return TM;var f=DM(c,u),d=f*IM(i/l),h=f*OM(o/l)-1;h=RM(0,AM(n-1,h));var p=NM(d=AM(h,RM(0,d)),h),g=LM(s,a,p),m=g.top,v=g.bottom;return{items:p,offsetTop:m,offsetBottom:OM(n/f)*l-v,top:m,bottom:v,itemHeight:l,itemWidth:u}}))),T),zN($N(C,ZN((function(e){return e.height}))),s),zN($N(lk(C,O,T),ZN((function(e){var t=LM(e[0],e[1],e[2].items);return[t.top,t.bottom]})),QN(SL)),i);var N=qN($N(sk(T),JN((function(e){return e.items.length>0})),ok(x),JN((function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1})),ZN((function(e){return e[1]-1})),QN())),k=qN($N(sk(T),JN((function(e){var t=e.items;return t.length>0&&0===t[0].index})),ek(0),QN())),L=qN($N(sk(T),JN((function(e){return e.items.length>0})),ZN((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),QN(xL)));zN(L,h.scrollSeekRangeChanged),zN($N(I,ok(C,O,x),ZN((function(e){var t=e[1],n=e[2],r=e[3],i=fL(e[0]),o=i.align,a=i.behavior,s=i.offset,l=i.index;"LAST"===l&&(l=r-1);var u=MM(t,n,l=RM(0,l,AM(r-1,l)));return"end"===o?u=CM(u-t.height+n.height):"center"===o&&(u=CM(u-t.height/2+n.height/2)),s&&(u+=s),{top:u,behavior:a}}))),u);var M=YN($N(T,ZN((function(e){return e.offsetBottom+e.bottom}))),0);return zN($N(y,ZN((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),C),mk({totalCount:x,viewportDimensions:C,itemDimensions:O,scrollTop:a,scrollHeight:A,overscan:n,scrollBy:l,scrollTo:u,scrollToIndex:I,smoothScrollTargetReached:c,windowViewportRect:y,windowScrollTo:b,useWindowScroll:E,customScrollParent:w,windowScrollContainerState:S,deviation:R,scrollContainerState:f,initialItemCount:_},h,{gridState:T,totalListHeight:M},d,{startReached:k,endReached:N,rangeChanged:L,propsReady:g})}),LN(CL,Nk,gL,DL,mL,HL));function LM(e,t,n){var r=t.height;return void 0===r||0===n.length?{top:0,bottom:0}:{top:MM(e,t,n[0].index),bottom:MM(e,t,n[n.length-1].index)+r}}function MM(e,t,n){var r=DM(e.width,t.width);return IM(n/r)*t.height}function DM(e,t){return RM(1,IM(e/t))}var PM=["placeholder"],UM=uk((function(){var e=WN((function(e){return"Item "+e})),t=WN({}),n=WN(null),r=WN("virtuoso-grid-item"),i=WN("virtuoso-grid-list"),o=WN(JL),a=WN(UN),s=function(e,n){return void 0===n&&(n=null),YN($N(t,ZN((function(t){return t[e]})),QN()),n)};return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,scrollerRef:a,ListComponent:s("List","div"),ItemComponent:s("Item","div"),ScrollerComponent:s("Scroller","div"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder","div")}})),jM=uk((function(e){var t=e[0],n=e[1],r={item:eM(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:GN(),ScrollContainer:GN(),ListContainer:GN(),emptyComponent:GN(),scrollSeek:GN()};function i(e,t,r){zN($N(e,ok(n.components),ZN((function(e){var n,i=e[0],o=e[1];return console.warn("react-virtuoso: "+r+" property is deprecated. Pass components."+t+" instead."),mk({},o,((n={})[t]=i,n))}))),n.components)}return jN(r.scrollSeek,(function(e){var r=e.placeholder,i=vk(e,PM);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),BN(n.components,mk({},HN(n.components),{ScrollSeekPlaceholder:r})),BN(t.scrollSeekConfiguration,i)})),i(r.ItemContainer,"Item","ItemContainer"),i(r.ListContainer,"List","ListContainer"),i(r.ScrollContainer,"Scroller","ScrollContainer"),mk({},t,n,r)}),LN(kM,UM)),BM=Kx.memo((function(){var e=GM("gridState"),t=GM("listClassName"),n=GM("itemClassName"),r=GM("itemContent"),i=GM("computeItemKey"),o=GM("isSeeking"),a=VM("scrollHeight"),s=GM("ItemComponent"),l=GM("ListComponent"),u=GM("ScrollSeekPlaceholder"),c=GM("context"),f=VM("itemDimensions"),d=Ok((function(e){a(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&f(t.getBoundingClientRect())}));return(0,Kx.createElement)(l,mk({ref:d,className:t},uM(l,c),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map((function(t){var a=i(t.index);return o?(0,Kx.createElement)(u,mk({key:a},uM(u,c),{index:t.index,height:e.itemHeight,width:e.itemWidth})):(0,Kx.createElement)(s,mk({},uM(s,c),{className:n,"data-index":t.index,key:a}),r(t.index,c))})))})),FM=function(e){var t=e.children,n=VM("viewportDimensions"),r=Ok((function(e){n(e.getBoundingClientRect())}));return Kx.createElement("div",{style:sM,ref:r},t)},HM=function(e){var t=e.children,n=XL(VM("windowViewportRect"),GM("customScrollParent"));return Kx.createElement("div",{ref:n,style:sM},t)},zM=gk(jM,{optional:{totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},Kx.memo((function(e){var t=mk({},e),n=GM("useWindowScroll"),r=GM("customScrollParent"),i=r||n?HM:FM;return Kx.createElement(r||n?YM:qM,mk({},t),Kx.createElement(i,null,Kx.createElement(BM,null)))}))),VM=(zM.Component,zM.usePublisher),GM=zM.useEmitterValue,WM=zM.useEmitter,qM=dM({usePublisher:VM,useEmitterValue:GM,useEmitter:WM}),YM=hM({usePublisher:VM,useEmitterValue:GM,useEmitter:WM}),XM=uk((function(){var e=WN((function(e){return Kx.createElement("td",null,"Item $",e)})),t=WN(null),n=WN(null),r=WN({}),i=WN(JL),o=WN(UN),a=function(e,t){return void 0===t&&(t=null),YN($N(r,ZN((function(t){return t[e]})),QN()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,components:r,computeItemKey:i,scrollerRef:o,TableComponent:a("Table","table"),TableHeadComponent:a("TableHead","thead"),TableBodyComponent:a("TableBody","tbody"),TableRowComponent:a("TableRow","tr"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),FillerRow:a("FillerRow")}})),$M=uk((function(e){return mk({},e[0],e[1])}),LN(qL,XM)),KM=function(e){return Kx.createElement("tr",null,Kx.createElement("td",{style:{height:e.height}}))},QM=function(e){return Kx.createElement("tr",null,Kx.createElement("td",{style:{height:e.height,padding:0,border:0}}))},JM=Kx.memo((function(){var e=rD("listState"),t=nD("sizeRanges"),n=rD("useWindowScroll"),r=rD("customScrollParent"),i=nD("windowScrollContainerState"),o=nD("scrollContainerState"),a=r||n?i:o,s=rD("itemContent"),l=rD("trackItemSizes"),u=Ik(t,rD("itemSize"),l,a,rD("log"),r),c=u.callbackRef,f=u.ref,d=Kx.useState(0),h=d[0],p=d[1];iD("deviation",(function(e){h!==e&&(f.current.style.marginTop=e+"px",p(e))}));var g=rD("EmptyPlaceholder"),m=rD("ScrollSeekPlaceholder")||KM,v=rD("FillerRow")||QM,y=rD("TableBodyComponent"),b=rD("TableRowComponent"),E=rD("computeItemKey"),w=rD("isSeeking"),S=rD("paddingTopAddition"),x=rD("firstItemIndex"),_=rD("statefulTotalCount"),T=rD("context");if(0===_&&g)return(0,Kx.createElement)(g,uM(g,T));var C=e.offsetTop+S+h,O=e.offsetBottom,I=C>0?Kx.createElement(v,{height:C,key:"padding-top"}):null,A=O>0?Kx.createElement(v,{height:O,key:"padding-bottom"}):null,R=e.items.map((function(e){var t=e.originalIndex,n=E(t+x,e.data,T);return w?(0,Kx.createElement)(m,mk({},uM(m,T),{key:n,index:e.index,height:e.size,type:e.type||"item"})):(0,Kx.createElement)(b,mk({},uM(b,T),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),s(e.index,e.data,T))}));return(0,Kx.createElement)(y,mk({ref:c,"data-test-id":"virtuoso-item-list"},uM(y,T)),[I].concat(R,[A]))})),ZM=function(e){var t=e.children,n=Ok(ON(nD("viewportHeight"),(function(e){return Ak(e,"height")})));return Kx.createElement("div",{style:sM,ref:n,"data-viewport-type":"element"},t)},eD=function(e){var t=e.children,n=XL(nD("windowViewportRect"),rD("customScrollParent"));return Kx.createElement("div",{ref:n,style:sM,"data-viewport-type":"window"},t)},tD=gk($M,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},Kx.memo((function(e){var t=rD("useWindowScroll"),n=rD("customScrollParent"),r=nD("fixedHeaderHeight"),i=rD("fixedHeaderContent"),o=rD("context"),a=Ok(ON(r,(function(e){return Ak(e,"height")}))),s=n||t?aD:oD,l=n||t?eD:ZM,u=rD("TableComponent"),c=rD("TableHeadComponent"),f=i?Kx.createElement(c,mk({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:a},uM(c,o)),i()):null;return Kx.createElement(s,mk({},e),Kx.createElement(l,null,Kx.createElement(u,mk({style:{borderSpacing:0}},uM(u,o)),[f,Kx.createElement(JM,{key:"TableBody"})])))}))),nD=(tD.Component,tD.usePublisher),rD=tD.useEmitterValue,iD=tD.useEmitter,oD=dM({usePublisher:nD,useEmitterValue:rD,useEmitter:iD}),aD=hM({usePublisher:nD,useEmitterValue:rD,useEmitter:iD}),sD=yM,lD=["height"];function uD(){return uD=Object.assign?Object.assign.bind():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},uD.apply(this,arguments)}var cD=function(e){var t=e.height,n=function(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}(e,lD);return Kx.createElement(sD,uD({style:t?{height:t}:{}},n))},fD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M20.92 2.38A15.72 15.72 0 0 0 17.5 2a8.26 8.26 0 0 0-6 2.06Q9.89 5.67 8.31 7.27c-1.21-.13-4.08-.2-6 1.74a1 1 0 0 0 0 1.41l11.3 11.32a1 1 0 0 0 1.41 0c1.95-2 1.89-4.82 1.77-6l3.21-3.2c3.19-3.19 1.74-9.18 1.68-9.43a1 1 0 0 0-.76-.73zm-2.36 8.75L15 14.67a1 1 0 0 0-.27.9 6.81 6.81 0 0 1-.54 3.94L4.52 9.82a6.67 6.67 0 0 1 4-.5A1 1 0 0 0 9.39 9s1.4-1.45 3.51-3.56A6.61 6.61 0 0 1 17.5 4a14.51 14.51 0 0 1 2.33.2c.24 1.43.62 5.04-1.27 6.93z"}),Kx.createElement("circle",{cx:15.73,cy:8.3,r:2}),Kx.createElement("path",{d:"M5 16c-2 1-2 5-2 5a7.81 7.81 0 0 0 5-2z"}))}));fD.displayName="Rocket";var dD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"m6 20 4-4H7V4H5v12H2zm5-12h9v2h-9zm0 4h7v2h-7zm0-8h11v2H11zm0 12h5v2h-5z"}))}));dD.displayName="SortDown";var hD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M5.536 21.886a1.004 1.004 0 0 0 1.033-.064l13-9a1 1 0 0 0 0-1.644l-13-9A.998.998 0 0 0 5 3v18a1 1 0 0 0 .536.886zM7 4.909 17.243 12 7 19.091V4.909z"}))}));hD.displayName="RightArrow";var pD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 100-16 8 8 0 000 16z"}))}));pD.displayName="CheckboxBlankCircle";var gD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M24 12l-5.657 5.657-1.414-1.414L21.172 12l-4.243-4.243 1.414-1.414L24 12zM2.828 12l4.243 4.243-1.414 1.414L0 12l5.657-5.657L7.07 7.757 2.828 12zm6.96 9H7.66l6.552-18h2.128L9.788 21z"}))}));gD.displayName="CodeSSlash";var mD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 100-16 8 8 0 000 16zM11 7h2v2h-2V7zm0 4h2v6h-2v-6z"}))}));mD.displayName="Information";var vD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M4 8h16V5H4v3zm10 11v-9h-4v9h4zm2 0h4v-9h-4v9zm-8 0v-9H4v9h4zM3 3h18a1 1 0 011 1v16a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1z"}))}));vD.displayName="Table";var yD=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12c0-4.478 2.943-8.268 7-9.542v2.124A8.003 8.003 0 0012 20a8.003 8.003 0 007.418-5h2.124c-1.274 4.057-5.064 7-9.542 7zm9.95-9H11V2.05c.329-.033.663-.05 1-.05 5.523 0 10 4.477 10 10 0 .337-.017.671-.05 1zM13 4.062V11h6.938A8.004 8.004 0 0013 4.062z"}))}));yD.displayName="PieChart";var bD=new QO,ED={quest:bD},wD=(0,Kx.createContext)(ED),SD=function(e){var t=e.children;return Kx.createElement(wD.Provider,{value:{quest:bD}},t)};function xD(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 _D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xD(Object(n),!0).forEach((function(t){TD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CD="questdb-sql",OD=function(e){var t=e.getModel(),n=e.getSelection();return t&&n?t.getValueInRange(n):void 0},ID=function(e){var t=e.editor,n=e.lineNumber,r=e.column,i=e.text;t.executeEdits("",[{range:{startLineNumber:n,startColumn:r,endLineNumber:n,endColumn:r},text:i}])},AD=function(e){var t,n=e.appendAt,r=e.model,i=e.position,o=1===i.lineNumber,a=i.lineNumber===(null==r?void 0:r.getValue().split("\n").length),s=null==r?void 0:r.getLineContent(i.lineNumber),l=a||null==r?void 0:r.getLineContent(i.lineNumber+1),u=!o&&!a,c={prefix:1,suffix:2,lineStartOffset:1,selectStartOffset:0},f=(null!==(t={end:[{when:function(){return o},then:function(){return{prefix:1,suffix:0}}},{when:function(){return!0},then:function(){return{prefix:2,suffix:0,selectStartOffset:1}}}],cursor:[{when:function(){return""===(null==r?void 0:r.getValue())},then:function(){return{prefix:0,suffix:1,lineStartOffset:0}}},{when:function(){return o&&""===s},then:function(){return{prefix:0,lineStartOffset:0,suffix:""===l?0:1}}},{when:function(){return o&&""!==s},then:function(){return{prefix:""===l?1:2,suffix:1,selectStartOffset:1}}},{when:function(){return u&&""===s},then:function(){return{prefix:0,suffix:""===l?1:2}}},{when:function(){return u&&""!==s&&""!==l},then:function(){return{prefix:1,suffix:2}}},{when:function(){return u&&""!==s&&""===l},then:function(){return{prefix:1,suffix:1,selectStartOffset:1}}},{when:function(){return a},then:function(){return{prefix:""===s?1:2,suffix:1,lineStartOffset:1,selectStartOffset:""===s?0:1}}}]}[n].find((function(e){return(0,e.when)()})))&&void 0!==t?t:{then:function(){return c}}).then();return _D(_D({},c),f)},RD=function(e){var t,n=e.model,r=e.position,i=e.lineStartOffset,o=e.newQueryLines;if("cursor"===e.appendAt)return{lineStart:r.lineNumber+i,lineEnd:r.lineNumber+o.length,columnStart:0,columnEnd:o[o.length-1].length+1};var a=(null!==(t=null==n?void 0:n.getValue().split("\n").length)&&void 0!==t?t:0)+i;return{lineStart:a,lineEnd:a+o.length,columnStart:0,columnEnd:o[o.length-1].length+1}},ND=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{appendAt:"cursor"},r=e.getModel();if(r){var i=e.getPosition();if(i){var o=t.split("\n"),a=AD({appendAt:n.appendAt,model:r,position:i}),s=a.prefix,l=a.suffix,u=a.lineStartOffset,c=a.selectStartOffset,f=RD({model:r,position:i,lineStartOffset:u,appendAt:n.appendAt,newQueryLines:o}),d={lineStart:f.lineStart+c,lineEnd:f.lineStart+c+(o.length-1),columnStart:0,columnEnd:f.columnEnd};ID({editor:e,lineNumber:f.lineStart,column:f.columnStart,text:"".concat("\n".repeat(s)).concat(t).concat("\n".repeat(l))}),e.setSelection({startLineNumber:d.lineStart,endLineNumber:d.lineEnd,startColumn:d.columnStart,endColumn:d.columnEnd})}e.focus()}},kD={editorRef:null,monacoRef:null,insertTextAtCursor:function(e){},getValue:function(){},appendQuery:function(e){}},LD=(0,Kx.createContext)(kD),MD=function(e){var t=e.children,n=(0,Kx.useRef)(null),r=(0,Kx.useRef)(null);return Kx.createElement(LD.Provider,{value:{editorRef:n,monacoRef:r,getValue:function(){var e;return null===(e=n.current)||void 0===e?void 0:e.getValue()},insertTextAtCursor:function(e){null!=n&&n.current&&function(e,t){e.trigger("keyboard","type",{text:t}),e.focus()}(n.current,e)},appendQuery:function(e){null!=n&&n.current&&ND(n.current,e)}}},t)},DD=function(){return(0,Kx.useContext)(LD)},PD=OO($I).withConfig({displayName:"Row__Type"})(["\n margin-right: 1rem;\n flex: 0;\n transition: opacity ","ms;\n"],nI.REG),UD=OO($I).withConfig({displayName:"Row__Title"})(["\n cursor: ",";\n"],(function(e){var t=e.kind;return["folder","table"].includes(t)?"pointer":"initial"})),jD=OO(vI).withConfig({displayName:"Row__PlusButton"})(["\n position: absolute;\n right: ",";\n margin-left: 1rem;\n opacity: 0;\n"],(function(e){return e.tooltip?"3rem":"1rem"})),BD=OO.div.withConfig({displayName:"Row__Wrapper"})(["\n position: relative;\n display: flex;\n flex-direction: column;\n padding: 0.5rem 0;\n padding-left: 1rem;\n transition: background ","ms;\n\n &:hover\n ",",\n &:active\n "," {\n opacity: 1;\n }\n\n &:hover,\n &:active {\n background: ",";\n }\n\n &:hover "," {\n opacity: 0;\n }\n"],nI.REG,jD,jD,JO("draculaSelection"),PD),FD=OO.div.withConfig({displayName:"Row__FlexRow"})(["\n display: flex;\n align-items: center;\n"]),HD=OO.span.withConfig({displayName:"Row__Spacer"})(["\n flex: 1;\n"]),zD=OO(mD).withConfig({displayName:"Row__InfoIcon"})(["\n color: ",";\n"],JO("draculaPurple")),VD=OO(fD).withConfig({displayName:"Row__RocketIcon"})(["\n color: ",";\n margin-right: 1rem;\n"],JO("draculaOrange")),GD=OO(dD).withConfig({displayName:"Row__SortDownIcon"})(["\n color: ",";\n margin-right: 0.8rem;\n"],JO("draculaGreen")),WD=OO(hD).withConfig({displayName:"Row__RightArrowIcon"})(["\n color: ",";\n margin-right: 0.8rem;\n cursor: pointer;\n"],JO("gray2")),qD=OO(WD).withConfig({displayName:"Row__DownArrowIcon"})(["\n transform: rotateZ(90deg);\n"]),YD=OO(pD).withConfig({displayName:"Row__DotIcon"})(["\n color: ",";\n margin-right: 1rem;\n"],JO("gray2")),XD=OO(vD).withConfig({displayName:"Row__TitleIcon"})(["\n min-height: 18px;\n min-width: 18px;\n margin-right: 1rem;\n color: ",";\n"],JO("draculaCyan")),$D=OO.div.withConfig({displayName:"Row__InfoIconWrapper"})(["\n display: flex;\n padding: 0 1rem;\n align-items: center;\n justify-content: center;\n"]),KD=OO.div.withConfig({displayName:"Row__PartitionByWrapper"})(["\n margin-right: 1rem;\n display: flex;\n align-items: center;\n"]),QD=OO(yD).withConfig({displayName:"Row__PieChartIcon"})(["\n color: ",";\n margin-right: 0.5rem;\n"],JO("gray2"));const JD=function(e){var t=e.className,n=e.designatedTimestamp,r=e.description,i=e.expanded,o=e.kind,a=e.indexed,s=e.name,l=e.partitionBy,u=e.onClick,c=e.suffix,f=e.tooltip,d=e.type,h=DD().insertTextAtCursor,p=(0,Kx.useCallback)((function(e){e.stopPropagation(),h("table"===o?"'".concat(s,"'"):s)}),[s,o]);return Kx.createElement(BD,{className:t,expanded:i,onClick:u},Kx.createElement(FD,null,"table"===o&&Kx.createElement(XD,{size:"18px"}),"column"===o&&a&&Kx.createElement(jI,{icon:Kx.createElement(VD,{size:"13px"}),placement:"top",tooltip:"Indexed"}),"folder"===o&&i&&Kx.createElement(qD,{size:"14px"}),"folder"===o&&!i&&Kx.createElement(WD,{size:"14px"}),"column"===o&&!a&&s===n&&Kx.createElement(jI,{icon:Kx.createElement(GD,{size:"14px"}),placement:"top",tooltip:"Designated timestamp"}),"column"===o&&!a&&"TIMESTAMP"!==d&&Kx.createElement(YD,{size:"12px"}),Kx.createElement(UD,{color:"draculaForeground",ellipsis:!0,kind:o},s),c,Kx.createElement(HD,null),d&&Kx.createElement(PD,{_style:"italic",color:"draculaPink",transform:"lowercase"},d),"table"===o&&"NONE"!==l&&Kx.createElement(KD,null,Kx.createElement(QD,{size:"14px"}),Kx.createElement($I,{color:"gray2"},l)),["column","table"].includes(o)&&Kx.createElement(jD,{onClick:p,size:"sm",tooltip:f},Kx.createElement(gD,{size:"16px"}),Kx.createElement("span",null,"Add")),f&&r&&Kx.createElement(jI,{icon:Kx.createElement($D,null,Kx.createElement(zD,{size:"10px"})),placement:"right",tooltip:r})),!f&&Kx.createElement($I,{color:"draculaComment"},r))};function ZD(e){return ZD="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},ZD(e)}function eP(){return eP=Object.assign?Object.assign.bind():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},eP.apply(this,arguments)}function tP(){tP=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==ZD(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,c):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),c},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),S(n),c}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function nP(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 rP(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){nP(o,r,i,a,s,"next",e)}function s(e){nP(o,r,i,a,s,"throw",e)}a(void 0)}))}}function iP(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oP(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)?oP(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 oP(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}var aP,sP,lP,uP,cP=OO.ul.withConfig({displayName:"Tree__Ul"})(["\n padding: 0;\n margin: 0;\n"]),fP=OO.li.withConfig({displayName:"Tree__Li"})(["\n list-style: none;\n padding: 0 0 0 1rem;\n"]),dP=function(e){var t=e.name,n=e.kind,r=e.initiallyOpen,i=e.onOpen,o=e.render,a=e.children,s=void 0===a?[]:a,l=e.wrapper,u=iP((0,Kx.useState)(null!=r&&r),2),c=u[0],f=u[1],d=iP((0,Kx.useState)(!1),2),h=d[0],p=d[1],g=iP((0,Kx.useState)(s),2),m=g[0],v=g[1],y=(0,Kx.useRef)(!0),b=(0,Kx.useCallback)(rP(tP().mark((function e(){var t;return tP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={setChildren:function(e){y.current&&v(e)}},"function"!=typeof i){e.next=6;break}return p(!0),e.next=5,i(t);case 5:y.current&&p(!1);case 6:case"end":return e.stop()}}),e)}))),[i]),E=(0,Kx.useCallback)(rP(tP().mark((function e(){return tP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h||c){e.next=3;break}return e.next=3,b();case 3:f(!c);case 4:case"end":return e.stop()}}),e)}))),[c,h,b]);return(0,Kx.useEffect)((function(){var e=function(){var e=rP(tP().mark((function e(){return tP().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.current){e.next=3;break}return e.next=3,b();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return c&&"function"==typeof i&&0===m.length&&!h&&e(),function(){y.current=!1}}),[]),(0,Kx.useEffect)((function(){f(null!=r&&r)}),[r]),Kx.createElement(fP,null,"function"==typeof o?o({toggleOpen:E,isOpen:c,isLoading:h}):Kx.createElement(JD,{kind:null!=n?n:"folder",name:t,onClick:function(){return f(!c)}}),c&&Kx.createElement(pP,{condition:Boolean(l),wrapper:function(e){return Kx.createElement(null!=l?l:Kx.Fragment,{},e)}},Kx.createElement(hP,{root:m})))},hP=function(e){var t=e.root;return Kx.createElement(cP,null,t.map((function(e){return Kx.createElement(dP,eP({key:e.name},e))})))},pP=function(e){var t=e.condition,n=e.wrapper,r=e.children;return t?n(r):r};!function(e){e.BOOTSTRAP="CONSOLE/BOOTSTRAP",e.REFRESH_AUTH_TOKEN="CONSOLE/REFRESH_AUTH_TOKEN",e.SET_CONFIG="CONSOLE/SET_CONFIG",e.SET_MODAL_ID="CONSOLE/SET_MODAL_ID",e.TOGGLE_SIDE_MENU="CONSOLE/TOGGLE_SIDE_MENU"}(aP||(aP={})),function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success"}(sP||(sP={})),function(e){e.ADD_NOTIFICATION="QUERY/ADD_NOTIFICATION",e.CLEANUP_NOTIFICATIONS="QUERY/CLEANUP_NOTIFICATIONS",e.REMOVE_NOTIFICATION="QUERY/REMOVE_NOTIFICATION",e.SET_RESULT="QUERY/SET_RESULT",e.STOP_RUNNING="QUERY/STOP_RUNNING",e.TOGGLE_RUNNING="QUERY/TOGGLE_RUNNING",e.SET_TABLES="QUERY/SET_TABLES"}(lP||(lP={})),function(e){e.SET_CONFIG="TELEMETRY/SET_CONFIG",e.SET_REMOTE_CONFIG="TELEMETRY/SET_REMOTE_CONFIG"}(uP||(uP={}));var gP={baseFontSize:"10px",color:{black:"#191a21",blackAlpha40:"rgba(25, 26, 33, 0.4)",gray1:"#585858",gray2:"#bbbbbb",draculaBackgroundDarker:"#21222c",draculaBackground:"#282a36",draculaForeground:"#f8f8f2",draculaSelection:"#44475a",draculaComment:"#6272a4",draculaRed:"#ff5555",draculaOrange:"#ffb86c",draculaYellow:"#f1fa8c",draculaGreen:"#50fa7b",draculaPurple:"#bd93f9",draculaCyan:"#8be9fd",draculaPink:"#ff79c6",transparent:"transparent",white:"#fafafa"},font:'"Open Sans", -apple-system, BlinkMacSystemFont, Helvetica, Roboto, sans-serif',fontEmoji:'"apple color emoji", "segoe ui emoji", "android emoji", "emojisymbols", "emojione mozilla", "twemoji mozilla", "segoe ui symbol", "noto color emoji"',fontMonospace:'SFMono-Regular, Menlo, Monaco, Consolas,"Liberation Mono", "Courier New", monospace',fontSize:{ms:"1rem",xs:"1.2rem",sm:"1.3rem",md:"1.4rem",lg:"1.5rem",xl:"1.7rem",hg:"3rem"}};const mP={bootstrap:function(){return{type:aP.BOOTSTRAP}},refreshAuthToken:function(e){return{payload:e,type:aP.REFRESH_AUTH_TOKEN}},setConfig:function(e){return{payload:e,type:aP.SET_CONFIG}},setModalId:function(e){return{payload:e,type:aP.SET_MODAL_ID}},toggleSideMenu:function(){return{type:aP.TOGGLE_SIDE_MENU}}};function vP(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 yP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vP(Object(n),!0).forEach((function(t){bP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const EP=mP,wP=function(e){return{payload:yP({createdAt:new Date,type:sP.SUCCESS},e),type:lP.ADD_NOTIFICATION}},SP=function(){return{type:lP.CLEANUP_NOTIFICATIONS}},xP=function(e){return{payload:e,type:lP.SET_RESULT}},_P=function(){return{type:lP.STOP_RUNNING}},TP=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{type:lP.TOGGLE_RUNNING,payload:{isRefresh:e}}},CP=function(e){return{payload:{tables:e},type:lP.SET_TABLES}},OP=function(e){return{payload:e,type:uP.SET_CONFIG}},IP=function(e){return{payload:e,type:uP.SET_REMOTE_CONFIG}};function AP(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),RT(Q_,e)}function RP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return mT(i)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof Z_?e[0]:AP(n)(vT(e,r))}function NP(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function kP(){}var LP=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new MP(e,this.nextOrObserver,this.error,this.complete))},e}(),MP=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o._tapNext=kP,o._tapError=kP,o._tapComplete=kP,o._tapError=r||kP,o._tapComplete=i||kP,k_(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||kP,o._tapError=n.error||kP,o._tapComplete=n.complete||kP),o}return I_(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},t}(X_),DP=new Z_(kP),PP=new H_(j_);function UP(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}var jP,BP=function(e){var t;return null!==(t=localStorage.getItem(e))&&void 0!==t?t:""},FP=function(e,t){return localStorage.setItem(e,t)};!function(e){e.AUTH_PAYLOAD="AUTH_PAYLOAD",e.QUERY_TEXT="query.text",e.EDITOR_LINE="editor.line",e.EDITOR_COL="editor.col",e.EXAMPLE_QUERIES_VISITED="editor.exampleQueriesVisited",e.NOTIFICATION_ENABLED="notification.enabled",e.NOTIFICATION_DELAY="notification.delay",e.EDITOR_SPLITTER_BASIS="splitter.editor.basis",e.RESULTS_SPLITTER_BASIS="splitter.results.basis"}(jP||(jP={}));const HP=[function(e){return e.pipe(XT(aP.BOOTSTRAP),DO((function(){return zO("assets/console-configuration.json").pipe(_T((function(e){if(!e.error)return EP.setConfig(e.data)})),GT((function(e){return!!e})))})))},function(e){return e.pipe(XT(aP.BOOTSTRAP),DO((function(){return null!=BP(jP.AUTH_PAYLOAD)?yT(EP.refreshAuthToken(!0)):DP})))},function(e){return e.pipe(XT(aP.REFRESH_AUTH_TOKEN),DO((function(e){var t,n,r=BP(jP.AUTH_PAYLOAD);if(null!=r)try{var i=JSON.parse(r),o=i.expiry,a=i.refreshRoute;if(null==a)return DP;var s=zO(a).pipe((n=function(e){e.error||FP(jP.AUTH_PAYLOAD,JSON.stringify(e.data))},function(e){return e.lift(new LP(n,void 0,void 0))}),DO((function(){return yT(EP.refreshAuthToken(!1))}))),l=1e3*(null!=o?o:0)-3e4-Date.now();return l>-3e4?function(e,t,n){void 0===e&&(e=0);var r=-1;return FT(t)?r=Number(t)<1?1:Number(t):mT(t)&&(n=t),mT(n)||(n=PP),new Z_((function(t){var i=FT(e)?e:+e-n.now();return n.schedule(UP,i,{index:0,period:r,subscriber:t})}))}(Math.max(0,l)).pipe((t=s,DO((function(){return t})))):e.payload?s:DP}catch(e){return DP}return DP})))}];function zP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;"function"==typeof e[e.length-1]&&(n=e.pop());var r=e;return t.lift(new VP(r,n))}}var VP=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new GP(e,this.observables,this.project))},e}(),GP=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var a=0;a<o;a++)i.toRespond.push(a);for(a=0;a<o;a++){var s=n[a];i.add(IT(i,s,s,a))}return i}return I_(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.values[n]=t;var o=this.toRespond;if(o.length>0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(AT);function WP(e,t){void 0===t&&(t=PP);var n,r=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return function(e){return e.lift(new qP(r,t))}}var qP=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new YP(e,this.delay,this.scheduler))},e}(),YP=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return I_(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new XP(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(bT.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(bT.createComplete()),this.unsubscribe()},t}(X_),XP=function(){return function(e,t){this.time=e,this.notification=t}}();function $P(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 KP(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){QP(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 QP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JP(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ZP(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)?ZP(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 ZP(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}var eU=new QO;const tU=[function(e){return e.pipe(XT(aP.BOOTSTRAP),DO((function(){return hT(eU.query("".concat(kw.CONFIG," limit -1")))})),DO((function(e){return e.type===BO.DQL?yT(OP(e.data[0])):DP})))},function(e,t){return e.pipe(XT(uP.SET_CONFIG),zP(t),DO((function(e){var t=JP(e,2),n=(t[0],t[1]),r=_U.telemetry.getConfig(n);return null!=r&&r.enabled?zO("".concat(Pw,"/config"),{method:"POST",body:JSON.stringify(r)},!1):DP})),DO((function(e){return e.error?DP:yT(IP(e.data))})))},function(e,t){return e.pipe(XT(uP.SET_REMOTE_CONFIG),zP(t),DO((function(e){var t=JP(e,2),n=(t[0],t[1]),r=_U.telemetry.getRemoteConfig(n);return null!=r&&r.cta?yT(EP.setModalId(Nw.POWER_USER)):DP})))},function(e,t){return e.pipe(XT(uP.SET_REMOTE_CONFIG),zP(t),DO((function(e){var t=JP(e,2),n=(t[0],t[1]),r=_U.telemetry.getRemoteConfig(n);return null!=r&&r.lastUpdated?hT(eU.queryRaw("SELECT cast(created as long), event, origin\n FROM ".concat(kw.MAIN,"\n WHERE created > '").concat(new Date(r.lastUpdated).toISOString(),"'\n "))):DP})),zP(t),DO((function(e){var t=JP(e,2),n=t[0],r=t[1],i=_U.telemetry.getRemoteConfig(r),o=_U.telemetry.getConfig(r);return null!=(null==o?void 0:o.id)&&n.type===BO.DQL&&n.count>0?zO("".concat(Pw,"/add"),{method:"POST",body:JSON.stringify({columns:n.columns,dataset:n.dataset,id:o.id,version:o.version,os:o.os,package:o.package})},!1).pipe(_T((function(e){if(!e.error){var t=n.dataset[n.count-1][0];return IP(KP(KP({},i),{},{lastUpdated:t}))}})),WP(36e5),GT((function(e){return!!e}))):DP})))}];function nU(e){return function(e){if(Array.isArray(e))return rU(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 rU(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)?rU(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 rU(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}const iU=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return RP.apply(void 0,NP(t.map((function(e){var t=e.apply(void 0,n);if(!t)throw new TypeError('combineEpics: one of the provided Epics "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return t}))))};try{Object.defineProperty(r,"name",{value:"combineEpics("+t.map((function(e){return e.name||"<anonymous>"})).join(", ")+")"})}catch(e){}return r}.apply(void 0,[].concat(nU(HP),nU(tU)));function oU(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 aU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oU(Object(n),!0).forEach((function(t){sU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lU={sideMenuOpened:!1},uU={githubBanner:!1,readOnly:!1,savedQueries:[]};function cU(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 fU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cU(Object(n),!0).forEach((function(t){dU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hU(e){return function(e){if(Array.isArray(e))return pU(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 pU(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)?pU(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 pU(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}var gU={notifications:[],tables:[],running:{value:!1,isRefresh:!1},maxNotifications:20};function mU(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 vU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mU(Object(n),!0).forEach((function(t){yU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bU=321408e5,EU={},wU=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:u_.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:u_.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+u_.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],f=u(c,t);if(void 0===f){var d=f_(l,t);throw new Error(d)}i[l]=f,r=r||f!==c}return(r=r||a.length!==Object.keys(e).length)?i:e}}({console:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:lU,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case aP.SET_CONFIG:return aU(aU({},e),{},{config:aU(aU({},uU),t.payload)});case aP.SET_MODAL_ID:return aU(aU({},e),{},{modalId:t.payload});case aP.TOGGLE_SIDE_MENU:return aU(aU({},e),{},{sideMenuOpened:!e.sideMenuOpened});default:return e}},query:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gU,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case lP.ADD_NOTIFICATION:for(var n=[].concat(hU(e.notifications),[t.payload]);n.length===e.maxNotifications;)n.shift();return fU(fU({},e),{},{notifications:n});case lP.CLEANUP_NOTIFICATIONS:return fU(fU({},e),{},{notifications:[]});case lP.REMOVE_NOTIFICATION:return fU(fU({},e),{},{notifications:e.notifications.filter((function(e){return e.createdAt!==t.payload}))});case lP.SET_RESULT:return fU(fU({},e),{},{result:t.payload});case lP.STOP_RUNNING:return fU(fU({},e),{},{running:{value:!1,isRefresh:!1}});case lP.TOGGLE_RUNNING:return fU(fU({},e),{},{running:{value:!e.running.value,isRefresh:t.payload.isRefresh}});case lP.SET_TABLES:return fU(fU({},e),{},{tables:t.payload.tables});default:return e}},telemetry:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:EU,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case uP.SET_CONFIG:return vU(vU({},e),{},{config:t.payload});case uP.SET_REMOTE_CONFIG:return vU(vU({},e),{},{remoteConfig:vU({cta:!1,lastUpdated:new Date((new Date).getTime()-bU).toISOString()},t.payload)});default:return e}}});const SU=wU,xU={getConfig:function(e){var t;return null!==(t=e.console.config)&&void 0!==t?t:uU},getModalId:function(e){return e.console.modalId},getSideMenuOpened:function(e){return e.console.sideMenuOpened}},_U={console:xU,query:{getNotifications:function(e){return e.query.notifications},getResult:function(e){return e.query.result},getRunning:function(e){return e.query.running},getTables:function(e){return e.query.tables}},telemetry:{getConfig:function(e){return e.telemetry.config},getRemoteConfig:function(e){return e.telemetry.remoteConfig}}};function TU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CU(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 OU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CU(Object(n),!0).forEach((function(t){TU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IU(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 AU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RU(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 NU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?RU(Object(n),!0).forEach((function(t){AU(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kU(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}function LU(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return t.apply(n,[].concat(i,r))}}}function MU(e){return{}.toString.call(e).includes("Object")}function DU(e){return"function"==typeof e}var PU=LU((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),UU=function(e,t){return MU(t)||PU("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&PU("changeField"),t},jU=function(e){DU(e)||PU("selectorType")},BU=function(e){DU(e)||MU(e)||PU("handlerType"),MU(e)&&Object.values(e).some((function(e){return!DU(e)}))&&PU("handlersType")},FU=function(e){var t;e||PU("initialIsRequired"),MU(e)||PU("initialType"),t=e,Object.keys(t).length||PU("initialContent")};function HU(e,t){return DU(t)?t(e.current):t}function zU(e,t){return e.current=NU(NU({},e.current),t),t}function VU(e,t,n){return DU(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}var GU={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};FU(e),BU(t);var n={current:e},r=LU(VU)(n,t),i=LU(zU)(n),o=LU(UU)(e),a=LU(HU)(n);function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return jU(e),e(n.current)}function l(e){kU(r,i,o,a)(e)}return[s,l]}};const WU=GU;var qU,YU={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},XU=(qU=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.length>=qU.length?qU.apply(this,r):function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e.apply(t,[].concat(r,i))}})(YU),$U={config:function(e){return e||XU("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||XU("configType"),e.urls?(console.warn(YU.deprecation),{paths:{vs:e.urls.monacoBase}}):e;var t}};const KU=$U,QU=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),OU(OU({},t),n)};var JU={type:"cancelation",msg:"operation is manually canceled"};const ZU=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(JU):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n};var ej,tj=(2,function(e){if(Array.isArray(e))return e}(ej=WU.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||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),2!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(ej)||function(e,t){if(e){if("string"==typeof e)return IU(e,2);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)?IU(e,2):void 0}}(ej)||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.")}()),nj=tj[0],rj=tj[1];function ij(e){return document.body.appendChild(e)}function oj(e){var t,n,r=nj((function(e){return{config:e.config,reject:e.reject}})),i=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return i.onload=function(){return e()},i.onerror=r.reject,i}function aj(){var e=nj((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){sj(t),e.resolve(t)}),(function(t){e.reject(t)}))}function sj(e){nj().monaco||rj({monaco:e})}var lj=new Promise((function(e,t){return rj({resolve:e,reject:t})})),uj={config:function(e){var t=KU.config(e),n=t.monaco,r=function(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}(t,["monaco"]);rj((function(e){return{config:QU(e.config,r),monaco:n}}))},init:function(){var e=nj((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(rj({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),ZU(lj);if(window.monaco&&window.monaco.editor)return sj(window.monaco),e.resolve(window.monaco),ZU(lj);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(ij,oj)(aj)}return ZU(lj)},__getMonacoInstance:function(){return nj((function(e){return e.monaco}))}};const cj=uj;var fj=n(2283),dj=n.n(fj);function hj(){return hj=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},hj.apply(this,arguments)}const pj={display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"},gj=function({content:e}){return Kx.createElement("div",{style:pj},e)},mj={display:"flex",position:"relative",textAlign:"initial"},vj={width:"100%"},yj={display:"none"};function bj({width:e,height:t,isEditorReady:n,loading:r,_ref:i,className:o,wrapperProps:a}){return Kx.createElement("section",hj({style:{...mj,width:e,height:t}},a),!n&&Kx.createElement(gj,{content:r}),Kx.createElement("div",{ref:i,style:{...vj,...!n&&yj},className:o}))}bj.propTypes={width:dj().oneOfType([dj().number,dj().string]).isRequired,height:dj().oneOfType([dj().number,dj().string]).isRequired,loading:dj().oneOfType([dj().element,dj().string]).isRequired,isEditorReady:dj().bool.isRequired,className:dj().string,wrapperProps:dj().object};const Ej=bj,wj=(0,Kx.memo)(Ej),Sj=function(e){(0,Kx.useEffect)(e,[])},xj=function(e,t,n=!0){const r=(0,Kx.useRef)(!0);(0,Kx.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function _j(){}function Tj(e,t,n,r){return function(e,t){return e.editor.getModel(Cj(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r&&Cj(e,r))}(e,t,n,r)}function Cj(e,t){return e.Uri.parse(t)}function Oj({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:a,keepCurrentOriginalModel:s,keepCurrentModifiedModel:l,theme:u,loading:c,options:f,height:d,width:h,className:p,wrapperProps:g,beforeMount:m,onMount:v}){const[y,b]=(0,Kx.useState)(!1),[E,w]=(0,Kx.useState)(!0),S=(0,Kx.useRef)(null),x=(0,Kx.useRef)(null),_=(0,Kx.useRef)(null),T=(0,Kx.useRef)(v),C=(0,Kx.useRef)(m);Sj((()=>{const e=cj.init();return e.then((e=>(x.current=e)&&w(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>S.current?function(){const e=S.current.getModel();var t,n;s||null===(t=e.original)||void 0===t||t.dispose(),l||null===(n=e.modified)||void 0===n||n.dispose(),S.current.dispose()}():e.cancel()})),xj((()=>{const e=S.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(t):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t,forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),xj((()=>{S.current.getModel().original.setValue(e)}),[e],y),xj((()=>{const{original:e,modified:t}=S.current.getModel();x.current.editor.setModelLanguage(e,r||n),x.current.editor.setModelLanguage(t,i||n)}),[n,r,i],y),xj((()=>{x.current.editor.setTheme(u)}),[u],y),xj((()=>{S.current.updateOptions(f)}),[f],y);const O=(0,Kx.useCallback)((()=>{C.current(x.current);const s=Tj(x.current,e,r||n,o),l=Tj(x.current,t,i||n,a);S.current.setModel({original:s,modified:l})}),[n,t,i,e,r,o,a]),I=(0,Kx.useCallback)((()=>{S.current=x.current.editor.createDiffEditor(_.current,{automaticLayout:!0,...f}),O(),x.current.editor.setTheme(u),b(!0)}),[f,u,O]);return(0,Kx.useEffect)((()=>{y&&T.current(S.current,x.current)}),[y]),(0,Kx.useEffect)((()=>{!E&&!y&&I()}),[E,y,I]),Kx.createElement(wj,{width:h,height:d,isEditorReady:y,loading:c,_ref:_,className:p,wrapperProps:g})}Oj.propTypes={original:dj().string,modified:dj().string,language:dj().string,originalLanguage:dj().string,modifiedLanguage:dj().string,originalModelPath:dj().string,modifiedModelPath:dj().string,keepCurrentOriginalModel:dj().bool,keepCurrentModifiedModel:dj().bool,theme:dj().string,loading:dj().oneOfType([dj().element,dj().string]),options:dj().object,width:dj().oneOfType([dj().number,dj().string]),height:dj().oneOfType([dj().number,dj().string]),className:dj().string,wrapperProps:dj().object,beforeMount:dj().func,onMount:dj().func},Oj.defaultProps={theme:"light",loading:"Loading...",options:{},keepCurrentOriginalModel:!1,keepCurrentModifiedModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:_j,onMount:_j};const Ij=new Map;function Aj({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:a,line:s,loading:l,options:u,overrideServices:c,saveViewState:f,keepCurrentModel:d,width:h,height:p,className:g,wrapperProps:m,beforeMount:v,onMount:y,onChange:b,onValidate:E}){const[w,S]=(0,Kx.useState)(!1),[x,_]=(0,Kx.useState)(!0),T=(0,Kx.useRef)(null),C=(0,Kx.useRef)(null),O=(0,Kx.useRef)(null),I=(0,Kx.useRef)(y),A=(0,Kx.useRef)(v),R=(0,Kx.useRef)(null),N=(0,Kx.useRef)(r),k=function(e){const t=(0,Kx.useRef)();return(0,Kx.useEffect)((()=>{t.current=e}),[e]),t.current}(o);Sj((()=>{const e=cj.init();return e.then((e=>(T.current=e)&&_(!1))).catch((e=>"cancelation"!==(null==e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>{return C.current?(null===(t=R.current)||void 0===t||t.dispose(),d?f&&Ij.set(o,C.current.saveViewState()):null===(n=C.current.getModel())||void 0===n||n.dispose(),void C.current.dispose()):e.cancel();var t,n}})),xj((()=>{const n=Tj(T.current,e||r,t||i,o);n!==C.current.getModel()&&(f&&Ij.set(k,C.current.saveViewState()),C.current.setModel(n),f&&C.current.restoreViewState(Ij.get(o)))}),[o],w),xj((()=>{C.current.updateOptions(u)}),[u],w),xj((()=>{C.current.getOption(T.current.editor.EditorOption.readOnly)?C.current.setValue(r):r!==C.current.getValue()&&(C.current.executeEdits("",[{range:C.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),C.current.pushUndoStop())}),[r],w),xj((()=>{T.current.editor.setModelLanguage(C.current.getModel(),i)}),[i],w),xj((()=>{void 0!==s&&C.current.revealLine(s)}),[s],w),xj((()=>{T.current.editor.setTheme(a)}),[a],w);const L=(0,Kx.useCallback)((()=>{A.current(T.current);const s=o||n,l=Tj(T.current,r||e,t||i,s);C.current=T.current.editor.create(O.current,{model:l,automaticLayout:!0,...u},c),f&&C.current.restoreViewState(Ij.get(s)),T.current.editor.setTheme(a),S(!0)}),[e,t,n,r,i,o,u,c,f,a]);return(0,Kx.useEffect)((()=>{w&&I.current(C.current,T.current)}),[w]),(0,Kx.useEffect)((()=>{!x&&!w&&L()}),[x,w,L]),N.current=r,(0,Kx.useEffect)((()=>{var e,t;w&&b&&(null===(e=R.current)||void 0===e||e.dispose(),R.current=null===(t=C.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{const t=C.current.getValue();N.current!==t&&b(t,e)})))}),[w,b]),(0,Kx.useEffect)((()=>{if(w){const e=T.current.editor.onDidChangeMarkers((e=>{var t;const n=null===(t=C.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((e=>e.path===n.path))){const e=T.current.editor.getModelMarkers({resource:n});null==E||E(e)}}));return()=>{null==e||e.dispose()}}}),[w,E]),Kx.createElement(wj,{width:h,height:p,isEditorReady:w,loading:l,_ref:O,className:g,wrapperProps:m})}Aj.propTypes={defaultValue:dj().string,defaultPath:dj().string,defaultLanguage:dj().string,value:dj().string,language:dj().string,path:dj().string,theme:dj().string,line:dj().number,loading:dj().oneOfType([dj().element,dj().string]),options:dj().object,overrideServices:dj().object,saveViewState:dj().bool,keepCurrentModel:dj().bool,width:dj().oneOfType([dj().number,dj().string]),height:dj().oneOfType([dj().number,dj().string]),className:dj().string,wrapperProps:dj().object,beforeMount:dj().func,onMount:dj().func,onChange:dj().func,onValidate:dj().func},Aj.defaultProps={theme:"light",loading:"Loading...",options:{},overrideServices:{},saveViewState:!0,keepCurrentModel:!1,width:"100%",height:"100%",wrapperProps:{},beforeMount:_j,onMount:_j,onValidate:_j};const Rj=Aj,Nj=(0,Kx.memo)(Rj),kj={base:"vs-dark",inherit:!0,rules:[{background:"282a36",token:""},{foreground:"6272a4",token:"comment"},{foreground:"f1fa8c",token:"string"},{foreground:"50fa7b",token:"number"},{foreground:"f1fa8c",token:"string.sql"},{foreground:"ff79c6",token:"operator.sql"},{foreground:"8be9fd",fontStyle:"italic",token:"dataType"},{foreground:"8be9fd",token:"predefined.sql"},{foreground:"8be9fd",token:"function"},{foreground:"bd93f9",token:"constant.numeric"},{foreground:"bd93f9",token:"constant.language"},{foreground:"bd93f9",token:"constant.character"},{foreground:"bd93f9",token:"constant.other"},{foreground:"ffb86c",token:"variable.other.readwrite.instance"},{foreground:"ff79c6",token:"constant.character.escaped"},{foreground:"ff79c6",token:"constant.character.escape"},{foreground:"ff79c6",token:"string source"},{foreground:"ff79c6",token:"string source.ruby"},{foreground:"ff79c6",token:"keyword"},{foreground:"ff79c6",token:"storage"},{foreground:"8be9fd",fontStyle:"italic",token:"storage.type"},{foreground:"50fa7b",fontStyle:"underline",token:"entity.name.class"},{foreground:"50fa7b",fontStyle:"italic underline",token:"entity.other.inherited-class"},{foreground:"50fa7b",token:"entity.name.function"},{foreground:"ffb86c",fontStyle:"italic",token:"variable.parameter"},{foreground:"ff79c6",token:"entity.name.tag"},{foreground:"50fa7b",token:"entity.other.attribute-name"},{foreground:"8be9fd",token:"support.function"},{foreground:"6be5fd",token:"support.constant"},{foreground:"66d9ef",fontStyle:" italic",token:"support.type"},{foreground:"66d9ef",fontStyle:" italic",token:"support.class"},{foreground:"f8f8f0",background:"ff79c6",token:"invalid"},{foreground:"f8f8f0",background:"bd93f9",token:"invalid.deprecated"},{foreground:"cfcfc2",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"6272a4",token:"meta.diff"},{foreground:"6272a4",token:"meta.diff.header"},{foreground:"ff79c6",token:"markup.deleted"},{foreground:"50fa7b",token:"markup.inserted"},{foreground:"e6db74",token:"markup.changed"},{foreground:"bd93f9",token:"constant.numeric.line-number.find-in-files - match"},{foreground:"e6db74",token:"entity.name.filename"},{foreground:"f83333",token:"message.error"},{foreground:"eeeeee",token:"punctuation.definition.string.begin.json - meta.structure.dictionary.value.json"},{foreground:"eeeeee",token:"punctuation.definition.string.end.json - meta.structure.dictionary.value.json"},{foreground:"8be9fd",token:"meta.structure.dictionary.json string.quoted.double.json"},{foreground:"f1fa8c",token:"meta.structure.dictionary.value.json string.quoted.double.json"},{foreground:"50fa7b",token:"meta meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta meta meta meta meta.structure.dictionary.value string"},{foreground:"ff79c6",token:"meta meta meta meta meta.structure.dictionary.value string"},{foreground:"bd93f9",token:"meta meta meta meta.structure.dictionary.value string"},{foreground:"50fa7b",token:"meta meta meta.structure.dictionary.value string"},{foreground:"ffb86c",token:"meta meta.structure.dictionary.value string"}],colors:{"activityBar.activeBackground":"#bd93f910","activityBar.activeBorder":"#ff79c680","activityBar.background":"#343746","activityBar.foreground":"#f8f8f2","activityBar.inactiveForeground":"#6272a4","activityBarBadge.background":"#ff79c6","activityBarBadge.foreground":"#f8f8f2","badge.background":"#44475a","badge.foreground":"#f8f8f2","breadcrumb.activeSelectionForeground":"#f8f8f2","breadcrumb.background":"#282a36","breadcrumb.focusForeground":"#f8f8f2","breadcrumb.foreground":"#6272a4","breadcrumbPicker.background":"#191a21","button.background":"#44475a","button.foreground":"#f8f8f2","button.secondaryBackground":"#282a36","button.secondaryForeground":"#f8f8f2","button.secondaryHoverBackground":"#343746","debugToolBar.background":"#21222c","diffEditor.insertedTextBackground":"#50fa7b20","diffEditor.removedTextBackground":"#ff555550","dropdown.background":"#343746","dropdown.border":"#191a21","dropdown.foreground":"#f8f8f2","editor.background":"#282a36","editor.findMatchBackground":"#ffb86c80","editor.findMatchHighlightBackground":"#ffffff40","editor.findRangeHighlightBackground":"#44475a75","editor.foldBackground":"#21222c","editor.foreground":"#f8f8f2","editor.hoverHighlightBackground":"#8be9fd50","editor.lineHighlightBorder":"#44475a","editor.lineHighlightBackground":"#44475a","editor.rangeHighlightBackground":"#bd93f915","editor.selectionBackground":"#44475a","editor.selectionHighlightBackground":"#424450","editor.snippetFinalTabstopHighlightBackground":"#282a36","editor.snippetFinalTabstopHighlightBorder":"#50fa7b","editor.snippetTabstopHighlightBackground":"#282a36","editor.snippetTabstopHighlightBorder":"#6272a4","editor.wordHighlightBackground":"#8be9fd50","editor.wordHighlightStrongBackground":"#50fa7b50","editorBracketHighlight.foreground1":"#f8f8f2","editorBracketHighlight.foreground2":"#ff79c6","editorBracketHighlight.foreground3":"#8be9fd","editorBracketHighlight.foreground4":"#50fa7b","editorBracketHighlight.foreground5":"#bd93f9","editorBracketHighlight.foreground6":"#ffb86c","editorBracketHighlight.unexpectedBracket.foreground":"#ff5555","editorCodeLens.foreground":"#6272a4","editorError.foreground":"#ff5555","editorGroup.border":"#bd93f9","editorGroup.dropBackground":"#44475a70","editorGroupHeader.tabsBackground":"#191a21","editorGutter.addedBackground":"#50fa7b80","editorGutter.deletedBackground":"#ff555580","editorGutter.modifiedBackground":"#8be9fd80","editorHoverWidget.background":"#282a36","editorHoverWidget.border":"#6272a4","editorIndentGuide.activeBackground":"#ffffff45","editorIndentGuide.background":"#ffffff1a","editorLineNumber.foreground":"#6272a4","editorLink.activeForeground":"#8be9fd","editorMarkerNavigation.background":"#21222c","editorOverviewRuler.addedForeground":"#50fa7b80","editorOverviewRuler.border":"#191a21","editorOverviewRuler.currentContentForeground":"#50fa7b","editorOverviewRuler.deletedForeground":"#ff555580","editorOverviewRuler.errorForeground":"#ff555580","editorOverviewRuler.incomingContentForeground":"#bd93f9","editorOverviewRuler.infoForeground":"#8be9fd80","editorOverviewRuler.modifiedForeground":"#8be9fd80","editorOverviewRuler.selectionHighlightForeground":"#ffb86c","editorOverviewRuler.warningForeground":"#ffb86c80","editorOverviewRuler.wordHighlightForeground":"#8be9fd","editorOverviewRuler.wordHighlightStrongForeground":"#50fa7b","editorRuler.foreground":"#ffffff1a","editorSuggestWidget.background":"#21222c","editorSuggestWidget.foreground":"#f8f8f2","editorSuggestWidget.selectedBackground":"#44475a","editorWarning.foreground":"#8be9fd","editorWhitespace.foreground":"#ffffff1a","editorWidget.background":"#21222c",errorForeground:"#ff5555","extensionButton.prominentBackground":"#50fa7b90","extensionButton.prominentForeground":"#f8f8f2","extensionButton.prominentHoverBackground":"#50fa7b60",focusBorder:"#6272a4",foreground:"#f8f8f2","gitDecoration.conflictingResourceForeground":"#ffb86c","gitDecoration.deletedResourceForeground":"#ff5555","gitDecoration.ignoredResourceForeground":"#6272a4","gitDecoration.modifiedResourceForeground":"#8be9fd","gitDecoration.untrackedResourceForeground":"#50fa7b","input.background":"#282a36","input.border":"#191a21","input.foreground":"#f8f8f2","input.placeholderForeground":"#6272a4","inputOption.activeBorder":"#bd93f9","inputValidation.errorBorder":"#ff5555","inputValidation.infoBorder":"#ff79c6","inputValidation.warningBorder":"#ffb86c","list.activeSelectionBackground":"#44475a","list.activeSelectionForeground":"#f8f8f2","list.dropBackground":"#44475a","list.errorForeground":"#ff5555","list.focusBackground":"#44475a75","list.highlightForeground":"#8be9fd","list.hoverBackground":"#44475a75","list.inactiveSelectionBackground":"#44475a75","list.warningForeground":"#ffb86c","listFilterWidget.background":"#343746","listFilterWidget.noMatchesOutline":"#ff5555","listFilterWidget.outline":"#424450","merge.currentHeaderBackground":"#50fa7b90","merge.incomingHeaderBackground":"#bd93f990","panel.background":"#282a36","panel.border":"#bd93f9","panelTitle.activeBorder":"#ff79c6","panelTitle.activeForeground":"#f8f8f2","panelTitle.inactiveForeground":"#6272a4","peekView.border":"#44475a","peekViewEditor.background":"#282a36","peekViewEditor.matchHighlightBackground":"#f1fa8c80","peekViewResult.background":"#21222c","peekViewResult.fileForeground":"#f8f8f2","peekViewResult.lineForeground":"#f8f8f2","peekViewResult.matchHighlightBackground":"#f1fa8c80","peekViewResult.selectionBackground":"#44475a","peekViewResult.selectionForeground":"#f8f8f2","peekViewTitle.background":"#191a21","peekViewTitleDescription.foreground":"#6272a4","peekViewTitleLabel.foreground":"#f8f8f2","pickerGroup.border":"#bd93f9","pickerGroup.foreground":"#8be9fd","progressBar.background":"#ff79c6","selection.background":"#bd93f9","settings.checkboxBackground":"#21222c","settings.checkboxBorder":"#191a21","settings.checkboxForeground":"#f8f8f2","settings.dropdownBackground":"#21222c","settings.dropdownBorder":"#191a21","settings.dropdownForeground":"#f8f8f2","settings.headerForeground":"#f8f8f2","settings.modifiedItemIndicator":"#ffb86c","settings.numberInputBackground":"#21222c","settings.numberInputBorder":"#191a21","settings.numberInputForeground":"#f8f8f2","settings.textInputBackground":"#21222c","settings.textInputBorder":"#191a21","settings.textInputForeground":"#f8f8f2","sideBar.background":"#21222c","sideBarSectionHeader.background":"#282a36","sideBarSectionHeader.border":"#191a21","sideBarTitle.foreground":"#f8f8f2","statusBar.background":"#191a21","statusBar.debuggingBackground":"#ff5555","statusBar.debuggingForeground":"#191a21","statusBar.foreground":"#f8f8f2","statusBar.noFolderBackground":"#191a21","statusBar.noFolderForeground":"#f8f8f2","statusBarItem.prominentBackground":"#ff5555","statusBarItem.prominentHoverBackground":"#ffb86c","statusBarItem.remoteBackground":"#bd93f9","statusBarItem.remoteForeground":"#282a36","tab.activeBackground":"#282a36","tab.activeBorderTop":"#ff79c680","tab.activeForeground":"#f8f8f2","tab.border":"#191a21","tab.inactiveBackground":"#21222c","tab.inactiveForeground":"#6272a4","terminal.ansiBlack":"#21222c","terminal.ansiBlue":"#bd93f9","terminal.ansiBrightBlack":"#6272a4","terminal.ansiBrightBlue":"#d6acff","terminal.ansiBrightCyan":"#a4ffff","terminal.ansiBrightGreen":"#69ff94","terminal.ansiBrightMagenta":"#ff92df","terminal.ansiBrightRed":"#ff6e6e","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#ffffa5","terminal.ansiCyan":"#8be9fd","terminal.ansiGreen":"#50fa7b","terminal.ansiMagenta":"#ff79c6","terminal.ansiRed":"#ff5555","terminal.ansiWhite":"#f8f8f2","terminal.ansiYellow":"#f1fa8c","terminal.background":"#282a36","terminal.foreground":"#f8f8f2","titleBar.activeBackground":"#21222c","titleBar.activeForeground":"#f8f8f2","titleBar.inactiveBackground":"#191a21","titleBar.inactiveForeground":"#6272a4","walkThrough.embeddedEditorBackground":"#21222c"}};var Lj=function(e,t){return e?"true"===e:t},Mj=function(e,t){return isNaN(parseInt(e))?t:parseInt(e)};function Dj(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pj(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)?Pj(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 Pj(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}var Uj={authPayload:"",editorCol:1,editorLine:1,isNotificationEnabled:!0,notificationDelay:5,queryText:"",editorSplitterBasis:350,resultsSplitterBasis:350,updateSettings:function(e,t){},exampleQueriesVisited:!1},jj=(0,Kx.createContext)(Uj),Bj=function(e){var t=e.children,n=Dj((0,Kx.useState)(BP(jP.AUTH_PAYLOAD)),2),r=n[0],i=n[1],o=Dj((0,Kx.useState)(Mj(BP(jP.EDITOR_COL),10)),2),a=o[0],s=o[1],l=Dj((0,Kx.useState)(Mj(BP(jP.EDITOR_LINE),10)),2),u=l[0],c=l[1],f=Dj((0,Kx.useState)(Lj(BP(jP.NOTIFICATION_ENABLED),true)),2),d=f[0],h=f[1],p=Dj((0,Kx.useState)(Mj(BP(jP.NOTIFICATION_DELAY),5)),2),g=p[0],m=p[1],v=Dj((0,Kx.useState)(BP(jP.QUERY_TEXT)),2),y=v[0],b=v[1],E=Dj((0,Kx.useState)(Mj(BP(jP.EDITOR_SPLITTER_BASIS),350)),2),w=E[0],S=E[1],x=Dj((0,Kx.useState)(Mj(BP(jP.RESULTS_SPLITTER_BASIS),350)),2),_=x[0],T=x[1],C=Dj((0,Kx.useState)("true"===BP(jP.EXAMPLE_QUERIES_VISITED)),2),O=C[0],I=C[1];return Kx.createElement(jj.Provider,{value:{authPayload:r,editorCol:a,editorLine:u,isNotificationEnabled:d,notificationDelay:g,queryText:y,editorSplitterBasis:w,resultsSplitterBasis:_,updateSettings:function(e,t){FP(e,t.toString()),function(e){var t=BP(e);switch(e){case jP.AUTH_PAYLOAD:i(t);break;case jP.EDITOR_COL:s(Mj(t,10));break;case jP.EDITOR_LINE:c(Mj(t,10));break;case jP.EXAMPLE_QUERIES_VISITED:I("true"===t);break;case jP.NOTIFICATION_ENABLED:h(Lj(t,!0));break;case jP.NOTIFICATION_DELAY:m(Mj(t,5));break;case jP.QUERY_TEXT:b(t);break;case jP.EDITOR_SPLITTER_BASIS:S(Mj(t,350));break;case jP.RESULTS_SPLITTER_BASIS:T(Mj(t,350))}}(e)},exampleQueriesVisited:O}},t)},Fj=function(){return(0,Kx.useContext)(jj)},Hj=OO.div.withConfig({displayName:"QueryResult__Wrapper"})(["\n display: flex;\n align-items: center;\n margin-top: 0.2rem;\n overflow: hidden;\n ",";\n\n svg {\n margin-right: 0.2rem;\n color: ",";\n }\n"],oI,JO("draculaForeground")),zj=OO.div.withConfig({displayName:"QueryResult__Details"})(["\n display: flex;\n background: ",";\n"],JO("draculaBackground")),Vj=OO.div.withConfig({displayName:"QueryResult__DetailsColumn"})(["\n margin-left: 1rem;\n"]),Gj=OO($I).withConfig({displayName:"QueryResult__DetailsText"})(["\n margin-right: 0.5rem;\n"]),Wj=function(e){return Math.round(100*(e+Number.EPSILON))/100},qj=function(e){return"0"===e?Kx.createElement($I,{color:"gray2"},"0"):Kx.createElement($I,{color:"draculaOrange"},e)},Yj=function(e){return 0===e?"0":e>1e9?"".concat(Wj(e/1e9),"s"):e>1e6?"".concat(Wj(e/1e6),"ms"):e>1e3?"".concat(Wj(e/1e3),"μs"):"".concat(e,"ns")};const Xj=function(e){var t=e.compiler,n=e.count,r=e.execute,i=e.fetch,o=e.rowCount;return Kx.createElement(Hj,{_height:95,duration:nI.FAST},Kx.createElement("div",null,Kx.createElement($I,{color:"gray2"},o.toLocaleString()," row",o>1?"s":""," in ",Yj(i))),Kx.createElement(zj,null,Kx.createElement(Vj,null,Kx.createElement(Gj,{color:"draculaForeground"},"Execute: ",qj(Yj(r))),Kx.createElement(Gj,{color:"draculaForeground"},"Network: ",qj(Yj(i-r))),Kx.createElement(Gj,{color:"draculaForeground"},"Total: ",qj(Yj(i)))),Kx.createElement(Vj,null,Kx.createElement(Gj,{align:"right",color:"gray2",size:"sm"},"Count: ",Yj(n)),Kx.createElement(Gj,{align:"right",color:"gray2",size:"sm"},"Compile: ",Yj(t)))))};function $j(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}var Kj=CO(["\n 0% {\n background-position: left bottom;\n }\n\n 100% {\n background-position: right bottom;\n }\n"]),Qj=OO.div.withConfig({displayName:"Loader__Wrapper"})(["\n position: fixed;\n height: 0.4rem;\n top: 0;\n left: 0;\n right: 0;\n z-index: 15;\n background: linear-gradient(\n to left,\n "," 30%,\n "," 80%,\n "," 100%\n )\n repeat;\n background-size: 50% 100%;\n animation-name: ",";\n animation-duration: 1s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n"],JO("draculaSelection"),JO("draculaForeground"),JO("draculaSelection"),Kj);const Jj=function(e){var t=e.show,n=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $j(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)?$j(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.")}()}((0,Kx.useState)(!1),2),r=n[0],i=n[1],o=(0,Kx.useRef)();return(0,Kx.useEffect)((function(){return function(){clearTimeout(o.current)}}),[]),(0,Kx.useEffect)((function(){clearTimeout(o.current),t?o.current=window.setTimeout((function(){i(!0)}),500):i(!1)}),[t]),Kx.createElement(Kx.Fragment,null,Kx.createElement(RR,{classNames:"fade-slow",in:r&&t,timeout:nI.SLOW,unmountOnExit:!0},Kx.createElement(Qj,null)))};var Zj,eB={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\$\%\^\&\*\-\=\+\[\{\]\}\\\|\;\:\"\,\<\>\/\?\s]+)/g,comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},tB=["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],nB=n(7709),rB={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],dataTypes:nB.DJ,keywords:nB.Hw,operators:tB,builtinFunctions:nB.wk,builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@dataTypes":"dataType","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}};function iB(e){return function(e){if(Array.isArray(e))return oB(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 oB(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)?oB(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 oB(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(e){e[e.Function=1]="Function",e[e.Class=5]="Class",e[e.Operator=11]="Operator",e[e.Keyword=17]="Keyword"}(Zj||(Zj={}));var aB=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={triggerCharacters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz '".split(""),provideCompletionItems:function(t,n){var r=t.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:n.lineNumber,endColumn:n.column}),i=t.getWordUntilPosition(n),o={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn};if(i.word||/(FROM|INTO|TABLE) $/gim.test(r)||/'$/gim.test(r)&&!r.endsWith("= '"))return{suggestions:e.map((function(e){return{label:e.name,kind:Zj.Class,insertText:"'"===r.substr(-1)?e.name:"'".concat(e.name,"'"),range:o}}))}}};return t},sB={provideDocumentFormattingEdits:function(e,t){var n=rI(e.getValue(),{indent:" ".repeat(t.tabSize)});return[{range:e.getFullModelRange(),text:n}]}},lB={provideDocumentRangeFormattingEdits:function(e,t,n){return[{range:t,text:rI(e.getValueInRange(t),{indent:" ".repeat(n.tabSize)})}]}};function uB(){return uB=Object.assign?Object.assign.bind():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},uB.apply(this,arguments)}function cB(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fB(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)?fB(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 fB(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}cj.config({paths:{vs:"assets/vs"}});var dB,hB=OO(ZI).withConfig({displayName:"Monaco__Content"})(["\n position: relative;\n overflow: hidden;\n\n .monaco-scrollable-element > .scrollbar > .slider {\n background: ",";\n }\n"],JO("draculaSelection"));!function(e){e.EXECUTE="execute",e.FOCUS_GRID="focus_grid",e.CLEANUP_NOTIFICATIONS="clean_notifications"}(dB||(dB={}));const pB=function(){var e,t,n,r,i,o=DD(),a=o.editorRef,s=o.monacoRef,l=o.insertTextAtCursor,u=(e=(0,Kx.useContext)(jj),t=e.queryText,n=e.editorCol,r=e.editorLine,i=e.updateSettings,{loadPreferences:function(e){t&&e.setValue(t),r&&n&&e.setPosition({column:n,lineNumber:r})},savePreferences:function(e){if(i(jP.QUERY_TEXT,e.getValue()),e.getPosition()){var t,n,r=null==e||null===(t=e.getPosition())||void 0===t?void 0:t.lineNumber,o=null==e||null===(n=e.getPosition())||void 0===n?void 0:n.column;r&&i(jP.EDITOR_LINE,r),o&&i(jP.EDITOR_COL,o)}}}),c=u.loadPreferences,f=u.savePreferences,d=(0,Kx.useContext)(wD).quest,h=cB((0,Kx.useState)(),2),p=h[0],g=h[1],m=cB((0,Kx.useState)(!1),2),v=m[0],y=m[1],b=cB((0,Kx.useState)(""),2),E=b[0],w=b[1],S=w_(),x=T_(_U.query.getRunning),_=T_(_U.query.getTables),T=cB((0,Kx.useState)(),2),C=T[0],O=T[1],I=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];S(TP(e))};return(0,Kx.useEffect)((function(){!x.value&&p&&(d.abort(),S(_P()),g(void 0))}),[p,d,S,x]),(0,Kx.useEffect)((function(){if(x.value&&null!=a&&a.current){null!=s&&s.current&&(t=s.current,(n=a.current.getModel())&&t.editor.setModelMarkers(n,CD,[]));var e=x.isRefresh?{query:E,row:0,column:0}:function(e){return OD(e)?function(e){var t=e.getSelection(),n=OD(e);if(t&&n){for(var r=n.length,i=n.charAt(r);r>0&&(" "===i||"\n"===i||";"===i);)r--,i=n.charAt(r);if(r>0)return{query:n.substr(0,r+1),row:t.startLineNumber-1,column:t.startColumn}}}(e):function(e){var t=e.getValue(),n=e.getPosition(),r=0,i=0,o=[],a=0,s=0,l=-1,u=null,c=!1;if(n){for(var f=0;f<t.length&&null===u;f++)switch(t[f]){case";":if(c){i++;continue}r<n.lineNumber-1||r===n.lineNumber-1&&i<n.column-1?(o.push({row:a,col:s,position:l,limit:f}),a=r,s=i,l=f+1,i++):u=t.substring(-1===l?0:l,f);break;case" ":l===f&&(a=r,s=i,l=f+1),i++;break;case"\n":r++,i=0,l===f&&(a=r,s=i,l=f+1,i++);break;case"'":c=!c,i++;break;default:i++}if(null===u&&(u=-1===l?t:t.substring(l)),0===u.length){var d=o.pop();return d?{column:d.col,query:t.substring(d.position,d.limit),row:d.row}:void 0}return{column:s,query:u,row:a}}}(e)}(a.current);null!=e&&e.query?(d.queryRaw(e.query,{limit:"0,1000",explain:!0}).then((function(t){var n,r;g(void 0),S(_P()),S(xP(t)),t.type===BO.DDL&&(S(wP({content:Kx.createElement($I,{color:"draculaForeground",ellipsis:!0,title:t.query},t.query)})),bus.trigger(Rw.MSG_QUERY_SCHEMA)),t.type===BO.DQL&&(w(e.query),S(wP({jitCompiled:null!==(n=null===(r=t.explain)||void 0===r?void 0:r.jitCompiled)&&void 0!==n&&n,content:Kx.createElement(Xj,uB({},t.timings,{rowCount:t.count})),sideContent:Kx.createElement($I,{color:"draculaForeground",ellipsis:!0,title:t.query},t.query)})),bus.trigger(Rw.MSG_QUERY_DATASET,t))})).catch((function(t){if(g(void 0),S(_P()),S(wP({content:Kx.createElement($I,{color:"draculaRed"},t.error),sideContent:Kx.createElement($I,{color:"draculaForeground",ellipsis:!0,title:e.query},e.query),type:sP.ERROR})),null!=a&&a.current&&null!=s&&s.current){var n=function(e,t,n){var r=function(e,t){for(var n=Math.min(t,e.query.length),r=0,i=0,o=0;o<n;o++)"\n"===e.query.charAt(o)?(r++,i=0):i++;return{lineNumber:r+1+e.row,column:(0===r?i+e.column:i)+1}}(t,n),i=e.getModel();if(i){var o,a=e.getSelection(),s=OD(e);if(o=a&&s?i.getWordAtPosition({column:a.startColumn+n,lineNumber:a.startLineNumber}):i.getWordAtPosition(r))return{startColumn:o.startColumn,endColumn:o.endColumn,startLineNumber:r.lineNumber,endLineNumber:r.lineNumber}}return null}(a.current,e,t.position);n&&function(e,t,n,r){var i=t.getModel();i&&e.editor.setModelMarkers(i,CD,[{message:r,severity:e.MarkerSeverity.Error,startLineNumber:n.startLineNumber,endLineNumber:n.endLineNumber,startColumn:n.startColumn,endColumn:n.endColumn}])}(null==s?void 0:s.current,a.current,n,t.error)}})),g(e)):S(_P())}var t,n}),[d,S,x]),(0,Kx.useEffect)((function(){var e=null==a?void 0:a.current;x.value&&e&&f(e)}),[x,f]),(0,Kx.useEffect)((function(){v&&null!=s&&s.current&&(null==C||C.dispose(),O(s.current.languages.registerCompletionItemProvider(CD,aB(_))))}),[_,s,v]),Kx.createElement(hB,null,Kx.createElement(Nj,{beforeMount:function(e){e.languages.register({id:CD}),e.languages.setMonarchTokensProvider(CD,rB),e.languages.setLanguageConfiguration(CD,eB),e.languages.registerCompletionItemProvider(CD,{provideCompletionItems:function(e,t){var n=e.getWordUntilPosition(t),r={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:n.startColumn,endColumn:n.endColumn};return{suggestions:[].concat(iB(nB.wk.map((function(e){return{label:e,kind:Zj.Function,insertText:e,range:r}}))),iB(nB.DJ.map((function(e){return{label:e,kind:Zj.Keyword,insertText:e,range:r}}))),iB(nB.Hw.map((function(e){var t=e.toUpperCase();return{label:t,kind:Zj.Keyword,insertText:t,range:r}}))),iB(tB.map((function(e){var t=e.toUpperCase();return{label:t,kind:Zj.Operator,insertText:t.toUpperCase(),range:r}}))))}}}),e.languages.registerDocumentFormattingEditProvider(CD,sB),e.languages.registerDocumentRangeFormattingEditProvider(CD,lB),O(e.languages.registerCompletionItemProvider(CD,aB(_))),e.editor.defineTheme("dracula",kj)},defaultLanguage:CD,onMount:function(e,t){t.editor.setTheme("dracula"),s&&(s.current=t,y(!0)),a&&(a.current=e,window.bus.on(Rw.MSG_EDITOR_INSERT_COLUMN,(function(e,t){l(t)})),window.bus.on(Rw.MSG_QUERY_FIND_N_EXEC,(function(t,n){var r="".concat(n,";");ND(e,r),I()})),window.bus.on(Rw.MSG_QUERY_EXEC,(function(t,n){var r;null===(r=e.getModel())||void 0===r||r.findMatches(n.q,!0,!1,!0,null,!0),I(!0)})),window.bus.on(Rw.MSG_QUERY_EXPORT,(function(e,t){t&&(window.location.href="/exp?query=".concat(encodeURIComponent(t.q)))})),window.bus.on(Rw.MSG_EDITOR_FOCUS,(function(){var t=e.getPosition();t&&e.setPosition({lineNumber:t.lineNumber+1,column:null==t?void 0:t.column}),e.focus()})),e.addAction({id:dB.FOCUS_GRID,label:"Focus Grid",keybindings:[t.KeyCode.F2],run:function(){window.bus.trigger(Rw.GRID_FOCUS)}}),e.addAction({id:dB.EXECUTE,label:"Execute command",keybindings:[t.KeyCode.F9,t.KeyMod.CtrlCmd|t.KeyCode.Enter],run:function(){I()}}),e.addAction({id:dB.CLEANUP_NOTIFICATIONS,label:"Clear all notifications",keybindings:[t.KeyMod.CtrlCmd|t.KeyCode.KeyK],run:function(){S(SP())}})),c(e);var n=new URLSearchParams(window.location.search),r=n.get("query");r&&ND(e,r,{appendAt:"end"}),n.get("executeQuery")&&I()},options:{fixedOverflowWidgets:!0,fontSize:14,fontFamily:gP.fontMonospace,renderLineHighlight:"gutter",minimap:{enabled:!1},scrollBeyondLastLine:!1,tabSize:2},theme:"vs-dark"}),Kx.createElement(Jj,{show:!!p||!_}))};var gB=n(88),mB=n.n(gB),vB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"}))}));vB.displayName="Add";var yB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}))}));yB.displayName="Close";var bB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"}))}));bB.displayName="Menu";var EB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M16.394 12L10 7.737v8.526L16.394 12zm2.982.416L8.777 19.482A.5.5 0 018 19.066V4.934a.5.5 0 01.777-.416l10.599 7.066a.5.5 0 010 .832z"}))}));EB.displayName="Play";var wB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M7 7v10h10V7H7zM6 5h12a1 1 0 011 1v12a1 1 0 01-1 1H6a1 1 0 01-1-1V6a1 1 0 011-1z"}))}));wB.displayName="Stop";var SB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M5 12.5c0 .313.461.858 1.53 1.393C7.914 14.585 9.877 15 12 15c2.123 0 4.086-.415 5.47-1.107 1.069-.535 1.53-1.08 1.53-1.393v-2.171C17.35 11.349 14.827 12 12 12s-5.35-.652-7-1.671V12.5zm14 2.829C17.35 16.349 14.827 17 12 17s-5.35-.652-7-1.671V17.5c0 .313.461.858 1.53 1.393C7.914 19.585 9.877 20 12 20c2.123 0 4.086-.415 5.47-1.107 1.069-.535 1.53-1.08 1.53-1.393v-2.171zM3 17.5v-10C3 5.015 7.03 3 12 3s9 2.015 9 4.5v10c0 2.485-4.03 4.5-9 4.5s-9-2.015-9-4.5zm9-7.5c2.123 0 4.086-.415 5.47-1.107C18.539 8.358 19 7.813 19 7.5c0-.313-.461-.858-1.53-1.393C16.086 5.415 14.123 5 12 5c-2.123 0-4.086.415-5.47 1.107C5.461 6.642 5 7.187 5 7.5c0 .313.461.858 1.53 1.393C7.914 9.585 9.877 10 12 10z"}))}));SB.displayName="Database2";var xB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M12 6a3.939 3.939 0 0 0-3.934 3.934h2C10.066 8.867 10.934 8 12 8s1.934.867 1.934 1.934c0 .598-.481 1.032-1.216 1.626a9.208 9.208 0 0 0-.691.599c-.998.997-1.027 2.056-1.027 2.174V15h2l-.001-.633c.001-.016.033-.386.441-.793.15-.15.339-.3.535-.458.779-.631 1.958-1.584 1.958-3.182A3.937 3.937 0 0 0 12 6zm-1 10h2v2h-2z"}),Kx.createElement("path",{d:"M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10 10-4.486 10-10S17.514 2 12 2zm0 18c-4.411 0-8-3.589-8-8s3.589-8 8-8 8 3.589 8 8-3.589 8-8 8z"}))}));xB.displayName="HelpCircle";var _B=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M6.194 14.644c0 1.16-.943 2.107-2.103 2.107a2.11 2.11 0 0 1-2.104-2.107 2.11 2.11 0 0 1 2.104-2.106h2.103v2.106zm1.061 0c0-1.16.944-2.106 2.104-2.106a2.11 2.11 0 0 1 2.103 2.106v5.274a2.11 2.11 0 0 1-2.103 2.106 2.108 2.108 0 0 1-2.104-2.106v-5.274zm2.104-8.455c-1.16 0-2.104-.948-2.104-2.107s.944-2.106 2.104-2.106a2.11 2.11 0 0 1 2.103 2.106v2.107H9.359zm0 1.06a2.11 2.11 0 0 1 2.103 2.107 2.11 2.11 0 0 1-2.103 2.106H4.092a2.11 2.11 0 0 1-2.104-2.106 2.11 2.11 0 0 1 2.104-2.107h5.267zm8.447 2.107c0-1.16.943-2.107 2.103-2.107a2.11 2.11 0 0 1 2.104 2.107 2.11 2.11 0 0 1-2.104 2.106h-2.103V9.356zm-1.061 0c0 1.16-.944 2.106-2.104 2.106a2.11 2.11 0 0 1-2.103-2.106V4.082a2.11 2.11 0 0 1 2.103-2.106c1.16 0 2.104.946 2.104 2.106v5.274zm-2.104 8.455c1.16 0 2.104.948 2.104 2.107s-.944 2.106-2.104 2.106a2.11 2.11 0 0 1-2.103-2.106v-2.107h2.103zm0-1.06a2.11 2.11 0 0 1-2.103-2.107 2.11 2.11 0 0 1 2.103-2.106h5.268a2.11 2.11 0 0 1 2.104 2.106 2.11 2.11 0 0 1-2.104 2.107h-5.268z"}))}));_B.displayName="Slack";var TB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M5 21h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2zm7-14 5 5h-4v5h-2v-5H7l5-5z"}))}));TB.displayName="UpArrowSquare";var CB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M19 21a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14zm-8-9V7h2v5h4l-5 5-5-5h4z"}))}));CB.displayName="DownArrowSquare";var OB=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M15 4H5v16h14V8h-4V4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0120.007 22H3.993A1 1 0 013 21.008V2.992zM17.657 12l-3.536 3.536-1.414-1.415L14.828 12l-2.12-2.121 1.413-1.415L17.657 12zM6.343 12L9.88 8.464l1.414 1.415L9.172 12l2.12 2.121-1.413 1.415L6.343 12z"}))}));OB.displayName="FileCode";var IB=tO(["\n background: ",";\n"],JO("draculaSelection")),AB=OO.div.withConfig({displayName:"Row__Wrapper"})(["\n display: flex;\n height: 2.4rem;\n padding: 0 0.6rem;\n line-height: 2.4rem;\n align-items: center;\n transition: background ","ms;\n cursor: pointer;\n user-select: none;\n\n ",";\n\n > span:not(:last-child) {\n margin-right: 0.6rem;\n }\n"],nI.FAST,(function(e){return e.active&&IB})),RB=OO($I).withConfig({displayName:"Row__Value"})(["\n flex: 1 1 auto;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n opacity: 0.7;\n"]),NB=OO(OB).withConfig({displayName:"Row__FileIcon"})(["\n height: 2.2rem;\n flex: 0 0 12px;\n margin: 0 0.6rem;\n color: ",";\n"],JO("draculaOrange")),kB=OO($I).withConfig({displayName:"Row__Name"})(["\n flex: 0 0 auto;\n"]);const LB=function(e){var t=e.active,n=e.onMouseEnter,r=e.onMouseLeave,i=e.onClick,o=e.query;return Kx.createElement(AB,{active:t,onClick:i,onMouseEnter:n,onMouseLeave:r},Kx.createElement(NB,{size:"12px"}),o.name&&Kx.createElement(kB,{color:"draculaForeground",size:"sm"},o.name),Kx.createElement(RB,{color:"draculaForeground",size:"sm"},o.value))};function MB(){return MB=Object.assign?Object.assign.bind():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},MB.apply(this,arguments)}function DB(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||UB(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 PB(e){return function(e){if(Array.isArray(e))return jB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||UB(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 UB(e,t){if(e){if("string"==typeof e)return jB(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)?jB(e,t):void 0}}function jB(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}var BB=OO.div.withConfig({displayName:"QueryPicker__Wrapper"})(["\n display: flex;\n max-height: 650px;\n width: 600px;\n max-width: 100vw;\n padding: 0.6rem 0;\n flex-direction: column;\n background: ",";\n box-shadow: "," 0px 5px 8px;\n border: 1px solid ",";\n border-radius: 4px;\n overflow: auto;\n"],JO("draculaBackgroundDarker"),JO("black"),JO("black")),FB=OO($I).withConfig({displayName:"QueryPicker__Helper"})(["\n padding: 1rem;\n text-align: center;\n opacity: 0.5;\n"]),HB=OO($I).withConfig({displayName:"QueryPicker__Esc"})(["\n padding: 0 2px;\n background: ",";\n border-radius: 2px;\n"],JO("draculaForeground")),zB=function(e){return"query"===e.type},VB=OO($I).withConfig({displayName:"QueryPicker__Title"})(["\n padding: 0.6rem 1.2rem 0.4rem;\n margin-top: 0.6rem;\n border-top: 1px solid ",";\n background: ",";\n"],(function(e){return e.theme.color.draculaSelection}),(function(e){return e.theme.color.blackAlpha40})),GB=OO($I).withConfig({displayName:"QueryPicker__Description"})(["\n padding: 0 1.2rem 1rem;\n color: ",";\n opacity: 0.7;\n background: ",";\n"],(function(e){return e.theme.color.draculaForeground}),(function(e){return e.theme.color.blackAlpha40})),WB=function(e){var t=e.hidePicker,n=e.queries,r=e.ref,i=II("ArrowDown"),o=II("ArrowUp"),a=II("Enter"),s=DB((0,Kx.useState)(-1),2),l=s[0],u=s[1],c=DB((0,Kx.useState)([]),2),f=c[0],d=c[1],h=DD().appendQuery;(0,Kx.useEffect)((function(){d(function(e){for(var t=PB(e),n=[],r=0;t.length;){var i=t.shift();if(void 0===i.queries)n.push({type:"query",id:r,data:i});else{var o=i;n.push({type:"descriptor",id:r,data:o}),t.unshift.apply(t,PB(o.queries))}r++}return n}(n))}),[n]);var p=(0,Kx.useCallback)((function(e){t(),h(e.value)}),[t]);return(0,Kx.useEffect)((function(){if(f.length){if(i){var e,t,n,r,a=null!==(e=null===(t=f.find(zB))||void 0===t?void 0:t.id)&&void 0!==e?e:0,s=null!==(n=null===(r=f.slice(l+1).find(zB))||void 0===r?void 0:r.id)&&void 0!==n?n:a;u(s)}if(o){var c,d,h,p,g=null!==(c=null===(d=PB(f).reverse().find(zB))||void 0===d?void 0:d.id)&&void 0!==c?c:f.length-1,m=null!==(h=null===(p=PB(f).slice(0,l).reverse().find(zB))||void 0===p?void 0:p.id)&&void 0!==h?h:g;u(m)}}}),[o,i,f]),(0,Kx.useEffect)((function(){if(a){var e=f.find((function(e){var t=e.id,n=e.type;return t===l&&"query"===n}));e&&p(e.data)}}),[l,a,t,n,p]),Kx.createElement(BB,{ref:r},Kx.createElement(FB,{_style:"italic",color:"draculaForeground",size:"xs"},"Navigate the list with ",Kx.createElement(TB,{size:"16px"}),Kx.createElement(CB,{size:"16px"})," keys, exit with ",Kx.createElement(HB,{_style:"normal",size:"ms",weight:700},"Esc")),f.map((function(e){if("query"===e.type){var n=e.data;return Kx.createElement(LB,{active:e.id===l,hidePicker:t,key:e.id,onClick:function(){return p(n)},onMouseEnter:function(){return u(e.id)},onMouseLeave:function(){return u(-1)},query:n})}var r=e.data,i=r.title,o=r.description;return Kx.createElement(Kx.Fragment,{key:e.id},Kx.createElement(VB,{color:"draculaForeground",size:"md"},i),Kx.createElement(GB,{color:"draculaForeground"},o))})))},qB=function(e,t){return Kx.createElement(WB,MB({},e,{ref:t}))};const YB=(0,Kx.forwardRef)(qB);function XB(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}var $B=OO(eA).withConfig({displayName:"Menu__Wrapper"})(["\n z-index: 15;\n\n .algolia-autocomplete {\n display: "," !important;\n flex: 0 1 168px;\n }\n"],(function(e){return e._display})),KB=OO.div.withConfig({displayName:"Menu__Separator"})(["\n flex: 1;\n"]),QB=OO(VI).withConfig({displayName:"Menu__DocsearchInput"})(["\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"]),JB=OO(vI).withConfig({displayName:"Menu__QueryPickerButton"})(["\n position: relative;\n margin: 0 1rem;\n flex: 0 0 auto;\n\n ","\n"],(function(e){return e.firstTimeVisitor&&'&:after {\n border-radius: 50%;\n content: "";\n background: #dc4949;\n width: 8px;\n height: 8px;\n position: absolute;\n top: -3px;\n right: -3px;\n }'})),ZB=OO(bB).withConfig({displayName:"Menu__MenuIcon"})(["\n color: ",";\n"],JO("draculaForeground")),eF=OO(vI).withConfig({displayName:"Menu__ShowSchemaButton"})(["\n margin-right: 1rem;\n"]),tF=OO(yB).withConfig({displayName:"Menu__CloseIcon"})(["\n color: ",";\n"],JO("draculaForeground")),nF=OO(CI).withConfig({displayName:"Menu__SideMenuMenuButton"})(["\n padding: 0;\n\n .fade-enter {\n opacity: 0;\n }\n\n .fade-enter-active {\n opacity: 1;\n transition: opacity ","ms;\n }\n\n .fade-exit {\n opacity: 0;\n }\n\n .fade-exit-active {\n opacity: 1;\n transition: opacity ","ms;\n }\n"],nI.REG,nI.REG),rF=OO(vI).withConfig({displayName:"Menu__MenuButton"})(["\n margin-right: 1rem;\n"]),iF=function(e){var t=e.href,n=e.icon,r=e.tooltipText,i=Kx.createElement(rF,null,Kx.createElement(JI,{color:"draculaForeground",hoverColor:"draculaForeground",href:t,rel:"noreferrer",target:"_blank"},n));return Kx.createElement(jR,{delay:350,placement:"bottom",trigger:i},Kx.createElement(CN,null,r))};const oF=function(){var e=w_(),t=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XB(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)?XB(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.")}()}((0,Kx.useState)(),2),n=t[0],r=t[1],i=II("Escape"),o=T_(_U.console.getConfig).savedQueries,a=T_(_U.query.getRunning),s=T_(_U.console.getSideMenuOpened),l=PI().sm,u=Fj(),c=u.resultsSplitterBasis,f=u.exampleQueriesVisited,d=u.updateSettings,h=(0,Kx.useCallback)((function(){e(TP())}),[e]),p=(0,Kx.useCallback)((function(e){!f&&e&&d(jP.EXAMPLE_QUERIES_VISITED,!0),r(e)}),[]),g=(0,Kx.useCallback)((function(){r(!1)}),[]),m=(0,Kx.useCallback)((function(){e(EP.toggleSideMenu())}),[e]),v=(0,Kx.useCallback)((function(){d(jP.RESULTS_SPLITTER_BASIS,300)}),[]);return(0,Kx.useEffect)((function(){r(!1)}),[i]),(0,Kx.useEffect)((function(){mB()({apiKey:"b2a69b4869a2a85284a82fb57519dcda",indexName:"questdb",inputSelector:"#docsearch-input",handleSelected:function(e,t,n,r,i){if("click"===i.selectionMethod){e.setVal("");var o=window.open(n.url,"_blank");o&&o.focus()}}})}),[]),(0,Kx.useEffect)((function(){!l&&s&&e(EP.toggleSideMenu())}),[e,s,l]),Kx.createElement($B,{_display:l?"none":"inline"},0===c&&Kx.createElement(jR,{delay:350,placement:"bottom",trigger:Kx.createElement(eF,{onClick:v},Kx.createElement(SB,{size:"18px"}))},Kx.createElement(CN,null,"Show tables")),a.value&&Kx.createElement(xI,{onClick:h},Kx.createElement(wB,{size:"18px"}),Kx.createElement("span",null,"Cancel")),!a.value&&Kx.createElement(EI,{onClick:h,title:"Ctrl+Enter"},Kx.createElement(EB,{size:"18px"}),Kx.createElement("span",null,"Run")),Kx.createElement(KB,null),o.length>0&&Kx.createElement(WR,{active:n,onToggle:p,trigger:Kx.createElement(JB,{firstTimeVisitor:!f},Kx.createElement(vB,{size:"18px"}),Kx.createElement("span",null,"Example queries"))},Kx.createElement(YB,{hidePicker:g,queries:o})),Kx.createElement(KB,null),Kx.createElement(iF,{href:"https://slack.questdb.io/",icon:Kx.createElement(_B,{size:"18px"}),tooltipText:"Questions? Join our Slack"}),Kx.createElement(iF,{href:"https://questdb.io/docs/develop/web-console/",icon:Kx.createElement(xB,{size:"18px"}),tooltipText:"Go to Web Console help"}),Kx.createElement(QB,{id:"docsearch-input",placeholder:"Search documentation",title:"Search..."}),l&&Kx.createElement(nF,{onClick:m},Kx.createElement(RR,{classNames:"fade",in:s,timeout:nI.REG},s?Kx.createElement(tF,{size:"26px"}):Kx.createElement(ZB,{size:"26px"}))))};var aF=["innerRef"];function sF(){return sF=Object.assign?Object.assign.bind():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},sF.apply(this,arguments)}var lF=OO(tA).withConfig({displayName:"Editor__EditorPaneWrapper"})(["\n overflow: hidden;\n"]),uF=function(e){var t=e.innerRef,n=function(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}(e,aF);return Kx.createElement(lF,sF({ref:t},n),Kx.createElement(oF,null),Kx.createElement(pB,null))},cF=function(e,t){return Kx.createElement(uF,sF({},e,{innerRef:t}))};const fF=(0,Kx.forwardRef)(cF);var dF=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 2C6.475 2 2 6.475 2 12a9.994 9.994 0 006.838 9.488c.5.087.687-.213.687-.476 0-.237-.013-1.024-.013-1.862-2.512.463-3.162-.612-3.362-1.175-.113-.288-.6-1.175-1.025-1.413-.35-.187-.85-.65-.013-.662.788-.013 1.35.725 1.538 1.025.9 1.512 2.338 1.087 2.912.825.088-.65.35-1.087.638-1.337-2.225-.25-4.55-1.113-4.55-4.938 0-1.088.387-1.987 1.025-2.688-.1-.25-.45-1.275.1-2.65 0 0 .837-.262 2.75 1.026a9.28 9.28 0 012.5-.338c.85 0 1.7.112 2.5.337 1.912-1.3 2.75-1.024 2.75-1.024.55 1.375.2 2.4.1 2.65.637.7 1.025 1.587 1.025 2.687 0 3.838-2.337 4.688-4.562 4.938.362.312.675.912.675 1.85 0 1.337-.013 2.412-.013 2.75 0 .262.188.574.688.474A10.016 10.016 0 0022 12c0-5.525-4.475-10-10-10z"}))}));dF.displayName="Github";var hF=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 18.26l-7.053 3.948 1.575-7.928L.587 8.792l8.027-.952L12 .5l3.386 7.34 8.027.952-5.935 5.488 1.575 7.928L12 18.26zm0-2.292l4.247 2.377-.949-4.773 3.573-3.305-4.833-.573L12 5.275l-2.038 4.42-4.833.572 3.573 3.305-.949 4.773L12 15.968z"}))}));hF.displayName="Star";var pF=OO.div.withConfig({displayName:"GithubBanner__Wrapper"})(["\n position: fixed;\n display: flex;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n align-items: center;\n justify-content: center;\n background: ",";\n overflow: hidden;\n"],JO("draculaPink")),gF=OO.span.withConfig({displayName:"GithubBanner__GithubLink"})(["\n text-decoration: underline;\n"]),mF=OO(yB).withConfig({displayName:"GithubBanner__CloseIcon"})(["\n position: absolute;\n right: 1rem;\n color: ",";\n\n &:hover {\n cursor: pointer;\n }\n"],JO("black")),vF=OO(hF).withConfig({displayName:"GithubBanner__StarIcon"})(["\n color: ",";\n"],JO("draculaYellow"));const yF=function(e){var t=e.onClick;return Kx.createElement(pF,null,Kx.createElement(JI,{hoverColor:"black",href:"https://github.com/questdb/questdb",weight:800},"If you like QuestDB, give us a ",Kx.createElement(vF,{size:"14px"})," on ",Kx.createElement(gF,null,"Github")),Kx.createElement(mF,{onClick:t,size:"20px"}))};var bF=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 5H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1M8 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M8 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m0 0h2a2 2 0 0 1 2 2v3m2 4H10m0 0 3-3m-3 3 3 3"}))}));bF.displayName="ClipboardCopy";var EF=/Build Information: (QuestDB [0-9A-Za-z.]*),/;function wF(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}var SF=OO.div.withConfig({displayName:"BuildVersion__Wrapper"})(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n\n & > :not(:last-child) {\n margin-right: 1rem;\n }\n"]),xF=OO(vI).withConfig({displayName:"BuildVersion__CopyButton"})(["\n & > :not(:last-child) {\n margin-right: 1rem;\n }\n"]);const _F=function(){var e=(0,Kx.useContext)(wD).quest,t=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wF(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)?wF(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.")}()}((0,Kx.useState)(""),2),n=t[0],r=t[1];(0,Kx.useEffect)((function(){e.queryRaw("select build",{limit:"0,1000"}).then((function(e){var t,n;e.type===BO.DQL&&1===e.count&&r((t=e.dataset[0][0],(n=EF.exec(t.toString()))?n[1]:""))}))}));var i=(0,Kx.useCallback)((function(){AO(n)}),[n]);return Kx.createElement(SF,null,Kx.createElement(xF,{onClick:i,title:"Copy Build Version"},Kx.createElement("span",null,n),Kx.createElement(bF,{size:"18px"})))};function TF(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}var CF=OO.div.withConfig({displayName:"ConnectionStatus__Wrapper"})(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n"]),OF=OO.div.withConfig({displayName:"ConnectionStatus__StatusIcon"})(["\n display: block;\n width: 0.6rem;\n height: 0.6rem;\n border-radius: 50%;\n background-color: ",";\n margin-right: 0.6rem;\n"],(function(e){return e.isConnected?JO("draculaGreen"):JO("draculaRed")}));const IF=function(){var e=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return TF(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)?TF(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.")}()}((0,Kx.useState)(!0),2),t=e[0],n=e[1];return(0,Kx.useEffect)((function(){window.bus.on(Rw.MSG_CONNECTION_OK,(function(){n(!0)})),window.bus.on(Rw.MSG_CONNECTION_ERROR,(function(){n(!1)}))}),[t]),Kx.createElement(CF,null,Kx.createElement(OF,{isConnected:t}),t?Kx.createElement($I,{color:"white"},"Connected"):Kx.createElement($I,{color:"white"},"Error connecting to QuestDB"))};function AF(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RF(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)?RF(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 RF(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}var NF=OO.div.withConfig({displayName:"Footer__Wrapper"})(["\n position: absolute;\n display: flex;\n height: 4rem;\n bottom: 0;\n left: 0;\n right: 0;\n padding-left: 45px;\n"]),kF=OO.div.withConfig({displayName:"Footer__LeftContainer"})(["\n display: flex;\n padding-left: 1rem;\n align-items: center;\n flex: 1;\n"]),LF=OO.div.withConfig({displayName:"Footer__RightContainer"})(["\n display: flex;\n padding-right: 1rem;\n align-items: center;\n\n & > *:not(:last-child) {\n margin-right: 1rem;\n }\n"]),MF=TO(["\n .github-banner-enter {\n max-height: 0;\n }\n\n .github-banner-enter-active {\n max-height: 4rem;\n transition: all ","ms;\n }\n\n .github-banner-exit,\n .github-banner-enter-done {\n max-height: 4rem;\n }\n\n .github-banner-exit-active {\n max-height: 0;\n transition: all ","ms;\n }\n"],nI.REG,nI.REG);const DF=function(){var e=AF((0,Kx.useState)(!1),2),t=e[0],n=e[1],r=AF((0,Kx.useState)(!0),2),i=r[0],o=r[1],a=(0,Kx.useCallback)((function(){n(!1)}),[]),s=T_(_U.console.getConfig).githubBanner;return(0,Kx.useEffect)((function(){setTimeout((function(){n(!0)}),2e3),window.bus.on(Rw.MSG_CONNECTION_ERROR,(function(){o(!1)})),window.bus.on(Rw.MSG_CONNECTION_OK,(function(){o(!0)}))}),[]),Kx.createElement(NF,{id:"footer"},Kx.createElement(kF,null,Kx.createElement($I,{color:"draculaForeground"},"Copyright © ",(new Date).getFullYear()," QuestDB")),Kx.createElement(LF,null,Kx.createElement(IF,null),i&&Kx.createElement(_F,null),Kx.createElement(JI,{color:"draculaForeground",hoverColor:"draculaCyan",href:"https://github.com/questdb/questdb",rel:"noreferrer",target:"_blank"},Kx.createElement(dF,{size:"18px"}))),Kx.createElement(MF,null),Kx.createElement(RR,{classNames:"github-banner",in:t&&s,timeout:nI.REG,unmountOnExit:!0},Kx.createElement(yF,{onClick:a})))};function PF(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}const UF=function(e){var t=e.dirty,n=e.onInit,r=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return PF(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)?PF(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.")}()}((0,Kx.useState)(""),2),i=r[0],o=r[1],a=(0,Kx.useCallback)((function(e){var r;o(null===(r=e.target)||void 0===r?void 0:r.value),t||n()}),[t,n]);return Kx.createElement(VI,{name:"email",onChange:a,pattern:"^[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])?)+$",required:!0,size:"lg",title:"email",type:"email",value:i})};function jF(e){return jF="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},jF(e)}function BF(){return BF=Object.assign?Object.assign.bind():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},BF.apply(this,arguments)}function FF(){FF=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==jF(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,c):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),c},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),S(n),c}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function HF(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 zF(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){HF(o,r,i,a,s,"next",e)}function s(e){HF(o,r,i,a,s,"throw",e)}a(void 0)}))}}function VF(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return GF(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)?GF(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 GF(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}var WF=OO.div.withConfig({displayName:"PowerUser__Wrapper"})(["\n position: relative;\n display: flex;\n flex-direction: column;\n max-width: 600px;\n padding: 6rem 7rem;\n background: ",";\n box-shadow: 8px 6px 0 0 ",";\n border-radius: 4px;\n"],JO("black"),JO("draculaBackground")),qF=OO($I).withConfig({displayName:"PowerUser__Title"})([""]),YF=OO($I).withConfig({displayName:"PowerUser__Description"})(["\n margin: 4rem 0;\n line-height: 1.75;\n"]),XF=OO.form.withConfig({displayName:"PowerUser__Form"})(["\n display: flex;\n max-width: 300px;\n width: 100%;\n align-self: center;\n flex-direction: column;\n"]),$F=OO(vI).withConfig({displayName:"PowerUser__Submit"})(["\n margin-top: 2rem;\n"]),KF=OO(yB).withConfig({displayName:"PowerUser__CloseIcon"})(["\n position: absolute;\n right: 1rem;\n top: 1rem;\n color: ",";\n\n &:hover {\n cursor: pointer;\n }\n"],JO("gray2")),QF=OO.a.withConfig({displayName:"PowerUser__Link"})(["\n color: ",";\n\n &:hover {\n color: ",";\n text-decoration: underline;\n }\n"],JO("draculaCyan"),JO("draculaCyan")),JF=OO($I).withConfig({displayName:"PowerUser__Error"})(["\n margin-top: 0.5rem;\n"]),ZF="Email address is missing or not valid",eH=function(e){var t=e.innerRef,n=VF((0,Kx.useState)(""),2),r=n[0],i=n[1],o=VF((0,Kx.useState)(!1),2),a=o[0],s=o[1],l=(0,Kx.useRef)(null),u=w_(),c=T_(_U.telemetry.getConfig),f=(0,Kx.useCallback)((function(){u(EP.setModalId())}),[u]),d=(0,Kx.useCallback)((function(){i(""),s(!0)}),[]),h=(0,Kx.useCallback)(zF(FF().mark((function e(){var t,n,r;return FF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=l.current){e.next=2;break}return e.abrupt("return");case 2:if(t=l.current.checkValidity(),s(!1),!t){e.next=12;break}return n=new FormData(l.current),e.next=8,LO("profile",{body:JSON.stringify({email:n.get("email"),id:null==c?void 0:c.id}),method:"POST"});case 8:(r=e.sent).error&&401===r.status?i(ZF):(i(""),u(EP.setModalId())),e.next=13;break;case 12:i(ZF);case 13:case"end":return e.stop()}}),e)}))),[c,u,l]),p=(0,Kx.useCallback)(zF(FF().mark((function e(){return FF().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LO("profile",{body:JSON.stringify({id:null==c?void 0:c.id,slack:!0}),method:"POST"});case 2:u(EP.setModalId());case 3:case"end":return e.stop()}}),e)}))),[c,u]);return Kx.createElement(WF,{ref:t},Kx.createElement(qF,{color:"white",size:"hg"},"Let’s get in touch!"),Kx.createElement(YF,{color:"white",size:"lg"},"We’d love to get your feedback on features and performance in QuestDB. Let us know your thoughts on"," ",Kx.createElement(QF,{href:"https://slack.questdb.io",onClick:p,rel:"noopener noreferrer",target:"_blank"},"our community slack")," ","or share your email below so we can get in contact."),Kx.createElement(XF,{ref:l},Kx.createElement($I,{color:"white",htmlFor:"name",size:"lg",type:"label"},"Email"),Kx.createElement(UF,{dirty:a,onInit:d}),""!==r&&Kx.createElement(JF,{color:"draculaOrange",size:"md"},r),Kx.createElement($F,{fontSize:"lg",onClick:h,size:"lg"},"Send")),Kx.createElement(KF,{onClick:f,size:"24px"}))},tH=function(e,t){return Kx.createElement(eH,BF({},e,{innerRef:t}))};const nH=(0,Kx.forwardRef)(tH);function rH(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}var iH=OO.div.withConfig({displayName:"Modal__Backdrop"})(["\n position: fixed;\n display: flex;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n align-items: center;\n justify-content: center;\n z-index: ",";\n background: ",";\n transition: background ","ms\n cubic-bezier(0, 0, 0.38, 0.9);\n"],(function(e){return e.active?50:-1}),(function(e){var t=e.active,n=e.theme;return t?n.color.blackAlpha40:n.color.transparent}),nI.REG),oH=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},Nw.POWER_USER,nH);const aH=function(){var e=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rH(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)?rH(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.")}()}((0,Kx.useState)(!1),2),t=e[0],n=e[1],r=T_(_U.console.getModalId),i=(0,Kx.useRef)(null),o=w_(),a=(0,Kx.useCallback)((function(e){Nw.POWER_USER!==r&&null!=i.current&&e.target instanceof HTMLElement&&!i.current.contains(e.target)&&o(EP.setModalId())}),[o,r]);return(0,Kx.useEffect)((function(){setTimeout((function(){n(!0)}),10)}),[]),Kx.createElement(RR,{classNames:"fade-reg",in:t&&null!=r,timeout:nI.REG,unmountOnExit:!0},Kx.createElement(iH,{active:t,onClick:a},null!=r&&Kx.createElement(oH[r],{ref:i})))};function sH(e,t){var n=Object.create(null);return e&&Kx.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Kx.isValidElement)(e)?t(e):e}(e)})),n}function lH(e,t,n){return null!=n[t]?n[t]:e.props[t]}function uH(e,t,n){var r=sH(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if((0,Kx.isValidElement)(a)){var s=o in t,l=o in r,u=t[o],c=(0,Kx.isValidElement)(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&(0,Kx.isValidElement)(u)&&(i[o]=(0,Kx.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:lH(a,"exit",e),enter:lH(a,"enter",e)})):i[o]=(0,Kx.cloneElement)(a,{in:!1}):i[o]=(0,Kx.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:lH(a,"exit",e),enter:lH(a,"enter",e)})}})),i}var cH=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},fH=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}vR(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,sH(n.children,(function(e){return(0,Kx.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:lH(e,"appear",n),enter:lH(e,"enter",n),exit:lH(e,"exit",n)})}))):uH(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=sH(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=m_({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=gR(e,["component","childFactory"]),i=this.state.contextValue,o=cH(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Kx.createElement(bR.Provider,{value:i},o):Kx.createElement(bR.Provider,{value:i},Kx.createElement(t,r,o))},t}(Kx.Component);fH.propTypes={},fH.defaultProps={component:"div",childFactory:function(e){return e}};const dH=fH;var hH=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M3 3h18a1 1 0 011 1v16a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1zm1 2v14h16V5H4zm8 10h6v2h-6v-2zm-3.333-3L5.838 9.172l1.415-1.415L11.495 12l-4.242 4.243-1.415-1.415L8.667 12z"}))}));hH.displayName="TerminalBox";var pH=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))}));pH.displayName="ArrowUpS";var gH=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M5 11h14v2H5z"}))}));gH.displayName="Subtract";var mH=OO.div.withConfig({displayName:"styles__Wrapper"})(["\n display: flex;\n align-items: center;\n border-right: none;\n width: 100%;\n height: 4rem;\n border-bottom: 1px "," solid;\n padding: 0 1rem;\n\n ",";\n"],JO("draculaBackgroundDarker"),aI),vH=OO.div.withConfig({displayName:"styles__Content"})(["\n display: flex;\n margin-left: 0.5rem;\n white-space: nowrap;\n"]),yH=OO.div.withConfig({displayName:"styles__SideContent"})(["\n margin-left: auto;\n padding-left: 1rem;\n overflow: hidden;\n text-overflow: ellipsis;\n"]),bH=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("g",{"data-name":"Layer 2"},Kx.createElement("path",{d:"M9.86 18a1 1 0 01-.73-.32l-4.86-5.17a1 1 0 111.46-1.37l4.12 4.39 8.41-9.2a1 1 0 111.48 1.34l-9.14 10a1 1 0 01-.73.33z","data-name":"checkmark"})))}));bH.displayName="CheckmarkOutline";var EH=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{d:"M20.98 11.802a.995.995 0 0 0-.738-.771l-6.86-1.716 2.537-5.921a.998.998 0 0 0-.317-1.192.996.996 0 0 0-1.234.024l-11 9a1 1 0 0 0 .39 1.744l6.719 1.681-3.345 5.854A1.001 1.001 0 0 0 8 22a.995.995 0 0 0 .6-.2l12-9a1 1 0 0 0 .38-.998z"}))}));function wH(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function SH(e){wH(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function xH(e){wH(1,arguments);var t=SH(e);return!isNaN(t)}EH.displayName="Zap";var _H={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function TH(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const CH={date:TH({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:TH({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:TH({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var OH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function IH(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}const AH={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:IH({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:IH({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:IH({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:IH({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:IH({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function RH(e){return function(t,n){var r=String(t),i=n||{},o=i.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(a);if(!s)return null;var l,u=s[0],c=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(u))return n}(c):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(u))return n}(c),l=e.valueCallback?e.valueCallback(l):l,{value:l=i.valueCallback?i.valueCallback(l):l,rest:r.slice(u.length)}}}var NH,kH={ordinalNumber:(NH={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(NH.matchPattern);if(!i)return null;var o=i[0],a=n.match(NH.parsePattern);if(!a)return null;var s=NH.valueCallback?NH.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:RH({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:RH({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:RH({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:RH({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:RH({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const LH={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof _H[e]?_H[e]:1===t?_H[e].one:_H[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:CH,formatRelative:function(e,t,n,r){return OH[e]},localize:AH,match:kH,options:{weekStartsOn:0,firstWeekContainsDate:1}};function MH(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function DH(e,t){wH(2,arguments);var n=SH(e).getTime(),r=MH(t);return new Date(n+r)}function PH(e,t){wH(2,arguments);var n=MH(t);return DH(e,-n)}function UH(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}const jH=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return UH("yy"===t?r%100:r,t.length)},BH=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):UH(n+1,2)},FH=function(e,t){return UH(e.getUTCDate(),t.length)},HH=function(e,t){return UH(e.getUTCHours()%12||12,t.length)},zH=function(e,t){return UH(e.getUTCHours(),t.length)},VH=function(e,t){return UH(e.getUTCMinutes(),t.length)},GH=function(e,t){return UH(e.getUTCSeconds(),t.length)},WH=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return UH(Math.floor(r*Math.pow(10,n-3)),t.length)};var qH=864e5;function YH(e){wH(1,arguments);var t=1,n=SH(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function XH(e){wH(1,arguments);var t=SH(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=YH(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=YH(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function $H(e){wH(1,arguments);var t=XH(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=YH(n);return r}var KH=6048e5;function QH(e,t){wH(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:MH(i),a=null==n.weekStartsOn?o:MH(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=SH(e),l=s.getUTCDay(),u=(l<a?7:0)+l-a;return s.setUTCDate(s.getUTCDate()-u),s.setUTCHours(0,0,0,0),s}function JH(e,t){wH(1,arguments);var n=SH(e,t),r=n.getUTCFullYear(),i=t||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:MH(a),l=null==i.firstWeekContainsDate?s:MH(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(r+1,0,l),u.setUTCHours(0,0,0,0);var c=QH(u,t),f=new Date(0);f.setUTCFullYear(r,0,l),f.setUTCHours(0,0,0,0);var d=QH(f,t);return n.getTime()>=c.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function ZH(e,t){wH(1,arguments);var n=t||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:MH(i),a=null==n.firstWeekContainsDate?o:MH(n.firstWeekContainsDate),s=JH(e,t),l=new Date(0);l.setUTCFullYear(s,0,a),l.setUTCHours(0,0,0,0);var u=QH(l,t);return u}var ez=6048e5;function tz(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+UH(o,2)}function nz(e,t){return e%60==0?(e>0?"-":"+")+UH(Math.abs(e)/60,2):rz(e,t)}function rz(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+UH(Math.floor(i/60),2)+n+UH(i%60,2)}const iz={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return jH(e,t)},Y:function(e,t,n,r){var i=JH(e,r),o=i>0?i:1-i;return"YY"===t?UH(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):UH(o,t.length)},R:function(e,t){return UH(XH(e),t.length)},u:function(e,t){return UH(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return UH(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return UH(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return BH(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return UH(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=function(e,t){wH(1,arguments);var n=SH(e),r=QH(n,t).getTime()-ZH(n,t).getTime();return Math.round(r/ez)+1}(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):UH(i,t.length)},I:function(e,t,n){var r=function(e){wH(1,arguments);var t=SH(e),n=YH(t).getTime()-$H(t).getTime();return Math.round(n/KH)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):UH(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):FH(e,t)},D:function(e,t,n){var r=function(e){wH(1,arguments);var t=SH(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/qH)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):UH(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return UH(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return UH(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return UH(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return HH(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):zH(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):UH(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):UH(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):VH(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):GH(e,t)},S:function(e,t){return WH(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return nz(i);case"XXXX":case"XX":return rz(i);default:return rz(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return nz(i);case"xxxx":case"xx":return rz(i);default:return rz(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tz(i,":");default:return"GMT"+rz(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tz(i,":");default:return"GMT"+rz(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return UH(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return UH((r._originalDate||e).getTime(),t.length)}};function oz(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}}function az(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}}const sz={p:az,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return oz(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",oz(i,t)).replace("{{time}}",az(o,t))}};var lz=6e4;function uz(e){return e.getTime()%lz}function cz(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var r=n>0?(lz+uz(t))%lz:uz(t);return n*lz+r}var fz=["D","DD"],dz=["YY","YYYY"];function hz(e){return-1!==fz.indexOf(e)}function pz(e){return-1!==dz.indexOf(e)}function gz(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var mz=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vz=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yz=/^'([^]*?)'?$/,bz=/''/g,Ez=/[a-zA-Z]/;function wz(e){return e.match(yz)[1].replace(bz,"'")}var Sz=function e(t,n,r){return(r=r||[]).length>=n?t.apply(null,r.slice(0,n).reverse()):function(){var i=Array.prototype.slice.call(arguments);return e(t,n,r.concat(i))}}((function(e,t,n){wH(2,arguments);var r=String(t),i=n||{},o=i.locale||LH,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:MH(a),l=null==i.firstWeekContainsDate?s:MH(i.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:MH(u),f=null==i.weekStartsOn?c:MH(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=SH(e);if(!xH(d))throw new RangeError("Invalid time value");var h=cz(d),p=PH(d,h),g={firstWeekContainsDate:l,weekStartsOn:f,locale:o,_originalDate:d},m=r.match(vz).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,sz[t])(e,o.formatLong,g):e})).join("").match(mz).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return wz(e);var n=iz[t];if(n)return!i.useAdditionalWeekYearTokens&&pz(e)&&gz(e),!i.useAdditionalDayOfYearTokens&&hz(e)&&gz(e),n(p,e,o.localize,g);if(t.match(Ez))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("");return m}),2);const xz=Sz;var _z=OO($I).withConfig({displayName:"Timestamp__TimestampText"})(["\n display: flex;\n margin-right: 0.5rem;\n"]),Tz=function(e){var t=e.createdAt;return Kx.createElement(_z,{color:"gray2"},"[",xz("HH:mm:ss",t),"]")},Cz=OO(bH).withConfig({displayName:"SuccessNotification__CheckmarkOutlineIcon"})(["\n color: ",";\n flex-shrink: 0;\n"],JO("draculaGreen")),Oz=OO(EH).withConfig({displayName:"SuccessNotification__ZapIcon"})(["\n color: ",";\n"],JO("draculaYellow")),Iz=function(e){var t=e.createdAt,n=e.content,r=e.sideContent,i=e.jitCompiled;return Kx.createElement(mH,null,Kx.createElement(Tz,{createdAt:t}),i?Kx.createElement(jI,{icon:Kx.createElement(Oz,{size:"16px"}),placement:"top",tooltip:"JIT Compiled"}):Kx.createElement(Cz,{size:"18px"}),Kx.createElement(vH,null,n),Kx.createElement(yH,null,r))},Az=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("g",{"data-name":"Layer 2"},Kx.createElement("path",{d:"M13.41 12l4.3-4.29a1 1 0 10-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 00-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 000 1.42 1 1 0 001.42 0l4.29-4.3 4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42z","data-name":"close"})))}));Az.displayName="CloseOutline";var Rz=OO(Az).withConfig({displayName:"ErrorNotification__CloseOutlineIcon"})(["\n color: ",";\n flex-shrink: 0;\n"],JO("draculaRed")),Nz=function(e){var t=e.createdAt,n=e.content,r=e.sideContent;return Kx.createElement(mH,null,Kx.createElement(Tz,{createdAt:t}),Kx.createElement(Rz,{size:"18px"}),Kx.createElement(vH,null,n),Kx.createElement(yH,null,r))},kz=function(e){var t=e.createdAt,n=e.content,r=e.sideContent;return Kx.createElement(mH,null,Kx.createElement(Tz,{createdAt:t}),Kx.createElement(vH,null,n),Kx.createElement(yH,null,r))},Lz=["type"];function Mz(){return Mz=Object.assign?Object.assign.bind():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},Mz.apply(this,arguments)}const Dz=function(e){var t=e.type,n=function(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}(e,Lz);return Kx.createElement(RR,Mz({classNames:"fade-reg",timeout:nI.REG,unmountOnExit:!0},n),t===sP.SUCCESS?Kx.createElement(Iz,e):t===sP.ERROR?Kx.createElement(Nz,e):Kx.createElement(kz,e))};function Pz(){return Pz=Object.assign?Object.assign.bind():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},Pz.apply(this,arguments)}function Uz(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}var jz=OO(tA).withConfig({displayName:"Notifications__Wrapper"})(["\n flex: ",";\n overflow: auto;\n max-height: 35rem;\n"],(function(e){return e.minimized?"initial":"1"})),Bz=OO(eA).withConfig({displayName:"Notifications__Menu"})(["\n justify-content: space-between;\n"]),Fz=OO(ZI).withConfig({displayName:"Notifications__Content"})(["\n overflow: ",";\n padding: ",";\n flex: initial;\n height: ",";\n"],(function(e){return e.minimized?"hidden":"auto"}),(function(e){return e.minimized?"0":"0 0 1rem"}),(function(e){return e.minimized?"4rem":"100%"})),Hz=OO($I).withConfig({displayName:"Notifications__Header"})(["\n display: flex;\n align-items: center;\n"]),zz=OO(hH).withConfig({displayName:"Notifications__TerminalBoxIcon"})(["\n margin-right: 1rem;\n"]),Vz=OO.div.withConfig({displayName:"Notifications__ClearAllNotifications"})(["\n display: flex;\n width: 100%;\n justify-content: center;\n margin-top: auto;\n"]),Gz=OO(vI).withConfig({displayName:"Notifications__ClearAllNotificationsButton"})(["\n margin-top: 1rem;\n"]);const Wz=function(){var e=T_(_U.query.getNotifications),t=(0,Kx.useContext)(jj).isNotificationEnabled,n=PI().sm,r=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uz(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)?Uz(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.")}()}((0,Kx.useState)(!0),2),i=r[0],o=r[1],a=(0,Kx.useRef)(null),s=w_(),l=function(){var e,t;null===(e=a.current)||void 0===e||e.scrollTo({top:null===(t=a.current)||void 0===t?void 0:t.scrollHeight})},u=(0,Kx.useCallback)((function(){o(!i)}),[i]),c=(0,Kx.useCallback)((function(){s(SP())}),[s]);return(0,Kx.useLayoutEffect)((function(){e.length>0&&l()}),[e]),(0,Kx.useLayoutEffect)((function(){l()}),[i]),(0,Kx.useEffect)((function(){n&&o(!0)}),[n]),t?Kx.createElement(jz,{minimized:i},Kx.createElement(Bz,null,Kx.createElement(Hz,{color:"draculaForeground"},Kx.createElement(zz,{size:"18px"}),"Log"),Kx.createElement(vI,{onClick:u},i?Kx.createElement(pH,{size:"18px"}):Kx.createElement(gH,{size:"18px"}))),Kx.createElement(Fz,{minimized:i,ref:a},Kx.createElement(dH,{className:"notifications"},e.map((function(e){return Kx.createElement(Dz,Pz({key:e.createdAt?e.createdAt.getTime():0},e))}))),!i&&Kx.createElement(Vz,null,Kx.createElement(Gz,{disabled:0===e.length,onClick:c},"Clear all")))):Kx.createElement(Kx.Fragment,null)};var qz=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M14 10h-4v4h4v-4zm2 0v4h3v-4h-3zm-2 9v-3h-4v3h4zm2 0h3v-3h-3v3zM14 5h-4v3h4V5zm2 0v3h3V5h-3zm-8 5H5v4h3v-4zm0 9v-3H5v3h3zM8 5H5v3h3V5zM4 3h16a1 1 0 011 1v16a1 1 0 01-1 1H4a1 1 0 01-1-1V4a1 1 0 011-1z"}))}));qz.displayName="Grid";var Yz=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M5.463 4.433A9.961 9.961 0 0112 2c5.523 0 10 4.477 10 10 0 2.136-.67 4.116-1.81 5.74L17 12h3A8 8 0 006.46 6.228l-.997-1.795zm13.074 15.134A9.961 9.961 0 0112 22C6.477 22 2 17.523 2 12c0-2.136.67-4.116 1.81-5.74L7 12H4a8 8 0 0013.54 5.772l.997 1.795z"}))}));Yz.displayName="Refresh";var Xz=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M13 10h5l-6 6-6-6h5V3h2v7zm-9 9h16v-7h2v8a1 1 0 01-1 1H3a1 1 0 01-1-1v-8h2v7z"}))}));function $z(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kz(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)?Kz(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 Kz(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}Xz.displayName="Download2";var Qz=OO(eA).withConfig({displayName:"Result__Menu"})(["\n justify-content: space-between;\n"]),Jz=OO(tA).withConfig({displayName:"Result__Wrapper"})(["\n overflow: hidden;\n"]),Zz=OO(ZI).withConfig({displayName:"Result__Content"})(["\n color: ",";\n\n *::selection {\n background: ",";\n color: ",";\n }\n"],JO("draculaForeground"),JO("draculaRed"),JO("draculaForeground")),eV=OO.div.withConfig({displayName:"Result__ButtonWrapper"})(["\n display: flex;\n align-items: center;\n"]),tV=OO($I).withConfig({displayName:"Result__RowCount"})(["\n margin-right: 2rem;\n"]),nV=OO(vI).withConfig({displayName:"Result__RefreshButton"})(["\n margin-right: 1rem;\n"]),rV=OO(wN).withConfig({displayName:"Result__ToggleButton"})(["\n height: 4rem;\n width: 8.5rem;\n"]);const iV=function(){var e=$z((0,Kx.useState)("grid"),2),t=e[0],n=e[1],r=$z((0,Kx.useState)(),2),i=r[0],o=r[1],a=PI().sm,s=T_(_U.query.getResult),l=(0,Kx.useCallback)((function(){n("chart")}),[]),u=(0,Kx.useCallback)((function(){n("grid")}),[]),c=(0,Kx.useCallback)((function(){window.bus.trigger("grid.publish.query")}),[]),f=(0,Kx.useCallback)((function(){window.bus.trigger("grid.refresh")}),[]);return(0,Kx.useEffect)((function(){(null==s?void 0:s.type)===BO.DQL&&o(s.count)}),[s]),(0,Kx.useEffect)((function(){var e=document.getElementById("grid"),n=document.getElementById("quick-vis");e&&n&&("grid"===t?(e.style.display="flex",n.style.display="none",window.bus.trigger(Rw.MSG_ACTIVE_PANEL)):(e.style.display="none",n.style.display="flex"))}),[t]),Kx.createElement(Jz,null,Kx.createElement(Qz,null,Kx.createElement(eV,null,Kx.createElement(rV,{onClick:u,selected:"grid"===t},Kx.createElement(qz,{size:"18px"}),Kx.createElement("span",null,"Grid")),Kx.createElement(rV,{onClick:l,selected:"chart"===t},Kx.createElement(yD,{size:"18px"}),Kx.createElement("span",null,"Chart"))),Kx.createElement(eV,null,i&&!a&&Kx.createElement(tV,{color:"draculaForeground"},"".concat(i.toLocaleString()," row").concat(i>1?"s":"")),!a&&Kx.createElement(jR,{delay:350,placement:"bottom",trigger:Kx.createElement(nV,{onClick:f},Kx.createElement(Yz,{size:"18px"}))},Kx.createElement(CN,null,"Refresh")),Kx.createElement(jR,{delay:350,placement:"bottom",trigger:Kx.createElement(vI,{onClick:c},Kx.createElement(Xz,{size:"18px"}),Kx.createElement("span",null,"CSV"))},Kx.createElement(CN,null,"Download result as a CSV file")))),Kx.createElement(Zz,null,Kx.createElement("div",{id:"grid"},Kx.createElement("div",{className:"qg-header-row"}),Kx.createElement("div",{className:"qg-viewport"},Kx.createElement("div",{className:"qg-canvas"}))),Kx.createElement("div",{id:"quick-vis"},Kx.createElement("div",{className:"quick-vis-controls"},Kx.createElement("form",{className:"v-fit",role:"form"},Kx.createElement("div",{className:"form-group"},Kx.createElement("label",null,"Chart type"),Kx.createElement("select",{id:"_qvis_frm_chart_type"},Kx.createElement("option",null,"bar"),Kx.createElement("option",null,"line"),Kx.createElement("option",null,"area"))),Kx.createElement("div",{className:"form-group"},Kx.createElement("label",null,"Labels"),Kx.createElement("select",{id:"_qvis_frm_axis_x"})),Kx.createElement("div",{className:"form-group"},Kx.createElement("label",null,"Series"),Kx.createElement("select",{id:"_qvis_frm_axis_y",multiple:!0})),Kx.createElement("button",{className:"button-primary js-chart-draw",id:"_qvis_frm_draw"},Kx.createElement("i",{className:"fa fa-play"}),Kx.createElement("span",null,"Draw")))),Kx.createElement("div",{className:"quick-vis-canvas"}))))},oV=function(){var e=(0,Kx.useContext)(jj),t=e.isNotificationEnabled,n=e.updateSettings,r=(0,Kx.useCallback)((function(e){n(jP.NOTIFICATION_ENABLED,e)}),[n]);return Kx.createElement(dN,{items:[{text:"Enable",value:"true"},{text:"Disable",value:"false"}],onSelect:r,value:t.toString()})};var aV=OO.div.withConfig({displayName:"Notifications__Wrapper"})(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n width: 100%;\n"]),sV=OO.div.withConfig({displayName:"Notifications__SettingGroup"})(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 2rem;\n background: ",";\n\n &:not(:last-child) {\n border-bottom: 1px dotted ",";\n }\n"],JO("draculaBackground"),JO("draculaSelection")),lV=OO.div.withConfig({displayName:"Notifications__SettingControl"})(["\n width: 250px;\n"]);const uV=function(){return Kx.createElement(aV,null,Kx.createElement(sV,null,Kx.createElement(lV,null,Kx.createElement(oV,null))))};var cV=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("g",{"data-name":"Layer 2"},Kx.createElement("g",{"data-name":"settings-2"},Kx.createElement("circle",{cx:12,cy:12,r:1.5}),Kx.createElement("path",{d:"M20.32 9.37h-1.09c-.14 0-.24-.11-.3-.26a.34.34 0 010-.37l.81-.74a1.63 1.63 0 00.5-1.18 1.67 1.67 0 00-.5-1.19L18.4 4.26a1.67 1.67 0 00-2.37 0l-.77.74a.38.38 0 01-.41 0 .34.34 0 01-.22-.29V3.68A1.68 1.68 0 0013 2h-1.94a1.69 1.69 0 00-1.69 1.68v1.09c0 .14-.11.24-.26.3a.34.34 0 01-.37 0L8 4.26a1.72 1.72 0 00-1.19-.5 1.65 1.65 0 00-1.18.5L4.26 5.6a1.67 1.67 0 000 2.4l.74.74a.38.38 0 010 .41.34.34 0 01-.29.22H3.68A1.68 1.68 0 002 11.05v1.89a1.69 1.69 0 001.68 1.69h1.09c.14 0 .24.11.3.26a.34.34 0 010 .37l-.81.74a1.72 1.72 0 00-.5 1.19 1.66 1.66 0 00.5 1.19l1.34 1.36a1.67 1.67 0 002.37 0l.77-.74a.38.38 0 01.41 0 .34.34 0 01.22.29v1.09A1.68 1.68 0 0011.05 22h1.89a1.69 1.69 0 001.69-1.68v-1.09c0-.14.11-.24.26-.3a.34.34 0 01.37 0l.76.77a1.72 1.72 0 001.19.5 1.65 1.65 0 001.18-.5l1.34-1.34a1.67 1.67 0 000-2.37l-.73-.73a.34.34 0 010-.37.34.34 0 01.29-.22h1.09A1.68 1.68 0 0022 13v-1.94a1.69 1.69 0 00-1.68-1.69zM12 15.5a3.5 3.5 0 113.5-3.5 3.5 3.5 0 01-3.5 3.5z"}))))}));cV.displayName="Settings2";var fV=Kx.forwardRef((function(e,t){return Kx.createElement(KR,qR({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 20 20"},e,{ref:t}),Kx.createElement("path",{d:"M16 2H7.979C6.88 2 6 2.88 6 3.98V12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10H8V4h8v8zM4 10H2v6c0 1.1.9 2 2 2h6v-2H4v-6z"}))}));function dV(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}fV.displayName="Popup";var hV=OO.div.withConfig({displayName:"Settings__PaneWrapper"})(["\n display: flex;\n flex-direction: column;\n flex: 0;\n"]),pV=OO.div.withConfig({displayName:"Settings__Wrapper"})(["\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n"]),gV=OO(hV).withConfig({displayName:"Settings__HeaderWrapper"})(["\n width: 100%;\n"]),mV=OO(eA).withConfig({displayName:"Settings__HeaderMenu"})(["\n & > :not(:first-child) {\n margin-left: 1rem;\n }\n"]),vV=OO.div.withConfig({displayName:"Settings__Info"})(["\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n width: 100%;\n padding: 2rem;\n"]),yV=OO(cV).withConfig({displayName:"Settings__Icon"})(["\n color: ",";\n"],JO("draculaForeground")),bV=OO(hV).withConfig({displayName:"Settings__SettingsMenu"})(["\n width: 100%;\n padding: 0 10px;\n"]),EV=OO(wN).withConfig({displayName:"Settings__ToggleButton"})(["\n height: 4rem;\n padding: 0 1rem;\n"]),wV=OO(ZI).withConfig({displayName:"Settings__Content"})(["\n color: ",";\n\n *::selection {\n background: ",";\n color: ",";\n }\n"],JO("draculaForeground"),JO("draculaRed"),JO("draculaForeground"));const SV=function(){var e=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dV(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)?dV(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.")}()}((0,Kx.useState)("notification"),2),t=e[0],n=e[1],r=(0,Kx.useCallback)((function(){n("notification")}),[]);return Kx.createElement(pV,null,Kx.createElement(gV,null,Kx.createElement(mV,null,Kx.createElement(yV,{size:"20px"}),Kx.createElement($I,{color:"draculaForeground"},"Settings"))),Kx.createElement(vV,null,Kx.createElement($I,{color:"draculaForeground"},"On this page, you can customize your Quest DB console")),Kx.createElement(hV,null,Kx.createElement(bV,null,Kx.createElement(EV,{onClick:r,selected:"notification"===t},Kx.createElement(fV,{size:"18px"}),Kx.createElement("span",null,"Notification Log")))),Kx.createElement(wV,null,"notification"===t&&Kx.createElement(uV,null)))};var xV={};function _V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null,r=null;return mT(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&R_(e[0])&&(e=e[0]),vT(e,r).lift(new TV(n))}var TV=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new CV(e,this.resultSelector))},e}(),CV=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return I_(t,e),t.prototype._next=function(e){this.values.push(xV),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(IT(this,r,r,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,i){var o=this.values,a=o[n],s=this.toRespond?a===xV?--this.toRespond:this.toRespond:0;o[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(AT);function OV(){return AP(1)}function IV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return OV()(yT.apply(void 0,e))}function AV(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return mT(n)?(e.pop(),function(t){return IV(e,t,n)}):function(t){return IV(e,t)}}var RV=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M3.055 13H5.07a7.002 7.002 0 0013.858 0h2.016a9.001 9.001 0 01-17.89 0zm0-2a9.001 9.001 0 0117.89 0H18.93a7.002 7.002 0 00-13.858 0H3.055z"}))}));RV.displayName="Loader3";var NV=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2zm0 18c4.42 0 8-3.58 8-8s-3.58-8-8-8-8 3.58-8 8 3.58 8 8 8zm0-9h4v2h-4v3l-4-4 4-4v3z"}))}));NV.displayName="ArrowLeftCircle";var kV=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M18.364 5.636L16.95 7.05A7 7 0 1019 12h2a9 9 0 11-2.636-6.364z"}))}));kV.displayName="Loader4";var LV=n(7085),MV=n.n(LV),DV=n(518),PV=n.n(DV);function UV(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e&&e.apply(void 0,n)}function jV(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var BV="react-contextmenu",FV="react-contextmenu--visible",HV="react-contextmenu-item",zV="react-contextmenu-item--disabled",VV="react-contextmenu-item--selected",GV={},WV=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),qV="REACT_CONTEXTMENU_SHOW",YV="REACT_CONTEXTMENU_HIDE";function XV(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,r=void 0;"function"==typeof window.CustomEvent?r=new window.CustomEvent(e,{detail:t}):(r=document.createEvent("CustomEvent")).initCustomEvent(e,!1,!0,t),n&&(n.dispatchEvent(r),PV()(GV,t))}function $V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];XV(qV,PV()({},e,{type:qV}),t)}function KV(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];XV(YV,PV()({},e,{type:YV}),t)}const QV=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handleShowEvent=function(e){for(var n in t.callbacks)jV(t.callbacks,n)&&t.callbacks[n].show(e)},this.handleHideEvent=function(e){for(var n in t.callbacks)jV(t.callbacks,n)&&t.callbacks[n].hide(e)},this.register=function(e,n){var r=Math.random().toString(36).substring(7);return t.callbacks[r]={show:e,hide:n},r},this.unregister=function(e){e&&t.callbacks[e]&&delete t.callbacks[e]},this.callbacks={},WV&&(window.addEventListener(qV,this.handleShowEvent),window.addEventListener(YV,this.handleHideEvent))};var JV=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},ZV=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 eG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var rG=function(e){function t(){var e,n,r;tG(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=nG(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleClick=function(e){0!==e.button&&1!==e.button&&e.preventDefault(),r.props.disabled||r.props.divider||(UV(r.props.onClick,e,PV()({},r.props.data,GV.data),GV.target),r.props.preventClose||KV())},nG(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),ZV(t,[{key:"render",value:function(){var e,t=this,n=this.props,r=n.attributes,i=n.children,o=n.className,a=n.disabled,s=n.divider,l=n.selected,u=MV()(o,HV,r.className,(eG(e={},MV()(zV,r.disabledClassName),a),eG(e,MV()("react-contextmenu-item--divider",r.dividerClassName),s),eG(e,MV()(VV,r.selectedClassName),l),e));return Kx.createElement("div",JV({},r,{className:u,role:"menuitem",tabIndex:"-1","aria-disabled":a?"true":"false","aria-orientation":s?"horizontal":null,ref:function(e){t.ref=e},onMouseMove:this.props.onMouseMove,onMouseLeave:this.props.onMouseLeave,onTouchEnd:this.handleClick,onClick:this.handleClick}),s?null:i)}}]),t}(Kx.Component);rG.propTypes={attributes:dj().object,children:dj().node,className:dj().string,data:dj().object,disabled:dj().bool,divider:dj().bool,onClick:dj().func,onMouseLeave:dj().func,onMouseMove:dj().func,preventClose:dj().bool,selected:dj().bool},rG.defaultProps={attributes:{},children:null,className:"",data:{},disabled:!1,divider:!1,onClick:function(){return null},onMouseMove:function(){return null},onMouseLeave:function(){return null},preventClose:!1,selected:!1};const iG=rG;var oG=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return aG.call(n),n.seletedItemRef=null,n.state={selectedItem:null,forceSubMenuOpen:!1},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Kx.Component);oG.propTypes={children:dj().node.isRequired};var aG=function(){var e=this;this.handleKeyNavigation=function(t){if(!1!==e.state.isVisible)switch(t.keyCode){case 37:case 27:t.preventDefault(),e.hideMenu(t);break;case 38:t.preventDefault(),e.selectChildren(!0);break;case 40:t.preventDefault(),e.selectChildren(!1);break;case 39:e.tryToOpenSubMenu(t);break;case 13:t.preventDefault(),e.tryToOpenSubMenu(t);var n=e.seletedItemRef&&e.seletedItemRef.props&&e.seletedItemRef.props.disabled;e.seletedItemRef&&e.seletedItemRef.ref instanceof HTMLElement&&!n?e.seletedItemRef.ref.click():e.hideMenu(t)}},this.handleForceClose=function(){e.setState({forceSubMenuOpen:!1})},this.tryToOpenSubMenu=function(t){e.state.selectedItem&&e.state.selectedItem.type===e.getSubMenuType()&&(t.preventDefault(),e.setState({forceSubMenuOpen:!0}))},this.selectChildren=function(t){var n=e.state.selectedItem,r=[],i=0,o={};if(Kx.Children.forEach(e.props.children,(function t(n,a){n&&([iG,e.getSubMenuType()].indexOf(n.type)<0?Kx.Children.forEach(n.props.children,t):n.props.divider||(n.props.disabled&&(++i,o[a]=!0),r.push(n)))})),i!==r.length){var a=function(e){var n=e;do{t?--n:++n,n<0?n=r.length-1:n>=r.length&&(n=0)}while(n!==e&&o[n]);return n===e?null:n}(r.indexOf(n));null!==a&&e.setState({selectedItem:r[a],forceSubMenuOpen:!1})}},this.onChildMouseMove=function(t){e.state.selectedItem!==t&&e.setState({selectedItem:t,forceSubMenuOpen:!1})},this.onChildMouseLeave=function(){e.setState({selectedItem:null,forceSubMenuOpen:!1})},this.renderChildren=function(t){return Kx.Children.map(t,(function(t){var n={};return Kx.isValidElement(t)?[iG,e.getSubMenuType()].indexOf(t.type)<0?(n.children=e.renderChildren(t.props.children),Kx.cloneElement(t,n)):(n.onMouseLeave=e.onChildMouseLeave.bind(e),t.type===e.getSubMenuType()&&(n.forceOpen=e.state.forceSubMenuOpen&&e.state.selectedItem===t,n.forceClose=e.handleForceClose,n.parentKeyNavigationHandler=e.handleKeyNavigation),t.props.divider||e.state.selectedItem!==t?(n.onMouseMove=function(){return e.onChildMouseMove(t)},Kx.cloneElement(t,n)):(n.selected=!0,n.ref=function(t){e.seletedItemRef=t},Kx.cloneElement(t,n))):t}))}};const sG=oG;var lG=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},uG=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 cG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fG=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getMenuPosition=function(){var e=window,t=e.innerWidth,r=e.innerHeight,i=n.subMenu.getBoundingClientRect(),o={};return i.bottom>r?o.bottom=0:o.top=0,i.right<t?o.left="100%":o.right="100%",o},n.getRTLMenuPosition=function(){var e=window.innerHeight,t=n.subMenu.getBoundingClientRect(),r={};return t.bottom>e?r.bottom=0:r.top=0,t.left<0?r.left="100%":r.right="100%",r},n.hideSubMenu=function(e){e.detail&&e.detail.id&&n.menu&&e.detail.id!==n.menu.id||(n.props.forceOpen&&n.props.forceClose(),n.setState({visible:!1,selectedItem:null}),n.unregisterHandlers())},n.handleClick=function(e){e.preventDefault(),n.props.disabled||(UV(n.props.onClick,e,PV()({},n.props.data,GV.data),GV.target),n.props.onClick&&!n.props.preventCloseOnClick&&KV())},n.handleMouseEnter=function(){n.closetimer&&clearTimeout(n.closetimer),n.props.disabled||n.state.visible||(n.opentimer=setTimeout((function(){return n.setState({visible:!0,selectedItem:null})}),n.props.hoverDelay))},n.handleMouseLeave=function(){n.opentimer&&clearTimeout(n.opentimer),n.state.visible&&(n.closetimer=setTimeout((function(){return n.setState({visible:!1,selectedItem:null})}),n.props.hoverDelay))},n.menuRef=function(e){n.menu=e},n.subMenuRef=function(e){n.subMenu=e},n.registerHandlers=function(){document.removeEventListener("keydown",n.props.parentKeyNavigationHandler),document.addEventListener("keydown",n.handleKeyNavigation)},n.unregisterHandlers=function(e){document.removeEventListener("keydown",n.handleKeyNavigation),e||document.addEventListener("keydown",n.props.parentKeyNavigationHandler)},n.state=PV()({},n.state,{visible:!1}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),uG(t,[{key:"componentDidMount",value:function(){this.listenId=QV.register((function(){}),this.hideSubMenu)}},{key:"getSubMenuType",value:function(){return t}},{key:"shouldComponentUpdate",value:function(e,t){return this.isVisibilityChange=!(this.state.visible===t.visible&&this.props.forceOpen===e.forceOpen||this.state.visible&&e.forceOpen||this.props.forceOpen&&t.visible),!0}},{key:"componentDidUpdate",value:function(){var e=this;this.isVisibilityChange&&(this.props.forceOpen||this.state.visible?(window.requestAnimationFrame||setTimeout)((function(){var t=e.props.rtl?e.getRTLMenuPosition():e.getMenuPosition();e.subMenu.style.removeProperty("top"),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("left"),e.subMenu.style.removeProperty("right"),jV(t,"top")&&(e.subMenu.style.top=t.top),jV(t,"left")&&(e.subMenu.style.left=t.left),jV(t,"bottom")&&(e.subMenu.style.bottom=t.bottom),jV(t,"right")&&(e.subMenu.style.right=t.right),e.subMenu.classList.add(FV),e.registerHandlers(),e.setState({selectedItem:null})})):(this.subMenu.addEventListener("transitionend",(function t(){e.subMenu.removeEventListener("transitionend",t),e.subMenu.style.removeProperty("bottom"),e.subMenu.style.removeProperty("right"),e.subMenu.style.top=0,e.subMenu.style.left="100%",e.unregisterHandlers()})),this.subMenu.classList.remove(FV)))}},{key:"componentWillUnmount",value:function(){this.listenId&&QV.unregister(this.listenId),this.opentimer&&clearTimeout(this.opentimer),this.closetimer&&clearTimeout(this.closetimer),this.unregisterHandlers(!0)}},{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.attributes,i=t.disabled,o=t.title,a=t.selected,s=this.state.visible,l={ref:this.menuRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,className:MV()(HV,"react-contextmenu-submenu",r.listClassName),style:{position:"relative"}},u={className:MV()(HV,r.className,(e={},cG(e,MV()(zV,r.disabledClassName),i),cG(e,MV()("react-contextmenu-item--active",r.visibleClassName),s),cG(e,MV()(VV,r.selectedClassName),a),e)),onMouseMove:this.props.onMouseMove,onMouseOut:this.props.onMouseOut,onClick:this.handleClick},c={ref:this.subMenuRef,style:{position:"absolute",transition:"opacity 1ms",top:0,left:"100%"},className:MV()(BV,this.props.className)};return Kx.createElement("nav",lG({},l,{role:"menuitem",tabIndex:"-1","aria-haspopup":"true"}),Kx.createElement("div",lG({},r,u),o),Kx.createElement("nav",lG({},c,{role:"menu",tabIndex:"-1"}),this.renderChildren(n)))}}]),t}(sG);fG.propTypes={children:dj().node.isRequired,attributes:dj().object,title:dj().node.isRequired,className:dj().string,disabled:dj().bool,hoverDelay:dj().number,rtl:dj().bool,selected:dj().bool,onMouseMove:dj().func,onMouseOut:dj().func,forceOpen:dj().bool,forceClose:dj().func,parentKeyNavigationHandler:dj().func},fG.defaultProps={disabled:!1,hoverDelay:500,attributes:{},className:"",rtl:!1,selected:!1,onMouseMove:function(){return null},onMouseOut:function(){return null},forceOpen:!1,forceClose:function(){return null},parentKeyNavigationHandler:function(){return null}};const dG=fG;var hG=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}}(),pG=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.registerHandlers=function(){document.addEventListener("mousedown",n.handleOutsideClick),document.addEventListener("touchstart",n.handleOutsideClick),n.props.preventHideOnScroll||document.addEventListener("scroll",n.handleHide),n.props.preventHideOnContextMenu||document.addEventListener("contextmenu",n.handleHide),document.addEventListener("keydown",n.handleKeyNavigation),n.props.preventHideOnResize||window.addEventListener("resize",n.handleHide)},n.unregisterHandlers=function(){document.removeEventListener("mousedown",n.handleOutsideClick),document.removeEventListener("touchstart",n.handleOutsideClick),document.removeEventListener("scroll",n.handleHide),document.removeEventListener("contextmenu",n.handleHide),document.removeEventListener("keydown",n.handleKeyNavigation),window.removeEventListener("resize",n.handleHide)},n.handleShow=function(e){if(e.detail.id===n.props.id&&!n.state.isVisible){var t=e.detail.position,r=t.x,i=t.y;n.setState({isVisible:!0,x:r,y:i}),n.registerHandlers(),UV(n.props.onShow,e)}},n.handleHide=function(e){!n.state.isVisible||e.detail&&e.detail.id&&e.detail.id!==n.props.id||(n.unregisterHandlers(),n.setState({isVisible:!1,selectedItem:null,forceSubMenuOpen:!1}),UV(n.props.onHide,e))},n.handleOutsideClick=function(e){n.menu.contains(e.target)||KV()},n.handleMouseLeave=function(e){e.preventDefault(),UV(n.props.onMouseLeave,e,PV()({},n.props.data,GV.data),GV.target),n.props.hideOnLeave&&KV()},n.handleContextMenu=function(e){e.preventDefault(),n.handleHide(e)},n.hideMenu=function(e){27!==e.keyCode&&13!==e.keyCode||KV()},n.getMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r={top:t,left:e};if(!n.menu)return r;var i=window,o=i.innerWidth,a=i.innerHeight,s=n.menu.getBoundingClientRect();return t+s.height>a&&(r.top-=s.height),e+s.width>o&&(r.left-=s.width),r.top<0&&(r.top=s.height<a?(a-s.height)/2:0),r.left<0&&(r.left=s.width<o?(o-s.width)/2:0),r},n.getRTLMenuPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r={top:t,left:e};if(!n.menu)return r;var i=window,o=i.innerWidth,a=i.innerHeight,s=n.menu.getBoundingClientRect();return r.left=e-s.width,t+s.height>a&&(r.top-=s.height),r.left<0&&(r.left+=s.width),r.top<0&&(r.top=s.height<a?(a-s.height)/2:0),r.left+s.width>o&&(r.left=s.width<o?(o-s.width)/2:0),r},n.menuRef=function(e){n.menu=e},n.state=PV()({},n.state,{x:0,y:0,isVisible:!1}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),hG(t,[{key:"getSubMenuType",value:function(){return dG}},{key:"componentDidMount",value:function(){this.listenId=QV.register(this.handleShow,this.handleHide)}},{key:"componentDidUpdate",value:function(){var e=this,t=window.requestAnimationFrame||setTimeout;this.state.isVisible?t((function(){var n=e.state,r=n.x,i=n.y,o=e.props.rtl?e.getRTLMenuPosition(r,i):e.getMenuPosition(r,i),a=o.top,s=o.left;t((function(){e.menu&&(e.menu.style.top=a+"px",e.menu.style.left=s+"px",e.menu.style.opacity=1,e.menu.style.pointerEvents="auto")}))})):t((function(){e.menu&&(e.menu.style.opacity=0,e.menu.style.pointerEvents="none")}))}},{key:"componentWillUnmount",value:function(){this.listenId&&QV.unregister(this.listenId),this.unregisterHandlers()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.style,i=this.state.isVisible,o=PV()({},r,{position:"fixed",opacity:0,pointerEvents:"none"}),a=MV()(BV,n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},FV,i));return Kx.createElement("nav",{role:"menu",tabIndex:"-1",ref:this.menuRef,style:o,className:a,onContextMenu:this.handleContextMenu,onMouseLeave:this.handleMouseLeave},this.renderChildren(t))}}]),t}(sG);pG.propTypes={id:dj().string.isRequired,children:dj().node.isRequired,data:dj().object,className:dj().string,hideOnLeave:dj().bool,rtl:dj().bool,onHide:dj().func,onMouseLeave:dj().func,onShow:dj().func,preventHideOnContextMenu:dj().bool,preventHideOnResize:dj().bool,preventHideOnScroll:dj().bool,style:dj().object},pG.defaultProps={className:"",data:{},hideOnLeave:!1,rtl:!1,onHide:function(){return null},onMouseLeave:function(){return null},onShow:function(){return null},preventHideOnContextMenu:!1,preventHideOnResize:!1,preventHideOnScroll:!1,style:{}};const gG=pG;var mG=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 vG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yG(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var bG=function(e){function t(){var e,n,r;vG(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=yG(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.touchHandled=!1,r.handleMouseDown=function(e){r.props.holdToDisplay>=0&&0===e.button&&(e.persist(),e.stopPropagation(),r.mouseDownTimeoutId=setTimeout((function(){return r.handleContextClick(e)}),r.props.holdToDisplay)),UV(r.props.attributes.onMouseDown,e)},r.handleMouseUp=function(e){0===e.button&&clearTimeout(r.mouseDownTimeoutId),UV(r.props.attributes.onMouseUp,e)},r.handleMouseOut=function(e){0===e.button&&clearTimeout(r.mouseDownTimeoutId),UV(r.props.attributes.onMouseOut,e)},r.handleTouchstart=function(e){r.touchHandled=!1,r.props.holdToDisplay>=0&&(e.persist(),e.stopPropagation(),r.touchstartTimeoutId=setTimeout((function(){r.handleContextClick(e),r.touchHandled=!0}),r.props.holdToDisplay)),UV(r.props.attributes.onTouchStart,e)},r.handleTouchEnd=function(e){r.touchHandled&&e.preventDefault(),clearTimeout(r.touchstartTimeoutId),UV(r.props.attributes.onTouchEnd,e)},r.handleContextMenu=function(e){e.button===r.props.mouseButton&&r.handleContextClick(e),UV(r.props.attributes.onContextMenu,e)},r.handleMouseClick=function(e){e.button===r.props.mouseButton&&r.handleContextClick(e),UV(r.props.attributes.onClick,e)},r.handleContextClick=function(e){if(!(r.props.disable||r.props.disableIfShiftIsPressed&&e.shiftKey)){e.preventDefault(),e.stopPropagation();var t=e.clientX||e.touches&&e.touches[0].pageX,n=e.clientY||e.touches&&e.touches[0].pageY;r.props.posX&&(t-=r.props.posX),r.props.posY&&(n-=r.props.posY),KV();var i=UV(r.props.collect,r.props),o={position:{x:t,y:n},target:r.elem,id:r.props.id};i&&"function"==typeof i.then?i.then((function(t){o.data=PV()({},t,{target:e.target}),$V(o)})):(o.data=PV()({},i,{target:e.target}),$V(o))}},r.elemRef=function(e){r.elem=e},yG(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),mG(t,[{key:"render",value:function(){var e=this.props,t=e.renderTag,n=e.attributes,r=e.children,i=PV()({},n,{className:MV()("react-contextmenu-wrapper",n.className),onContextMenu:this.handleContextMenu,onClick:this.handleMouseClick,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onTouchStart:this.handleTouchstart,onTouchEnd:this.handleTouchEnd,onMouseOut:this.handleMouseOut,ref:this.elemRef});return Kx.createElement(t,i,r)}}]),t}(Kx.Component);bG.propTypes={id:dj().string.isRequired,children:dj().node.isRequired,attributes:dj().object,collect:dj().func,disable:dj().bool,holdToDisplay:dj().number,posX:dj().number,posY:dj().number,renderTag:dj().elementType,mouseButton:dj().number,disableIfShiftIsPressed:dj().bool},bG.defaultProps={attributes:{},collect:function(){return null},disable:!1,holdToDisplay:1e3,renderTag:"div",posX:0,posY:0,mouseButton:2,disableIfShiftIsPressed:!1};const EG=bG;Object.assign,[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Object.keys(EG.propTypes)),["children"]);var wG=["children"];var SG=OO(gG).withConfig({displayName:"ContextMenu__StyledContextMenu"})(["\n z-index: 100;\n background: ",";\n border: 1px solid ",";\n border-radius: 4px;\n"],JO("draculaBackgroundDarker"),JO("draculaSelection"));const xG=function(e){var t=e.children,n=function(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}(e,wG);return Kx.createElement(SG,n,t)};var _G=["children","divider"];var TG=OO(iG).withConfig({displayName:"MenuItem__StyledMenuItem"})(["\n color: ",";\n cursor: pointer;\n padding: 0.5rem 1rem;\n\n &:hover {\n background: ",";\n }\n"],JO("draculaForeground"),JO("draculaSelection")),CG=OO(iG).withConfig({displayName:"MenuItem__StyledDivider"})(["\n background: ",";\n height: 1px;\n width: 100%;\n margin: 0.5rem 0;\n padding: 0 1rem;\n"],JO("draculaForeground"));const OG=function(e){var t=e.children,n=e.divider,r=function(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}(e,_G),i=n?CG:TG;return Kx.createElement(i,r,t)};function IG(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function AG(e){return function t(n){return 0===arguments.length||IG(n)?t:e.apply(this,arguments)}}var RG="\t\n\v\f\r \u2028\u2029\ufeff";const NG=AG("function"==typeof String.prototype.trim&&!RG.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+RG+"]["+RG+"]*"),n=new RegExp("["+RG+"]["+RG+"]*$");return e.replace(t,"").replace(n,"")});function kG(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return LG(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)?LG(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 LG(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}const MG=function(e){var t=e.name,n=e.partitionBy,r=(0,Kx.useContext)(wD).quest,i=(0,Kx.useCallback)((function(){r.queryRaw("table_columns('".concat(t,"')")).then((function(e){if(e.type===BO.DQL&&e.count>0){var r=function(e,t,n){if(n.type===BO.DQL){for(var r=null,i="CREATE TABLE '".concat(e,"' ("),o=0;o<n.count;o++){var a=kG(n.dataset[o],7),s=a[0],l=a[1],u=a[2],c=a[3],f=a[4],d=a[5],h=a[6];i+="".concat(s," ").concat(l," "),"SYMBOL"===l&&(i+=d?"capacity ".concat(d," "):"",f&&(i+="CACHE ")),u&&(i+="index ",c&&(i+="capacity ".concat(c," "))),h&&(r=s),i=NG(i),o!==n.count-1&&(i+=", ")}return i+=")",r&&(i+=" timestamp (".concat(r,")")),"NONE"!==t&&(i+=" PARTITION BY ".concat(t)),"".concat(rI(i),";")}throw new Error("Could not format table schema")}(t,n,e);AO(r)}}))}),[r,t,n]);return Kx.createElement(xG,{id:t},Kx.createElement(OG,{onClick:i},"Copy Schema To Clipboard"),Kx.createElement(OG,{divider:!0}),Kx.createElement(OG,null,"Close"))};function DG(e){return DG="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},DG(e)}function PG(){PG=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=u(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var c={};function f(){}function d(){}function h(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=h.prototype=f.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function r(i,o,a,s){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"==DG(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function _(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=h,s(v,"constructor",h),s(h,"constructor",d),d.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=_,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,c):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),c},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),S(n),c}},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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function UG(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 jG(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BG(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)?BG(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 BG(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 FG(){return FG=Object.assign?Object.assign.bind():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},FG.apply(this,arguments)}var HG=OO.div.withConfig({displayName:"Table__Wrapper"})(["\n position: relative;\n display: flex;\n margin-top: 0.5rem;\n align-items: stretch;\n flex-direction: column;\n overflow: hidden;\n\n ",";\n"],oI),zG=OO(JD).withConfig({displayName:"Table__Title"})(["\n display: flex;\n align-items: stretch;\n font-weight: ",";\n\n &:hover {\n cursor: pointer;\n }\n"],(function(e){return e.expanded?800:400})),VG=OO.div.withConfig({displayName:"Table__Columns"})(['\n position: relative;\n display: flex;\n margin-left: 2rem;\n flex-direction: column;\n\n &:before {\n position: absolute;\n height: 100%;\n width: 2px;\n left: -0.4rem;\n top: 0;\n content: "";\n background: ',";\n }\n"],JO("gray1")),GG=OO(kV).withConfig({displayName:"Table__Loader"})(["\n margin-left: 1rem;\n color: ",";\n ",";\n"],JO("draculaOrange"),IO),WG=function(e){var t=e.column,n=e.designatedTimestamp;return function(e){var r=e.toggleOpen;return Kx.createElement(JD,FG({},t,{designatedTimestamp:n,kind:"column",name:t.column,onClick:function(){return r()}}))}};const qG=function(e){var t=e.description,n=e.isScrolling,r=e.refresh,i=e.designatedTimestamp,o=e.name,a=e.partitionBy,s=e.expanded,l=void 0!==s&&s,u=e.onChange,c=void 0===u?function(){}:u,f=(0,Kx.useRef)(o),d=jG((0,Kx.useState)(new QO),1)[0],h=jG((0,Kx.useState)(),2),p=h[0],g=h[1];(0,Kx.useEffect)((function(){o!==f.current&&_V(hT(d.showColumns(o)).pipe(AV(null)),yT(!0).pipe(WP(1e3),AV(!1))).subscribe((function(e){var t=jG(e,1)[0];t&&t.type===BO.DQL&&g(t.data)}))}),[r,d,o]);var m=[{name:o,kind:"table",initiallyOpen:l,children:[{name:"Columns",initiallyOpen:!0,wrapper:VG,onOpen:function(e){return(t=PG().mark((function t(){var n,r,a;return PG().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.setChildren,c(o),t.next=4,d.showColumns(o);case 4:if(t.t1=n=t.sent,t.t0=null!==t.t1,!t.t0){t.next=8;break}t.t0=void 0!==n;case 8:if(!t.t0){t.next=12;break}t.t2=n,t.next=13;break;case 12:t.t2=[];case 13:(a=t.t2)&&a.type===BO.DQL&&(g(a.data),r(a.data.map((function(e){return{name:e.column,render:WG({column:e,designatedTimestamp:i})}}))));case 15:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(e){UG(o,r,i,a,s,"next",e)}function s(e){UG(o,r,i,a,s,"throw",e)}a(void 0)}))})();var t},render:function(e){var t=e.toggleOpen,n=e.isOpen,r=e.isLoading;return Kx.createElement(JD,{expanded:n&&!r,kind:"folder",name:"Columns",onClick:function(){return t()},suffix:r&&Kx.createElement(GG,{size:"18px"})})}}],render:function(e){var n=e.toggleOpen,r=e.isLoading;return Kx.createElement(EG,{id:o},Kx.createElement(zG,{description:t,kind:"table",name:o,onClick:function(){return n()},partitionBy:a,suffix:r&&Kx.createElement(GG,{size:"18px"}),tooltip:!!t}))}}];return Kx.createElement(HG,{_height:p?30*p.length:0},!n&&Kx.createElement(MG,{name:o,partitionBy:a}),Kx.createElement(hP,{root:m}))};var YG=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M3.515 2.1l19.092 19.092-1.415 1.415-2.014-2.015A5.985 5.985 0 0117 21H7A6 6 0 015.008 9.339a6.992 6.992 0 01.353-2.563L2.1 3.514 3.515 2.1zM7 9c0 .081.002.163.006.243l.07 1.488-1.404.494A4.002 4.002 0 007 19h10c.186 0 .369-.013.548-.037L7.03 8.445C7.01 8.627 7 8.812 7 9zm5-7a7 7 0 016.992 7.339 6.003 6.003 0 013.212 8.65l-1.493-1.493a3.999 3.999 0 00-5.207-5.206L14.01 9.795A5.992 5.992 0 0117 9a5 5 0 00-7.876-4.09l-1.43-1.43A6.97 6.97 0 0112 2z"}))}));YG.displayName="CloudOff";var XG=OO.div.withConfig({displayName:"LoadingError__Wrapper"})(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n"]),$G=OO(YG).withConfig({displayName:"LoadingError__CloudOffIcon"})(["\n height: 3rem;\n"]),KG=OO($I).withConfig({displayName:"LoadingError__ErrorTextLine"})(["\n margin-top: 1rem;\n"]);const QG=function(e){var t=e.error;return Kx.createElement(XG,null,Kx.createElement($G,null),Kx.createElement(KG,{color:"white"},"Cannot load tables"),t&&Kx.createElement(KG,{color:"gray2",size:"sm"},t.error))};var JG=["innerRef"];function ZG(){return ZG=Object.assign?Object.assign.bind():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},ZG.apply(this,arguments)}function eW(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tW(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)?tW(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 tW(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}var nW=tO(["\n display: flex;\n justify-content: center;\n"]),rW=OO(tA).withConfig({displayName:"Schema__Wrapper"})(["\n overflow-x: auto;\n height: 100%;\n"]),iW=OO(eA).withConfig({displayName:"Schema__Menu"})(["\n justify-content: space-between;\n"]),oW=OO($I).withConfig({displayName:"Schema__Header"})(["\n display: flex;\n align-items: center;\n"]),aW=OO(ZI).withConfig({displayName:"Schema__Content"})(["\n display: block;\n font-family: ",";\n overflow: auto;\n ",";\n"],(function(e){return e.theme.fontMonospace}),(function(e){return e._loading&&nW})),sW=OO(SB).withConfig({displayName:"Schema__DatabaseIcon"})(["\n margin-right: 1rem;\n"]),lW=OO(vI).withConfig({displayName:"Schema__HideSchemaButton"})(["\n margin-left: 1rem;\n"]),uW=OO(RV).withConfig({displayName:"Schema__Loader"})(["\n margin-left: 1rem;\n align-self: center;\n color: ",";\n ",";\n"],JO("draculaForeground"),IO),cW=OO.div.withConfig({displayName:"Schema__FlexSpacer"})(["\n flex: 1;\n"]),fW=function(e){var t=e.innerRef,n=function(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}(e,JG),r=eW((0,Kx.useState)(new QO),1)[0],i=eW((0,Kx.useState)(!1),2),o=i[0],a=i[1],s=eW((0,Kx.useState)(null),2),l=s[0],u=s[1],c=(0,Kx.useRef)(null),f=eW((0,Kx.useState)(),2),d=f[0],h=f[1],p=eW((0,Kx.useState)(),2),g=p[0],m=p[1],v=eW((0,Kx.useState)(Date.now()),2),y=v[0],b=v[1],E=eW((0,Kx.useState)(!1),2),w=E[0],S=E[1],x=T_(_U.console.getConfig).readOnly,_=Fj().updateSettings,T=w_(),C=(0,Kx.useCallback)((function(e){m(e)}),[]),O=(0,Kx.useCallback)((function(e){S(e)}),[S]),I=(0,Kx.useCallback)((function(e){if(d){var t=d[e];return Kx.createElement(qG,{designatedTimestamp:t.designatedTimestamp,expanded:t.name===g,isScrolling:w,key:t.name,name:t.name,onChange:C,partitionBy:t.partitionBy,refresh:y})}}),[C,w,g,y,d]),A=(0,Kx.useCallback)((function(){a(!0),_V(hT(r.showTables()).pipe(AV(null)),yT(!0).pipe(WP(1e3),AV(!1))).subscribe((function(e){var t=eW(e,2),n=t[0];t[1],n&&n.type===BO.DQL?(u(null),c.current=null,h(n.data),T(CP(n.data)),b(Date.now())):a(!1)}),(function(e){u(e)}),(function(){a(!1)}))}),[r]),R=(0,Kx.useCallback)((function(){_(jP.RESULTS_SPLITTER_BASIS,0)}),[]);return(0,Kx.useEffect)((function(){A(),window.bus.on(Rw.MSG_QUERY_SCHEMA,(function(){A()})),window.bus.on(Rw.MSG_CONNECTION_ERROR,(function(e,t){c.current=t,u(t)})),window.bus.on(Rw.MSG_CONNECTION_OK,(function(){c.current&&A()}))}),[c,A]),Kx.createElement(rW,ZG({ref:t},n),Kx.createElement(iW,null,Kx.createElement(oW,{color:"draculaForeground"},Kx.createElement(sW,{size:"18px"}),"Tables"),Kx.createElement("div",{style:{display:"flex"}},!1===x&&Kx.createElement(jR,{delay:350,placement:"bottom",trigger:Kx.createElement(vI,{onClick:A},Kx.createElement(Yz,{size:"18px"}))},Kx.createElement(CN,null,"Refresh")),Kx.createElement(jR,{delay:350,placement:"bottom",trigger:Kx.createElement(lW,{onClick:R},Kx.createElement(NV,{size:"18px"}))},Kx.createElement(CN,null,"Hide tables")))),Kx.createElement(aW,{_loading:o},o?Kx.createElement(uW,{size:"48px"}):l?Kx.createElement(QG,{error:l}):Kx.createElement(cD,{isScrolling:O,itemContent:I,totalCount:null==d?void 0:d.length}),!o&&Kx.createElement(cW,null)))},dW=function(e,t){return Kx.createElement(fW,ZG({},e,{innerRef:t}))};const hW=(0,Kx.forwardRef)(dW);var pW=OO.div.withConfig({displayName:"SideMenu__Backdrop"})(["\n position: fixed;\n top: 4rem;\n right: 0;\n bottom: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.3);\n z-index: 24;\n\n &:hover {\n cursor: pointer;\n }\n"]),gW=OO.div.withConfig({displayName:"SideMenu__Wrapper"})(["\n position: fixed;\n top: 4rem;\n right: 0;\n bottom: 0;\n width: ","px;\n background: ",";\n border-left: 1px solid ",";\n z-index: 25;\n\n &.side-menu-slide-enter {\n width: 0;\n }\n\n &.side-menu-slide-enter-active {\n width: ","px;\n transition: width ","ms;\n }\n\n &.side-menu-slide-exit {\n width: ","px;\n }\n\n &.side-menu-slide-exit-active {\n width: 0;\n transition: width ","ms;\n }\n"],280,JO("draculaBackgroundDarker"),JO("black"),280,nI.REG,280,nI.REG);const mW=function(){var e=T_(_U.console.getSideMenuOpened),t=w_(),n=(0,Kx.useCallback)((function(){t(EP.toggleSideMenu())}),[t]);return Kx.createElement(Kx.Fragment,null,Kx.createElement(RR,{classNames:"fade-reg",in:e,timeout:nI.REG,unmountOnExit:!0},Kx.createElement(pW,{onClick:n})),Kx.createElement(RR,{classNames:"side-menu-slide",in:e,timeout:nI.REG,unmountOnExit:!0},Kx.createElement(gW,null,Kx.createElement(hW,null))))};var vW=Kx.forwardRef((function(e,t){return Kx.createElement(KR,m_({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),Kx.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),Kx.createElement("path",{d:"M4 19h16v-7h2v8a1 1 0 01-1 1H3a1 1 0 01-1-1v-8h2v7zm9-10v7h-2V9H6l6-6 6 6h-5z"}))}));function yW(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}vW.displayName="Upload2";var bW=OO.div.withConfig({displayName:"Sidebar__Wrapper"})(["\n display: flex;\n height: calc(100% - 4rem);\n flex: 0 0 4.5rem;\n flex-direction: column;\n\n background: ",";\n"],JO("draculaBackgroundDarker")),EW=OO.div.withConfig({displayName:"Sidebar__Logo"})(["\n position: relative;\n display: flex;\n flex: 0 0 4rem;\n background: ",";\n z-index: 1;\n\n a {\n display: flex;\n flex: 1;\n align-items: center;\n justify-content: center;\n }\n"],JO("black")),wW=OO(wN).withConfig({displayName:"Sidebar__Navigation"})(["\n display: flex;\n flex-direction: column;\n flex: 0 0 5rem;\n align-items: center;\n justify-content: center;\n\n & > span {\n margin-left: 0 !important;\n }\n\n & > :not(:first-child) {\n margin-top: 0.3rem;\n }\n"]),SW=OO.div.withConfig({displayName:"Sidebar__DisabledNavigation"})(["\n display: flex;\n position: relative;\n height: 100%;\n width: 100%;\n flex: 0 0 5rem;\n align-items: center;\n justify-content: center;\n\n &:disabled {\n pointer-events: none;\n }\n"]);const xW=function(){var e=function(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=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yW(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)?yW(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.")}()}((0,Kx.useState)("console"),2),t=e[0],n=e[1],r=(0,Kx.useCallback)((function(){n("console")}),[]),i=(0,Kx.useCallback)((function(){n("import")}),[]),o=(0,Kx.useCallback)((function(){n("settings")}),[]),a=T_(_U.console.getConfig).readOnly;return(0,Kx.useEffect)((function(){var e=document.querySelector(".js-sql-panel"),n=document.querySelector(".js-import-panel"),r=document.querySelector(".js-settings-panel");if(e&&n&&r)switch(t){case"import":e.style.display="none",n.style.display="flex",r.style.display="none";break;case"settings":e.style.display="none",n.style.display="none",r.style.display="flex";break;default:e.style.display="flex",n.style.display="none",r.style.display="none"}}),[t]),Kx.createElement(bW,null,Kx.createElement(EW,null,Kx.createElement("a",{href:"https://questdb.io",rel:"noreferrer",target:"_blank"},Kx.createElement("img",{alt:"QuestDB Logo",height:"26",src:"/assets/favicon.svg"}))),Kx.createElement(jR,{delay:350,placement:"right",trigger:Kx.createElement(wW,{direction:"left",onClick:r,selected:"console"===t},Kx.createElement(gD,{size:"18px"}))},Kx.createElement(CN,null,"Console")),Kx.createElement(jR,{delay:a?0:350,placement:"right",trigger:a?Kx.createElement(SW,null,Kx.createElement(wW,{direction:"left",disabled:!0,onClick:i,selected:"import"===t},Kx.createElement(vW,{size:"18px"}))):Kx.createElement(wW,{direction:"left",onClick:i,selected:"import"===t},Kx.createElement(vW,{size:"18px"}))},Kx.createElement(CN,null,a?Kx.createElement(Kx.Fragment,null,Kx.createElement("b",null,"Import")," is currently disabled.",Kx.createElement("br",null),"To use this feature, turn ",Kx.createElement("b",null,"read-only")," mode to ",Kx.createElement("i",null,"false")," in the configuration file"):Kx.createElement(Kx.Fragment,null,"Import"))),Kx.createElement(jR,{delay:a?0:350,placement:"right",trigger:a?Kx.createElement(SW,null,Kx.createElement(wW,{direction:"left",disabled:!0,onClick:o,selected:"settings"===t},Kx.createElement(cV,{size:"18px"}))):Kx.createElement(wW,{direction:"left",onClick:o,selected:"settings"===t},Kx.createElement(cV,{size:"18px"}))},Kx.createElement(CN,null,a?Kx.createElement(Kx.Fragment,null,Kx.createElement("b",null,"Settings")," is currently disabled.",Kx.createElement("br",null),"To use this feature, turn ",Kx.createElement("b",null,"read-only")," mode to ",Kx.createElement("i",null,"false")," in the configuration file"):Kx.createElement(Kx.Fragment,null,"Settings"))))};var _W=OO.div.withConfig({displayName:"Layout__Console"})(["\n display: flex;\n flex-direction: column;\n flex: 1;\n max-height: 100%;\n"]),TW=OO.div.withConfig({displayName:"Layout__Top"})(["\n position: relative;\n overflow: hidden;\n"]);const CW=function(){var e=document.getElementById("console"),t=document.getElementById("settings"),n=document.getElementById("sideMenu"),r=document.getElementById("modal"),i=PI().sm,o=Fj(),a=o.editorSplitterBasis,s=o.resultsSplitterBasis,l=o.updateSettings,u=(0,Kx.useCallback)((function(e){l(jP.EDITOR_SPLITTER_BASIS,e),setTimeout((function(){window.bus.trigger(Rw.MSG_ACTIVE_PANEL)}),0)}),[]),c=(0,Kx.useCallback)((function(e){l(jP.RESULTS_SPLITTER_BASIS,e),setTimeout((function(){window.bus.trigger(Rw.MSG_ACTIVE_PANEL)}),0)}),[]);return(0,Kx.useEffect)((function(){window.bus.trigger(Rw.REACT_READY)}),[]),Kx.createElement(SD,null,Kx.createElement(xW,null),Kx.createElement(DF,null),e&&(0,Qx.createPortal)(Kx.createElement(_W,null,Kx.createElement(MD,null,Kx.createElement(cN,{direction:"vertical",fallback:a,max:300,min:200,onChange:u},Kx.createElement(TW,null,Kx.createElement(cN,{direction:"horizontal",fallback:s,max:300,min:200,onChange:c},!i&&Kx.createElement(hW,null),Kx.createElement(fF,null))),Kx.createElement(iV,null)),Kx.createElement(Wz,null))),e),n&&(0,Qx.createPortal)(Kx.createElement(mW,null),n),r&&(0,Qx.createPortal)(Kx.createElement(aH,null),r),t&&(0,Qx.createPortal)(Kx.createElement(SV,null),t))};var OW=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=z_.constructor,n=new t(z_.SchedulerAction),r=new iT,i=void 0,o=function(t){i=t;var o=(new iT).pipe(ET(n)),a=(new iT).pipe(ET(n)),s=new KT(o),l=new QT(a,i.getState());return r.pipe(_T((function(t){var n="dependencies"in e?t(s,l,e.dependencies):t(s,l);if(!n)throw new TypeError('Your root Epic "'+(t.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return n})),RT((function(e){return hT(e).pipe(zT(n),ET(n))}))).subscribe(i.dispatch),function(e){return function(t){var n=e(t);return a.next(i.getState()),o.next(t),n}}};return o.run=function(e){r.next(e)},o}(),IW=function e(t,n,r){var i;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var o=t,a=n,s=[],l=s,u=!1;function c(){l===s&&(l=s.slice())}function f(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function d(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return c(),l.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,c();var n=l.indexOf(e);l.splice(n,1),s=null}}}function h(e){if(!c_(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=s=l,n=0;n<t.length;n++)(0,t[n])();return e}function p(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,h({type:u_.REPLACE})}function g(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[s_.Z]=function(){return this},e}return h({type:u_.INIT}),(i={dispatch:h,subscribe:d,getState:f,replaceReducer:p})[s_.Z]=g,i}(SU,g_(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return p_({},n,{dispatch:r=g_.apply(void 0,o)(n.dispatch)})}}}(OW)));OW.run(iU),IW.dispatch(EP.bootstrap());var AW=iI("fade-reg",nI.REG),RW=iI("fade-slow",nI.SLOW);Qx.render(Kx.createElement(DI,null,Kx.createElement(r_,{store:IW},Kx.createElement(EO,{theme:gP},Kx.createElement(Bj,null,Kx.createElement(RW,null),Kx.createElement(AW,null),Kx.createElement(CW,null))))),document.getElementById("root"))})()})();
|