!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a6282412-70e0-42ac-a41b-d92d07bdcd0e",e._sentryDebugIdIdentifier="sentry-dbid-a6282412-70e0-42ac-a41b-d92d07bdcd0e")}catch(e){}}();var _sentryModuleMetadataGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};"use strict";_sentryModuleMetadataGlobal._sentryModuleMetadata=_sentryModuleMetadataGlobal._sentryModuleMetadata||{},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack]=Object.assign({},_sentryModuleMetadataGlobal._sentryModuleMetadata[new _sentryModuleMetadataGlobal.Error().stack],{"_sentryBundlerPluginAppKey:sentry-changelog":!0}),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[186],{5567:(e,t,n)=>{let r,a,s,i,o,l,E,u,c,d,T,p,_,h,f,S,R,A,O,N,I,m;var C=n(81871),L=Object.defineProperty,g=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>g(e,"symbol"!=typeof t?t+"":t,n),b="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function v(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function D(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var P={exports:{}},M={},U={exports:{}},x={},w=Symbol.for("react.element"),k=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),H=Symbol.for("react.provider"),Y=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),j=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),K=Symbol.iterator,$={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,J={};function Z(e,t,n){this.props=e,this.context=t,this.refs=J,this.updater=n||$}function q(){}function Q(e,t,n){this.props=e,this.context=t,this.refs=J,this.updater=n||$}Z.prototype.isReactComponent={},Z.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Z.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},q.prototype=Z.prototype;var ee=Q.prototype=new q;ee.constructor=Q,z(ee,Z.prototype),ee.isPureReactComponent=!0;var et=Array.isArray,en=Object.prototype.hasOwnProperty,er={current:null},ea={key:!0,ref:!0,__self:!0,__source:!0};function es(e,t,n){var r,a={},s=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(s=""+t.key),t)en.call(t,r)&&!ea.hasOwnProperty(r)&&(a[r]=t[r]);var o=arguments.length-2;if(1===o)a.children=n;else if(1r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:e_},[ep]);var ef=Symbol.for("react.element"),eS=Symbol.for("react.fragment"),eR=Object.prototype.hasOwnProperty,eA=ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,eO={key:!0,ref:!0,__self:!0,__source:!0};function eN(e,t,n){var r,a={},s=null,i=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(i=t.ref),t)eR.call(t,r)&&!eO.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:ef,type:e,key:s,ref:i,props:a,_owner:eA.current}}M.Fragment=eS,M.jsx=eN,M.jsxs=eN,P.exports=M;var eI=P.exports;let em="/contextlines";var eC={exports:{}},eL={},eg={exports:{}},ey={};(function(e){function t(e,t){var n=e.length;for(e.push(t);0>>1,s=e[r];if(0>>1;ra(l,n))Ea(u,l)?(e[r]=u,e[E]=n,r=E):(e[r]=l,e[o]=n,r=o);else if(Ea(u,n))e[r]=u,e[E]=n,r=E;else break}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var s,i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var E=[],u=[],c=1,d=null,T=3,p=!1,_=!1,h=!1,f="function"==typeof setTimeout?setTimeout:null,S="function"==typeof clearTimeout?clearTimeout:null,R="u">typeof setImmediate?setImmediate:null;function A(e){for(var a=n(u);null!==a;){if(null===a.callback)r(u);else if(a.startTime<=e)r(u),a.sortIndex=a.expirationTime,t(E,a);else break;a=n(u)}}function O(e){if(h=!1,A(e),!_){if(null!==n(E))_=!0,P(N);else{var t=n(u);null!==t&&M(O,t.startTime-e)}}}function N(t,a){_=!1,h&&(h=!1,S(C),C=-1),p=!0;var s=T;try{for(A(a),d=n(E);null!==d&&(!(d.expirationTime>a)||t&&!y());){var i=d.callback;if("function"==typeof i){d.callback=null,T=d.priorityLevel;var o=i(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof o?d.callback=o:d===n(E)&&r(E),A(a)}else r(E);d=n(E)}if(null!==d)var l=!0;else{var c=n(u);null!==c&&M(O,c.startTime-a),l=!1}return l}finally{d=null,T=s,p=!1}}"u">typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var I=!1,m=null,C=-1,L=5,g=-1;function y(){return!(e.unstable_now()-gtypeof MessageChannel){var v=new MessageChannel,D=v.port2;v.port1.onmessage=b,s=function(){D.postMessage(null)}}else s=function(){f(b,0)};function P(e){m=e,I||(I=!0,s())}function M(t,n){C=f(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){_||p||(_=!0,P(N))},e.unstable_forceFrameRate=function(e){0>e||125i?(r.sortIndex=s,t(u,r),null===n(E)&&r===n(u)&&(h?(S(C),C=-1):h=!0,M(O,s-i))):(r.sortIndex=o,t(E,r),_||p||(_=!0,P(N))),r},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}})(ey),eg.exports=ey;var eb=eg.exports;function ev(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ew=Object.prototype.hasOwnProperty,ek=/^[: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]*$/,eG={},eF={};function eB(e,t,n,r,a,s,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var eH={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){eH[e]=new eB(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];eH[t]=new eB(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){eH[e]=new eB(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){eH[e]=new eB(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){eH[e]=new eB(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){eH[e]=new eB(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){eH[e]=new eB(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){eH[e]=new eB(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){eH[e]=new eB(e,5,!1,e.toLowerCase(),null,!1,!1)});var eY=/[\-:]([a-z])/g;function eV(e){return e[1].toUpperCase()}function eW(e,t,n,r){var a,s=eH.hasOwnProperty(t)?eH[t]:null;(null!==s?0!==s.type:r||!(2"u"||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,s,r)&&(n=null),r||null===s?(a=t,(!!ew.call(eF,a)||!ew.call(eG,a)&&(ek.test(a)?eF[a]=!0:(eG[a]=!0,!1)))&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n))):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,r=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!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(eY,eV);eH[t]=new eB(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(eY,eV);eH[t]=new eB(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(eY,eV);eH[t]=new eB(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){eH[e]=new eB(e,1,!1,e.toLowerCase(),null,!1,!1)}),eH.xlinkHref=new eB("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){eH[e]=new eB(e,1,!1,e.toLowerCase(),null,!0,!0)});var ej=ep.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eX=Symbol.for("react.element"),eK=Symbol.for("react.portal"),e$=Symbol.for("react.fragment"),ez=Symbol.for("react.strict_mode"),eJ=Symbol.for("react.profiler"),eZ=Symbol.for("react.provider"),eq=Symbol.for("react.context"),eQ=Symbol.for("react.forward_ref"),e0=Symbol.for("react.suspense"),e1=Symbol.for("react.suspense_list"),e2=Symbol.for("react.memo"),e5=Symbol.for("react.lazy"),e3=Symbol.for("react.offscreen"),e4=Symbol.iterator;function e6(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=e4&&e[e4]||e["@@iterator"])?e:null}var e8,e7=Object.assign;function e9(e){if(void 0===e8)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);e8=t&&t[1]||""}return` `+e8+e}var te=!1;function tt(e,t){if(!e||te)return"";te=!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(t){if(t&&r&&"string"==typeof t.stack){for(var a=t.stack.split(` `),s=r.stack.split(` `),i=a.length-1,o=s.length-1;1<=i&&0<=o&&a[i]!==s[o];)o--;for(;1<=i&&0<=o;i--,o--)if(a[i]!==s[o]){if(1!==i||1!==o)do if(i--,0>--o||a[i]!==s[o]){var l=` `+a[i].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=i&&0<=o);break}}}finally{te=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?e9(e):""}function tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function tr(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ta(e){e._valueTracker||(e._valueTracker=function(e){var t=tr(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"u">typeof n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,s.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 ts(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tr(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ti(e){if(typeof(e=e||("u">typeof document?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function to(e,t){var n=t.checked;return e7({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function tl(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=tn(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)&&eW(e,"checked",t,!1)}function tu(e,t){tE(e,t);var n=tn(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){e.removeAttribute("value");return}t.hasOwnProperty("value")?td(e,t.type,n):t.hasOwnProperty("defaultValue")&&td(e,t.type,tn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function tc(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 td(e,t,n){("number"!==t||ti(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tT=Array.isArray;function tp(e,t,n,r){if(e=e.options,t){t={};for(var a=0;atypeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,a)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tO=tO||document.createElement("div")).innerHTML=""+t.valueOf().toString()+"",t=tO.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function tI(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tm={animationIterationCount:!0,aspectRatio:!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},tC=["Webkit","ms","Moz","O"];function tL(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||tm.hasOwnProperty(e)&&tm[e]?(""+t).trim():t+"px"}function tg(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=tL(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(tm).forEach(function(e){tC.forEach(function(t){tm[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=tm[e]})});var ty=e7({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 tb(e,t){if(t){if(ty[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(ev(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(ev(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(ev(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(ev(62))}}function tv(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}}var tD=null;function tP(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tM=null,tU=null,tx=null;function tw(e){if(e=aW(e)){if("function"!=typeof tM)throw Error(ev(280));var t=e.stateNode;t&&(t=aX(t),tM(e.stateNode,e.type,t))}}function tk(e){tU?tx?tx.push(e):tx=[e]:tU=e}function tG(){if(tU){var e=tU,t=tx;if(tx=tU=null,tw(e),t)for(e=0;e>>=0)?32:31-(no(e)/nl|0)|0},no=Math.log,nl=Math.LN2,nE=64,nu=4194304;function nc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:case 0x4000000:return 0x7c00000&e;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0x40000000;default:return e}}function nd(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,s=e.pingedLanes,i=0xfffffff&n;if(0!==i){var o=i&~a;0!==o?r=nc(o):0!=(s&=i)&&(r=nc(s))}else 0!=(i=n&~a)?r=nc(i):0!==s&&(r=nc(s));if(0===r)return 0;if(0!==t&&t!==r&&!(t&a)&&((a=r&-r)>=(s=t&-t)||16===a&&(4194240&s)!=0))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function nh(e,t,n){e.pendingLanes|=t,0x20000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ni(t)]=n}function nf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ni(n),a=1<=rA),rI=!1;function rm(e,t){switch(e){case"keyup":return -1!==rS.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rC(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var rL=!1,rg={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 ry(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!rg[e.type]:"textarea"===t}function rb(e,t,n,r){tk(r),0<(t=af(t,"onChange")).length&&(n=new n7("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var rv=null,rD=null;function rP(e){aE(e,0)}function rM(e){if(ts(aj(e)))return e}function rU(e,t){if("change"===e)return t}var rx=!1;if(ex){if(ex){var rw="oninput"in document;if(!rw){var rk=document.createElement("div");rk.setAttribute("oninput","return;"),rw="function"==typeof rk.oninput}RR=rw}else RR=!1;rx=RR&&(!document.documentMode||9=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=rX(r)}}function r$(){for(var e=window,t=ti();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(n)e=t.contentWindow;else break;t=ti(e.document)}return t}function rz(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 rJ=ex&&"documentMode"in document&&11>=document.documentMode,rZ=null,rq=null,rQ=null,r0=!1;function r1(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;r0||null==rZ||rZ!==ti(r)||(r="selectionStart"in(r=rZ)&&rz(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},rQ&&rj(rQ,r)||(rQ=r,0<(r=af(rq,"onSelect")).length&&(t=new n7("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rZ)))}function r2(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var r5={animationend:r2("Animation","AnimationEnd"),animationiteration:r2("Animation","AnimationIteration"),animationstart:r2("Animation","AnimationStart"),transitionend:r2("Transition","TransitionEnd")},r3={},r4={};function r6(e){if(r3[e])return r3[e];if(!r5[e])return e;var t,n=r5[e];for(t in n)if(n.hasOwnProperty(t)&&t in r4)return r3[e]=n[t];return e}ex&&(r4=document.createElement("div").style,"AnimationEvent"in window||(delete r5.animationend.animation,delete r5.animationiteration.animation,delete r5.animationstart.animation),"TransitionEvent"in window||delete r5.transitionend.transition);var r8=r6("animationend"),r7=r6("animationiteration"),r9=r6("animationstart"),ae=r6("transitionend"),at=new Map,an="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ar(e,t){at.set(e,t),eM(t,[e])}for(var aa=0;aatypeof av?function(e){return av.resolve(null).then(e).catch(aP)}:ay;function aP(e){setTimeout(function(){throw e})}function aM(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType){if("/$"===(n=a.data)){if(0===r){e.removeChild(a),nH(t);return}r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++}n=a}while(n);nH(t)}function aU(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ax(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 aw=Math.random().toString(36).slice(2),ak="__reactFiber$"+aw,aG="__reactProps$"+aw,aF="__reactContainer$"+aw,aB="__reactEvents$"+aw,aH="__reactListeners$"+aw,aY="__reactHandles$"+aw;function aV(e){var t=e[ak];if(t)return t;for(var n=e.parentNode;n;){if(t=n[aF]||n[ak]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ax(e);null!==e;){if(n=e[ak])return n;e=ax(e)}return t}n=(e=n).parentNode}return null}function aW(e){return(e=e[ak]||e[aF])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function aj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(ev(33))}function aX(e){return e[aG]||null}var aK=[],a$=-1;function az(e){return{current:e}}function aJ(e){0>a$||(e.current=aK[a$],aK[a$]=null,a$--)}function aZ(e,t){aK[++a$]=e.current,e.current=t}var aq={},aQ=az(aq),a0=az(!1),a1=aq;function a2(e,t){var n=e.type.contextTypes;if(!n)return aq;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,s={};for(a in n)s[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function a5(e){return null!=(e=e.childContextTypes)}function a3(){aJ(a0),aJ(aQ)}function a4(e,t,n){if(aQ.current!==aq)throw Error(ev(168));aZ(aQ,t),aZ(a0,n)}function a6(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(ev(108,function(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case e$:return"Fragment";case eK:return"Portal";case eJ:return"Profiler";case ez:return"StrictMode";case e0:return"Suspense";case e1:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case eq:return(t.displayName||"Context")+".Consumer";case eZ:return(t._context.displayName||"Context")+".Provider";case eQ:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case e2:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case e5:n=t._payload,t=t._init;try{return e(t(n))}catch{}}return null}(t);case 8:return t===ez?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}(e)||"Unknown",a));return e7({},n,r)}function a8(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||aq,a1=aQ.current,aZ(aQ,e),aZ(a0,a0.current),!0}function a7(e,t,n){var r=e.stateNode;if(!r)throw Error(ev(169));n?(e=a6(e,t,a1),r.__reactInternalMemoizedMergedChildContext=e,aJ(a0),aJ(aQ),aZ(aQ,e)):aJ(a0),aZ(a0,n)}var a9=null,se=!1,st=!1;function sn(e){null===a9?a9=[e]:a9.push(e)}function sr(){if(!st&&null!==a9){st=!0;var e=0,t=nS;try{var n=a9;for(nS=1;e>=i,a-=i,sc=1<<32-ni(t)+a|n<_?(h=p,p=null):h=p.sibling;var f=d(a,p,o[_],l);if(null===f){null===p&&(p=h);break}e&&p&&null===f.alternate&&t(a,p),i=s(f,i,_),null===u?E=f:u.sibling=f,u=f,p=h}if(_===o.length)return n(a,p),sR&&sT(a,_),E;if(null===p){for(;__?(h=p,p=null):h=p.sibling;var S=d(a,p,f.value,l);if(null===S){null===p&&(p=h);break}e&&p&&null===S.alternate&&t(a,p),i=s(S,i,_),null===u?E=S:u.sibling=S,u=S,p=h}if(f.done)return n(a,p),sR&&sT(a,_),E;if(null===p){for(;!f.done;_++,f=o.next())null!==(f=c(a,f.value,l))&&(i=s(f,i,_),null===u?E=f:u.sibling=f,u=f);return sR&&sT(a,_),E}for(p=r(a,p);!f.done;_++,f=o.next())null!==(f=T(p,a,_,f.value,l))&&(e&&null!==f.alternate&&p.delete(null===f.key?_:f.key),i=s(f,i,_),null===u?E=f:u.sibling=f,u=f);return e&&p.forEach(function(e){return t(a,e)}),sR&&sT(a,_),E}(l,E,u,p);sP(l,u)}return"string"==typeof u&&""!==u||"number"==typeof u?(u=""+u,null!==E&&6===E.tag?(n(l,E.sibling),(E=a(E,u)).return=l):(n(l,E),(E=l7(u,l.mode,p)).return=l),i(l=E)):n(l,E)}}var sx=sU(!0),sw=sU(!1),sk=az(null),sG=null,sF=null,sB=null;function sH(){sB=sF=sG=null}function sY(e){var t=sk.current;aJ(sk),e._currentValue=t}function sV(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sW(e,t){sG=e,sB=sF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(o_=!0),e.firstContext=null)}function sj(e){var t=e._currentValue;if(sB!==e){if(e={context:e,memoizedValue:t,next:null},null===sF){if(null===sG)throw Error(ev(308));sF=e,sG.dependencies={lanes:0,firstContext:e}}else sF=sF.next=e}return t}var sX=null;function sK(e){null===sX?sX=[e]:sX.push(e)}function s$(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,sK(t)):(n.next=a.next,a.next=n),t.interleaved=n,sz(e,r)}function sz(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}var sJ=!1;function sZ(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function sq(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 sQ(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function s0(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&ln){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,sz(e,n)}return null===(a=r.interleaved)?(t.next=t,sK(r)):(t.next=a.next,a.next=t),r.interleaved=t,sz(e,n)}function s1(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,(4194240&n)!=0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nf(e,n)}}function s2(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===s?a=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?a=s=t:s=s.next=t}else a=s=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function s5(e,t,n,r){var a=e.updateQueue;sJ=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,E=l.next;l.next=null,null===i?s=E:i.next=E,i=l;var u=e.alternate;null!==u&&(o=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===o?u.firstBaseUpdate=E:o.next=E,u.lastBaseUpdate=l)}if(null!==s){var c=a.baseState;for(i=0,u=E=l=null,o=s;;){var d=o.lane,T=o.eventTime;if((r&d)===d){null!==u&&(u=u.next={eventTime:T,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,_=o;switch(d=t,T=n,_.tag){case 1:if("function"==typeof(p=_.payload)){c=p.call(T,c,d);break e}c=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=_.payload)?p.call(T,c,d):p))break e;c=e7({},c,d);break e;case 2:sJ=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[o]:d.push(o))}else T={eventTime:T,lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(E=u=T,l=c):u=u.next=T,i|=d;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(d=o).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===u&&(l=c),a.baseState=l,a.firstBaseUpdate=E,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do i|=a.lane,a=a.next;while(a!==t)}else null===s&&(a.shared.lanes=0);lu|=i,e.lanes=i,e.memoizedState=c}}function s3(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tn?n:4,e(!0);var r=iu.transition;iu.transition={};try{e(!1),t()}finally{nS=n,iu.transition=r}}function iq(){return iC().memoizedState}function iQ(e,t,n){var r=lb(e);(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},i1(e))?i2(t,n):null!==(n=s$(e,t,n,r))&&(lv(n,e,r,ly()),i5(n,t,r))}function i0(e,t,n){var r=lb(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(i1(e))i2(t,a);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=s(i,n);if(a.hasEagerState=!0,a.eagerState=o,rW(o,i)){var l=t.interleaved;null===l?(a.next=a,sK(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}null!==(n=s$(e,t,a,r))&&(lv(n,e,r,a=ly()),i5(n,t,r))}}function i1(e){var t=e.alternate;return e===id||null!==t&&t===id}function i2(e,t){ih=i_=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function i5(e,t,n){if(4194240&n){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,nf(e,n)}}var i3={readContext:sj,useCallback:iA,useContext:iA,useEffect:iA,useImperativeHandle:iA,useInsertionEffect:iA,useLayoutEffect:iA,useMemo:iA,useReducer:iA,useRef:iA,useState:iA,useDebugValue:iA,useDeferredValue:iA,useTransition:iA,useMutableSource:iA,useSyncExternalStore:iA,useId:iA,unstable_isNewReconciler:!1},i4={readContext:sj,useCallback:function(e,t){return im().memoizedState=[e,void 0===t?null:t],e},useContext:sj,useEffect:iH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,iF(4194308,4,ij.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iF(4194308,4,e,t)},useInsertionEffect:function(e,t){return iF(4,2,e,t)},useMemo:function(e,t){var n=im();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=im();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=iQ.bind(null,id,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},im().memoizedState=e},useState:iw,useDebugValue:iK,useDeferredValue:function(e){return im().memoizedState=e},useTransition:function(){var e=iw(!1),t=e[0];return e=iZ.bind(null,e[1]),im().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=id,a=im();if(sR){if(void 0===n)throw Error(ev(407));n=n()}else{if(n=t(),null===lr)throw Error(ev(349));30&ic||iD(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,iH(iM.bind(null,r,s,e),[e]),r.flags|=2048,ik(9,iP.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=im(),t=lr.identifierPrefix;if(sR){var n=sd,r=sc;t=":"+t+"R"+(n=(r&~(1<<32-ni(r)-1)).toString(32)+n),0<(n=iS++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=iR++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},i6={readContext:sj,useCallback:i$,useContext:sj,useEffect:iY,useImperativeHandle:iX,useInsertionEffect:iV,useLayoutEffect:iW,useMemo:iz,useReducer:ig,useRef:iG,useState:function(){return ig(iL)},useDebugValue:iK,useDeferredValue:function(e){return iJ(iC(),iT.memoizedState,e)},useTransition:function(){return[ig(iL)[0],iC().memoizedState]},useMutableSource:ib,useSyncExternalStore:iv,useId:iq,unstable_isNewReconciler:!1},i8={readContext:sj,useCallback:i$,useContext:sj,useEffect:iY,useImperativeHandle:iX,useInsertionEffect:iV,useLayoutEffect:iW,useMemo:iz,useReducer:iy,useRef:iG,useState:function(){return iy(iL)},useDebugValue:iK,useDeferredValue:function(e){var t=iC();return null===iT?t.memoizedState=e:iJ(t,iT.memoizedState,e)},useTransition:function(){return[iy(iL)[0],iC().memoizedState]},useMutableSource:ib,useSyncExternalStore:iv,useId:iq,unstable_isNewReconciler:!1};function i7(e,t){if(e&&e.defaultProps)for(var n in t=e7({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function i9(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:e7({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var oe={isMounted:function(e){return!!(e=e._reactInternals)&&tQ(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ly(),a=lb(e),s=sQ(r,a);s.payload=t,null!=n&&(s.callback=n),null!==(t=s0(e,s,a))&&(lv(t,e,a,r),s1(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ly(),a=lb(e),s=sQ(r,a);s.tag=1,s.payload=t,null!=n&&(s.callback=n),null!==(t=s0(e,s,a))&&(lv(t,e,a,r),s1(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ly(),r=lb(e),a=sQ(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=s0(e,a,r))&&(lv(t,e,r,n),s1(t,e,r))}};function ot(e,t,n,r,a,s,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!t.prototype||!t.prototype.isPureReactComponent||!rj(n,r)||!rj(a,s)}function on(e,t,n){var r=!1,a=aq,s=t.contextType;return"object"==typeof s&&null!==s?s=sj(s):(a=a5(t)?a1:aQ.current,s=(r=null!=(r=t.contextTypes))?a2(e,a):aq),t=new t(n,s),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oe,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=s),t}function or(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&&oe.enqueueReplaceState(t,t.state,null)}function oa(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},sZ(e);var s=t.contextType;"object"==typeof s&&null!==s?a.context=sj(s):(s=a5(t)?a1:aQ.current,a.context=a2(e,s)),a.state=e.memoizedState,"function"==typeof(s=t.getDerivedStateFromProps)&&(i9(e,t,s,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&oe.enqueueReplaceState(a,a.state,null),s5(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function os(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 5:return e9(e.type);case 16:return e9("Lazy");case 13:return e9("Suspense");case 19:return e9("SuspenseList");case 0:case 2:case 15:return e=tt(e.type,!1);case 11:return e=tt(e.type.render,!1);case 1:return e=tt(e.type,!0);default:return""}}(r),r=r.return;while(r);var a=n}catch(e){a=` Error generating stack: `+e.message+` `+e.stack}return{value:e,source:t,stack:a,digest:null}}function oi(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function oo(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var ol="function"==typeof WeakMap?WeakMap:Map;function oE(e,t,n){(n=sQ(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){lS||(lS=!0,lR=r),oo(e,t)},n}function ou(e,t,n){(n=sQ(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){oo(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(n.callback=function(){oo(e,t),"function"!=typeof r&&(null===lA?lA=new Set([this]):lA.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function oc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ol;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=lZ.bind(null,e,t,n),t.then(e,e))}function od(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function oT(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a):e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=sQ(-1,1)).tag=2,s0(n,t,1))),n.lanes|=1),e}var op=ej.ReactCurrentOwner,o_=!1;function oh(e,t,n,r){t.child=null===e?sw(t,null,n,r):sx(t,e.child,n,r)}function of(e,t,n,r,a){n=n.render;var s=t.ref;return sW(t,a),r=iN(e,t,n,r,s,a),n=iI(),null===e||o_?(sR&&n&&s_(t),t.flags|=1,oh(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ow(e,t,a))}function oS(e,t,n,r,a){if(null===e){var s=n.type;return"function"!=typeof s||l5(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=l4(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,oR(e,t,s,r,a))}if(s=e.child,!(e.lanes&a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:rj)(i,r)&&e.ref===t.ref)return ow(e,t,a)}return t.flags|=1,(e=l3(s,r)).ref=t.ref,e.return=t,t.child=e}function oR(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(rj(s,r)&&e.ref===t.ref){if(o_=!1,t.pendingProps=r=s,(e.lanes&a)==0)return t.lanes=e.lanes,ow(e,t,a);131072&e.flags&&(o_=!0)}}return oN(e,t,n,r,a)}function oA(e,t,n){var r=t.pendingProps,a=r.children,s=null!==e?e.memoizedState:null;if("hidden"===r.mode){if(1&t.mode){if(!(0x40000000&n))return e=null!==s?s.baseLanes|n:n,t.lanes=t.childLanes=0x40000000,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,aZ(lo,li),li|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==s?s.baseLanes:n,aZ(lo,li),li|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},aZ(lo,li),li|=n}else null!==s?(r=s.baseLanes|n,t.memoizedState=null):r=n,aZ(lo,li),li|=r;return oh(e,t,a,n),t.child}function oO(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function oN(e,t,n,r,a){var s=a5(n)?a1:aQ.current;return s=a2(t,s),sW(t,a),n=iN(e,t,n,r,s,a),r=iI(),null===e||o_?(sR&&r&&s_(t),t.flags|=1,oh(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,ow(e,t,a))}function oI(e,t,n,r,a){if(a5(n)){var s=!0;a8(t)}else s=!1;if(sW(t,a),null===t.stateNode)ox(e,t),on(t,n,r),oa(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,o=t.memoizedProps;i.props=o;var l=i.context,E=n.contextType;E="object"==typeof E&&null!==E?sj(E):a2(t,E=a5(n)?a1:aQ.current);var u=n.getDerivedStateFromProps,c="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==r||l!==E)&&or(t,i,r,E),sJ=!1;var d=t.memoizedState;i.state=d,s5(t,r,i,a),l=t.memoizedState,o!==r||d!==l||a0.current||sJ?("function"==typeof u&&(i9(t,n,u,r),l=t.memoizedState),(o=sJ||ot(t,n,o,r,d,l,E))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=E,r=o):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,sq(e,t),o=t.memoizedProps,E=t.type===t.elementType?o:i7(t.type,o),i.props=E,c=t.pendingProps,d=i.context,l="object"==typeof(l=n.contextType)&&null!==l?sj(l):a2(t,l=a5(n)?a1:aQ.current);var T=n.getDerivedStateFromProps;(u="function"==typeof T||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==c||d!==l)&&or(t,i,r,l),sJ=!1,d=t.memoizedState,i.state=d,s5(t,r,i,a);var p=t.memoizedState;o!==c||d!==p||a0.current||sJ?("function"==typeof T&&(i9(t,n,T,r),p=t.memoizedState),(E=sJ||ot(t,n,E,r,d,p,l)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=E):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return om(e,t,n,r,s,a)}function om(e,t,n,r,a,s){oO(e,t);var i=(128&t.flags)!=0;if(!r&&!i)return a&&a7(t,n,!1),ow(e,t,s);r=t.stateNode,op.current=t;var o=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=sx(t,e.child,null,s),t.child=sx(t,null,o,s)):oh(e,t,o,s),t.memoizedState=r.state,a&&a7(t,n,!0),t.child}function oC(e){var t=e.stateNode;t.pendingContext?a4(e,t.pendingContext,t.pendingContext!==t.context):t.context&&a4(e,t.context,!1),ie(e,t.containerInfo)}function oL(e,t,n,r,a){return sy(),sb(a),t.flags|=256,oh(e,t,n,r),t.child}var og={dehydrated:null,treeContext:null,retryLane:0};function oy(e){return{baseLanes:e,cachePool:null,transitions:null}}function ob(e,t,n){var r,a=t.pendingProps,s=is.current,i=!1,o=(128&t.flags)!=0;if((r=o)||(r=(null===e||null!==e.memoizedState)&&(2&s)!=0),r?(i=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(s|=1),aZ(is,1&s),null===e)return sm(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=0x40000000:t.lanes=1,null):(o=a.children,e=a.fallback,i?(a=t.mode,i=t.child,o={mode:"hidden",children:o},1&a||null===i?i=l8(o,a,0,null):(i.childLanes=0,i.pendingProps=o),e=l6(e,a,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=oy(n),t.memoizedState=og,e):ov(t,o));if(null!==(s=e.memoizedState)&&null!==(r=s.dehydrated))return function(e,t,n,r,a,s,i){if(n)return 256&t.flags?(t.flags&=-257,oD(e,t,i,r=oi(Error(ev(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=r.fallback,a=t.mode,r=l8({mode:"visible",children:r.children},a,0,null),s=l6(s,a,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,1&t.mode&&sx(t,e.child,null,i),t.child.memoizedState=oy(i),t.memoizedState=og,s);if(!(1&t.mode))return oD(e,t,i,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var o=r.dgst;return r=o,oD(e,t,i,r=oi(s=Error(ev(419)),r,void 0))}if(o=(i&e.childLanes)!=0,o_||o){if(null!==(r=lr)){switch(i&-i){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 0x1000000:case 0x2000000:case 0x4000000:a=32;break;case 0x20000000:a=0x10000000;break;default:a=0}0!==(a=a&(r.suspendedLanes|i)?0:a)&&a!==s.retryLane&&(s.retryLane=a,sz(e,a),lv(r,e,a,-1))}return lV(),oD(e,t,i,r=oi(Error(ev(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=lQ.bind(null,e),a._reactRetry=t,null):(e=s.treeContext,sS=aU(a.nextSibling),sf=t,sR=!0,sA=null,null!==e&&(sl[sE++]=sc,sl[sE++]=sd,sl[sE++]=su,sc=e.id,sd=e.overflow,su=t),t=ov(t,r.children),t.flags|=4096,t)}(e,t,o,a,r,s,n);if(i){i=a.fallback,o=t.mode,r=(s=e.child).sibling;var l={mode:"hidden",children:a.children};return 1&o||t.child===s?(a=l3(s,l)).subtreeFlags=0xe00000&s.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=l,t.deletions=null),null!==r?i=l3(r,i):(i=l6(i,o,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,o=null===(o=e.child.memoizedState)?oy(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=og,a}return e=(i=e.child).sibling,a=l3(i,{mode:"visible",children:a.children}),1&t.mode||(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function ov(e,t){return(t=l8({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function oD(e,t,n,r){return null!==r&&sb(r),sx(t,e.child,null,n),e=ov(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oP(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),sV(e.return,t,n)}function oM(e,t,n,r,a){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a)}function oU(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;if(oh(e,t,r.children,n),2&(r=is.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&oP(e,n,t);else if(19===e.tag)oP(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;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(aZ(is,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ii(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oM(t,!1,a,n,s);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ii(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oM(t,!0,n,null,s);break;case"together":oM(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function ox(e,t){1&t.mode||null===e||(e.alternate=null,t.alternate=null,t.flags|=2)}function ow(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),lu|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(ev(153));if(null!==t.child){for(n=l3(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=l3(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ok(e,t){if(!sR)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 oG(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=0xe00000&a.subtreeFlags,r|=0xe00000&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}RA=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}},RO=function(){},RN=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,s9(s6.current);var s,i=null;switch(n){case"input":a=to(e,a),r=to(e,r),i=[];break;case"select":a=e7({},a,{value:void 0}),r=e7({},r,{value:void 0}),i=[];break;case"textarea":a=t_(e,a),r=t_(e,r),i=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=am)}for(E in tb(n,r),n=null,a)if(!r.hasOwnProperty(E)&&a.hasOwnProperty(E)&&null!=a[E]){if("style"===E){var o=a[E];for(s in o)o.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else"dangerouslySetInnerHTML"!==E&&"children"!==E&&"suppressContentEditableWarning"!==E&&"suppressHydrationWarning"!==E&&"autoFocus"!==E&&(eP.hasOwnProperty(E)?i||(i=[]):(i=i||[]).push(E,null))}for(E in r){var l=r[E];if(o=null!=a?a[E]:void 0,r.hasOwnProperty(E)&&l!==o&&(null!=l||null!=o)){if("style"===E){if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(E,n)),n=l}else"dangerouslySetInnerHTML"===E?(l=l?l.__html:void 0,o=o?o.__html:void 0,null!=l&&o!==l&&(i=i||[]).push(E,l)):"children"===E?"string"!=typeof l&&"number"!=typeof l||(i=i||[]).push(E,""+l):"suppressContentEditableWarning"!==E&&"suppressHydrationWarning"!==E&&(eP.hasOwnProperty(E)?(null!=l&&"onScroll"===E&&au("scroll",e),i||o===l||(i=[])):(i=i||[]).push(E,l))}}n&&(i=i||[]).push("style",n);var E=i;(t.updateQueue=E)&&(t.flags|=4)}},RI=function(e,t,n,r){n!==r&&(t.flags|=4)};var oF=!1,oB=!1,oH="function"==typeof WeakSet?WeakSet:Set,oY=null;function oV(e,t){var n=e.ref;if(null!==n){if("function"==typeof n)try{n(null)}catch(n){lJ(e,t,n)}else n.current=null}}function oW(e,t,n){try{n()}catch(n){lJ(e,t,n)}}var oj=!1;function oX(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,void 0!==s&&oW(t,n,s)}a=a.next}while(a!==r)}}function oK(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function o$(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function oz(e){return 5===e.tag||3===e.tag||4===e.tag}function oJ(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||oz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var oZ=null,oq=!1;function oQ(e,t,n){for(n=n.child;null!==n;)o0(e,t,n),n=n.sibling}function o0(e,t,n){if(ns&&"function"==typeof ns.onCommitFiberUnmount)try{ns.onCommitFiberUnmount(na,n)}catch{}switch(n.tag){case 5:oB||oV(n,t);case 6:var r=oZ,a=oq;oZ=null,oQ(e,t,n),oZ=r,oq=a,null!==oZ&&(oq?(e=oZ,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):oZ.removeChild(n.stateNode));break;case 18:null!==oZ&&(oq?(e=oZ,n=n.stateNode,8===e.nodeType?aM(e.parentNode,n):1===e.nodeType&&aM(e,n),nH(e)):aM(oZ,n.stateNode));break;case 4:r=oZ,a=oq,oZ=n.stateNode.containerInfo,oq=!0,oQ(e,t,n),oZ=r,oq=a;break;case 0:case 11:case 14:case 15:if(!oB&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){a=r=r.next;do{var s=a,i=s.destroy;s=s.tag,void 0!==i&&(2&s||4&s)&&oW(n,t,i),a=a.next}while(a!==r)}oQ(e,t,n);break;case 1:if(!oB&&(oV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){lJ(n,t,e)}oQ(e,t,n);break;case 21:default:oQ(e,t,n);break;case 22:1&n.mode?(oB=(r=oB)||null!==n.memoizedState,oQ(e,t,n),oB=r):oQ(e,t,n)}}function o1(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new oH),t.forEach(function(t){var r=l0.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function o2(e,t){var n=t.deletions;if(null!==n)for(var r=0;ra&&(a=i),r&=~s}if(r=a,10<(r=(120>(r=t8()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*o7(r/1960))-r)){e.timeoutHandle=ay(lK.bind(null,e,lp,lf),r);break}lK(e,lp,lf);break;default:throw Error(ev(329))}}}return lD(e,t8()),e.callbackNode===n?lP.bind(null,e):null}function lM(e,t){var n=lT;return e.current.memoizedState.isDehydrated&&(lB(e,t).flags|=256),2!==(e=lW(e,t))&&(t=lp,lp=n,null!==t&&lU(t)),e}function lU(e){null===lp?lp=e:lp.push.apply(lp,e)}function lx(e,t){for(t&=~ld,t&=~lc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[ak]=t,e[aG]=r,RA(e,t,!1,!1),t.stateNode=e;e:{switch(i=tv(n,r),n){case"dialog":au("cancel",e),au("close",e),a=r;break;case"iframe":case"object":case"embed":au("load",e),a=r;break;case"video":case"audio":for(a=0;alh&&(t.flags|=128,r=!0,ok(s,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ii(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ok(s,!0),null===s.tail&&"hidden"===s.tailMode&&!i.alternate&&!sR)return oG(t),null}else 2*t8()-s.renderingStartTime>lh&&0x40000000!==n&&(t.flags|=128,r=!0,ok(s,!1),t.lanes=4194304)}s.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=s.last)?n.sibling=i:t.child=i,s.last=i)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=t8(),t.sibling=null,n=is.current,aZ(is,r?1&n|2:1&n),t):(oG(t),null);case 22:case 23:return lF(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?0x40000000&li&&(oG(t),6&t.subtreeFlags&&(t.flags|=8192)):oG(t),null;case 24:case 25:return null}throw Error(ev(156,t.tag))}(n,t,li))){la=n;return}if(null!==(t=t.sibling)){la=t;return}la=t=e}while(null!==t);0===ll&&(ll=5)}function lK(e,t,n){var r=nS,a=lt.transition;try{lt.transition=null,nS=1,function(e,t,n,r){do l$();while(null!==lN);if(6&ln)throw Error(ev(327));n=e.finishedWork;var a=e.finishedLanes;if(null!==n){if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(ev(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0r&&(a=r,r=s,s=a),a=rK(n,s);var i=rK(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;ne?16:e,null===lN)var r=!1;else{if(e=lN,lN=null,lI=0,6&ln)throw Error(ev(331));var a=ln;for(ln|=4,oY=e.current;null!==oY;){var s=oY,i=s.child;if(16&oY.flags){var o=s.deletions;if(null!==o){for(var l=0;lt8()-l_?lB(e,0):ld|=n),lD(e,t)}function lq(e,t){0!==t||(1&e.mode?(t=nu,0x7c00000&(nu<<=1)||(nu=4194304)):t=1);var n=ly();null!==(e=sz(e,t))&&(nh(e,t,n),lD(e,n))}function lQ(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),lq(e,n)}function l0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ev(314))}null!==r&&r.delete(t),lq(e,n)}function l1(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function l2(e,t,n,r){return new l1(e,t,n,r)}function l5(e){return!(!(e=e.prototype)||!e.isReactComponent)}function l3(e,t){var n=e.alternate;return null===n?((n=l2(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.subtreeFlags=0,n.deletions=null),n.flags=0xe00000&e.flags,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 l4(e,t,n,r,a,s){var i=2;if(r=e,"function"==typeof e)l5(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case e$:return l6(n.children,a,s,t);case ez:i=8,a|=8;break;case eJ:return(e=l2(12,n,t,2|a)).elementType=eJ,e.lanes=s,e;case e0:return(e=l2(13,n,t,a)).elementType=e0,e.lanes=s,e;case e1:return(e=l2(19,n,t,a)).elementType=e1,e.lanes=s,e;case e3:return l8(n,a,s,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case eZ:i=10;break e;case eq:i=9;break e;case eQ:i=11;break e;case e2:i=14;break e;case e5:i=16,r=null;break e}throw Error(ev(130,null==e?e:typeof e,""))}return(t=l2(i,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function l6(e,t,n,r){return(e=l2(7,e,r,t)).lanes=n,e}function l8(e,t,n,r){return(e=l2(22,e,r,t)).elementType=e3,e.lanes=n,e.stateNode={isHidden:!1},e}function l7(e,t,n){return(e=l2(6,e,null,t)).lanes=n,e}function l9(e,t,n){return(t=l2(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ee(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=n_(0),this.expirationTimes=n_(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=n_(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Et(e,t,n,r,a,s,i,o,l){return e=new Ee(e,t,n,o,l),1===t?(t=1,!0===s&&(t|=8)):t=0,s=l2(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sZ(s),e}function En(e){if(!e)return aq;e=e._reactInternals;e:{if(tQ(e)!==e||1!==e.tag)throw Error(ev(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(a5(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(ev(171))}if(1===e.tag){var n=e.type;if(a5(n))return a6(e,n,t)}return t}function Er(e,t,n,r,a,s,i,o,l){return(e=Et(n,r,!0,e,a,s,i,o,l)).context=En(null),n=e.current,(s=sQ(r=ly(),a=lb(n))).callback=t??null,s0(n,s,a),e.current.lanes=a,nh(e,a,r),lD(e,r),e}function Ea(e,t,n,r){var a=t.current,s=ly(),i=lb(a);return n=En(n),null===t.context?t.context=n:t.pendingContext=n,(t=sQ(s,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=s0(a,t,i))&&(lv(e,a,i,s),s1(e,a,i)),i}function Es(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ei(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n"u")throw Error(t)}function EO(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch{}}}function EN(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(RC||(RC={})),!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(RL||(RL={}));let EI=/^:[\w-]+$/,Em=e=>"*"===e;function EC(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function EL(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t)+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function Eg(e,t){let n=e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function Ey(e,t,n,r){let a;void 0===r&&(r=!1),"string"==typeof e?a=EN(e):(EA(!(a=ER({},e)).pathname||!a.pathname.includes("?"),EL("?","pathname","search",a)),EA(!a.pathname||!a.pathname.includes("#"),EL("#","pathname","hash",a)),EA(!a.search||!a.search.includes("#"),EL("#","search","hash",a)));let s=""===e||""===a.pathname,i=s?"/":a.pathname,o;if(null==i)o=n;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){let n;void 0===t&&(t="/");let{pathname:r,search:a="",hash:s=""}="string"==typeof e?EN(e):e;return{pathname:r?r.startsWith("/")?r:(n=t.replace(/\/+$/,"").split("/"),r.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"):t,search:ED(a),hash:EP(s)}}(a,o),E=i&&"/"!==i&&i.endsWith("/"),u=(s||"."===i)&&n.endsWith("/");return!l.pathname.endsWith("/")&&(E||u)&&(l.pathname+="/"),l}let Eb=e=>e.join("/").replace(/\/\/+/g,"/"),Ev=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ED=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",EP=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function EM(){return(EM=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),ep.useCallback(function(e,t){void 0===t&&(t={}),o.current&&("number"==typeof e?s.navigate(e):s.navigate(e,EM({fromRouteId:i},t)))},[s,i])}():function(){Ew()||EA(!1);let e=ep.useContext(null),{basename:t,future:n,navigator:r}=ep.useContext(null),{matches:a}=ep.useContext(EU),{pathname:s}=Ek(),i=JSON.stringify(Eg(a,n.v7_relativeSplatPath)),o=ep.useRef(!1);return EG(()=>{o.current=!0}),ep.useCallback(function(n,a){if(void 0===a&&(a={}),!o.current)return;if("number"==typeof n){r.go(n);return}let l=Ey(n,JSON.parse(i),s,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Eb([t,l.pathname])),(a.replace?r.replace:r.push)(l,a.state,a)},[t,r,i,s,e])}()}function EB(){let{matches:e}=ep.useContext(EU),t=e[e.length-1];return t?t.params:{}}class EH extends ep.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?ep.createElement(EU.Provider,{value:this.props.routeContext},ep.createElement(Ex.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function EY(e){let{routeContext:t,match:n,children:r}=e,a=ep.useContext(null);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),ep.createElement(EU.Provider,{value:t},r)}function EV(e){let{to:t,replace:n,state:r,relative:a}=e;Ew()||EA(!1);let{future:s,static:i}=ep.useContext(null),{matches:o}=ep.useContext(EU),{pathname:l}=Ek(),E=EF(),u=JSON.stringify(Ey(t,Eg(o,s.v7_relativeSplatPath),l,"path"===a));return ep.useEffect(()=>E(JSON.parse(u),{replace:n,state:r,relative:a}),[E,u,a,n,r]),null}function EW(e){var t;let n;return t=e.context,(n=ep.useContext(EU).outlet)&&ep.createElement(null.Provider,{value:t},n)}function Ej(e){EA(!1)}eh.startTransition;function EX(e){let{children:t,location:n}=e;return function(e,t,n,r){var a,s;Ew()||EA(!1);let{navigator:i}=ep.useContext(null),{matches:o}=ep.useContext(EU),l=o[o.length-1],E=l?l.params:{},u=l?l.pathnameBase:"/",c=Ek(),d;if(t){let e="string"==typeof t?EN(t):t;"/"===u||null!=(a=e.pathname)&&a.startsWith(u)||EA(!1),d=e}else d=c;let T=d.pathname||"/",p=T;if("/"!==u){let e=u.replace(/^\//,"").split("/");p="/"+T.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=(void 0===s&&(s="/"),function(e,t,n,r){let a=EC(("string"==typeof t?EN(t):t).pathname||"/",n);if(null==a)return null;let s=function e(t,n,r,a){void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===a&&(a="");let s=(t,s,i)=>{var o;let l,E,u={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:s,route:t};u.relativePath.startsWith("/")&&(EA(u.relativePath.startsWith(a),'Absolute route path "'+u.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),u.relativePath=u.relativePath.slice(a.length));let c=Eb([a,u.relativePath]),d=r.concat(u);t.children&&t.children.length>0&&(EA(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+c+'".'),e(t.children,n,d,c)),(null!=t.path||t.index)&&n.push({path:c,score:(o=t.index,E=(l=c.split("/")).length,l.some(Em)&&(E+=null),o&&(E+=2),l.filter(e=>!Em(e)).reduce((e,t)=>e+(EI.test(t)?3:""===t?1:10),E)),routesMeta:d})};return t.forEach((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of function e(t){let n=t.split("/");if(0===n.length)return[];let[r,...a]=n,s=r.endsWith("?"),i=r.replace(/\?$/,"");if(0===a.length)return s?[i,""]:[i];let o=e(a.join("/")),l=[];return l.push(...o.map(e=>""===e?i:[i,e].join("/"))),s&&l.push(...o),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))s(e,t,n);else s(e,t)}),n}(e);(function(e){e.sort((e,t)=>{var n,r;return e.score!==t.score?t.score-e.score:(n=e.routesMeta.map(e=>e.childrenIndex),r=t.routesMeta.map(e=>e.childrenIndex),n.length===r.length&&n.slice(0,-1).every((e,t)=>e===r[t])?n[n.length-1]-r[r.length-1]:0)})})(s);let i=null;for(let e=0;null==i&&edecodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return EO(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}(a);i=function(e,t,n){let{routesMeta:r}=e,a={},s="/",i=[];for(let e=0;e(s.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")),n.endsWith("*")?(s.push({paramName:"*"}),i+="*"===n||"/*"===n?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==n&&"/"!==n&&(i+="(?:(?=\\/|$))"),[new RegExp(i,r?void 0:"i"),s]),E=t.match(o);if(!E)return null;let u=E[0],c=u.replace(/(.)\/+$/,"$1"),d=E.slice(1);return{params:l.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=d[n]||"";c=u.slice(0,u.length-e.length).replace(/(.)\/+$/,"$1")}let s=d[n];return a&&!s?e[r]=void 0:e[r]=(s||"").replace(/%2F/g,"/"),e},{}),pathname:u,pathnameBase:c,pattern:e}}({path:n.relativePath,caseSensitive:n.caseSensitive,end:o},l),u=n.route;if(!E)return null;Object.assign(a,E.params),i.push({params:a,pathname:Eb([s,E.pathname]),pathnameBase:Ev(Eb([s,E.pathnameBase])),route:u}),"/"!==E.pathnameBase&&(s=Eb([s,E.pathnameBase]))}return i}(s[e],t)}return i}(e,{pathname:p},s)),h=function(e,t,n,r){var a,s;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(null==(s=r)||!s.v7_partialHydration||0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=null==(a=n)?void 0:a.errors;if(null!=o){let e=i.findIndex(e=>e.route.id&&(null==o?void 0:o[e.route.id])!==void 0);e>=0||EA(!1),i=i.slice(0,Math.min(i.length,e+1))}let l=!1,E=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e=0?i.slice(0,E+1):[i[0]];break}}}return i.reduceRight((e,r,a)=>{let s,u=!1,c=null,d=null;n&&(s=o&&r.route.id?o[r.route.id]:void 0,c=r.route.errorElement||null,l&&(E<0&&0===a?(u=!0,d=null):E===a&&(u=!0,d=r.route.hydrateFallbackElement||null)));let T=t.concat(i.slice(0,a+1)),p=()=>{let t;return t=s?c:u?d:r.route.Component?ep.createElement(r.route.Component,null):r.route.element?r.route.element:e,ep.createElement(EY,{match:r,routeContext:{outlet:e,matches:T,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===a)?ep.createElement(EH,{location:n.location,revalidation:n.revalidation,component:c,error:s,children:p(),routeContext:{outlet:null,matches:T,isDataRoute:!0}}):p()},null)}(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},E,e.params),pathname:Eb([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:Eb([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,void 0,void 0);return t&&h?ep.createElement(null.Provider,{value:{location:EM({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:RC.Pop}},h):h}(function e(t,n){void 0===n&&(n=[]);let r=[];return ep.Children.forEach(t,(t,a)=>{if(!ep.isValidElement(t))return;let s=[...n,a];if(t.type===ep.Fragment){r.push.apply(r,e(t.props.children,s));return}t.type!==Ej&&EA(!1),t.props.index&&t.props.children&&EA(!1);let i={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=e(t.props.children,s)),r.push(i)}),r}(t),n)}new Promise(()=>{});try{window.__reactRouterVersion="6"}catch{}"u">typeof window&&"u">typeof window.document&&window.document.createElement,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(Rg||(Rg={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ry||(Ry={}));var EK={},E$={},Ez={exports:{}},EJ=String,EZ=function(){return{isColorSupported:!1,reset:EJ,bold:EJ,dim:EJ,italic:EJ,underline:EJ,inverse:EJ,hidden:EJ,strikethrough:EJ,black:EJ,red:EJ,green:EJ,yellow:EJ,blue:EJ,magenta:EJ,cyan:EJ,white:EJ,gray:EJ,bgBlack:EJ,bgRed:EJ,bgGreen:EJ,bgYellow:EJ,bgBlue:EJ,bgMagenta:EJ,bgCyan:EJ,bgWhite:EJ,blackBright:EJ,redBright:EJ,greenBright:EJ,yellowBright:EJ,blueBright:EJ,magentaBright:EJ,cyanBright:EJ,whiteBright:EJ,bgBlackBright:EJ,bgRedBright:EJ,bgGreenBright:EJ,bgYellowBright:EJ,bgBlueBright:EJ,bgMagentaBright:EJ,bgCyanBright:EJ,bgWhiteBright:EJ}};Ez.exports=EZ(),Ez.exports.createColors=EZ;var Eq=Ez.exports;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(e,{dim:function(){return a},default:function(){return s}});let t=Eq&&Eq.__esModule?Eq:{default:Eq},n=new Set;function r(e,t,r){"u">typeof C&&C.env.JEST_WORKER_ID||r&&n.has(r)||(r&&n.add(r),console.warn(""),t.forEach(t=>console.warn(e,"-",t)))}function a(e){return t.default.dim(e)}let s={info(e,n){r(t.default.bold(t.default.cyan("info")),...Array.isArray(e)?[e]:[n,e])},warn(e,n){r(t.default.bold(t.default.yellow("warn")),...Array.isArray(e)?[e]:[n,e])},risk(e,n){r(t.default.bold(t.default.magenta("risk")),...Array.isArray(e)?[e]:[n,e])}}})(E$),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}});let t=E$.__esModule?E$:{default:E$};function n({version:e,from:n,to:r}){t.default.warn(`${n}-color-renamed`,[`As of Tailwind CSS ${e}, \`${n}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}let r={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return n({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return n({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return n({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return n({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return n({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}}(EK),(EK.__esModule?EK:{default:EK}).default;let EQ=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:100,height:100,viewBox:"0 0 48 48","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{d:"M 22 1 C 19.802666 1 18 2.8026661 18 5 L 18 6 L 9 6 C 7.3555411 6 6 7.3544268 6 9 L 6 11 C 6 12.645573 7.3555411 14 9 14 L 33 14 A 1.0001 1.0001 0 1 0 33 12 L 9 12 C 8.4364589 12 8 11.564427 8 11 L 8 9 C 8 8.4355732 8.4364589 8 9 8 L 19 8 A 1.0001 1.0001 0 0 0 20 7 L 20 5 C 20 3.8833339 20.883334 3 22 3 L 26 3 C 27.116666 3 28 3.8833339 28 5 L 28 7 A 1.0001 1.0001 0 0 0 29 8 L 39 8 C 39.563541 8 40 8.4355732 40 9 L 40 11 C 40 11.564427 39.563541 12 39 12 L 38 12 A 1.0001 1.0001 0 0 0 37 13.003906 L 37.105469 40.080078 C 37.060923 41.715433 35.743427 43 34.107422 43 L 14.025391 43 C 12.348977 43 11.014814 41.656796 11.025391 39.980469 A 1.0001 1.0001 0 0 0 11.025391 39.974609 L 11 16.998047 A 1.0001 1.0001 0 1 0 9 17.001953 L 9.0253906 39.96875 C 9.0079668 42.730423 11.263804 45 14.025391 45 L 34.107422 45 C 36.805417 45 39.032014 42.831411 39.105469 40.134766 A 1.0001 1.0001 0 0 0 39.105469 40.103516 L 39.003906 13.998047 C 40.646254 13.995478 42 12.64401 42 11 L 42 9 C 42 7.3544268 40.644459 6 39 6 L 30 6 L 30 5 C 30 2.8026661 28.197334 1 26 1 L 22 1 z M 16.984375 19.986328 A 1.0001 1.0001 0 0 0 16 21 L 16 38 A 1.0001 1.0001 0 1 0 18 38 L 18 21 A 1.0001 1.0001 0 0 0 16.984375 19.986328 z M 23.984375 19.986328 A 1.0001 1.0001 0 0 0 23 21 L 23 38 A 1.0001 1.0001 0 1 0 25 38 L 25 21 A 1.0001 1.0001 0 0 0 23.984375 19.986328 z M 30.984375 19.986328 A 1.0001 1.0001 0 0 0 30 21 L 30 38 A 1.0001 1.0001 0 1 0 32 38 L 32 21 A 1.0001 1.0001 0 0 0 30.984375 19.986328 z"})),E0=({title:e,titleId:t,...n})=>ep.createElement("svg",{width:256,height:256,viewBox:"0 0 256 256",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:256,height:256,fill:"none"}),ep.createElement("path",{d:"M121.678 68.6777C140.081 50.2742 169.919 50.2742 188.322 68.6777C206.726 87.0811 206.726 116.919 188.322 135.322C169.919 153.726 140.081 153.726 121.678 135.322C120.734 134.378 119.733 133.525 118.686 132.764C108.865 124.59 94.2507 125.11 85.0381 134.322L57.5381 161.822C47.775 171.585 47.775 187.415 57.5381 197.178C67.3012 206.941 83.1303 206.941 92.8934 197.178L104.862 185.209C142.205 207.751 191.449 202.907 223.678 170.678C261.607 132.748 261.607 71.252 223.678 33.3223C185.748 -4.60732 124.252 -4.60732 86.3223 33.3223C77.5523 42.0923 70.7787 52.1712 66.0472 62.9564C60.5003 75.6003 66.2535 90.3468 78.8974 95.8938C91.5413 101.441 106.288 95.6875 111.835 83.0436C114.109 77.8604 117.374 72.9809 121.678 68.6777Z",fill:"currentColor"}),ep.createElement("path",{d:"M59 224C59 238.359 47.3594 250 33 250C18.6406 250 7 238.359 7 224C7 209.641 18.6406 198 33 198C47.3594 198 59 209.641 59 224Z",fill:"currentColor"}),ep.createElement("path",{d:"M155 130C170.464 130 183 117.464 183 102C183 86.536 170.464 74 155 74C139.536 74 127 86.536 127 102C127 117.464 139.536 130 155 130Z",fill:"currentColor"})),E1=new EventTarget;function E2(){if(typeof window>"u")return E1;let e=window;return e.__spotlight||(e.__spotlight={}),e.__spotlight.eventTarget||(e.__spotlight.eventTarget=new EventTarget),e.__spotlight.eventTarget}function E5(...e){return e.filter(Boolean).join(" ")}function E3({tabs:e,nested:t,setOpen:n}){let r=EF(),a=Ek();return function(e,t,n,r=!1){let a=e.toLowerCase();ep.useEffect(()=>{function e(e){r||e.stopPropagation(),e.key&&t.every(t=>e[t])&&e.key.toLowerCase()===a&&n()}return window.addEventListener("keyup",e),()=>window.removeEventListener("keyup",e)},[a,t,n,r])}("Escape",[],()=>{n&&2===a.pathname.split("/").length?n(!1):r(-1)}),eI.jsxs("div",{children:[eI.jsxs("div",{className:"sm:hidden",children:[eI.jsx("label",{htmlFor:"tabs",className:"sr-only",children:"Select a tab"}),eI.jsx("select",{id:"tabs",name:"tabs",className:"border-primary-800 bg-primary-800 hover:bg-primary-700 hover:border-primary-700 focus:bg-primary-800 text-primary-100 block w-full rounded-md py-2 pl-3 pr-10 focus:outline-none sm:text-sm",onChange:n=>{let a=e.find(e=>e.id===n.target.value);null!=a&&a.onSelect&&a.onSelect(),r(`${t?"":"/"}${(null==a?void 0:a.id)||"not-found"}`)},children:e.map(e=>{var t;return eI.jsxs("option",{value:e.id,children:[e.title," ",null==(t=e.notificationCount)?void 0:t.count]},e.id)})})]}),eI.jsx("div",{className:"hidden sm:block",children:eI.jsx("nav",{className:"border-b-primary-700 flex space-x-8 border-b px-6","aria-label":"Tabs",children:e.map(e=>{var n;return eI.jsxs(null,{to:`${t?"":"/"}${e.id}`,replace:!0,className:({isActive:e})=>E5(e?"border-primary-200 text-primary-100 [&>.count]:bg-primary-100 [&>.count]:text-primary-600":"text-primary-400 hover:border-primary-400 hover:text-primary-100 [&>.count]:bg-primary-700 [&>.count]:text-primary-200 border-transparent","-m-y -mx-2 flex select-none whitespace-nowrap border-b-2 px-2 py-3 text-sm font-medium"),onClick:()=>{var t;return null==(t=e.onSelect)?void 0:t.call(e)},children:[e.title,void 0!==e.notificationCount?eI.jsx("span",{className:"count ml-3 hidden rounded px-2.5 py-0.5 text-xs font-medium md:inline-block",children:null==(n=e.notificationCount)?void 0:n.count}):null]},e.id)})})})]})}function E4({integrations:e,integrationData:t,setTriggerButtonCount:n,setOpen:r}){let[a,s]=ep.useState({count:0,severe:!1}),i=e.flatMap(e=>{var n;if(e.tabs){let r=(null==(n=t[e.name])?void 0:n.map(e=>e.event))||[];return e.tabs({processedEvents:r}).map(e=>({...e,processedEvents:r}))}return[]}),o=i.reduce((e,t)=>{var n,r;return{count:e.count+((null==(n=t.notificationCount)?void 0:n.count)||0),severe:e.severe||(null==(r=t.notificationCount)?void 0:r.severe)||!1}},{count:0,severe:!1});return o.count!==a.count&&s(o),ep.useEffect(()=>{n(a)},[a,n]),eI.jsxs(eI.Fragment,{children:[eI.jsx(E3,{tabs:i,setOpen:r}),eI.jsx("div",{className:"flex-1 overflow-auto overflow-x-hidden",children:eI.jsxs(EX,{children:[eI.jsx(Ej,{path:"/not-found",element:eI.jsx("p",{children:"Not Found - How'd you manage to get here?"})},"not-found"),i.map(({content:e,id:t,processedEvents:n})=>e?eI.jsx(Ej,{path:`/${t}/*`,element:ep.createElement(e,{processedEvents:n})},t):null)]})})]})}function E6({isOpen:e,setOpen:t,fullPage:n,children:r}){return n?eI.jsx(eI.Fragment,{children:r}):eI.jsx("div",{className:E5("spotlight-fullscreen-blur",e?"":"!hidden"),onClick:e=>{e.target===e.currentTarget&&t(!1)},children:r})}let E8="http://localhost:8969";function E7({count:e,children:t,severe:n=!1,...r}){return eI.jsxs("div",{className:"gap-x hover:bg-primary-400 relative flex items-center rounded p-3",...r,children:[t,e?eI.jsx("span",{className:E5(n?"bg-red-500":"bg-primary-500","absolute -right-2 -top-2 flex h-5 w-5 items-center justify-center rounded-full font-sans text-[0.65rem] font-medium"),children:e}):null]})}new URL("/stream",E8).href;let E9="events";function ue(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return{resolve:e,reject:t,promise:n}}let ut=null;async function un(){return ut||(ut=await function(){let{promise:e,resolve:t,reject:n}=ue(),r=e=>n(e.target.error),a=indexedDB.open("SentrySpotlight",2);return a.onerror=r,a.onupgradeneeded=()=>{let e=a.result;try{e.deleteObjectStore(E9)}catch{}e.createObjectStore(E9,{autoIncrement:!0}).createIndex("timestamp","timestamp",{unique:!1})},a.onsuccess=()=>{let e=a.result,n=e.transaction([E9],"readwrite");n.onerror=r,n.oncomplete=()=>t(e);let s=n.objectStore(E9).index("timestamp").openCursor(IDBKeyRange.upperBound(new Date(Date.now()-null)));s.onerror=r,s.onsuccess=()=>{let e=s.result;e&&(e.delete(),e.continue())}},e}()),ut}let ur=window;ur.__spotlight||(ur.__spotlight={}),ur.__spotlight.console||(ur.__spotlight.console={}),ur.__spotlight.console.log||(ur.__spotlight.console.log=window.console.log),ur.__spotlight.console.warn||(ur.__spotlight.console.warn=window.console.warn),ur.__spotlight.console;let ua=(...e)=>{};function us(...e){ua(...e)}function ui(){let e=new Date().getTime();return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){let n=16*Math.random();return n=(e+n)%16|0,e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})}function uo(e){return e.includes("javascript.astro")?"javascript.astro":e.includes("javascript")?"javascript":e.includes("java")?"java":e.includes("python")?"python":e.includes("php.laravel")?"php.laravel":e.includes("php.symfony")?"php.symfony":e.includes("php")?"php":e.includes("ruby")?"ruby":e.includes("dotnet")?"dotnet":"unknown"}function ul(e){return"string"==typeof e?new Date(e).getTime():1e3*e}class uE{constructor(e=[]){y(this,"events",[]),y(this,"eventIds",new Set),y(this,"sdks",[]),y(this,"traces",[]),y(this,"tracesById",{}),y(this,"localTraceIds",new Set),y(this,"envelopes",[]),y(this,"subscribers",new Map),y(this,"contextLinesProvider",new URL(em,E8).href),e.forEach(e=>this.pushEvent(e))}setSidecarUrl(e){let{href:t}=new URL(em,e);this.contextLinesProvider=t}inferSdkFromEvent(e){let t={name:"unknown",version:"unknown",lastSeen:new Date().getTime()};return e.sdk?(t.name=e.sdk.name||t.name,t.version=e.sdk.version||t.version):e.platform&&(t.name=e.platform),t}pushEnvelope({envelope:e,rawEnvelope:t}){let n;let[r,a]=e,s=new Date(r.sent_at).getTime();n=r.sdk&&r.sdk.name&&r.sdk.version?{name:r.sdk.name,version:r.sdk.version,lastSeen:s}:a.length>0?this.inferSdkFromEvent(a[0][1]):{name:"unknown",version:"0.0.0",lastSeen:s};let i=this.sdks.find(e=>e.name===n.name&&e.version===n.version);for(let[e,t]of(i?i.lastSeen=s:this.sdks.push({name:n.name,version:n.version,lastSeen:s}),a))("event"===e.type||"transaction"===e.type)&&(t.platform=uo(n.name),this.pushEvent(t));return this.envelopes.push({envelope:e,rawEnvelope:t})}async pushEvent(e){var t;if(e.event_id||(e.event_id=ui()),this.eventIds.has(e.event_id))return;this.eventIds.add(e.event_id),"transaction"!=e.type&&await this.processStacktrace(e),e.timestamp=ul(e.timestamp),e.start_timestamp&&(e.start_timestamp=ul(e.start_timestamp));let n=null==(t=e.contexts)?void 0:t.trace;if(this.events.push(e),n){let t=this.tracesById[n.trace_id],r=e.start_timestamp?e.start_timestamp:new Date().getTime(),a=t??{...n,spans:[],transactions:[],errors:0,timestamp:e.timestamp,start_timestamp:r,status:n.status,rootTransactionName:e.transaction||"(unknown transaction)",rootTransaction:null};if("transaction"===e.type){a.transactions.push(e),a.transactions.sort((e,t)=>e.start_timestamp-t.start_timestamp);let t=[];a.transactions.forEach(e=>{t.push({...e.contexts.trace,tags:null==e?void 0:e.tags,start_timestamp:e.start_timestamp,timestamp:e.timestamp,description:n.description||e.transaction,transaction:e}),e.spans&&t.push(...e.spans.map(e=>({...e,timestamp:ul(e.timestamp),start_timestamp:ul(e.start_timestamp)})))}),a.spans=t,a.spanTree=function(e){let t=[],n=new Map,r=[...e].sort((e,t)=>(e.parent_span_id?1:0)-(t.parent_span_id?1:0));return r.forEach(e=>{let a=function(e,t,n){if(e.parent_span_id)return t.has(e.parent_span_id)?t.get(e.parent_span_id):n.find(t=>t.span_id===e.parent_span_id)}(e,n,r);if(e.children||(e.children=[]),a)a.children||(a.children=[]),a.children.push(e);else if(e.parent_span_id){let s=r.find(e=>!e.parent_span_id);us(s?`Creating orphan for parent (${e.parent_span_id}) for span (${e.span_id})`:`Root span (${e.parent_span_id}) for span (${e.span_id}). Creating orphan.`),a={trace_id:e.trace_id,span_id:e.parent_span_id,parent_span_id:s?s.span_id:null,op:"orphan",description:"missing or unknown parent span",children:[e],start_timestamp:e.start_timestamp,timestamp:e.timestamp,status:"unknown"},n.set(a.span_id,a),s?(s.children||(s.children=[]),s.children.push(a)):t.push(a)}else t.push(e);n.set(e.span_id,e)}),t}(a.spans)}else a.errors+=1;a.start_timestamp=Math.min(r,a.start_timestamp),a.timestamp=Math.max(e.timestamp,a.timestamp),"ok"!==n.status&&(a.status=n.status);let s=a.transactions.filter(e=>!e.contexts.trace.parent_span_id);1===s.length?(a.rootTransaction=s[0],a.rootTransactionName=s[0].transaction||"(unknown transaction)"):s.length>1?a.rootTransactionName="(multiple root transactions)":a.rootTransactionName="(missing root transaction)",t||(this.traces.unshift(a),this.tracesById[a.trace_id]=a),this.subscribers.forEach(([e,t])=>"trace"===e&&t(a))}this.subscribers.forEach(([t,n])=>"event"===t&&n(e))}getEvents(){return[...this.events]}getTraces(){return[...this.traces]}getSdks(){return[...this.sdks]}getEnvelopes(){return[...this.envelopes]}getEventById(e){return this.events.find(t=>t.event_id===e)}getTraceById(e){return this.tracesById[e]}getEventsByTrace(e,t){return this.events.filter(n=>{var r,a,s,i;return(null==(a=null==(r=n.contexts)?void 0:r.trace)?void 0:a.trace_id)===e&&(!t||(null==(i=null==(s=n.contexts)?void 0:s.trace)?void 0:i.span_id)===t)})}getSpanById(e,t){let n=this.tracesById[e];if(n)return n.spans.find(e=>e.span_id===t)}resetData(){this.envelopes=[],this.events=[],this.eventIds=new Set,this.traces=[],this.tracesById={},this.localTraceIds=new Set}subscribe(...e){let t=ui();return this.subscribers.set(t,e),()=>{this.subscribers.delete(t)}}trackLocalTrace(e){this.localTraceIds.add(e)}isTraceLocal(e){return!!this.localTraceIds.has(e)||!(this.localTraceIds.size>0)&&null}async processStacktrace(e){return e.exception&&e.exception.values?Promise.all((e.exception.values??[]).map(async e=>{var t,n;if(e.stacktrace){if(e.stacktrace.frames.reverse(),null!=(t=e.stacktrace.frames)&&t.every(e=>e.post_context&&e.pre_context&&e.context_line)){us("Skipping contextlines request as we have full context for",e);return}try{let t=await ((n=window.fetch,"__sentry_original__"in n)?window.fetch.__sentry_original__:window.fetch)(this.contextLinesProvider,{method:"PUT",body:JSON.stringify(e.stacktrace)});if(!t.ok||200!==t.status)return;let r=await t.json();e.stacktrace=r}catch{}}})):[]}}let uu=new uE,uc="8.51.0",ud=globalThis;function uT(e,t,n){let r=ud.__SENTRY__=ud.__SENTRY__||{},a=r[uc]=r[uc]||{};return a[e]||(a[e]=t())}let up=["debug","info","warn","error","log","assert","trace"],u_={};function uh(e){if(!("console"in ud))return e();let t=ud.console,n={},r=Object.keys(u_);r.forEach(e=>{let r=u_[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}let uf=uT("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return up.forEach(e=>{t[e]=()=>{}}),t}),uS=/\(error: (.*)\)/,uR=/captureMessage|captureException/;function uA(e){return e[e.length-1]||{}}let uO="",uN={},uI={};function um(e,t){uN[e]=uN[e]||[],uN[e].push(t)}function uC(e,t){if(!uI[e]){uI[e]=!0;try{t()}catch(e){}}}function uL(e,t){let n=e&&uN[e];if(n)for(let e of n)try{e(t)}catch(e){}}let ug=null,uy=null;function ub(){return uv(ud),ud}function uv(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||uc,t[uc]=t[uc]||{}}let uD=Object.prototype.toString;function uP(e){switch(uD.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return uG(e,Error)}}function uM(e,t){return uD.call(e)===`[object ${t}]`}function uU(e){return uM(e,"String")}function ux(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function uw(e){return uM(e,"Object")}function uk(e){return!!(e&&e.then&&"function"==typeof e.then)}function uG(e,t){try{return e instanceof t}catch{return!1}}function uF(e,t={}){if(!e)return"";try{let n,r=e,a=[],s=0,i=0,o=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&s++<5&&(n=function(e,t){let n=[];if(!e||!e.tagName)return"";if(ud.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}n.push(e.tagName.toLowerCase());let r=t&&t.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(r&&r.length)r.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&n.push(`#${e.id}`);let t=e.className;if(t&&uU(t))for(let e of t.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=e.getAttribute(t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,o),!("html"===n||s>1&&i+3*a.length+n.length>=l));)a.push(n),i+=n.length,r=r.parentNode;return a.reverse().join(" > ")}catch{return""}}function uB(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function uH(e,t=[],n=!1){return t.some(t=>(function(e,t,n=!1){return!!uU(e)&&(uM(t,"RegExp")?t.test(e):!!uU(t)&&(n?e===t:e.includes(t)))})(e,t,n))}function uY(e,t,n){if(!(t in e))return;let r=e[t],a=n(r);"function"==typeof a&&uW(a,r);try{e[t]=a}catch{}}function uV(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function uW(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,uV(e,"__sentry_original__",t)}catch{}}function uj(e){try{return"u">typeof Element&&uG(e,Element)?uF(e):Object.prototype.toString.call(e)}catch{return""}}function uX(e){if("object"!=typeof e||null===e)return{};{let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}}function uK(e){return function e(t,n){if(function(e){if(!uw(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}(t)){let r=n.get(t);if(void 0!==r)return r;let a={};for(let r of(n.set(t,a),Object.getOwnPropertyNames(t)))"u">typeof t[r]&&(a[r]=e(t[r],n));return a}if(Array.isArray(t)){let r=n.get(t);if(void 0!==r)return r;let a=[];return n.set(t,a),t.forEach(t=>{a.push(e(t,n))}),a}return t}(e,new Map)}function u$(){return Date.now()/1e3}let uz=function(){let{performance:e}=ud;if(!e||!e.now)return u$;let t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}(),uJ=(()=>{let{performance:e}=ud;if(!e||!e.now)return;let t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+t-n):36e5;return r<36e5||s<36e5?r<=s?e.timeOrigin:a:n})();function uZ(){let e=ud.crypto||ud.msCrypto,t=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function uq(e,t){var n;let r=(n=e).exception&&n.exception.values?n.exception.values[0]:void 0;if(!r)return;let a=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...a,...t},t&&"data"in t){let e={...a&&a.data,...t.data};r.mechanism.data=e}}function uQ(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{uV(e,"__sentry_captured__",!0)}catch{}return!1}function u0(e){return new u1(t=>{t(e)})}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(Rb||(Rb={}));class u1{constructor(e){u1.prototype.__init.call(this),u1.prototype.__init2.call(this),u1.prototype.__init3.call(this),u1.prototype.__init4.call(this),this._state=Rb.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new u1((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new u1((t,n)=>{let r,a;return this.then(t=>{a=!1,r=t,e&&e()},t=>{a=!0,r=t,e&&e()}).then(()=>{if(a){n(r);return}t(r)})})}__init(){this._resolve=e=>{this._setResult(Rb.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(Rb.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{if(this._state===Rb.PENDING){if(uk(t)){t.then(this._resolve,this._reject);return}this._state=e,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Rb.PENDING)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(this._state===Rb.RESOLVED&&e[1](this._value),this._state===Rb.REJECTED&&e[2](this._value),e[0]=!0)})}}}function u2(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||uz(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:uZ()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function u5(){return uZ().substring(16)}function u3(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=u3(r[e],t[e],n-1));return r}let u4="_sentrySpan";function u6(e,t){t?uV(e,u4,t):delete e[u4]}class u8{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:uZ(),spanId:u5()}}clone(){let e=new u8;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,u6(e,this[u4]),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&u2(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,[n,r]=t instanceof u7?[t.getScopeData(),t.getRequestSession()]:uw(t)?[e,e.requestSession]:[],{tags:a,extra:s,user:i,contexts:o,level:l,fingerprint:E=[],propagationContext:u}=n||{};return this._tags={...this._tags,...a},this._extra={...this._extra,...s},this._contexts={...this._contexts,...o},i&&Object.keys(i).length&&(this._user=i),l&&(this._level=l),E.length&&(this._fingerprint=E),u&&(this._propagationContext=u),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,u6(this,void 0),this._attachments=[],this.setPropagationContext({traceId:uZ()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n="number"==typeof t?t:100;if(n<=0)return this;let r={timestamp:u$(),...e},a=this._breadcrumbs;return a.push(r),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:this[u4]}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=u3(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:u5(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t&&t.event_id?t.event_id:uZ();if(!this._client)return uf.warn("No client configured on scope - will not capture exception!"),n;let r=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n&&n.event_id?n.event_id:uZ();if(!this._client)return uf.warn("No client configured on scope - will not capture message!"),r;let a=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:r},this),r}captureEvent(e,t){let n=t&&t.event_id?t.event_id:uZ();return this._client?this._client.captureEvent(e,{...t,event_id:n},this):uf.warn("No client configured on scope - will not capture event!"),n}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}let u7=u8;class u9{constructor(e,t){let n,r;n=e||new u7,r=t||new u7,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t;let n=this._pushScope();try{t=e(n)}catch(e){throw this._popScope(),e}return uk(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function ce(){let e=uv(ub());return e.stack=e.stack||new u9(uT("defaultCurrentScope",()=>new u7),uT("defaultIsolationScope",()=>new u7))}function ct(e){return ce().withScope(e)}function cn(e,t){let n=ce();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function cr(e){return ce().withScope(()=>e(ce().getIsolationScope()))}function ca(e){let t=uv(e);return t.acs?t.acs:{withIsolationScope:cr,withScope:ct,withSetScope:cn,withSetIsolationScope:(e,t)=>cr(t),getCurrentScope:()=>ce().getScope(),getIsolationScope:()=>ce().getIsolationScope()}}function cs(){return ca(ub()).getCurrentScope()}function ci(){return ca(ub()).getIsolationScope()}function co(...e){let t=ca(ub());if(2===e.length){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function cl(){return cs().getClient()}function cE(e){let t=e._sentryMetrics;if(!t)return;let n={};for(let[,[e,r]]of t)(n[e]||(n[e]=[])).push(uK(r));return n}let cu="sentry.source",cc="sentry.sample_rate",cd="sentry.op",cT="sentry.origin",cp="sentry.idle_span_finish_reason",c_="sentry.custom_span_name",ch="sentry-",cf=/^sentry-/;function cS(e){return e.split(",").map(e=>e.split("=").map(e=>decodeURIComponent(e.trim()))).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function cR(e=uZ(),t=u5(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}let cA=!1;function cO(e){return"number"==typeof e?cN(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?cN(e.getTime()):uz()}function cN(e){return e>0x2540be3ff?e/1e3:e}function cI(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();try{let{spanId:t,traceId:n}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:r,startTime:a,name:s,endTime:i,parentSpanId:o,status:l}=e;return uK({span_id:t,trace_id:n,data:r,description:s,parent_span_id:o,start_timestamp:cO(a),timestamp:cO(i)||void 0,status:cC(l),op:r[cd],origin:r[cT],_metrics_summary:cE(e)})}return{span_id:t,trace_id:n}}catch{return{}}}function cm(e){let{traceFlags:t}=e.spanContext();return 1===t}function cC(e){if(!(!e||0===e.code))return 1===e.code?"ok":e.message||"unknown_error"}let cL="_sentryChildSpans",cg="_sentryRootSpan";function cy(e,t){let n=e[cg]||e;uV(t,cg,n),e[cL]?e[cL].add(t):uV(e,cL,new Set([t]))}function cb(e){let t=new Set;return function e(n){if(!t.has(n)&&cm(n))for(let r of(t.add(n),n[cL]?Array.from(n[cL]):[]))e(r)}(e),Array.from(t)}function cv(e){return e[cg]||e}function cD(){let e=ca(ub());return e.getActiveSpan?e.getActiveSpan():cs()[u4]}function cP(){cA||(uh(()=>{console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")}),cA=!0)}let cM="_sentryScope",cU="_sentryIsolationScope";function cx(e){return{scope:e[cM],isolationScope:e[cU]}}function cw(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=cl(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}class ck{constructor(e={}){this._traceId=e.traceId||uZ(),this._spanId=e.spanId||u5()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}let cG="production",cF="_frozenDsc";function cB(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},a=uK({environment:n.environment||cG,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",a),a}function cH(e,t){let n=t.getPropagationContext();return n.dsc||cB(n.traceId,e)}function cY(e){let t=cl();if(!t)return{};let n=cv(e),r=n[cF];if(r)return r;let a=n.spanContext().traceState,s=a&&a.get("sentry.dsc"),i=s&&function(e){let t=function(e){if(!(!e||!uU(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>(Object.entries(cS(t)).forEach(([t,n])=>{e[t]=n}),e),{}):cS(e)}(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>(t.match(cf)&&(e[t.slice(ch.length)]=n),e),{});if(Object.keys(n).length>0)return n}(s);if(i)return i;let o=cB(e.spanContext().traceId,t),l=cI(n),E=l.data||{},u=E[cc];null!=u&&(o.sample_rate=`${u}`);let c=E[cu],d=l.description;return"url"!==c&&d&&(o.transaction=d),cw()&&(o.sampled=String(cm(n))),t.emit("createDsc",o,n),o}function cV(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}let cW=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function cj(e,t=!1){let{host:n,path:r,pass:a,port:s,projectId:i,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&a?`:${a}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${i}`}function cX(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function cK(e,t=100,n=1/0){try{return function e(t,n,r=1/0,a=1/0,s=function(){let e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;etypeof global&&t===global)return"[Global]";if("u">typeof window&&t===window)return"[Window]";if("u">typeof document&&t===document)return"[Document]";if(n=t,"object"==typeof n&&null!==n&&(n.__isVue||n._isVue))return"[VueViewModel]";if(uw(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${function(e){try{return e&&"function"==typeof e&&e.name||uO}catch{return uO}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,n);if(!l.startsWith("[object "))return l;if(n.__sentry_skip_normalization__)return n;let E="number"==typeof n.__sentry_override_normalization_depth__?n.__sentry_override_normalization_depth__:r;if(0===E)return l.replace("object ","");if(i(n))return"[Circular ~]";if(n&&"function"==typeof n.toJSON)try{let t=n.toJSON();return e("",t,E-1,a,s)}catch{}let u=Array.isArray(n)?[]:{},c=0,d=function(e){var t;if(uP(e))return{message:e.message,name:e.name,stack:e.stack,...uX(e)};if(t=e,!("u">typeof Event&&uG(t,Event)))return e;{let t={type:e.type,target:uj(e.target),currentTarget:uj(e.currentTarget),...uX(e)};return"u">typeof CustomEvent&&uG(e,CustomEvent)&&(t.detail=e.detail),t}}(n);for(let t in d){if(!Object.prototype.hasOwnProperty.call(d,t))continue;if(c>=a){u[t]="[MaxProperties ~]";break}let n=d[t];u[t]=e(t,n,E-1,a,s),c++}return o(n),u}("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c$(e,t=[]){return[e,t]}function cz(e){return ud.__SENTRY__&&ud.__SENTRY__.encodePolyfill?ud.__SENTRY__.encodePolyfill(e):new TextEncoder().encode(e)}function cJ(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function cZ(e,t,n,r){let a=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:cj(r)},...a&&{trace:uK({...a})}}}function cq(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n["sentry.measurement_unit"],a=n["sentry.measurement_value"];"string"==typeof r&&"number"==typeof a&&(t[e.name]={value:a,unit:r})}),t}class cQ{constructor(e={}){this._traceId=e.traceId||uZ(),this._spanId=e.spanId||u5(),this._startTime=e.startTimestamp||uz(),this._attributes={},this.setAttributes({[cT]:"manual",[cd]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this}addLinks(e){return this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=cO(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(cu,"custom"),this}end(e){this._endTime||(this._endTime=cO(e),this._onSpanEnded())}getSpanJSON(){return uK({data:this._attributes,description:this._name,op:this._attributes[cd],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:cC(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[cT],_metrics_summary:cE(this),profile_id:this._attributes["sentry.profile_id"],exclusive_time:this._attributes["sentry.exclusive_time"],measurements:cq(this._events),is_segment:this._isStandaloneSpan&&cv(this)===this||void 0,segment_id:this._isStandaloneSpan?cv(this).spanContext().spanId:void 0})}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){let r=c0(t)?t:n||uz(),a=c0(t)?{}:t||{},s={name:e,time:cO(r),attributes:a};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=cl();if(e&&e.emit("spanEnd",this),!(this._isStandaloneSpan||this===cv(this)))return;if(this._isStandaloneSpan){this._sampled?function(e){let t=cl();if(!t)return;let n=e[1];if(!n||0===n.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let n=cY(e[0]),r=t&&t.getDsn(),a=t&&t.getOptions().tunnel,s={sent_at:new Date().toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!a&&r&&{dsn:cj(r)}},i=t&&t.getOptions().beforeSendSpan,o=i?e=>{let t=i(cI(e));return t||cP(),t}:e=>cI(e),l=[];for(let t of e){let e=o(t);e&&l.push([{type:"span"},e])}return c$(s,l)}([this],e)):e&&e.recordDroppedEvent("sample_rate","span");return}let t=this._convertSpanToTransaction();t&&(cx(this).scope||cs()).captureEvent(t)}_convertSpanToTransaction(){if(!c1(cI(this)))return;this._name||(this._name="");let{scope:e,isolationScope:t}=cx(this),n=(e||cs()).getClient()||cl();if(!0!==this._sampled){n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=cb(this).filter(e=>e!==this&&!(e instanceof cQ&&e.isStandaloneSpan())).map(e=>cI(e)).filter(c1),a=this._attributes[cu];delete this._attributes[c_],r.forEach(e=>{e.data&&delete e.data[c_]});let s={contexts:{trace:function(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:a,parent_span_id:s,status:i,origin:o}=cI(e);return uK({parent_span_id:s,span_id:t,trace_id:n,data:r,op:a,status:i,origin:o})}(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,...uK({dynamicSamplingContext:cY(this)})},_metrics_summary:cE(this),...a&&{transaction_info:{source:a}}},i=cq(this._events);return i&&Object.keys(i).length&&(s.measurements=i),s}}function c0(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function c1(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}let c2="__SENTRY_SUPPRESS_TRACING__";function c5(e){let t=ca(ub());if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=function(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=cO(e.startTime),delete n.startTime,n}return t}(e),{forceTransaction:r,parentSpan:a}=e;return(e.scope?t=>co(e.scope,t):void 0!==a?e=>c3(a,e):e=>e())(()=>{let t=cs(),a=function(e){let t=e[u4];if(!t)return;let n=cl();return(n?n.getOptions():{}).parentSpanIsAlwaysRootSpan?cv(t):t}(t);return e.onlyIfParent&&!a?new ck:function({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var a;let s;if(!cw())return new ck;let i=ci();if(e&&!n)s=function(e,t,n){let{spanId:r,traceId:a}=e.spanContext(),s=!t.getScopeData().sdkProcessingMetadata[c2]&&cm(e),i=s?new cQ({...n,parentSpanId:r,traceId:a,sampled:s}):new ck({traceId:a});cy(e,i);let o=cl();return o&&(o.emit("spanStart",i),n.endTimestamp&&o.emit("spanEnd",i)),i}(e,r,t),cy(e,s);else if(e){let n=cY(e),{traceId:a,spanId:i}=e.spanContext(),o=cm(e);uV(s=c4({traceId:a,parentSpanId:i,...t},r,o),cF,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:o}={...i.getPropagationContext(),...r.getPropagationContext()};s=c4({traceId:e,parentSpanId:a,...t},r,o),n&&uV(s,cF,n)}return(a=s)&&(uV(a,cU,i),uV(a,cM,r)),s}({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}function c3(e,t){let n=ca(ub());return n.withActiveSpan?n.withActiveSpan(e,t):co(n=>(u6(n,e||void 0),t(n)))}function c4(e,t,n){let r=cl(),a=r&&r.getOptions()||{},{name:s="",attributes:i}=e,[o,l]=t.getScopeData().sdkProcessingMetadata[c2]?[!1]:function(e,t){if(!cw(e))return[!1];let n=ci().getScopeData().sdkProcessingMetadata.normalizedRequest,r={...t,normalizedRequest:t.normalizedRequest||n},a=cV("function"==typeof e.tracesSampler?e.tracesSampler(r):void 0!==r.parentSampled?r.parentSampled:"u">typeof e.tracesSampleRate?e.tracesSampleRate:1);return void 0===a?[!1]:a&&Math.random()e.name);(function(e,t){let{environment:n,release:r,dist:a,maxValueLength:s=250}=t;e.environment=e.environment||n||cG,!e.release&&r&&(e.release=r),!e.dist&&a&&(e.dist=a),e.message&&(e.message=uB(e.message,s));let i=e.exception&&e.exception.values&&e.exception.values[0];i&&i.value&&(i.value=uB(i.value,s));let o=e.request;o&&o.url&&(o.url=uB(o.url,s))})(c,e),d.length>0&&(c.sdk=c.sdk||{},c.sdk.integrations=[...c.sdk.integrations||[],...d]),o&&o.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let n=function(e){let t=ud._sentryDebugIds;if(!t)return{};let n=Object.keys(t);return s&&n.length===a||(a=n.length,s=n.reduce((n,a)=>{r||(r={});let s=r[a];if(s)n[s[0]]=s[1];else{let s=e(a);for(let e=s.length-1;e>=0;e--){let i=s[e],o=i&&i.filename,l=t[a];if(o&&l){n[o]=l,r[a]=[o,l];break}}}return n},{})),s}(t);try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{n&&e.filename&&(e.debug_id=n[e.filename])})})}catch{}}(c,e.stackParser);let T=function(e,t){if(!t)return e;let n=e?e.clone():new u7;return n.update(t),n}(i,n.captureContext);n.mechanism&&uq(c,n.mechanism);let p=o?o.getEventProcessors():[],_=uT("globalScope",()=>new u7).getScopeData();l&&c8(_,l.getScopeData()),T&&c8(_,T.getScopeData());let h=[...n.attachments||[],..._.attachments];return h.length&&(n.attachments=h),function(e,t){let{fingerprint:n,span:r,breadcrumbs:a,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:n,tags:r,user:a,contexts:s,level:i,transactionName:o}=t,l=uK(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});let E=uK(r);E&&Object.keys(E).length&&(e.tags={...E,...e.tags});let u=uK(a);u&&Object.keys(u).length&&(e.user={...u,...e.user});let c=uK(s);c&&Object.keys(c).length&&(e.contexts={...c,...e.contexts}),i&&(e.level=i),o&&"transaction"!==e.type&&(e.transaction=o)})(e,t),r&&function(e,t){e.contexts={trace:function(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext();return uK({parent_span_id:r?t:cI(e).parent_span_id,span_id:r?u5():t,trace_id:n})}(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:cY(t),...e.sdkProcessingMetadata};let n=cI(cv(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],n&&(e.fingerprint=e.fingerprint.concat(n)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint,function(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,a),e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...s}}(c,_),(function e(t,n,r,a=0){return new u1((s,i)=>{let o=t[a];if(null===n||"function"!=typeof o)s(n);else{let l=o({...n},r);uk(l)?l.then(n=>e(t,n,r,a+1).then(s)).then(null,i):e(t,l,r,a+1).then(s).then(null,i)}})})([...p,..._.eventProcessors],c,n).then(e=>(e&&function(e){let t={};try{e.exception.values.forEach(e=>{e.stacktrace.frames.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})})}catch{}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof E&&E>0?function(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:cK(e.data,t,n)}}))},...e.user&&{user:cK(e.user,t,n)},...e.contexts&&{contexts:cK(e.contexts,t,n)},...e.extra&&{extra:cK(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=cK(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:cK(e.data,t,n)}}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=cK(e.contexts.flags,3,n)),r}(e,E,u):e))}function de(){let e;let t=ci(),n=cs(),r=n.getSession()||t.getSession();r&&(e={},"ok"===r.status&&(e={status:"exited"}),u2(r,e)),dt(),t.setSession(),n.setSession()}function dt(){let e=ci(),t=cs(),n=cl(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}let dn=[];function dr(e,t){for(let n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function da(e,t,n){if(!n[t.name]){if(n[t.name]=t,-1===dn.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),dn.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}}}class ds extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function di(e){return void 0===e.type}function dl(e){return"transaction"===e.type}function dE(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function du(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}async function dc(e,t){if(e&&e.body){let n=e.body,r=n.getReader(),a=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),s=!0;for(;s;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=await r.read();clearTimeout(e),a&&(t(),s=!1)}catch{s=!1}finally{clearTimeout(e)}}clearTimeout(a),r.releaseLock(),n.cancel().then(null,()=>{})}}function dd(e,t){return!!e&&"object"==typeof e&&!!e[t]}function dT(e){return"string"==typeof e?e:e?dd(e,"url")?e.url:e.toString?e.toString():"":""}function dp(){return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("u">typeof C?C:0))||function(){let e=ud.process;return!!e&&"renderer"===e.type}())}function d_(e){let t,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function dh(e,t,n={}){return{id:e,title:t,...n}}let df=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#512BD4"}),ep.createElement("path",{fill:"#fff",d:"M2.58 13a.56.56 0 0 1-.58-.55.54.54 0 0 1 .17-.4.56.56 0 0 1 .4-.16.56.56 0 0 1 .42.16.53.53 0 0 1 0 .8.56.56 0 0 1-.41.15Zm6.38-.1H7.92L5.19 8.58c-.07-.11-.13-.23-.17-.35h-.03c.03.27.04.54.03.81v3.88H4.1V7h1.11l2.66 4.24c.11.18.18.28.21.36h.02a5.63 5.63 0 0 1-.04-.8V7h.91l-.01 5.9Zm4.47 0h-3.21V7h3.08v.83h-2.13v1.68h1.97v.82h-1.97v1.75h2.26v.83ZM18 7.84h-1.65v5.08h-.95V7.83h-1.64V7H18v.83Z"})),dS=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#333"}),ep.createElement("path",{fill:"url(#a)",d:"M10.38 2.1a.8.8 0 0 0-.78 0L3.16 5.72a.74.74 0 0 0-.38.65v7.25c0 .27.15.52.38.66L9.6 17.9a.8.8 0 0 0 .78 0l6.44-3.62a.74.74 0 0 0 .38-.66V6.37a.77.77 0 0 0-.38-.65L10.38 2.1Z"}),ep.createElement("path",{fill:"url(#b)",d:"M16.84 5.72 10.37 2.1a1.08 1.08 0 0 0-.2-.07L2.92 14.1a.8.8 0 0 0 .21.18L9.6 17.9c.19.1.4.13.6.07L17 5.85a.48.48 0 0 0-.16-.13Z"}),ep.createElement("path",{fill:"url(#c)",d:"M16.84 14.28c.18-.1.32-.28.38-.48L10.14 2.01a.8.8 0 0 0-.55.1L3.16 5.7 10.1 18l.3-.09 6.45-3.63Z"}),ep.createElement("linearGradient",{id:"a",x1:12.61,x2:7.04,y1:4.8,y2:16.47,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#3F873F"}),ep.createElement("stop",{offset:.33,stopColor:"#3F8B3D"}),ep.createElement("stop",{offset:.64,stopColor:"#3E9638"}),ep.createElement("stop",{offset:.93,stopColor:"#3DA92E"}),ep.createElement("stop",{offset:1,stopColor:"#3DAE2B"})),ep.createElement("linearGradient",{id:"b",x1:9.01,x2:25.03,y1:10.85,y2:-1.32,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.14,stopColor:"#3F873F"}),ep.createElement("stop",{offset:.4,stopColor:"#52A044"}),ep.createElement("stop",{offset:.71,stopColor:"#64B749"}),ep.createElement("stop",{offset:.91,stopColor:"#6ABF4B"})),ep.createElement("linearGradient",{id:"c",x1:2.55,x2:17.44,y1:10,y2:10,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.09,stopColor:"#6ABF4B"}),ep.createElement("stop",{offset:.29,stopColor:"#64B749"}),ep.createElement("stop",{offset:.6,stopColor:"#52A044"}),ep.createElement("stop",{offset:.86,stopColor:"#3F873F"}))),dR={Safari:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#fff"}),ep.createElement("g",{filter:"url(#a)",opacity:.53},ep.createElement("path",{d:"M17.6325 10.6143C17.6325 11.5842 17.4341 12.5446 17.0486 13.4407C16.6632 14.3368 16.0982 15.151 15.386 15.8369C14.6737 16.5227 13.8282 17.0667 12.8976 17.4379C11.967 17.8091 10.9697 18.0001 9.96242 18.0001C8.95518 18.0001 7.9578 17.8091 7.02723 17.4379C6.09666 17.0667 5.25112 16.5227 4.53889 15.8369C3.82666 15.151 3.26169 14.3368 2.87624 13.4407C2.49078 12.5446 2.29239 11.5842 2.29239 10.6143C2.29239 8.65547 3.10048 6.77687 4.53889 5.39176C5.9773 4.00666 7.9282 3.22852 9.96242 3.22852C10.9697 3.22852 11.967 3.41955 12.8976 3.79073C13.8282 4.1619 14.6737 4.70593 15.386 5.39176C16.0982 6.0776 16.6632 6.8918 17.0486 7.78789C17.4341 8.68397 17.6325 9.64439 17.6325 10.6143Z"})),ep.createElement("path",{fill:"url(#b)",stroke:"#CDCDCD",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:.15,d:"M17.9241 9.96204C17.9241 11.0076 17.7181 12.043 17.318 13.009C16.9179 13.975 16.3314 14.8527 15.5921 15.5921C14.8527 16.3314 13.975 16.9179 13.009 17.318C12.043 17.7181 11.0076 17.9241 9.96203 17.9241C7.85037 17.9241 5.8252 17.0852 4.33203 15.5921C2.83885 14.0989 2 12.0737 2 9.96204C2 7.85038 2.83885 5.8252 4.33203 4.33203C5.8252 2.83886 7.85037 2 9.96203 2C11.0076 2 12.043 2.20595 13.009 2.60608C13.975 3.00621 14.8527 3.59269 15.5921 4.33203C16.3314 5.07137 16.9179 5.9491 17.318 6.9151C17.7181 7.8811 17.9241 8.91645 17.9241 9.96204Z"}),ep.createElement("path",{fill:"url(#c)",d:"M17.3002 9.96217C17.3002 11.9084 16.5271 13.7748 15.1509 15.151C13.7747 16.5272 11.9082 17.3003 9.96204 17.3003C8.01585 17.3003 6.14936 16.5272 4.77319 15.151C3.39702 13.7748 2.6239 11.9084 2.6239 9.96217C2.6239 8.01597 3.39702 6.14948 4.77319 4.77332C6.14936 3.39715 8.01585 2.62402 9.96204 2.62402C11.9082 2.62402 13.7747 3.39715 15.1509 4.77332C16.5271 6.14948 17.3002 8.01597 17.3002 9.96217Z"}),ep.createElement("path",{fill:"#F4F2F3",d:"M9.96203 3.00659C9.90276 3.00659 9.85504 3.05431 9.85504 3.11358V4.34764C9.85504 4.40691 9.90276 4.45462 9.96203 4.45462C10.0213 4.45462 10.069 4.40691 10.069 4.34764V3.11358C10.069 3.05431 10.0213 3.00659 9.96203 3.00659ZM9.26212 3.05083C9.25503 3.05007 9.24773 3.05007 9.24036 3.05092C9.18141 3.05707 9.1389 3.10948 9.14506 3.16843L9.19899 3.68471C9.20514 3.74366 9.25755 3.78617 9.3165 3.78001C9.37546 3.77386 9.41797 3.72145 9.41181 3.6625L9.35792 3.14622C9.35253 3.09464 9.31173 3.05564 9.26212 3.05083ZM10.6668 3.05134C10.6172 3.05612 10.5764 3.09511 10.571 3.14668L10.5167 3.66292C10.5105 3.72186 10.553 3.77432 10.6119 3.78052C10.6709 3.78672 10.7233 3.74426 10.7295 3.68531L10.7838 3.16903C10.79 3.11009 10.7475 3.05767 10.6885 3.05147C10.6812 3.05071 10.6739 3.05071 10.6668 3.05134ZM8.54314 3.15509C8.53602 3.15515 8.52878 3.15585 8.52153 3.15738C8.46355 3.16965 8.42674 3.22623 8.43902 3.28422L8.6946 4.4915C8.70687 4.54948 8.76345 4.58628 8.82143 4.57401C8.87942 4.56173 8.91622 4.5052 8.90395 4.44721L8.64837 3.23989C8.63762 3.18915 8.59298 3.1547 8.54314 3.15509ZM11.3858 3.15611C11.3359 3.1556 11.2913 3.19015 11.2805 3.24088L11.024 4.44802C11.0117 4.506 11.0485 4.56259 11.1065 4.5749C11.1644 4.58723 11.221 4.55045 11.2333 4.49248L11.4898 3.28534C11.5021 3.22737 11.4654 3.17077 11.4074 3.15846C11.4001 3.15693 11.3929 3.15611 11.3858 3.15611ZM7.85698 3.34856C7.84313 3.34729 7.82883 3.34881 7.81473 3.35349C7.75836 3.37182 7.72771 3.4319 7.74603 3.48827L7.90644 3.98197C7.92476 4.03834 7.9849 4.06899 8.04127 4.05068C8.09764 4.03235 8.12825 3.97222 8.10993 3.91585L7.94952 3.42215C7.93579 3.37987 7.89854 3.35209 7.85698 3.34856ZM12.068 3.34881C12.0265 3.35235 11.9893 3.38014 11.9755 3.42242L11.815 3.91607C11.7967 3.97243 11.8273 4.03257 11.8837 4.0509C11.94 4.06922 12.0002 4.03859 12.0185 3.98224L12.179 3.48854C12.1973 3.43217 12.1667 3.37203 12.1103 3.35371C12.0963 3.34913 12.0819 3.34764 12.068 3.34881ZM7.17845 3.59686C7.16455 3.59712 7.15048 3.60017 7.13694 3.60619C7.08281 3.63026 7.05856 3.69323 7.08264 3.74739L7.58386 4.87506C7.60793 4.92922 7.6709 4.95344 7.72506 4.92937C7.7792 4.9053 7.80349 4.84233 7.77941 4.78816L7.27814 3.66049C7.26009 3.61987 7.22015 3.59605 7.17845 3.59686ZM12.7542 3.60065C12.7126 3.59989 12.6726 3.62355 12.6545 3.66414L12.1517 4.79112C12.1276 4.84525 12.1517 4.90826 12.2058 4.93241C12.26 4.95656 12.323 4.93243 12.3471 4.8783L12.8499 3.75132C12.874 3.69719 12.8499 3.63417 12.7958 3.61002C12.7822 3.604 12.7681 3.60095 12.7542 3.60065ZM6.54863 3.9301C6.52809 3.92858 6.50693 3.93315 6.48768 3.94429C6.43635 3.97392 6.41889 4.0391 6.44852 4.09043L6.70807 4.53998C6.73771 4.59132 6.80288 4.60878 6.85421 4.57914C6.90554 4.5495 6.92301 4.48433 6.89337 4.433L6.63382 3.98345C6.61529 3.95136 6.58287 3.9325 6.54863 3.9301ZM13.3754 3.9301C13.3412 3.93239 13.3088 3.95135 13.2903 3.98344L13.0307 4.43299C13.0011 4.48432 13.0186 4.5495 13.0699 4.57913C13.1212 4.60877 13.1864 4.59131 13.216 4.53998L13.4756 4.09042C13.5052 4.03909 13.4878 3.97392 13.4364 3.94428C13.4172 3.93317 13.396 3.92868 13.3754 3.9301ZM5.93705 4.31155C5.91647 4.31231 5.89585 4.31892 5.87786 4.33196C5.82988 4.36676 5.81927 4.4334 5.85409 4.48138L6.57871 5.48027C6.61351 5.52825 6.68019 5.53886 6.72817 5.50406C6.77615 5.46926 6.78676 5.40262 6.75194 5.35464L6.02728 4.35575C6.00552 4.32576 5.97135 4.31038 5.93705 4.31155ZM13.9947 4.31699C13.9604 4.31572 13.9262 4.3311 13.9044 4.36104L13.1784 5.35896C13.1435 5.40689 13.1541 5.47356 13.202 5.50843C13.2499 5.5433 13.3166 5.5328 13.3515 5.48489L14.0774 4.48697C14.1123 4.43904 14.1017 4.37237 14.0538 4.3375C14.0359 4.32444 14.0152 4.31773 13.9947 4.31699ZM5.39039 4.77001C5.36308 4.76848 5.33522 4.77761 5.31319 4.79743C5.26914 4.83709 5.2656 4.90446 5.30526 4.94852L5.65258 5.33435C5.69224 5.3784 5.75961 5.38195 5.80367 5.34228C5.84772 5.30262 5.85126 5.2352 5.8116 5.19115L5.46432 4.80536C5.44449 4.78333 5.41771 4.77144 5.39039 4.77001ZM14.5345 4.77077C14.5071 4.77229 14.4804 4.78411 14.4605 4.80614L14.1132 5.19188C14.0735 5.23593 14.077 5.30335 14.1211 5.34301C14.1652 5.38267 14.2325 5.37911 14.2722 5.33508L14.6196 4.94934C14.6592 4.90529 14.6557 4.83787 14.6116 4.79821C14.5896 4.77838 14.5618 4.76934 14.5345 4.77077ZM4.86645 5.27328C4.83914 5.27481 4.8124 5.28663 4.79257 5.30865C4.75292 5.35271 4.75646 5.42008 4.8005 5.45974L5.71767 6.28538C5.76172 6.32504 5.82909 6.32149 5.86875 6.27745C5.90841 6.2334 5.90491 6.16602 5.86084 6.12637L4.94364 5.30072C4.9216 5.2809 4.89377 5.27185 4.86645 5.27328ZM15.0609 5.27689C15.0336 5.27537 15.0057 5.28447 14.9837 5.30427L14.066 6.12927C14.0219 6.1689 14.0183 6.23627 14.0579 6.28035C14.0975 6.32443 14.1649 6.32801 14.209 6.28839L15.1268 5.46339C15.1709 5.42376 15.1744 5.35639 15.1348 5.31231C15.115 5.29027 15.0882 5.27835 15.0609 5.27689ZM4.43075 5.83353C4.39645 5.83226 4.36225 5.84771 4.34048 5.87767C4.30564 5.92562 4.31621 5.99225 4.36417 6.02709L4.78413 6.33221C4.83208 6.36705 4.89871 6.35654 4.93355 6.30857C4.96839 6.26062 4.95784 6.19395 4.90991 6.15911L4.48995 5.85399C4.47198 5.84092 4.45133 5.83426 4.43075 5.83353ZM15.4962 5.83742C15.4756 5.83818 15.455 5.84476 15.437 5.85783L15.0169 6.16267C14.9689 6.19748 14.9583 6.26416 14.9931 6.31214C15.0279 6.36011 15.0945 6.37068 15.1425 6.33588L15.5627 6.03104C15.6107 5.99623 15.6212 5.92959 15.5864 5.88161C15.5647 5.85163 15.5305 5.83624 15.4962 5.83742ZM4.02359 6.43113C3.98935 6.43342 3.95696 6.45238 3.93844 6.48446C3.9088 6.53579 3.92626 6.60096 3.9776 6.6306L5.0463 7.24763C5.09763 7.27726 5.16281 7.2598 5.19244 7.20847C5.22208 7.15714 5.20462 7.09197 5.15329 7.06233L4.08458 6.4453C4.06534 6.43419 4.04413 6.4297 4.02359 6.43113ZM15.9005 6.43113C15.8799 6.4296 15.8587 6.43418 15.8395 6.44531L14.7708 7.06234C14.7194 7.09198 14.702 7.15715 14.7316 7.20848C14.7613 7.25981 14.8264 7.27727 14.8778 7.24764L15.9465 6.63061C15.9978 6.60097 16.0153 6.5358 15.9857 6.48447C15.9671 6.45239 15.9347 6.43352 15.9005 6.43113ZM3.71574 7.0681C3.67405 7.06709 3.63407 7.09095 3.61596 7.13154C3.59181 7.18568 3.61594 7.2487 3.67008 7.27284L4.14419 7.48432C4.19832 7.50846 4.26134 7.48434 4.28549 7.4302C4.30963 7.37607 4.28546 7.31305 4.23132 7.28891L3.75725 7.07743C3.74373 7.07138 3.72964 7.06838 3.71574 7.0681ZM16.2104 7.0725C16.1965 7.07275 16.1824 7.0758 16.1688 7.08183L15.6946 7.29294C15.6405 7.31706 15.6163 7.38004 15.6404 7.43418C15.6645 7.48833 15.7275 7.51255 15.7817 7.48844L16.2559 7.27728C16.31 7.25319 16.3342 7.19019 16.3101 7.13604C16.292 7.09542 16.2521 7.07167 16.2104 7.0725ZM3.44137 7.73386C3.39982 7.73734 3.36256 7.7651 3.34879 7.80737C3.33044 7.86372 3.36099 7.92388 3.41736 7.94224L4.5907 8.32457C4.64705 8.34292 4.70721 8.31234 4.72558 8.256C4.74393 8.19964 4.71337 8.13948 4.65701 8.12112L3.48367 7.7388C3.46959 7.7342 3.45522 7.73269 3.44137 7.73386ZM16.4843 7.73843C16.4704 7.73716 16.4561 7.73869 16.442 7.74336L15.2684 8.12486C15.212 8.14318 15.1814 8.20332 15.1997 8.25969C15.2181 8.31606 15.2782 8.34667 15.3346 8.32835L16.5081 7.94686C16.5645 7.92853 16.5952 7.86839 16.5768 7.81203C16.5631 7.76975 16.5258 7.74196 16.4843 7.73843ZM3.27044 8.43271C3.22059 8.43221 3.17589 8.4668 3.16511 8.51753C3.15278 8.57551 3.18956 8.6321 3.24753 8.64442L3.75531 8.75233C3.81329 8.76466 3.86987 8.72788 3.8822 8.66991C3.89453 8.61193 3.85775 8.55534 3.79978 8.54302L3.29204 8.43511C3.2848 8.43359 3.27755 8.43271 3.27044 8.43271ZM16.6539 8.43373C16.6467 8.43379 16.6395 8.43475 16.6323 8.43602L16.1245 8.54388C16.0665 8.55621 16.0298 8.61274 16.0421 8.67072C16.0544 8.7287 16.111 8.76551 16.169 8.75319L16.6767 8.64533C16.7347 8.633 16.7715 8.57642 16.7592 8.51844C16.7484 8.46771 16.7037 8.43331 16.6539 8.43373ZM3.14105 9.13567C3.09144 9.14043 3.0506 9.17935 3.04515 9.23093C3.03892 9.28987 3.08133 9.34236 3.14027 9.34858L4.36749 9.47833C4.42644 9.48456 4.47892 9.44211 4.48514 9.38317C4.49137 9.32423 4.44892 9.27174 4.38998 9.26552L3.16276 9.13577C3.15539 9.135 3.14814 9.135 3.14105 9.13567ZM16.7842 9.1449C16.7771 9.14414 16.7698 9.14414 16.7624 9.14499L15.535 9.27308C15.4761 9.27923 15.4336 9.33164 15.4397 9.39059C15.4459 9.44954 15.4983 9.49205 15.5573 9.4859L16.7846 9.35781C16.8436 9.35166 16.8861 9.29925 16.8799 9.24029C16.8745 9.18871 16.8338 9.14972 16.7842 9.1449ZM3.12027 9.85525C3.061 9.85525 3.01329 9.90296 3.01329 9.96223C3.01329 10.0215 3.061 10.0692 3.12027 10.0692H3.63937C3.69864 10.0692 3.7464 10.0215 3.7464 9.96223C3.7464 9.90296 3.69864 9.85525 3.63937 9.85525H3.12027ZM16.2847 9.85525C16.2254 9.85525 16.1777 9.90296 16.1777 9.96223C16.1777 10.0215 16.2254 10.0692 16.2847 10.0692H16.8038C16.8631 10.0692 16.9108 10.0215 16.9108 9.96223C16.9108 9.90296 16.8631 9.85525 16.8038 9.85525H16.2847ZM4.38855 10.4385C4.38146 10.4377 4.37421 10.4377 4.36684 10.4386L3.13943 10.5667C3.08048 10.5728 3.03798 10.6252 3.04413 10.6842C3.05028 10.7431 3.10269 10.7856 3.16164 10.7795L4.38905 10.6514C4.448 10.6452 4.4905 10.5928 4.48435 10.5339C4.47897 10.4823 4.43816 10.4433 4.38855 10.4385ZM15.5349 10.4461C15.4852 10.4508 15.4444 10.4897 15.439 10.5413C15.4327 10.6003 15.4751 10.6527 15.5341 10.659L16.7613 10.7887C16.8202 10.7949 16.8727 10.7525 16.879 10.6935C16.8852 10.6346 16.8427 10.5821 16.7838 10.5759L15.5566 10.4461C15.5492 10.4454 15.542 10.4454 15.5349 10.4461ZM3.77674 11.1688C3.76962 11.1689 3.76238 11.1696 3.75513 11.1711L3.24735 11.279C3.18937 11.2913 3.15262 11.3479 3.16493 11.4059C3.17726 11.4638 3.23384 11.5006 3.29182 11.4883L3.7996 11.3805C3.85758 11.3681 3.89433 11.3116 3.88202 11.2536C3.87124 11.2028 3.82658 11.1684 3.77674 11.1688ZM16.1472 11.1698C16.0973 11.1693 16.0527 11.2039 16.0419 11.2546C16.0296 11.3126 16.0663 11.3692 16.1243 11.3815L16.6321 11.4894C16.69 11.5017 16.7466 11.465 16.7589 11.407C16.7713 11.3491 16.7345 11.2924 16.6765 11.2801L16.1688 11.1722C16.1615 11.1707 16.1543 11.1698 16.1472 11.1698ZM4.63179 11.5912C4.61794 11.59 4.60364 11.5915 4.58954 11.5962L3.41593 11.9776C3.35956 11.996 3.32895 12.0561 3.34727 12.1125C3.3656 12.1688 3.42573 12.1995 3.4821 12.1811L4.65567 11.7996C4.71204 11.7813 4.7427 11.7212 4.72438 11.6648C4.71062 11.6225 4.67334 11.5947 4.63179 11.5912ZM15.2911 11.595C15.2496 11.5985 15.2123 11.6263 15.1985 11.6685C15.1802 11.7249 15.2107 11.785 15.2671 11.8034L16.4404 12.1857C16.4968 12.2041 16.557 12.1735 16.5753 12.1172C16.5937 12.0608 16.5631 12.0006 16.5067 11.9823L15.3334 11.6C15.3193 11.5954 15.305 11.5938 15.2911 11.595ZM4.18395 12.4268C4.17005 12.4271 4.15597 12.4301 4.14244 12.4361L3.66818 12.6472C3.61403 12.6713 3.58987 12.7343 3.61397 12.7885C3.63809 12.8426 3.70107 12.8668 3.75522 12.8427L4.22948 12.6316C4.28363 12.6075 4.30779 12.5445 4.28369 12.4903C4.26561 12.4497 4.22564 12.426 4.18395 12.4268ZM15.7384 12.4309C15.6967 12.4298 15.6567 12.4537 15.6386 12.4943C15.6145 12.5484 15.6386 12.6115 15.6927 12.6356L16.1668 12.8471C16.2209 12.8712 16.284 12.8471 16.3081 12.793C16.3322 12.7388 16.3081 12.6758 16.254 12.6517L15.7799 12.4402C15.7664 12.4341 15.7523 12.4311 15.7384 12.4309ZM5.1073 12.6627C5.08676 12.6612 5.06555 12.6658 5.0463 12.6769L3.9776 13.2939C3.92626 13.3236 3.9088 13.3887 3.93844 13.4401C3.96808 13.4914 4.03325 13.5089 4.08458 13.4792L5.15329 12.8622C5.20462 12.8326 5.22208 12.7674 5.19244 12.716C5.17391 12.684 5.14153 12.6651 5.1073 12.6627ZM14.8168 12.6627C14.7826 12.665 14.7501 12.684 14.7316 12.716C14.702 12.7674 14.7194 12.8326 14.7708 12.8622L15.8395 13.4792C15.8908 13.5088 15.956 13.4914 15.9857 13.4401C16.0153 13.3887 15.9978 13.3235 15.9465 13.2939L14.8778 12.6769C14.8585 12.6658 14.8373 12.6613 14.8168 12.6627ZM4.84073 13.5682C4.82015 13.5689 4.79953 13.5756 4.78154 13.5886L4.3614 13.8935C4.31342 13.9283 4.30281 13.9949 4.33761 14.0429C4.37242 14.0909 4.43905 14.1015 4.48703 14.0667L4.90721 13.7618C4.95519 13.727 4.9658 13.6604 4.931 13.6124C4.90925 13.5824 4.87503 13.567 4.84073 13.5682ZM15.0808 13.5718C15.0465 13.5705 15.0123 13.586 14.9905 13.6159C14.9557 13.6639 14.9662 13.7306 15.0142 13.7654L15.4342 14.0705C15.4821 14.1054 15.5487 14.0948 15.5836 14.0468C15.6184 13.9989 15.6079 13.9323 15.5599 13.8974L15.14 13.5923C15.122 13.5792 15.1014 13.5725 15.0808 13.5718ZM5.79229 13.6087C5.76499 13.6072 5.73713 13.6163 5.71509 13.6361L4.79733 14.4611C4.75325 14.5007 4.74967 14.5681 4.7893 14.6122C4.82892 14.6563 4.8963 14.6599 4.94038 14.6202L5.85814 13.7952C5.90222 13.7556 5.9058 13.6882 5.86617 13.6441C5.84637 13.6221 5.81961 13.6102 5.79229 13.6087ZM14.1292 13.6117C14.1019 13.6132 14.0751 13.625 14.0553 13.6471C14.0156 13.6911 14.0192 13.7585 14.0632 13.7981L14.9804 14.6238C15.0244 14.6634 15.0919 14.6599 15.1315 14.6158C15.1712 14.5718 15.1676 14.5044 15.1236 14.4648L14.2064 13.6391C14.1843 13.6193 14.1565 13.6102 14.1292 13.6117ZM6.66296 14.3954C6.62867 14.3942 6.59444 14.4095 6.57264 14.4395L5.84669 15.4374C5.81182 15.4853 5.82231 15.552 5.87023 15.5869C5.91816 15.6218 5.98483 15.6113 6.01969 15.5633L6.74565 14.5654C6.78051 14.5175 6.77002 14.4508 6.72211 14.4159C6.70414 14.4029 6.68354 14.3962 6.66296 14.3954ZM13.2551 14.3999C13.2346 14.4007 13.2139 14.4073 13.1959 14.4203C13.148 14.4551 13.1374 14.5218 13.1722 14.5698L13.8968 15.5686C13.9316 15.6166 13.9982 15.6272 14.0462 15.5924C14.0942 15.5576 14.1048 15.491 14.07 15.443L13.3454 14.4441C13.3236 14.4141 13.2894 14.3987 13.2551 14.3999ZM5.7258 14.5541C5.69849 14.5556 5.67171 14.5674 5.65188 14.5894L5.30455 14.9752C5.26489 15.0192 5.2684 15.0866 5.31246 15.1263C5.35651 15.166 5.42388 15.1624 5.46354 15.1183L5.81091 14.7326C5.85058 14.6885 5.84702 14.6211 5.80298 14.5815C5.78094 14.5616 5.75312 14.5526 5.7258 14.5541ZM14.1976 14.5546C14.1703 14.553 14.1425 14.5622 14.1205 14.582C14.0764 14.6216 14.0729 14.689 14.1125 14.7331L14.4598 15.1189C14.4994 15.163 14.5668 15.1665 14.6109 15.1268C14.6549 15.0872 14.6585 15.0198 14.6188 14.9757L14.2715 14.5899C14.2517 14.5679 14.2249 14.556 14.1976 14.5546ZM7.67672 14.9825C7.63503 14.9815 7.5951 15.0054 7.57699 15.0459L7.07419 16.1729C7.05004 16.2271 7.07418 16.2901 7.12831 16.3142C7.18244 16.3384 7.24545 16.3142 7.2696 16.2601L7.77239 15.1331C7.79654 15.079 7.77241 15.016 7.71828 14.9918C7.70475 14.9858 7.69062 14.9828 7.67672 14.9825ZM12.2406 14.9856C12.2266 14.9859 12.2125 14.9889 12.199 14.9949C12.1449 15.019 12.1206 15.0819 12.1447 15.1361L12.6459 16.2638C12.67 16.3179 12.733 16.3421 12.7872 16.3181C12.8413 16.294 12.8655 16.231 12.8415 16.1769L12.3402 15.0492C12.3222 15.0086 12.2822 14.9848 12.2406 14.9856ZM6.79322 15.3309C6.75899 15.3332 6.72659 15.3522 6.70807 15.3843L6.44852 15.8338C6.41889 15.8852 6.43635 15.9503 6.48768 15.98C6.53901 16.0096 6.60419 15.9921 6.63382 15.9408L6.89337 15.4913C6.92301 15.4399 6.90555 15.3748 6.85421 15.3451C6.83497 15.334 6.81376 15.3295 6.79322 15.3309ZM13.1308 15.3309C13.1103 15.3294 13.0891 15.334 13.0699 15.3451C13.0186 15.3748 13.0011 15.4399 13.0307 15.4913L13.2903 15.9408C13.3199 15.9922 13.3851 16.0096 13.4364 15.98C13.4878 15.9503 13.5052 15.8852 13.4756 15.8338L13.216 15.3843C13.1975 15.3522 13.1651 15.3333 13.1308 15.3309ZM8.79603 15.3471C8.74619 15.3465 8.70153 15.3811 8.69076 15.4318L8.4343 16.639C8.42198 16.6969 8.45875 16.7535 8.51672 16.7659C8.5747 16.7782 8.6313 16.7414 8.64361 16.6834L8.90006 15.4763C8.91239 15.4183 8.87561 15.3617 8.81764 15.3494C8.8104 15.3479 8.80315 15.3471 8.79603 15.3471ZM11.1242 15.3478C11.1171 15.3479 11.1099 15.3486 11.1027 15.3501C11.0447 15.3624 11.0079 15.4189 11.0202 15.4769L11.2757 16.6842C11.288 16.7422 11.3446 16.779 11.4026 16.7667C11.4606 16.7545 11.4974 16.6979 11.4851 16.6399L11.2295 15.4327C11.2187 15.3819 11.1741 15.3474 11.1242 15.3478ZM9.96203 15.4696C9.90276 15.4696 9.85504 15.5173 9.85504 15.5766V16.8106C9.85504 16.8699 9.90276 16.9176 9.96203 16.9176C10.0213 16.9176 10.069 16.8699 10.069 16.8106V15.5766C10.069 15.5173 10.0213 15.4696 9.96203 15.4696ZM7.99814 15.8683C7.95659 15.8719 7.9193 15.8997 7.90556 15.9419L7.7451 16.4356C7.72678 16.492 7.75741 16.5521 7.81377 16.5705C7.87013 16.5888 7.93027 16.5581 7.94859 16.5018L8.10905 16.0081C8.12738 15.9517 8.09675 15.8916 8.04039 15.8733C8.02631 15.8687 8.01199 15.8672 7.99814 15.8683ZM11.9251 15.8686C11.9112 15.8673 11.8969 15.8689 11.8828 15.8735C11.8265 15.8918 11.7958 15.952 11.8141 16.0083L11.9745 16.502C11.9929 16.5584 12.053 16.589 12.1094 16.5707C12.1657 16.5524 12.1964 16.4923 12.1781 16.4359L12.0176 15.9422C12.0039 15.8999 11.9666 15.8721 11.9251 15.8686ZM9.29047 16.1436C9.24086 16.1483 9.19998 16.1873 9.19457 16.2389L9.14031 16.7551C9.13411 16.8141 9.17657 16.8665 9.23552 16.8727C9.29447 16.8789 9.34693 16.8364 9.35313 16.7775L9.40738 16.2613C9.41358 16.2023 9.37112 16.1499 9.31217 16.1437C9.3048 16.1429 9.29756 16.1429 9.29047 16.1436ZM10.6293 16.1441C10.6222 16.1433 10.6149 16.1433 10.6075 16.1442C10.5486 16.1503 10.5061 16.2027 10.5122 16.2617L10.5662 16.778C10.5723 16.8369 10.6247 16.8794 10.6837 16.8733C10.7426 16.8671 10.7851 16.8147 10.779 16.7557L10.7251 16.2395C10.7197 16.1879 10.6789 16.1489 10.6293 16.1441Z"}),ep.createElement("g",{filter:"url(#d)",opacity:.409},ep.createElement("path",{d:"M14.9763 5.68262L9.12289 9.08348L5.42194 14.9098L10.8361 10.8996L14.9763 5.68262Z"})),ep.createElement("path",{fill:"#FF5150",d:"M10.8009 10.8406L9.12314 9.08358L15.0749 5.07983L10.8009 10.8406Z"}),ep.createElement("path",{fill:"#F1F1F1",d:"M10.8009 10.8405L9.12315 9.0835L4.84918 14.8443L10.8009 10.8405Z"}),ep.createElement("path",{d:"M4.84918 14.8444L10.8009 10.8406L15.0749 5.07983L4.84918 14.8444Z",opacity:.243}),ep.createElement("defs",null,ep.createElement("filter",{id:"a",width:17.34,height:16.771,x:1.292,y:2.229,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},ep.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),ep.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),ep.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_312_309",stdDeviation:.5})),ep.createElement("filter",{id:"d",width:14.644,height:14.317,x:2.877,y:3.138,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},ep.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),ep.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),ep.createElement("feGaussianBlur",{result:"effect1_foregroundBlur_312_309",stdDeviation:1.272})),ep.createElement("radialGradient",{id:"c",cx:0,cy:0,r:1,gradientTransform:"translate(9.995 8.892) scale(7.96201)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#06C2E7"}),ep.createElement("stop",{offset:.25,stopColor:"#0DB8EC"}),ep.createElement("stop",{offset:.5,stopColor:"#12AEF1"}),ep.createElement("stop",{offset:.75,stopColor:"#1F86F9"}),ep.createElement("stop",{offset:1,stopColor:"#107DDD"})),ep.createElement("linearGradient",{id:"b",x1:9.962,x2:9.962,y1:17.924,y2:2,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#BDBDBD"}),ep.createElement("stop",{offset:1,stopColor:"#fff"})))),Chrome:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#fff"}),ep.createElement("path",{fill:"#4286F5",d:"M17.38 8.6c.47 3.2-.46 5.66-2.16 7.2l-2.42-1.88a3.97 3.97 0 0 0 1.57-2.36h-4.2V8.6h7.2Z"}),ep.createElement("path",{fill:"#EA4235",d:"m15.3 4.3-2.2 2.18a4.22 4.22 0 0 0-2.94-1.15 4.6 4.6 0 0 0-4.35 3.18l-2.5-1.95A7.66 7.66 0 0 1 15.3 4.3Z"}),ep.createElement("path",{fill:"#34A853",d:"m12.8 13.92 2.42 1.89a7.43 7.43 0 0 1-5.06 1.84 7.66 7.66 0 0 1-6.85-4.23l2.5-1.95a4.6 4.6 0 0 0 4.35 3.18c1.1 0 1.97-.26 2.64-.73Z"}),ep.createElement("path",{fill:"#FBBC05",d:"m3.31 6.56 2.5 1.94c-.32.97-.32 2 0 2.97l-2.5 1.95a7.66 7.66 0 0 1 0-6.86Z"})),Firefox:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#fff"}),ep.createElement("path",{fill:"url(#a)",d:"M17.6124 6.70307C17.2544 5.84166 16.5282 4.91159 15.9596 4.61758C16.3652 5.40312 16.6466 6.24675 16.794 7.11846L16.7955 7.13228C15.8639 4.80976 14.2842 3.87331 12.994 1.83418C12.9273 1.73022 12.8626 1.62504 12.7999 1.5187C12.7675 1.46315 12.7372 1.40642 12.7091 1.34863C12.6556 1.245 12.6144 1.13549 12.5862 1.0223C12.5863 1.01708 12.5844 1.01203 12.5809 1.00811C12.5775 1.00418 12.5727 1.00167 12.5675 1.00104C12.5624 0.999652 12.5571 0.999652 12.552 1.00104C12.5509 1.00104 12.5492 1.00296 12.548 1.00338C12.5467 1.00381 12.5439 1.00572 12.542 1.00657L12.5452 1.00104C10.4757 2.21279 9.77348 4.45602 9.70885 5.57805C8.88238 5.63486 8.0922 5.93942 7.44139 6.452C7.37349 6.39449 7.30253 6.34069 7.22881 6.29086C7.04107 5.63374 7.03307 4.93829 7.20563 4.27702C6.44562 4.6452 5.7703 5.16713 5.22241 5.80977H5.21858C4.89204 5.39587 4.915 4.03105 4.93371 3.74597C4.83711 3.7848 4.7449 3.83375 4.65862 3.89202C4.37036 4.09776 4.10088 4.32861 3.85334 4.58187C3.57126 4.86787 3.31362 5.17699 3.08314 5.50599V5.50726V5.50577C2.55342 6.25675 2.1777 7.10522 1.97768 8.00219L1.96663 8.05661C1.93624 8.22755 1.90923 8.39907 1.88563 8.57107C1.88563 8.57724 1.88436 8.58298 1.88372 8.58914C1.81159 8.96401 1.7669 9.34363 1.75 9.725V9.76752C1.75181 11.8305 2.52744 13.8178 3.9236 15.3366C5.31977 16.8554 7.23488 17.7952 9.29045 17.9703C11.346 18.1453 13.3925 17.5429 15.0254 16.2821C16.6583 15.0213 17.7588 13.1938 18.1095 11.1608C18.1233 11.0545 18.1345 10.9493 18.1469 10.8419C18.3166 9.43933 18.1329 8.01656 17.6124 6.70307ZM8.11615 13.1525C8.15463 13.171 8.19077 13.191 8.23031 13.2087L8.23605 13.2123C8.19608 13.1932 8.15611 13.1732 8.11615 13.1525ZM16.7961 7.13419V7.12633L16.7976 7.13505L16.7961 7.13419Z"}),ep.createElement("path",{fill:"url(#b)",d:"M17.6124 6.70304C17.2544 5.84163 16.5282 4.91156 15.9596 4.61755C16.3652 5.40309 16.6466 6.24672 16.794 7.11843V7.1263L16.7955 7.13502C17.4305 8.95231 17.3387 10.9447 16.5391 12.6959C15.5948 14.7221 13.309 16.7988 9.73117 16.6978C5.86527 16.5884 2.46068 13.7197 1.82419 9.96243C1.70833 9.36995 1.82419 9.06956 1.88244 8.58805C1.80298 8.96207 1.75864 9.3427 1.75 9.72497V9.76749C1.75181 11.8305 2.52744 13.8178 3.9236 15.3366C5.31977 16.8554 7.23488 17.7952 9.29045 17.9702C11.346 18.1453 13.3925 17.5429 15.0254 16.2821C16.6583 15.0213 17.7588 13.1938 18.1095 11.1608C18.1233 11.0545 18.1345 10.9493 18.1469 10.8419C18.3166 9.4393 18.1329 8.01653 17.6124 6.70304Z"}),ep.createElement("path",{fill:"url(#c)",d:"M17.6124 6.70304C17.2544 5.84163 16.5282 4.91156 15.9596 4.61755C16.3652 5.40309 16.6466 6.24672 16.794 7.11843V7.1263L16.7955 7.13502C17.4305 8.95231 17.3387 10.9447 16.5391 12.6959C15.5948 14.7221 13.309 16.7988 9.73117 16.6978C5.86527 16.5884 2.46068 13.7197 1.82419 9.96243C1.70833 9.36995 1.82419 9.06956 1.88244 8.58805C1.80298 8.96207 1.75864 9.3427 1.75 9.72497V9.76749C1.75181 11.8305 2.52744 13.8178 3.9236 15.3366C5.31977 16.8554 7.23488 17.7952 9.29045 17.9702C11.346 18.1453 13.3925 17.5429 15.0254 16.2821C16.6583 15.0213 17.7588 13.1938 18.1095 11.1608C18.1233 11.0545 18.1345 10.9493 18.1469 10.8419C18.3166 9.4393 18.1329 8.01653 17.6124 6.70304Z"}),ep.createElement("path",{fill:"url(#d)",d:"M13.6086 7.67161C13.6264 7.68415 13.643 7.69669 13.6598 7.70924C13.4528 7.34225 13.1952 7.00624 12.8945 6.71114C10.3337 4.14988 12.2233 1.15771 12.542 1.00571L12.5452 1.00104C10.4757 2.21279 9.77349 4.45601 9.70886 5.57805C9.80495 5.57146 9.90019 5.56338 9.99841 5.56338C10.7327 5.56472 11.4536 5.7605 12.0877 6.13081C12.7218 6.50111 13.2466 7.03273 13.6086 7.67161Z"}),ep.createElement("path",{fill:"url(#e)",d:"M10.0037 8.18307C9.99012 8.38801 9.26605 9.09486 9.01286 9.09486C6.66993 9.09486 6.28961 10.5122 6.28961 10.5122C6.39335 11.7056 7.225 12.6887 8.23032 13.2086C8.27624 13.2324 8.3228 13.2539 8.36936 13.275C8.45 13.3107 8.53064 13.3437 8.61128 13.374C8.9563 13.4961 9.31767 13.5659 9.68336 13.5809C13.7899 13.7735 14.5854 8.67011 11.6219 7.18922C12.3211 7.09826 13.029 7.27016 13.6086 7.67159C13.2466 7.0327 12.7218 6.50108 12.0877 6.13078C11.4536 5.76048 10.7327 5.5647 9.99841 5.56335C9.90062 5.56335 9.80496 5.57143 9.70887 5.57802C8.88239 5.63483 8.09222 5.93939 7.44141 6.45197C7.56705 6.55826 7.70885 6.70027 8.00753 6.99471C8.56664 7.54552 10.0005 8.11611 10.0037 8.18307Z"}),ep.createElement("path",{fill:"url(#f)",d:"M10.0037 8.18307C9.99012 8.38801 9.26605 9.09486 9.01286 9.09486C6.66993 9.09486 6.28961 10.5122 6.28961 10.5122C6.39335 11.7056 7.225 12.6887 8.23032 13.2086C8.27624 13.2324 8.3228 13.2539 8.36936 13.275C8.45 13.3107 8.53064 13.3437 8.61128 13.374C8.9563 13.4961 9.31767 13.5659 9.68336 13.5809C13.7899 13.7735 14.5854 8.67011 11.6219 7.18922C12.3211 7.09826 13.029 7.27016 13.6086 7.67159C13.2466 7.0327 12.7218 6.50108 12.0877 6.13078C11.4536 5.76048 10.7327 5.5647 9.99841 5.56335C9.90062 5.56335 9.80496 5.57143 9.70887 5.57802C8.88239 5.63483 8.09222 5.93939 7.44141 6.45197C7.56705 6.55826 7.70885 6.70027 8.00753 6.99471C8.56664 7.54552 10.0005 8.11611 10.0037 8.18307Z"}),ep.createElement("path",{fill:"url(#g)",d:"M7.05728 6.178C7.12403 6.22051 7.17909 6.2575 7.22735 6.29088C7.03961 5.63376 7.03161 4.93831 7.20418 4.27704C6.44416 4.64522 5.76884 5.16715 5.22095 5.80979C5.26113 5.80873 6.45629 5.78726 7.05728 6.178Z"}),ep.createElement("path",{fill:"url(#h)",d:"M1.82525 9.96247C2.4611 13.7197 5.86633 16.5884 9.73223 16.6979C13.3101 16.7991 15.5958 14.7221 16.5401 12.6959C17.3397 10.9448 17.4316 8.95235 16.7965 7.13505V7.12719C16.7965 7.12102 16.7952 7.11741 16.7965 7.11932L16.798 7.13314C17.0903 9.04154 16.1196 10.8904 14.6022 12.1406L14.5975 12.1513C11.6408 14.5592 8.8113 13.6041 8.23859 13.2142C8.19862 13.1951 8.15866 13.1752 8.11869 13.1545C6.39482 12.3305 5.68265 10.7599 5.83529 9.41293C5.42608 9.41897 5.0239 9.3062 4.67748 9.0883C4.33106 8.8704 4.05527 8.55671 3.88352 8.18524C4.33604 7.90801 4.85201 7.75128 5.38227 7.73C5.91252 7.70871 6.4394 7.82357 6.91268 8.06364C7.88843 8.50659 8.99875 8.55024 10.0063 8.18524C10.0031 8.11827 8.56916 7.54747 8.01006 6.99687C7.71137 6.70244 7.56958 6.56064 7.44394 6.45413C7.37604 6.39662 7.30507 6.34283 7.23135 6.29299C7.18246 6.25962 7.1274 6.22348 7.06128 6.18011C6.4603 5.78937 5.26513 5.81084 5.22559 5.81191H5.22176C4.89523 5.398 4.91819 4.03319 4.93689 3.74811C4.84029 3.78693 4.74808 3.83589 4.6618 3.89416C4.37355 4.09989 4.10407 4.33074 3.85652 4.584C3.57343 4.8692 3.31473 5.17761 3.08313 5.50599V5.50727V5.50578C2.55341 6.25676 2.1777 7.10523 1.97767 8.0022C1.97363 8.01899 1.6809 9.29877 1.82525 9.96247Z"}),ep.createElement("path",{fill:"url(#i)",d:"M12.8949 6.71115C13.1957 7.00658 13.4533 7.34294 13.6602 7.71031C13.7055 7.74453 13.7478 7.77855 13.7837 7.8115C15.6517 9.53346 14.673 11.9676 14.6001 12.1408C16.1175 10.8906 17.0873 9.04174 16.7959 7.13334C15.8639 4.80976 14.2842 3.87331 12.994 1.83418C12.9273 1.73022 12.8626 1.62504 12.7999 1.5187C12.7675 1.46315 12.7372 1.40642 12.7091 1.34863C12.6556 1.245 12.6143 1.13549 12.5862 1.0223C12.5863 1.01708 12.5844 1.01203 12.5809 1.00811C12.5775 1.00418 12.5727 1.00167 12.5675 1.00104C12.5624 0.999652 12.5571 0.999652 12.552 1.00104C12.5509 1.00104 12.5492 1.00296 12.5479 1.00338C12.5467 1.00381 12.5439 1.00572 12.542 1.00657C12.2233 1.15772 10.3336 4.14989 12.8949 6.71115Z"}),ep.createElement("path",{fill:"url(#j)",d:"M13.7825 7.81043C13.7429 7.77481 13.7017 7.74104 13.659 7.70924C13.6422 7.6967 13.6256 7.68415 13.6077 7.67161C13.0282 7.27018 12.3202 7.09829 11.6211 7.18925C14.5846 8.67099 13.7895 13.7735 9.68253 13.5809C9.31684 13.5659 8.95547 13.4962 8.61045 13.3741C8.52981 13.3439 8.44917 13.3109 8.36852 13.275C8.32197 13.2537 8.27541 13.2325 8.22949 13.2087L8.23523 13.2123C8.80794 13.6032 11.6366 14.5584 14.5942 12.1493L14.5988 12.1387C14.6726 11.9665 15.6513 9.53175 13.7825 7.81043Z"}),ep.createElement("path",{fill:"url(#k)",d:"M6.2896 10.5122C6.2896 10.5122 6.66992 9.09487 9.01285 9.09487C9.26604 9.09487 9.99075 8.38801 10.0037 8.18308C8.99621 8.54808 7.88589 8.50444 6.91014 8.06148C6.43686 7.82142 5.90998 7.70656 5.37973 7.72784C4.84947 7.74913 4.3335 7.90585 3.88098 8.18308C4.05273 8.55455 4.32852 8.86824 4.67494 9.08614C5.02136 9.30405 5.42354 9.41681 5.83275 9.41077C5.68011 10.7579 6.39228 12.3285 8.11615 13.1523C8.15463 13.1708 8.19077 13.1908 8.23031 13.2084C7.22413 12.6887 6.39334 11.7057 6.2896 10.5122Z"}),ep.createElement("path",{fill:"url(#l)",d:"M17.6124 6.70307C17.2544 5.84166 16.5282 4.91159 15.9596 4.61758C16.3652 5.40312 16.6466 6.24675 16.794 7.11846L16.7955 7.13228C15.8639 4.80976 14.2842 3.87331 12.994 1.83418C12.9273 1.73022 12.8626 1.62504 12.7999 1.5187C12.7675 1.46315 12.7372 1.40642 12.7091 1.34863C12.6556 1.245 12.6144 1.13549 12.5862 1.0223C12.5863 1.01708 12.5844 1.01203 12.5809 1.00811C12.5775 1.00418 12.5727 1.00167 12.5675 1.00104C12.5624 0.999652 12.5571 0.999652 12.552 1.00104C12.5509 1.00104 12.5492 1.00296 12.548 1.00338C12.5467 1.00381 12.5439 1.00572 12.542 1.00657L12.5452 1.00104C10.4757 2.21279 9.77348 4.45602 9.70885 5.57805C9.80494 5.57146 9.90018 5.56339 9.9984 5.56339C10.7327 5.56473 11.4536 5.76051 12.0877 6.13081C12.7218 6.50112 13.2465 7.03274 13.6086 7.67162C13.029 7.27019 12.321 7.09829 11.6219 7.18926C14.5854 8.67099 13.7903 13.7735 9.68334 13.5809C9.31766 13.5659 8.95629 13.4962 8.61126 13.3741C8.53062 13.3439 8.44998 13.3109 8.36934 13.275C8.32278 13.2537 8.27623 13.2325 8.23031 13.2087L8.23605 13.2123C8.19608 13.1932 8.15611 13.1732 8.11615 13.1525C8.15463 13.171 8.19077 13.191 8.23031 13.2087C7.22413 12.6887 6.39334 11.7057 6.28959 10.5122C6.28959 10.5122 6.66991 9.09489 9.01284 9.09489C9.26603 9.09489 9.99074 8.38804 10.0037 8.1831C10.0005 8.11614 8.56662 7.54534 8.00752 6.99474C7.70883 6.7003 7.56703 6.55851 7.44139 6.452C7.37349 6.39449 7.30253 6.34069 7.22881 6.29086C7.04107 5.63374 7.03307 4.93829 7.20563 4.27702C6.44562 4.6452 5.7703 5.16713 5.22241 5.80977H5.21858C4.89204 5.39587 4.915 4.03105 4.93371 3.74597C4.83711 3.7848 4.7449 3.83375 4.65862 3.89202C4.37036 4.09776 4.10088 4.32861 3.85334 4.58187C3.57126 4.86787 3.31362 5.17699 3.08314 5.50599V5.50726V5.50577C2.55342 6.25675 2.1777 7.10522 1.97768 8.00219L1.96663 8.05661C1.95111 8.12911 1.88159 8.49731 1.8716 8.57639C1.8716 8.58234 1.8716 8.57022 1.8716 8.57639C1.80802 8.95647 1.76741 9.34003 1.75 9.725V9.76752C1.75181 11.8305 2.52744 13.8178 3.9236 15.3366C5.31977 16.8554 7.23488 17.7952 9.29045 17.9703C11.346 18.1453 13.3925 17.5429 15.0254 16.2821C16.6583 15.0213 17.7588 13.1938 18.1095 11.1608C18.1233 11.0545 18.1345 10.9493 18.1469 10.8419C18.3166 9.43933 18.1329 8.01656 17.6124 6.70307Z"}),ep.createElement("linearGradient",{id:"a",x1:16.522,x2:2.844,y1:3.634,y2:16.83,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.048,stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.111,stopColor:"#FFE847"}),ep.createElement("stop",{offset:.225,stopColor:"#FFC830"}),ep.createElement("stop",{offset:.368,stopColor:"#FF980E"}),ep.createElement("stop",{offset:.401,stopColor:"#FF8B16"}),ep.createElement("stop",{offset:.462,stopColor:"#FF672A"}),ep.createElement("stop",{offset:.534,stopColor:"#FF3647"}),ep.createElement("stop",{offset:.705,stopColor:"#E31587"})),ep.createElement("radialGradient",{id:"b",cx:0,cy:0,r:1,gradientTransform:"translate(15.89 2.887) scale(17.1764)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.129,stopColor:"#FFBD4F"}),ep.createElement("stop",{offset:.186,stopColor:"#FFAC31"}),ep.createElement("stop",{offset:.247,stopColor:"#FF9D17"}),ep.createElement("stop",{offset:.283,stopColor:"#FF980E"}),ep.createElement("stop",{offset:.403,stopColor:"#FF563B"}),ep.createElement("stop",{offset:.467,stopColor:"#FF3750"}),ep.createElement("stop",{offset:.71,stopColor:"#F5156C"}),ep.createElement("stop",{offset:.782,stopColor:"#EB0878"}),ep.createElement("stop",{offset:.86,stopColor:"#E50080"})),ep.createElement("radialGradient",{id:"c",cx:0,cy:0,r:1,gradientTransform:"translate(9.613 9.909) scale(17.1764)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.3,stopColor:"#960E18"}),ep.createElement("stop",{offset:.351,stopColor:"#B11927",stopOpacity:.74}),ep.createElement("stop",{offset:.435,stopColor:"#DB293D",stopOpacity:.343}),ep.createElement("stop",{offset:.497,stopColor:"#F5334B",stopOpacity:.094}),ep.createElement("stop",{offset:.53,stopColor:"#FF3750",stopOpacity:0})),ep.createElement("radialGradient",{id:"d",cx:0,cy:0,r:1,gradientTransform:"translate(11.684 -1.011) scale(12.4436)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.132,stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.252,stopColor:"#FFDC3E"}),ep.createElement("stop",{offset:.506,stopColor:"#FF9D12"}),ep.createElement("stop",{offset:.526,stopColor:"#FF980E"})),ep.createElement("radialGradient",{id:"e",cx:0,cy:0,r:1,gradientTransform:"matrix(8.17846 0 0 8.17845 7.714 14.396)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.353,stopColor:"#3A8EE6"}),ep.createElement("stop",{offset:.472,stopColor:"#5C79F0"}),ep.createElement("stop",{offset:.669,stopColor:"#9059FF"}),ep.createElement("stop",{offset:1,stopColor:"#C139E6"})),ep.createElement("radialGradient",{id:"f",cx:0,cy:0,r:1,gradientTransform:"matrix(4.21474 -1.019 1.193 4.9344 10.552 8.501)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.206,stopColor:"#9059FF",stopOpacity:0}),ep.createElement("stop",{offset:.278,stopColor:"#8C4FF3",stopOpacity:.064}),ep.createElement("stop",{offset:.747,stopColor:"#7716A8",stopOpacity:.45}),ep.createElement("stop",{offset:.975,stopColor:"#6E008B",stopOpacity:.6})),ep.createElement("radialGradient",{id:"g",cx:0,cy:0,r:1,gradientTransform:"translate(9.397 2.184) scale(5.88357)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#FFE226"}),ep.createElement("stop",{offset:.121,stopColor:"#FFDB27"}),ep.createElement("stop",{offset:.295,stopColor:"#FFC82A"}),ep.createElement("stop",{offset:.502,stopColor:"#FFA930"}),ep.createElement("stop",{offset:.732,stopColor:"#FF7E37"}),ep.createElement("stop",{offset:.792,stopColor:"#FF7139"})),ep.createElement("radialGradient",{id:"h",cx:0,cy:0,r:1,gradientTransform:"translate(14.021 -1.548) scale(25.1026)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.113,stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.456,stopColor:"#FF980E"}),ep.createElement("stop",{offset:.622,stopColor:"#FF5634"}),ep.createElement("stop",{offset:.716,stopColor:"#FF3647"}),ep.createElement("stop",{offset:.904,stopColor:"#E31587"})),ep.createElement("radialGradient",{id:"i",cx:0,cy:0,r:1,gradientTransform:"rotate(83.976 6.037 6.538) scale(18.3983 12.0746)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.06,stopColor:"#FFE847"}),ep.createElement("stop",{offset:.168,stopColor:"#FFC830"}),ep.createElement("stop",{offset:.304,stopColor:"#FF980E"}),ep.createElement("stop",{offset:.356,stopColor:"#FF8B16"}),ep.createElement("stop",{offset:.455,stopColor:"#FF672A"}),ep.createElement("stop",{offset:.57,stopColor:"#FF3647"}),ep.createElement("stop",{offset:.737,stopColor:"#E31587"})),ep.createElement("radialGradient",{id:"j",cx:0,cy:0,r:1,gradientTransform:"translate(9.258 4.363) scale(15.672)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.137,stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.48,stopColor:"#FF980E"}),ep.createElement("stop",{offset:.592,stopColor:"#FF5634"}),ep.createElement("stop",{offset:.655,stopColor:"#FF3647"}),ep.createElement("stop",{offset:.904,stopColor:"#E31587"})),ep.createElement("radialGradient",{id:"k",cx:0,cy:0,r:1,gradientTransform:"translate(13.395 5.28) scale(17.1528)",gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.094,stopColor:"#FFF44F"}),ep.createElement("stop",{offset:.231,stopColor:"#FFE141"}),ep.createElement("stop",{offset:.509,stopColor:"#FFAF1E"}),ep.createElement("stop",{offset:.626,stopColor:"#FF980E"})),ep.createElement("linearGradient",{id:"l",x1:16.358,x2:4.719,y1:3.563,y2:15.201,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{offset:.167,stopColor:"#FFF44F",stopOpacity:.8}),ep.createElement("stop",{offset:.266,stopColor:"#FFF44F",stopOpacity:.634}),ep.createElement("stop",{offset:.489,stopColor:"#FFF44F",stopOpacity:.217}),ep.createElement("stop",{offset:.6,stopColor:"#FFF44F",stopOpacity:0})))},dA={"sentry.javascript.nextjs":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%"}),ep.createElement("path",{fill:"url(#a)",d:"M7.04 5 18.2 19.38c-.24.21-.5.42-.76.62h-.86L6.62 7.14V15H4.94V5h2.1Z"}),ep.createElement("path",{fill:"url(#b)",d:"M15.08 5H13.4v10h1.67V5Z"}),ep.createElement("linearGradient",{id:"a",x1:12.58,x2:17.51,y1:13.68,y2:19.79,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#fff"}),ep.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0})),ep.createElement("linearGradient",{id:"b",x1:14.24,x2:14.22,y1:5,y2:12.34,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#fff"}),ep.createElement("stop",{offset:1,stopColor:"#fff",stopOpacity:0}))),"sentry.javascript.astro":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#1C1E24"}),ep.createElement("path",{fill:"url(#a)",d:"M7.35 16.62c-.89-.8-1.15-2.49-.78-3.7.64.77 1.53 1 2.46 1.15 1.42.21 2.82.13 4.14-.51l.45-.27c.13.35.16.71.12 1.07-.1.9-.56 1.58-1.27 2.1l-.88.6c-.9.6-1.15 1.3-.8 2.33l.02.11a2.46 2.46 0 0 1-1.46-2.25c0-.24 0-.48-.04-.72-.07-.58-.35-.83-.87-.85-.53-.01-.95.3-1.06.82l-.03.12Z"}),ep.createElement("path",{fill:"#fff",d:"M2.88 13.29S5.3 12.1 7.75 12.1l1.84-5.68c.06-.27.26-.46.5-.46.22 0 .42.2.49.46l1.84 5.68a10.3 10.3 0 0 1 4.86 1.18L13.15 2.05c-.12-.33-.32-.55-.6-.55H7.6c-.27 0-.46.22-.58.55L2.88 13.29Z"}),ep.createElement("linearGradient",{id:"a",x1:6.41,x2:14.95,y1:19.5,y2:15.41,gradientUnits:"userSpaceOnUse"},ep.createElement("stop",{stopColor:"#D83333"}),ep.createElement("stop",{offset:1,stopColor:"#F041FF"}))),"sentry.javascript.remix":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#212121"}),ep.createElement("path",{fill:"#fff",d:"M15.42 16.5c0-.77 0-1.47-.12-2.97-.14-1.51-.93-2.28-2.27-2.55 1.59-.2 2.77-1.44 2.77-3.35 0-2.54-1.68-4.13-5.05-4.13H4.5v2.65h5.63c1.49 0 2.23.64 2.23 1.7 0 1.2-.74 1.64-2.23 1.64H4.5v2.71h5.47c1.17 0 1.82.33 1.92 1.82.08 1.02.07 1.52.06 2v.48h3.47Z"}),ep.createElement("path",{fill:"#fff",d:"M4.5 14.48v2.02h4.42v-1.3c0-.26-.13-.72-.75-.72H4.5Z"})),"sentry.javascript.nestjs":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#1A1A1A"}),ep.createElement("path",{fill:"#E0234E",fillRule:"evenodd",d:"M11.2154 1.75c-.1193 0-.2301.0256-.3324.0597.2173.1448.3366.3366.3963.554.0043.0297.0128.051.0171.0809.0042.0255.0085.0511.0085.0767.017.375-.098.4218-.179.6434-.1236.2855-.0895.5923.0597.8395a.5039.5039 0 0 0 .0511.0937c-.1619-1.078.7372-1.24.9034-1.5766.0127-.294-.2301-.49-.4219-.6264-.1832-.1108-.3494-.1449-.5028-.1449Zm1.355.2429c-.017.098-.0042.0724-.0085.1236-.0042.034-.0042.0767-.0085.1108-.0085.034-.017.0681-.0298.1022a.9495.9495 0 0 1-.0341.1023c-.0171.034-.0298.0639-.0469.098-.0128.017-.0213.034-.0341.0511l-.0255.0384a1.4831 1.4831 0 0 1-.064.0852c-.0255.0256-.0468.0554-.0767.0767v.0043c-.0255.0213-.0511.0468-.0809.0681-.0895.0682-.1918.1194-.2855.1833-.0298.0213-.0597.0383-.0852.0639a.621.621 0 0 0-.081.0682c-.0298.0255-.0511.0511-.0767.081-.0213.0255-.0469.0553-.0639.0852-.0213.0298-.0426.0596-.0597.0894-.017.0341-.0298.064-.0469.098-.0127.0341-.0255.064-.034.098-.0128.0384-.0213.0725-.0299.1066-.0042.017-.0042.0383-.0085.0554-.0043.017-.0043.034-.0085.0511 0 .0341-.0043.0724-.0043.1065 0 .0256 0 .0512.0043.0767 0 .0341.0043.0682.0128.1066.0043.034.0128.0681.0213.1022.0128.0341.0213.0682.0341.1023.0085.0213.0213.0426.0298.0597l-.9801-.3793a10.4914 10.4914 0 0 0-.4943-.1278l-.2684-.064a7.9133 7.9133 0 0 0-.7755-.115c-.0085 0-.0128-.0042-.0213-.0042a7.6176 7.6176 0 0 0-.7628-.0384 8.039 8.039 0 0 0-.5582.0213c-.26.017-.5199.0511-.7798.0938-.0639.0085-.1278.0213-.1917.034a8.55 8.55 0 0 0-.3835.0853l-.1918.051c-.064.0257-.1236.0555-.1832.081l-.1406.064c-.0086.0042-.017.0042-.0213.0085-.0427.0213-.081.0383-.1194.0596a.2083.2083 0 0 0-.0298.0128 1.8785 1.8785 0 0 0-.132.0682c-.03.0128-.0597.0298-.0853.0426a.385.385 0 0 1-.0383.0213c-.0384.0213-.0768.0426-.1108.064a1.071 1.071 0 0 0-.1023.0639c-.0298.0213-.0597.0383-.0852.0596-.0043.0043-.0085.0043-.0128.0085a.9833.9833 0 0 0-.081.0597l-.0085.0085-.064.0511c-.0084.0043-.017.0128-.0255.017-.0213.0171-.0426.0384-.0639.0555-.0043.0085-.0128.0128-.017.017-.0256.0256-.0512.047-.0767.0725-.0043 0-.0043.0042-.0086.0085a1.1979 1.1979 0 0 0-.0767.0724c-.0042.0043-.0042.0085-.0085.0085a1.0015 1.0015 0 0 0-.0639.0682c-.0085.0085-.0213.017-.0298.0256-.0213.0256-.0469.0511-.0725.0767-.0042.0085-.0128.0128-.017.0213-.0341.034-.064.0682-.098.1023l-.0128.0128c-.0682.0724-.1406.1448-.2173.2087a2.4213 2.4213 0 0 1-.2386.1875 3.2231 3.2231 0 0 1-.2557.162 2.597 2.597 0 0 1-.2685.1278 3.0709 3.0709 0 0 1-.277.1023c-.179.0383-.3622.1108-.5198.1235-.0341 0-.0724.0086-.1065.0128-.0384.0085-.0725.017-.1066.0256l-.1022.0383a1.09 1.09 0 0 0-.1023.047c-.0298.0212-.064.0383-.0937.0596a.6963.6963 0 0 0-.0853.0724c-.0298.0213-.0596.0511-.0852.0767-.0256.0298-.0511.0554-.0724.0852-.0213.0341-.0469.064-.064.098a.7506.7506 0 0 0-.0596.098c-.017.0384-.034.0725-.0469.1108-.0128.0341-.0255.0725-.0383.1108-.0085.0341-.017.0682-.0213.1023 0 .0043-.0043.0085-.0043.0128-.0085.0383-.0085.0895-.0128.115-.0042.0298-.0085.0554-.0085.0852 0 .0171 0 .0384.0043.0554a.4518.4518 0 0 0 .017.081.568.568 0 0 0 .0298.0767v.0043a.7396.7396 0 0 0 .047.0767c.017.0255.034.0511.0553.0767.0213.0213.0469.0468.0725.0682a.624.624 0 0 0 .081.0681c.1022.0895.1278.1193.2598.1875.0213.0128.0427.0213.0682.0341.0043 0 .0085.0043.0128.0043 0 .0085 0 .0128.0043.0213a.873.873 0 0 0 .0213.1022.5751.5751 0 0 0 .034.1023c.0129.0256.0214.0511.0342.0767.0042.0085.0085.017.0128.0213.017.0341.034.064.051.0938l.064.0895c.0213.0255.0469.0553.0724.081.0256.0255.0512.0468.081.0724 0 0 .0043.0042.0085.0042.0256.0213.0511.0426.0767.0597a.6778.6778 0 0 0 .0938.0554c.0298.017.0639.034.098.0469.0255.0127.0554.0213.0852.0298.0043.0043.0085.0043.017.0085.017.0043.0384.0085.0554.0128-.0128.23-.017.4474.017.5241.0384.0852.226-.1747.4134-.473-.0255.294-.0426.6392 0 .7415.0469.1065.3026-.2259.5241-.5923 3.0212-.6989 5.7782 1.3891 6.068 4.3378-.0555-.4602-.6222-.7159-.8821-.652-.1279.3154-.3452.7202-.6946.9716a2.732 2.732 0 0 0-.0426-.8522c-.0938.392-.277.7584-.5284 1.0738-.4048.0298-.8096-.1662-1.0227-.4602-.017-.0128-.0213-.0384-.034-.0554-.0129-.0299-.0256-.0597-.0342-.0895a.3544.3544 0 0 1-.0255-.0895c-.0043-.0298-.0043-.0597-.0043-.0937v-.064a.6801.6801 0 0 1 .0213-.0894.729.729 0 0 1 .0298-.0895c.017-.0299.0299-.0597.0512-.0895.0724-.2046.0724-.3707-.0597-.4687a.4833.4833 0 0 0-.081-.0427c-.017-.0042-.0383-.0127-.0553-.017-.0128-.0043-.0213-.0085-.0341-.0128a.6913.6913 0 0 0-.0895-.0213.3253.3253 0 0 0-.0895-.0128.7068.7068 0 0 0-.0937-.0085c-.0213 0-.0427.0043-.064.0043a.3294.3294 0 0 0-.0937.0128.6555.6555 0 0 0-.0895.017.7441.7441 0 0 0-.0895.0298c-.0298.0128-.0554.0256-.0852.0384-.0256.0128-.0511.0298-.081.0426-.9928.6477-.4005 2.1647.277 2.6036-.2557.0468-.5156.1022-.588.1576l-.0085.0085c.1832.1108.375.2046.5752.2855.2727.0895.5625.1705.6903.2046v.0042a4.12 4.12 0 0 0 1.0738.0767c1.8877-.1321 3.4345-1.5681 3.7158-3.46.0085.0383.017.0724.0255.1108.0128.0767.0299.1576.0384.2386v.0043c.0085.0383.0128.0767.017.1108v.017c.0043.0384.0085.0767.0085.1108.0043.0469.0086.0937.0086.1406v.0682c0 .0213.0042.0469.0042.0682 0 .0255-.0042.0511-.0042.0767v.0596c0 .0299-.0043.0554-.0043.0853 0 .017 0 .034-.0043.0554 0 .0298-.0042.0596-.0042.0937-.0043.0128-.0043.0256-.0043.0383-.0043.0341-.0085.064-.0128.0981 0 .0127 0 .0255-.0043.0383-.0042.0426-.0128.081-.017.1236v.0085c-.0085.0384-.0171.081-.0256.1193v.0128a47.477 47.477 0 0 1-.0256.1151c0 .0042-.0042.0127-.0042.017a1.1596 1.1596 0 0 1-.0298.1151v.0127c-.0128.0427-.0256.081-.0341.1194-.0043.0042-.0043.0085-.0043.0085l-.0384.1278c-.017.0426-.0298.081-.0468.1236-.0171.0426-.0299.0852-.0469.1236-.0171.0426-.0341.0809-.0511.1235h-.0043c-.0171.0384-.0341.081-.0554.1193a.207.207 0 0 1-.0128.0299c-.0043.0042-.0043.0085-.0085.0128-.277.5582-.686 1.0482-1.1974 1.4317-.034.0213-.0682.0469-.1022.0724-.0086.0086-.0214.0128-.0299.0213a1.7283 1.7283 0 0 1-.0937.064l.0128.0255h.0042l.179-.0255h.0043a9.218 9.218 0 0 0 .3323-.0597.7537.7537 0 0 0 .0938-.0213c.0213-.0043.0383-.0085.0596-.0128.0299-.0043.0597-.0128.0895-.017.0256-.0085.0511-.0128.0767-.0213.4261-.1023.8395-.2429 1.2357-.4091-.6775.9247-1.5851 1.6704-2.6461 2.1604.49-.0341.98-.1151 1.453-.2514 1.7173-.5071 3.1618-1.6619 4.0268-3.2172a6.8014 6.8014 0 0 1-1.1462 2.7399 6.7117 6.7117 0 0 0 1.1377-.9459 6.7537 6.7537 0 0 0 1.7939-3.622 6.7853 6.7853 0 0 1 .1236 2.0539c3.0766-4.291.2557-8.7397-.9247-9.9115-.0042-.0085-.0085-.0128-.0085-.0213-.0042.0043-.0043.0043-.0043.0085 0-.0042 0-.0042-.0042-.0085 0 .0511-.0043.1023-.0085.1534a5.8096 5.8096 0 0 1-.0426.2855c-.0213.0938-.0469.1875-.0725.2813a3.5133 3.5133 0 0 1-.1023.2727 3.6249 3.6249 0 0 1-.1278.2599c-.0469.081-.098.1662-.1534.2429a3.2451 3.2451 0 0 1-.1747.23c-.0639.0768-.1321.145-.2003.2131a2.749 2.749 0 0 1-.1235.1066c-.0341.0298-.064.0554-.098.0852a2.382 2.382 0 0 1-.2387.1662c-.0809.0511-.1662.1022-.2514.1449a7.3882 7.3882 0 0 1-.2684.1193 3.007 3.007 0 0 1-.277.0894 3.4422 3.4422 0 0 1-.2855.064c-.098.017-.196.0255-.2898.034a3.2708 3.2708 0 0 1-.2045.0086c-.098 0-.196-.0085-.2898-.017-.098-.0086-.196-.0214-.2897-.0427a2.1534 2.1534 0 0 1-.2855-.0724h-.0043c.0938-.0085.1875-.017.2813-.0341.098-.017.1917-.0384.2855-.064a3.002 3.002 0 0 0 .2769-.0894c.0938-.0341.1833-.0767.2685-.1193.0895-.0427.1704-.0895.2557-.1406.0809-.0554.1619-.1108.2386-.1705a2.3314 2.3314 0 0 0 .2173-.1917c.0724-.064.1364-.1364.2003-.2088a4.2167 4.2167 0 0 0 .1789-.2302c.0086-.0127.0171-.0298.0256-.0426.0426-.0681.0852-.1363.1236-.2045a2.9446 2.9446 0 0 0 .2301-.5326c.0298-.0895.0511-.1833.0724-.277.0171-.098.0341-.1918.0426-.2855.0085-.098.0171-.196.0171-.2898 0-.0681-.0043-.1363-.0085-.2045a5.8943 5.8943 0 0 0-.0341-.2855 3.1281 3.1281 0 0 0-.0639-.2855c-.0299-.0895-.0597-.1832-.0938-.2727-.0341-.0895-.0767-.179-.1193-.2642-.0469-.0852-.0937-.1704-.1449-.2514a4.7429 4.7429 0 0 0-.1704-.2344 9.1534 9.1534 0 0 0-.196-.2173 2.7053 2.7053 0 0 0-.1108-.1065 7.8697 7.8697 0 0 0-.5923-.4176.802.802 0 0 0-.0852-.0426c-.1407-.0895-.2728-.1364-.4049-.179Z",clipRule:"evenodd"})),ruby:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#BD0012"}),ep.createElement("path",{fill:"#fff",d:"m6.63 15.68 6.57-4.2 3.36 5.57-9.93-1.35v-.02ZM17.5 5.3v.1c0 .42-.05.85-.07 1.27v.84c0 .56-.06 1.12-.09 1.7v.84l-.08 1.66v.86c0 .3-.05.86-.07 1.3 0 .28 0 .56-.05.83 0 .45-.04.89-.06 1.33-.02.44 0 .63-.05.94l-.05-.05-.54-.83-2.86-4.6c-.12-.2-.12-.2 0-.41l3.13-4.69c.24-.34.46-.7.7-1.03l.09-.06ZM3.6 9.61l1.15-1.72c.16-.23.35-.43.56-.62L7.33 5.4c.26-.25.56-.46.87-.64l2.12-1.2a.3.3 0 0 1 .27 0c.3.13.61.23.94.35h.06v.07l-.82 1.63a.74.74 0 0 1-.18.24l-2.65 2.4-.46.45a1.8 1.8 0 0 1-.3.21 44.84 44.84 0 0 1-2.8 1.4.2.2 0 0 1-.12-.05l-.65-.65Zm4.03-.12 5.18 1.66-6.56 4.22c0-.07 1.31-5.7 1.38-5.88Zm9.26-4.2-3.68 5.54-1.88-4.6c.05 0 4.88-.87 5.56-.94ZM7.7 9.04l3.24-2.87 1.87 4.55-5.1-1.68Zm-1.8 6.48-3.4.09 1.77-4.24 1.62 4.15Zm.04-.98L4.5 10.79l2.69-1.37-.2.86-.2.86-.22.86-.2.84-.2.85-.22.85Zm5.25-8.75a.3.3 0 0 1 0-.12l.8-1.62c.06-.11.1-.13.21-.1l1.2.31 2.66.7h.13c-.05.1-4.42.77-5 .83Zm1.88-2.08 3.65-.8.78 2.02-4.43-1.22ZM3.16 16.12a.22.22 0 0 1 .17-.05h.69l1.65-.05c.28 0 .56.01.84.06l.94.1 1.13.16 1.13.16 1.06.15 1 .14 1.4.19 1.12.15h.1-.05l-.77-.08-.87-.07-1.1-.1-.87-.1-1.07-.09-.86-.08-1.08-.07-.86-.07-1.06-.1-.87-.08-.94-.08-.83-.09Zm-.66-1.7.88-4.34.33.34.27.27c.1.12.12.17.06.31l-.69 1.59-.73 1.7-.12.15v-.01Zm8.7-11.16c.43-.08 3.47-.48 3.55-.46h-.07l-.69.16-1.83.46c-.25.06-.5.04-.73-.07l-.22-.09Z"})),python:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#5A9FD4"}),ep.createElement("path",{fill:"#fff",d:"M9.9 2c-.6 0-1.22.05-1.82.16-1.61.28-1.9.88-1.9 1.98V5.6H10v.48H4.74c-1.1 0-2.08.67-2.38 1.93a7.18 7.18 0 0 0 0 3.88c.27 1.13.92 1.94 2.02 1.94H5.7v-1.74A2.43 2.43 0 0 1 8.08 9.7h3.81a1.92 1.92 0 0 0 1.91-1.94V4.14c0-1.03-.87-1.81-1.9-1.98-.66-.11-1.33-.16-2-.16ZM7.85 3.17a.73.73 0 1 1 .03 1.46.73.73 0 0 1-.03-1.46Z"}),ep.createElement("path",{fill:"#fff",d:"M14.28 6.08v1.7a2.45 2.45 0 0 1-2.39 2.42H8.1a1.95 1.95 0 0 0-1.92 1.94v3.63c0 1.03.9 1.64 1.91 1.94 1.24.39 2.57.39 3.81 0 .97-.28 1.91-.84 1.91-1.94v-1.46H10v-.48h5.71c1.11 0 1.52-.77 1.91-1.94.4-1.2.38-2.34 0-3.88-.27-1.1-.8-1.93-1.9-1.93h-1.44Zm-2.15 9.2a.73.73 0 1 1-.5.22.72.72 0 0 1 .5-.22Z"})),javascript:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#F6DE1E"}),ep.createElement("path",{d:"m9.82 13.28 1.82-1.07.3.42a2.38 2.38 0 0 0 3 .7 1 1 0 0 0 .15-1.66c-.14-.13-.3-.23-.46-.31-.44-.22-.9-.42-1.35-.62a6.9 6.9 0 0 1-1.78-1 3.08 3.08 0 0 1-1-2.68 2.92 2.92 0 0 1 2.56-2.69 4.58 4.58 0 0 1 1.88.06 3.28 3.28 0 0 1 2.13 1.7l-1.78 1.1-.26-.38a1.43 1.43 0 0 0-1.55-.55 1 1 0 0 0-.5 1.64c.17.18.37.32.6.42.48.25.99.45 1.49.68.55.24 1.06.54 1.53.91a3 3 0 0 1 1.13 2.75 2.89 2.89 0 0 1-2.24 2.7 5.33 5.33 0 0 1-3.76-.27 3.83 3.83 0 0 1-1.91-1.85Zm-8.07.25 1.84-1.12.36.53a1.35 1.35 0 0 0 1.58.57.8.8 0 0 0 .61-.52c.06-.19.1-.37.13-.56V4.4h2.26v7.73c.01.43-.04.87-.15 1.3a2.72 2.72 0 0 1-2 2c-1.03.3-2.13.2-3.1-.29a3.37 3.37 0 0 1-1.53-1.62Z"})),node:dS,php:({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#5C669A"}),ep.createElement("path",{fill:"#fff",d:"M3.06 7.48H5.5c.72 0 1.24.21 1.57.62.32.41.42.97.32 1.66a3.2 3.2 0 0 1-.87 1.78c-.27.3-.6.5-.98.6a4.5 4.5 0 0 1-1.08.13h-1.1L3.03 14H1.75l1.3-6.52Zm1.06 1.04-.54 2.73h.23c.5.01 1-.04 1.47-.18.39-.12.65-.57.77-1.32.11-.64 0-1-.33-1.1A4.21 4.21 0 0 0 4.3 8.5h-.2.02Zm4.71-2.77h1.26l-.36 1.73h1.13c.5-.02.98.11 1.39.39.3.24.4.7.27 1.38l-.6 3.03h-1.3l.6-2.9a.82.82 0 0 0-.06-.64.77.77 0 0 0-.63-.19H9.5l-.74 3.73H7.51l1.31-6.52.01-.01Zm5.05 1.73h2.45c.72 0 1.24.21 1.56.62.32.41.43.97.32 1.66a3.2 3.2 0 0 1-.87 1.78c-.26.3-.6.5-.98.6a4.5 4.5 0 0 1-1.07.13h-1.1L13.84 14h-1.27l1.31-6.52Zm1.07 1.04-.55 2.73h.24c.5.01.99-.04 1.46-.18.39-.12.65-.57.77-1.32.11-.64 0-1-.32-1.1a4.19 4.19 0 0 0-1.43-.14h-.19"})),"php.laravel":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#FF2D20"}),ep.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M18 5.75v3.38a.24.24 0 0 1-.12.2l-2.78 1.62v3.17a.24.24 0 0 1-.12.2l-5.8 3.35a.17.17 0 0 1-.05.02H9.1a.27.27 0 0 1-.12 0h-.02a.37.37 0 0 1-.04-.02l-5.8-3.34a.24.24 0 0 1-.13-.21V4.17l.01-.06v-.02c0-.02 0-.03.02-.04l.01-.02.03-.04.02-.02.03-.01 2.9-1.68a.24.24 0 0 1 .24 0l2.9 1.68.02.01.03.02a.33.33 0 0 1 .05.1v6.29l2.42-1.4V5.74l.02-.04.01-.02.03-.03.02-.01.03-.03 2.9-1.67a.25.25 0 0 1 .23 0l2.9 1.67.03.03.02.01.02.03.02.02.01.04.08.02ZM17.52 9V6.23l-1.01.58-1.4.81v2.76l2.41-1.4Zm-2.9 4.99v-2.76l-1.38.79-3.95 2.25v2.78l5.34-3.06ZM3.49 4.58v9.4l5.33 3.06v-2.78l-2.78-1.58-.03-.02-.02-.02-.02-.02-.02-.02v-.03l-.02-.03V5.98l-1.42-.8-1.02-.59Zm2.67-1.8L3.73 4.17l2.42 1.4 2.42-1.4-2.42-1.4Zm1.26 8.69 1.4-.81V4.59l-1.02.58-1.4.81v6.08l1.02-.6Zm7.45-7.05-2.43 1.4 2.42 1.39 2.42-1.4-2.41-1.4Zm-.24 3.2-1.41-.8-1.02-.58v2.75l1.4.8 1.02.59V7.62Zm-5.57 6.22 3.55-2.03 1.77-1-2.41-1.4L9.17 11l-2.53 1.46 2.41 1.37Z",clipRule:"evenodd"})),"php.symfony":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#1A171B"}),ep.createElement("path",{fill:"#fff",d:"M15.8 1.5a4.5 4.5 0 0 0-3.23 1.72 10.85 10.85 0 0 0-1.97 3.63C9.82 6.2 9.2 5.37 7.94 5c-.97-.28-2-.16-2.94.54-.45.34-.76.84-.9 1.31-.38 1.24.4 2.33.75 2.73l.77.82c.16.17.54.59.36 1.2-.2.66-1 1.08-1.82.83-.36-.11-.88-.38-.77-.76.05-.16.16-.28.22-.41.06-.12.08-.2.1-.26.15-.48-.05-1.12-.57-1.28-.5-.15-.99-.03-1.18.6-.22.71.12 2 1.94 2.56 2.14.66 3.95-.5 4.2-2.02.16-.95-.26-1.66-1.05-2.56l-.64-.71a1.17 1.17 0 0 1-.12-1.56c.34-.43.82-.61 1.61-.4 1.15.32 1.67 1.12 2.53 1.76-.36 1.17-.59 2.33-.8 3.38l-.13.78c-.61 3.21-1.08 4.98-2.3 6-.24.17-.59.43-1.12.45-.27 0-.36-.18-.37-.27 0-.2.16-.28.27-.37.16-.09.4-.23.39-.7a1.07 1.07 0 0 0-1.15-1.02c-.5.02-1.26.49-1.23 1.35.03.88.86 1.55 2.1 1.5.68-.01 2.17-.29 3.64-2.03 1.7-2 2.18-4.3 2.54-5.98l.4-2.22c.23.03.47.05.73.05 2.13.05 3.2-1.05 3.2-1.86.02-.48-.31-.96-.77-.95a.89.89 0 0 0-.85.69c-.1.44.68.85.08 1.24-.43.28-1.2.47-2.3.32l.2-1.1c.4-2.07.9-4.61 2.8-4.67.13-.01.63 0 .64.33 0 .12-.02.14-.15.4a.9.9 0 0 0-.18.56c.02.53.42.88 1 .85.78-.02 1-.78 1-1.17-.04-.91-1-1.49-2.28-1.45Z"})),dotnet:df,"dotnet.maui":({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("rect",{width:"100%",height:"100%",fill:"#2D4C91"}),ep.createElement("path",{fill:"#425D9C",d:"M0 20V0l20 20H0Z"}),ep.createElement("path",{fill:"#FEFEFE",d:"M8.12 5v1.78l.02.06v2.31l.01.4.02.4v.1a.04.04 0 0 1-.03-.01L7.32 8.7 5.05 5.07A.13.13 0 0 0 4.92 5h-.8v5.96h.69v-4.4a5.47 5.47 0 0 0-.03-.68.5.5 0 0 1 0-.06l.02.03.01.03.05.1.12.24 2.95 4.67c0 .02.02.04.04.05l.07.02h.76V5h-.68ZM10.32 5.01V10.97h3.1v-.66h-2.39V8.25h2.09v-.63h-2.09V5.63h2.24v-.62h-2.95ZM2.88 10.77a.47.47 0 0 0 .03-.19.47.47 0 0 0-.12-.35.45.45 0 0 0-.34-.15.44.44 0 0 0-.33.15.47.47 0 0 0-.12.35.47.47 0 0 0 .12.35.45.45 0 0 0 .33.15.45.45 0 0 0 .34-.15c.04-.04.07-.1.1-.16ZM13.95 5.63h1.68v5.32h.67V5.63H18V5h-4.05v.63ZM6.26 15.07h-.3V12.5h.38l.88 1.57h.02l.88-1.57h.38v2.57h-.3v-2.06h-.02l-.93 1.62H7.2L6.28 13h-.02v2.07Z"}),ep.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M9.95 12.5h.4l.97 2.54v.03h-.35l-.25-.67H9.58l-.25.67h-.34v-.03l.96-2.54Zm.2.36-.47 1.25h.94l-.46-1.25h-.02Z",clipRule:"evenodd"}),ep.createElement("path",{fill:"#FEFEFE",d:"M13.7 14.17c0 .59-.38.94-1 .94s-1-.35-1-.94V12.5h.32v1.66c0 .4.22.65.67.65.46 0 .68-.26.68-.65V12.5h.33v1.67ZM14.74 15.07h-.33V12.5h.33v2.57Z"})),csharp:df};function dO({platform:e,event:t,size:n=42,title:r,...a}){return eI.jsx(dN,{platform:e,event:t,size:n,title:r,...a,children:eI.jsx(dm,{platform:e,event:t,size:n,title:r,...a})})}function dN({event:e,size:t=42,...n}){return eI.jsxs("div",{className:"relative",children:[n.children,eI.jsx(dI,{event:e,size:t,width:t/3,height:t/3,...n,className:"absolute bottom-1 right-1"})]})}function dI({event:e,size:t=42,...n}){var r,a,s,i,o,l,E,u;let c=`${(null==(a=null==(r=null==e?void 0:e.contexts)?void 0:r.runtime)?void 0:a.name)||""}`;if(!c)return null;let d=`${c} ${null==(i=null==(s=null==e?void 0:e.contexts)?void 0:s.runtime)?void 0:i.version}`;if("node"===c)return eI.jsx(dS,{title:d,width:t,height:t,...n});let T=`${(null==(l=null==(o=null==e?void 0:e.contexts)?void 0:o.browser)?void 0:l.name)||""}`,p=`${T} ${null==(u=null==(E=null==e?void 0:e.contexts)?void 0:E.browser)?void 0:u.version}`,_=Object.keys(dR).find(e=>T.includes(e));if(_){let e=dR[_];return eI.jsx(e,{title:p,width:t,height:t,...n})}return null}function dm({platform:e,event:t,size:n=42,title:r,...a}){var s;let i=e||(null==t?void 0:t.platform)||"unknown",o=(null==(s=null==t?void 0:t.sdk)?void 0:s.name)||"",l=r??i,E=Object.keys(dA).find(e=>o.startsWith(e));if(E){let e=dA[E];return eI.jsx(e,{title:l,width:n,height:n,...a})}let u=dA[i]??null;return eI.jsx(u,{title:l,width:n,height:n,...a})}let dC=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{d:"M4 12.6111L8.92308 17.5L20 6.5",stroke:"inherit",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dL=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("g",{id:"Edit / Copy"},ep.createElement("path",{id:"Vector",d:"M9 9V6.2002C9 5.08009 9 4.51962 9.21799 4.0918C9.40973 3.71547 9.71547 3.40973 10.0918 3.21799C10.5196 3 11.0801 3 12.2002 3H17.8002C18.9203 3 19.4801 3 19.9079 3.21799C20.2842 3.40973 20.5905 3.71547 20.7822 4.0918C21.0002 4.51962 21.0002 5.07967 21.0002 6.19978V11.7998C21.0002 12.9199 21.0002 13.48 20.7822 13.9078C20.5905 14.2841 20.2839 14.5905 19.9076 14.7822C19.4802 15 18.921 15 17.8031 15H15M9 9H6.2002C5.08009 9 4.51962 9 4.0918 9.21799C3.71547 9.40973 3.40973 9.71547 3.21799 10.0918C3 10.5196 3 11.0801 3 12.2002V17.8002C3 18.9203 3 19.4801 3.21799 19.9079C3.40973 20.2842 3.71547 20.5905 4.0918 20.7822C4.5192 21 5.07899 21 6.19691 21H11.8036C12.9215 21 13.4805 21 13.9079 20.7822C14.2842 20.5905 14.5905 20.2839 14.7822 19.9076C15 19.4802 15 18.921 15 17.8031V15M9 9H11.8002C12.9203 9 13.4801 9 13.9079 9.21799C14.2842 9.40973 14.5905 9.71547 14.7822 10.0918C15 10.5192 15 11.079 15 12.1969L15 15",stroke:"inherit",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})));function dg({data:e}){let[t,n]=ep.useState(!1),r=ep.useCallback(t=>{t.stopPropagation(),navigator.clipboard.writeText(e),setTimeout(()=>{n(!1)},1e3),n(!0)},[e]);return t?eI.jsx(dC,{width:18,height:18,title:"Copy filename",className:"stroke-primary-50 transition-all"}):eI.jsx(dL,{width:18,height:18,title:"Copy filename",className:"stroke-primary-50 cursor-pointer transition-all",onClick:r})}let dy=ep.createContext({open:()=>{},close:()=>{},experiments:{"sentry:focus-local-events":!0},sidecarUrl:E8}),db=()=>{let e=ep.useContext(dy);return{...e,getSidecarUrl:(t="")=>new URL(t,e.sidecarUrl).href}},dv=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{d:"M12 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V12M9 15V12.5L17.75 3.75C18.4404 3.05964 19.5596 3.05964 20.25 3.75V3.75C20.9404 4.44036 20.9404 5.55964 20.25 6.25L15.5 11L11.5 15H9Z",stroke:"inherit",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));function dD({file:e}){let{getSidecarUrl:t}=db(),n=t("/open"),r=ep.useCallback(t=>{fetch(n,{method:"POST",body:e,credentials:"omit"}),t.stopPropagation()},[e,n]);return eI.jsx(dv,{width:18,height:18,title:"Open in editor",className:"stroke-primary-100 cursor-pointer",onClick:r})}function dP(e){try{e=new URL(e).pathname.slice(1)}catch{}return e}function dM({vars:e}){return eI.jsx("table",{className:"table-values w-full",children:eI.jsx("tbody",{children:Object.entries(e).map(([e,t])=>eI.jsxs("tr",{children:[eI.jsx("th",{children:eI.jsx("div",{className:"w-full truncate",children:e})}),eI.jsx("td",{children:eI.jsx("pre",{className:"whitespace-nowrap font-mono",children:void 0===t?"undefined":JSON.stringify(t,(e,t)=>"function"==typeof t||"symbol"==typeof t||"bigint"==typeof t?t.toString():t,2)})})]},e))})})}function dU({frame:e}){if(!e.filename)return null;let t=dP(e.filename);return eI.jsxs("div",{className:"flex items-center gap-2",children:[eI.jsx(dD,{file:`${t}:${e.lineno}:${e.colno}`}),eI.jsx(dg,{data:t})]})}function dx({frame:e,defaultExpand:t=!1,platform:n}){var r,a;let[s,i]=ep.useState(t),o=!!e.context_line,l="java"===n?e.module:e.filename||e.module;return eI.jsxs("li",{className:E5(o?"cursor-pointer":"",!s&&o?"hover:bg-primary-900":"","bg-primary-950 border-primary-900 my-1 overflow-hidden rounded-md border"),children:[eI.jsxs("div",{className:E5("text-primary-400 flex items-center justify-between px-2 py-1",s?"bg-primary-900":""),onClick:o?()=>i(!s):void 0,children:[eI.jsxs("div",{children:[l?eI.jsxs("span",{className:"text-primary-100",children:[function(e){let t=dP(e);return -1===t.indexOf("/node_modules/")?t:`npm:${t.replace(/\/node_modules\//gi,"npm:").split("npm:").pop()}`}(l)," in "]}):null,eI.jsx("span",{className:"text-primary-100",children:e.function}),void 0!==e.lineno&&eI.jsxs(eI.Fragment,{children:[" ","at line"," ",eI.jsxs("span",{className:"text-primary-100",children:[e.lineno,void 0!==e.colno&&`:${e.colno}`]})]})]}),eI.jsx(dU,{frame:e})]}),s&&eI.jsxs("div",{className:"bg-primary-950",children:[null==(r=e.pre_context)?void 0:r.map((t,n)=>{let r=null!=e.lineno?e.lineno-e.pre_context.length+n:n;return eI.jsxs("div",{className:"flex items-center",children:[void 0!==e.lineno&&eI.jsx("div",{className:"text-primary-300 w-16 text-right",children:r}),eI.jsx("pre",{className:"text-primary-100 flex-1 whitespace-pre-wrap px-2 py-1",children:t})]},`pre-context-${r}`)}),e.context_line&&eI.jsxs("div",{className:E5(e.pre_context||e.post_context?"bg-primary-600":"bg-primary-900","flex items-center"),children:[void 0!==e.lineno&&eI.jsx("div",{className:"text-primary-300 w-16 text-right",children:e.lineno}),eI.jsx("pre",{className:"text-primary-100 whitespace-pre-wrap px-2 py-1",children:e.context_line})]}),null==(a=e.post_context)?void 0:a.map((t,n)=>{let r=null!=e.lineno?e.lineno+1+n:n;return eI.jsxs("div",{className:"flex items-center",children:[void 0!==e.lineno&&eI.jsx("div",{className:"text-primary-300 w-16 text-right",children:r}),eI.jsx("pre",{className:"text-primary-100 flex-1 whitespace-pre-wrap px-2 py-1",children:t})]},`post-context-${r}`)}),e.vars&&eI.jsx(dM,{vars:e.vars})]})]})}function dw({event:e}){let t=dF(e.exception);return eI.jsxs(eI.Fragment,{children:[eI.jsxs("strong",{className:"font-bold",children:[t[0].type,":"]})," ",t[0].value]})}function dk({event:e}){let t=dF(e.exception);return eI.jsx("div",{className:"space-y-4 font-mono",children:eI.jsxs("h3",{className:"flex flex-col",children:[eI.jsx("strong",{className:"text-xl",children:t[0].type}),eI.jsx("span",{className:"",children:t[0].value})]})})}function dG({event:e}){let t=dF(e.exception);return eI.jsx("div",{className:"flex-1 px-6 py-4",children:eI.jsx("ol",{className:"space-y-4",children:t.map((t,n)=>{var r;return eI.jsxs("li",{className:"space-y-4 font-mono",children:[eI.jsxs("h3",{className:"bg-primary-950 flex flex-col",children:[eI.jsx("strong",{className:"text-xl",children:t.type}),eI.jsx("pre",{children:t.value})]}),eI.jsx("ul",{children:null==(r=t.stacktrace)?void 0:r.frames.map((t,r)=>eI.jsx(dx,{frame:t,defaultExpand:0===n&&0===r,platform:e.platform},r))})]},n)})})})}function dF(e){return e.value?[e.value]:e.values}function dB(e){return"string"==typeof e.message?e.message:void 0!==e.message&&"string"==typeof e.message.formatted?e.message.formatted:""}function dH({event:e}){return"exception"in e?eI.jsx(dw,{event:e}):eI.jsx("strong",{className:"font-bold",children:dB(e)||eI.jsx("em",{children:"Unknown Event"})})}function dY({event:e}){return"exception"in e?eI.jsx(dk,{event:e}):eI.jsx("div",{className:"space-y-4 font-mono",children:eI.jsx("h3",{className:"flex flex-col",children:eI.jsx("strong",{className:"text-xl",children:dB(e)||eI.jsx("em",{children:"Unknown Event"})})})})}function dV({event:e}){return"exception"in e?eI.jsx(dG,{event:e}):eI.jsx("div",{className:"flex-1 px-6 py-4",children:eI.jsxs("h3",{className:"bg-primary-950 flex flex-col",children:[eI.jsx("strong",{className:"text-xl",children:"Message:"}),eI.jsx("pre",{children:dB(e)||eI.jsx("em",{children:"No message"})})]})})}var dW={exports:{}};!function(e,t){var n;n=function(){var e="millisecond",t="second",n="minute",r="hour",a="week",s="month",i="quarter",o="year",l="date",E="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},T="en",p={};p[T]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var _="$isDayjsObject",h=function(e){return e instanceof A||!(!e||!e[_])},f=function e(t,n,r){var a;if(!t)return T;if("string"==typeof t){var s=t.toLowerCase();p[s]&&(a=s),n&&(p[s]=n,a=s);var i=t.split("-");if(!a&&i.length>1)return e(i[0])}else{var o=t.name;p[o]=t,a=o}return!r&&a&&(T=a),a||!r&&T},S=function(e,t){if(h(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},R={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function e(t,n){if(t.date()(()=>{var t={9735:(e,t)=>{t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},294:(e,t)=>{t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},1733:(e,t)=>{t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},8974:(e,t)=>{t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},6933:(e,t)=>{t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},523:(e,t)=>{t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},1223:(e,t)=>{t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},1233:(e,t)=>{t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},2847:(e,t)=>{t.__esModule=!0,t.default={scheme:"brewer",author:"timoth\xe9e poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},8120:(e,t)=>{t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},6305:(e,t)=>{t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},525:(e,t)=>{t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},4124:(e,t)=>{t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},7167:(e,t)=>{t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},4582:(e,t)=>{t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},7096:(e,t)=>{t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},9887:(e,t)=>{t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},7199:(e,t)=>{t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},1985:(e,t)=>{t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},8093:(e,t)=>{t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},1615:(e,t)=>{t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},9063:(e,t)=>{t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},9446:(e,t,n)=>{function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var a=n(1308);t.threezerotwofour=r(a);var s=n(9735);t.apathy=r(s);var i=n(294);t.ashes=r(i);var o=n(1733);t.atelierDune=r(o);var l=n(8974);t.atelierForest=r(l);var E=n(6933);t.atelierHeath=r(E);var u=n(523);t.atelierLakeside=r(u);var c=n(1223);t.atelierSeaside=r(c);var d=n(1233);t.bespin=r(d);var T=n(2847);t.brewer=r(T);var p=n(8120);t.bright=r(p);var _=n(6305);t.chalk=r(_);var h=n(525);t.codeschool=r(h);var f=n(4124);t.colors=r(f);var S=n(7167);t.default=r(S);var R=n(4582);t.eighties=r(R);var A=n(7096);t.embers=r(A);var O=n(9887);t.flat=r(O);var N=n(7199);t.google=r(N);var I=n(1985);t.grayscale=r(I);var m=n(8093);t.greenscreen=r(m);var C=n(1615);t.harmonic=r(C);var L=n(9063);t.hopscotch=r(L);var g=n(9033);t.isotope=r(g);var y=n(4112);t.marrakesh=r(y);var b=n(9600);t.mocha=r(b);var v=n(1240);t.monokai=r(v);var D=n(9768);t.ocean=r(D);var P=n(8293);t.paraiso=r(P);var M=n(3093);t.pop=r(M);var U=n(1951);t.railscasts=r(U);var x=n(6368);t.shapeshifter=r(x);var w=n(2317);t.solarized=r(w);var k=n(1091);t.summerfruit=r(k);var G=n(6943);t.tomorrow=r(G);var F=n(5670);t.tube=r(F);var B=n(2536);t.twilight=r(B)},9033:(e,t)=>{t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},4112:(e,t)=>{t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},9600:(e,t)=>{t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},1240:(e,t)=>{t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},9768:(e,t)=>{t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},8293:(e,t)=>{t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},3093:(e,t)=>{t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},1951:(e,t)=>{t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},6368:(e,t)=>{t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},2317:(e,t)=>{t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},1091:(e,t)=>{t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},1308:(e,t)=>{t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},6943:(e,t)=>{t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},5670:(e,t)=>{t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},2536:(e,t)=>{t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},6481:(e,t,n)=>{var r=n(4176),a={};for(var s in r)r.hasOwnProperty(s)&&(a[r[s]]=s);var i=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw Error("missing channels property: "+o);if(!("labels"in i[o]))throw Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw Error("channel and label counts mismatch: "+o);var l=i[o].channels,E=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:l}),Object.defineProperty(i[o],"labels",{value:E})}i.rgb.hsl=function(e){var t,n,r=e[0]/255,a=e[1]/255,s=e[2]/255,i=Math.min(r,a,s),o=Math.max(r,a,s),l=o-i;return o===i?t=0:r===o?t=(a-s)/l:a===o?t=2+(s-r)/l:s===o&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+o)/2,[t,100*(o===i?0:n<=.5?l/(o+i):l/(2-o-i)),100*n]},i.rgb.hsv=function(e){var t,n,r,a,s,i=e[0]/255,o=e[1]/255,l=e[2]/255,E=Math.max(i,o,l),u=E-Math.min(i,o,l),c=function(e){return(E-e)/6/u+.5};return 0===u?a=s=0:(s=u/E,t=c(i),n=c(o),r=c(l),i===E?a=r-n:o===E?a=.3333333333333333+t-r:l===E&&(a=.6666666666666666+n-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*s,100*E]},i.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[i.rgb.hsl(e)[0],.00392156862745098*Math.min(t,Math.min(n,r))*100,100*(r=1-.00392156862745098*Math.max(t,Math.max(n,r)))]},i.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},i.rgb.keyword=function(e){var t=a[e];if(t)return t;var n,s=1/0;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i],l=Math.pow(e[0]-o[0],2)+Math.pow(e[1]-o[1],2)+Math.pow(e[2]-o[2],2);l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){var t=i.rgb.xyz(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,.3333333333333333):7.787*n+.13793103448275862,[116*(r=r>.008856?Math.pow(r,.3333333333333333):7.787*r+.13793103448275862)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,.3333333333333333):7.787*a+.13793103448275862))]},i.hsl.rgb=function(e){var t,n,r,a,s,i=e[0]/360,o=e[1]/100,l=e[2]/100;if(0===o)return[s=255*l,s,s];t=2*l-(n=l<.5?l*(1+o):l+o-l*o),a=[0,0,0];for(var E=0;E<3;E++)(r=i+-(.3333333333333333*(E-1)))<0&&r++,r>1&&r--,s=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(.6666666666666666-r)*6:t,a[E]=255*s;return a},i.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,a=n,s=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,a*=s<=1?s:2-s,[t,100*(0===r?2*a/(s+a):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,s=t-Math.floor(t),i=255*r*(1-n),o=255*r*(1-n*s),l=255*r*(1-n*(1-s));switch(r*=255,a){case 0:return[r,l,i];case 1:return[o,r,i];case 2:return[i,r,l];case 3:return[i,o,r];case 4:return[l,i,r];case 5:return[r,i,o]}},i.hsv.hsl=function(e){var t,n,r=e[0],a=e[1]/100,s=e[2]/100,i=Math.max(s,.01);return n=(2-a)*s,[r,100*(a*i/((t=(2-a)*i)<=1?t:2-t)||0),100*(n/=2)]},i.hwb.rgb=function(e){var t,n,r,a,s,i,o,l=e[0]/360,E=e[1]/100,u=e[2]/100,c=E+u;switch(c>1&&(E/=c,u/=c),r=6*l-(t=Math.floor(6*l)),1&t&&(r=1-r),a=E+r*((n=1-u)-E),t){default:case 6:case 0:s=n,i=a,o=E;break;case 1:s=a,i=n,o=E;break;case 2:s=E,i=n,o=a;break;case 3:s=E,i=a,o=n;break;case 4:s=a,i=E,o=n;break;case 5:s=n,i=E,o=a}return[255*s,255*i,255*o]},i.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]},i.xyz.rgb=function(e){var t,n,r,a=e[0]/100,s=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*s+.0415*i,r=.0557*a+-.204*s+1.057*i,t=(t=3.2406*a+-1.5372*s+-.4986*i)>.0031308?1.055*Math.pow(t,.4166666666666667)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,.4166666666666667)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,.4166666666666667)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,.3333333333333333):7.787*t+.13793103448275862,[116*(n=n>.008856?Math.pow(n,.3333333333333333):7.787*n+.13793103448275862)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,.3333333333333333):7.787*r+.13793103448275862))]},i.lab.xyz=function(e){var t,n,r,a=e[0];t=e[1]/500+(n=(a+16)/116),r=n-e[2]/200;var s=Math.pow(n,3),i=Math.pow(t,3),o=Math.pow(r,3);return n=s>.008856?s:(n-.13793103448275862)/7.787,[t=(i>.008856?i:(t-.13793103448275862)/7.787)*95.047,n*=100,r=(o>.008856?o:(r-.13793103448275862)/7.787)*108.883]},i.lab.lch=function(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]},i.lch.lab=function(e){var t,n=e[0],r=e[1];return[n,r*Math.cos(t=e[2]/360*2*Math.PI),r*Math.sin(t)]},i.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],a=1 in arguments?arguments[1]:i.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var s=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){var t,n=10*(e-232)+8;return[n,n,n]}return[Math.floor((e-=16)/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,a=Math.max(Math.max(t,n),r),s=Math.min(Math.min(t,n),r),i=a-s;return[(i<=0?0:a===t?(n-r)/i%6:a===n?2+(r-t)/i:4+(t-n)/i+4)/6%1*360,100*i,100*(i<1?s/(1-i):0)]},i.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,a=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(a=(n-.5*r)/(1-r)),[e[0],100*r,100*a]},i.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},i.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var a,s=[0,0,0],i=t%1*6,o=i%1,l=1-o;switch(Math.floor(i)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=l,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=l,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=l}return a=(1-n)*r,[255*(n*s[0]+a),255*(n*s[1]+a),255*(n*s[2]+a)]},i.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,a=0;return r<1&&(a=(n-r)/(1-r)),[e[0],100*r,100*a]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=i.gray.hsv=function(e){return[0,0,e[0]]},i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},4732:(e,t,n)=>{var r=n(6481),a=n(1157),s={};Object.keys(r).forEach(function(e){s[e]={},Object.defineProperty(s[e],"channels",{value:r[e].channels}),Object.defineProperty(s[e],"labels",{value:r[e].labels});var t=a(e);Object.keys(t).forEach(function(n){var r,a,i=t[n];s[e][n]=(r=function(e){if(null==e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var t=i(e);if("object"==typeof t)for(var n=t.length,r=0;r1&&(e=Array.prototype.slice.call(arguments)),i(e))},"conversion"in i&&(a.conversion=i.conversion),a)})}),e.exports=s},1157:(e,t,n)=>{var r=n(6481);e.exports=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(r),n=t.length,a=0;a{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4877:e=>{e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},6138:(e,t,n)=>{var r=n(4877),a=n(301),s=Object.hasOwnProperty,i=Object.create(null);for(var o in r)s.call(r,o)&&(i[r[o]]=o);var l=e.exports={to:{},get:{}};function E(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,a,i=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(a=t[2],t=t[1],n=0;n<3;n++){var o=2*n;i[n]=parseInt(t.slice(o,o+2),16)}a&&(i[3]=parseInt(a,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(a=(t=t[1])[3],n=0;n<3;n++)i[n]=parseInt(t[n]+t[n],16);a&&(i[3]=parseInt(a+a,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)i[n]=parseInt(t[n+1],0);t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:s.call(r,t[1])?((i=r[t[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?i[3]=.01*parseFloat(t[4]):i[3]=parseFloat(t[4]))}for(n=0;n<3;n++)i[n]=E(i[n],0,255);return i[3]=E(i[3],0,1),i},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,E(parseFloat(t[2]),0,100),E(parseFloat(t[3]),0,100),E(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,E(parseFloat(t[2]),0,100),E(parseFloat(t[3]),0,100),E(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=a(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=a(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=a(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=a(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=a(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return i[e.slice(0,3)]}},3639:(e,t,n)=>{var r=n(6138),a=n(4732),s=[].slice,i=["keyword","gray","hex"],o={};Object.keys(a).forEach(function(e){o[s.call(a[e].labels).sort().join("")]=e});var l={};function E(e,t){if(!(this instanceof E))return new E(e,t);if(t&&t in i&&(t=null),t&&!(t in a))throw Error("Unknown model: "+t);if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof E)this.model=e.model,this.color=e.color.slice(),this.valpha=e.valpha;else if("string"==typeof e){var n,u,c=r.get(e);if(null===c)throw Error("Unable to parse color from string: "+e);this.model=c.model,u=a[this.model].channels,this.color=c.value.slice(0,u),this.valpha="number"==typeof c.value[u]?c.value[u]:1}else if(e.length){this.model=t||"rgb",u=a[this.model].channels;var T=s.call(e,0,u);this.color=d(T,u),this.valpha="number"==typeof e[u]?e[u]:1}else if("number"==typeof e)e&=0xffffff,this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;var p=Object.keys(e);"alpha"in e&&(p.splice(p.indexOf("alpha"),1),this.valpha="number"==typeof e.alpha?e.alpha:0);var _=p.sort().join("");if(!(_ in o))throw Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[_];var h=a[this.model].labels,f=[];for(n=0;nn?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},isLight:function(){return!this.isDark()},negate:function(){for(var e=this.rgb(),t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten:function(e){var t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken:function(e){var t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate:function(e){var t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate:function(e){var t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten:function(e){var t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken:function(e){var t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale:function(){var e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return E.rgb(t,t,t)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var t=this.hsl(),n=t.color[0];return n=(n=(n+e)%360)<0?360+n:n,t.color[0]=n,t},mix:function(e,t){if(!e||!e.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);var n=e.rgb(),r=this.rgb(),a=void 0===t?.5:t,s=2*a-1,i=n.alpha()-r.alpha(),o=((s*i==-1?s:(s+i)/(1+s*i))+1)/2,l=1-o;return E.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*a+r.alpha()*(1-a))}},Object.keys(a).forEach(function(e){if(-1===i.indexOf(e)){var t=a[e].channels;E.prototype[e]=function(){if(this.model===e)return new E(this);if(arguments.length)return new E(arguments,e);var n,r="number"==typeof arguments[t]?t:this.valpha;return new E((Array.isArray(n=a[this.model][e].raw(this.color))?n:[n]).concat(r),e)},E[e]=function(n){return"number"==typeof n&&(n=d(s.call(arguments),t)),new E(n,e)}}}),e.exports=E},9784:e=>{var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise(function(n,r){var a;function s(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}_(e,t,i,{once:!0}),"error"!==t&&(a={once:!0},"function"==typeof e.on&&_(e,"error",s,a))})},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var i=10;function o(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function E(e,t,n,r){var a,s,i;if(o(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),s=e._events),i=s[t]),void 0===i)i=s[t]=n,++e._eventsCount;else if("function"==typeof i?i=s[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(a=l(e))>0&&i.length>a&&!i.warned){i.warned=!0;var E=Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");E.name="MaxListenersExceededWarning",E.emitter=e,E.type=t,E.count=i.length,console&&console.warn&&console.warn(E)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function c(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function d(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var i,o=Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var E=l.length,u=p(l,E);for(n=0;n=0;s--)if(n[s]===t||n[s].listener===t){i=n[s].listener,a=s;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):T.call(e,t)},s.prototype.listenerCount=T,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4263:e=>{e.exports=function(e,t){for(var n,r=arguments.length,a=Array(r>2?r-2:0),s=2;s{e.exports.Dispatcher=n(9808)},9808:(e,t,n)=>{function r(e,t,n){var r;return(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(4263),s=function(){function e(){r(this,"_callbacks",void 0),r(this,"_isDispatching",void 0),r(this,"_isHandled",void 0),r(this,"_isPending",void 0),r(this,"_lastID",void 0),r(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=e.prototype;return t.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},t.unregister=function(e){this._callbacks[e]||a(!1),delete this._callbacks[e]},t.waitFor=function(e){this._isDispatching||a(!1);for(var t=0;t{e.exports=function(e){return!(!e||"string"==typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},3989:(e,t,n)=>{var r="__lodash_placeholder__",a=1/0,s=NaN,i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],o=/^\s+|\s+$/g,l=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,E=/\{\n\/\* \[wrapped with (.+)\] \*/,u=/,? & /,c=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,T=/^\[object .+?Constructor\]$/,p=/^0o[0-7]+$/i,_=/^(?:0|[1-9]\d*)$/,h=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,S="object"==typeof self&&self&&self.Object===Object&&self,R=f||S||Function("return this")();function A(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function O(e){return e!=e}function N(e,t){for(var n=-1,a=e.length,s=0,i=[];++n2?m:void 0);function G(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n,r=j(n=e.prototype)?U(n):{},a=e.apply(r,t);return j(a)?a:r}}function F(e,t,n,r,a,s,i,o,l,E){var u=128&t,c=1&t,d=2&t,T=24&t,p=512&t,h=d?void 0:G(e);return function f(){for(var S=arguments.length,A=Array(S),O=S;O--;)A[O]=arguments[O];if(T)var I=H(f),m=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}(A,I);if(r&&(A=function(e,t,n,r){for(var a=-1,s=e.length,i=n.length,o=-1,l=t.length,E=x(s-i,0),u=Array(l+E),c=!r;++o-1&&i%1==0&&i1&&A.reverse(),u&&l-1||r.push(t)}),s=r.sort()).length)-1,s[c]=(o>1?"& ":"")+s[c],s=s.join(o>2?", ":" "),d=T.replace(l,`{ /* [wrapped with `+s+`] */ `),function(){return d})})}:function(e){return e};function W(e,t,n){var r=function(e,t,n,r,a,s,i,o){var l=2&t;if(!l&&"function"!=typeof e)throw TypeError("Expected a function");var E=r?r.length:0;if(E||(t&=-97,r=a=void 0),i=void 0===i?i:x(X(i),0),o=void 0===o?o:X(o),E-=a?a.length:0,64&t){var u=r,c=a;r=a=void 0}var d=[e,t,n,r,a,u,c,s,i,o];if(e=d[0],t=d[1],n=d[2],r=d[3],a=d[4],(o=d[9]=null==d[9]?l?0:e.length:x(d[9]-E,0))||!(24&t)||(t&=-25),t&&1!=t)D=8==t||16==t?(T=e,p=t,_=o,h=G(T),function e(){for(var t=arguments.length,n=Array(t),r=t,a=H(e);r--;)n[r]=arguments[r];var s=t<3&&n[0]!==a&&n[t-1]!==a?[]:N(n,a);return(t-=s.length)<_?B(T,p,F,e.placeholder,void 0,n,s,void 0,void 0,_-t):A(this&&this!==R&&this instanceof e?h:T,this,n)}):32!=t&&33!=t||a.length?F.apply(void 0,d):(f=e,S=t,O=n,I=r,m=1&S,C=G(f),function e(){for(var t=-1,n=arguments.length,r=-1,a=I.length,s=Array(a+n),i=this&&this!==R&&this instanceof e?C:f;++r{var r=n(8336),a=Array.prototype.concat,s=Array.prototype.slice,i=e.exports=function(e){for(var t=[],n=0,i=e.length;n{t.exports=e}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch{if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,n||"default");if("object"!=e(a))return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function n(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function s(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 i(e){for(var t=1;ttt});var _=r(4119),h=r.n(_);function f(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function S(e){this.setState((function(t){return this.constructor.getDerivedStateFromProps(e,t)??null}).bind(this))}function R(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function A(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,a=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?a="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==a)throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. `+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==n?` `+n:"")+(null!==r?` `+r:"")+(null!==a?` `+a:"")+` The above lifecycles should be removed. Learn more about this warning here: https://fb.me/react-async-component-lifecycle-hooks`);if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=f,t.componentWillReceiveProps=S),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=R;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}function O(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function N(e,t){if(null==e)return{};var n,r,a=O(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;re.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s,i,o=[],l=!0,E=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){E=!0,a=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(E)throw a}}return o}}(e,t)||b(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var D=r(9446),P=r(3639),M=r.n(P),U=r(3989),x=r.n(U);function w(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 k(e){for(var t=1;t1?r-1:0),s=1;s1?r-1:0),s=1;s1?r-1:0),s=1;s1?r-1:0),s=1;s1?r-1:0),s=1;s2?r-2:0),s=2;s1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.defaultBase16,a=void 0===r?G:r,s=t.base16Themes,i=j(n,void 0===s?null:s);i&&(n=k(k({},i),n));for(var o=F.reduce(function(e,t){return e[t]=n[t]||a[t],e},{}),l=Object.keys(n).reduce(function(e,t){return -1===F.indexOf(t)&&(e[t]=n[t]),e},{}),E=e(o),u=Y(l,E),c=arguments.length,d=Array(c>3?c-3:0),T=3;Ttypeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var Q=r(9784);let ee=new(r(9361)).Dispatcher;var et=new(function(e){function t(){var e;o(this,t);for(var n=arguments.length,r=Array(n),a=0;atypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw s}}}}(a);try{for(c.s();!(o=c.n()).done;)u=u[o.value]}catch(e){c.e(e)}finally{c.f()}return i?"array"==I(u)?u.splice(r,1):delete u[r]:null!==r?u[r]=s:E=s,e.set(t,"global","src",E),E},e.deepCopy=function(t,n){var r,a=I(t),s=n.shift();return"array"==a?r=q(t):"object"==a&&(r=i({},t)),void 0!==s&&(r[s]=e.deepCopy(t[s],n)),r},e}return p(t,e),E(t)}(Q.EventEmitter));ee.register(et.handleAction.bind(et));var en=function(e){function t(e){var n;return o(this,t),(n=d(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},function(){et.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)})},n.getFunctionDisplay=function(e){var t=n.props;return e?h().createElement("span",null,n.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),h().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},h().createElement("span",null,"{"),h().createElement("span",K(t.theme,"ellipsis"),"..."),h().createElement("span",null,"}"))):n.props.value.toString().slice(9,-1)},n.state={collapsed:et.get(e.rjvId,e.namespace,"collapsed",!0)},n}return p(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return h().createElement("div",K(e.theme,"function"),h().createElement($,Object.assign({type_name:"function"},e)),h().createElement("span",Object.assign({},K(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}])}(h().PureComponent),er=function(e){function t(){return o(this,t),d(this,t,arguments)}return p(t,e),E(t,[{key:"render",value:function(){return h().createElement("div",K(this.props.theme,"nan"),"NaN")}}])}(h().PureComponent),ea=function(e){function t(){return o(this,t),d(this,t,arguments)}return p(t,e),E(t,[{key:"render",value:function(){return h().createElement("div",K(this.props.theme,"null"),"NULL")}}])}(h().PureComponent),es=function(e){function t(){return o(this,t),d(this,t,arguments)}return p(t,e),E(t,[{key:"render",value:function(){var e=this.props;return h().createElement("div",K(e.theme,"integer"),h().createElement($,Object.assign({type_name:"int"},e)),this.props.value)}}])}(h().PureComponent),ei=function(e){function t(){return o(this,t),d(this,t,arguments)}return p(t,e),E(t,[{key:"render",value:function(){var e=this.props;return h().createElement("div",K(e.theme,"regexp"),h().createElement($,Object.assign({type_name:"regexp"},e)),this.props.value.toString())}}])}(h().PureComponent),eo=function(e){function t(e){var n;return o(this,t),(n=d(this,t,[e])).toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},function(){et.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)})},n.state={collapsed:et.get(e.rjvId,e.namespace,"collapsed",!0)},n}return p(t,e),E(t,[{key:"render",value:function(){var e=this.props,t=e.collapseStringsAfterLength,n=e.theme,r=e.value,a="integer"===I(t),s={style:{cursor:"default"}};return r=m(r),a&&r.length>t&&(s.style.cursor="pointer",this.state.collapsed&&(r=h().createElement("span",null,r.substring(0,t),h().createElement("span",K(n,"ellipsis")," ...")))),h().createElement("div",K(n,"string"),h().createElement($,Object.assign({type_name:"string"},e)),h().createElement("span",Object.assign({className:"string-value"},s,{onClick:this.toggleCollapsed}),'"',r,'"'))}}])}(h().PureComponent),el=function(e){function t(){return o(this,t),d(this,t,arguments)}return p(t,e),E(t,[{key:"render",value:function(){return h().createElement("div",K(this.props.theme,"undefined"),"undefined")}}])}(h().PureComponent);function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t0?s:null,namespace:a.splice(0,a.length-1),existing_value:o,variable_removed:!1,key_name:null};"object"===I(o)?ee.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:l,data:e}):ee.dispatch({name:"VARIABLE_ADDED",rjvId:l,data:i(i({},e),{},{new_value:[].concat(q(o),[null])})})}})))},e.getRemoveObject=function(t){var n=e.props,r=n.theme,a=n.namespace,s=n.name,i=n.src,o=n.rjvId;if(1!==a.length)return h().createElement("span",{className:"click-to-remove",style:{display:t?"inline-block":"none"}},h().createElement(eY,Object.assign({className:"click-to-remove-icon"},K(r,"removeVarIcon"),{onClick:function(){ee.dispatch({name:"VARIABLE_REMOVED",rjvId:o,data:{name:s,namespace:a.splice(0,a.length-1),existing_value:i,variable_removed:!0}})}})))},e.render=function(){var t=e.props,n=t.theme,r=t.onDelete,a=t.onAdd,s=t.enableClipboard,i=t.src,o=t.namespace,l=t.rowHovered;return h().createElement("div",Object.assign({},K(n,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),e.getObjectSize(),s?h().createElement(e$,{rowHovered:l,clickCallback:s,src:i,theme:n,namespace:o}):null,!1!==a?e.getAddAttribute(l):null,!1!==r?e.getRemoveObject(l):null)},e}return p(t,e),E(t)}(h().PureComponent);function eZ(e){var t=e.parent_type,n=e.namespace,r=e.quotesOnKeys,a=e.theme,s=e.jsvRoot,i=e.name,o=e.displayArrayKey,l=e.name?e.name:"";return s&&(!1===i||null===i)?h().createElement("span",null):"array"==t?o?h().createElement("span",Object.assign({},K(a,"array-key"),{key:n}),h().createElement("span",{className:"array-key"},l),h().createElement("span",K(a,"colon"),":")):h().createElement("span",null):h().createElement("span",Object.assign({},K(a,"object-name"),{key:n}),h().createElement("span",{className:"object-key"},r&&h().createElement("span",{style:{verticalAlign:"top"}},'"'),h().createElement("span",null,l),r&&h().createElement("span",{style:{verticalAlign:"top"}},'"')),h().createElement("span",K(a,"colon"),":"))}function eq(e){var t=e.theme;switch(e.iconStyle){case"triangle":return h().createElement(eB,Object.assign({},K(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return h().createElement(ek,Object.assign({},K(t,"expanded-icon"),{className:"expanded-icon"}));default:return h().createElement(ex,Object.assign({},K(t,"expanded-icon"),{className:"expanded-icon"}))}}function eQ(e){var t=e.theme;switch(e.iconStyle){case"triangle":return h().createElement(eF,Object.assign({},K(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return h().createElement(eG,Object.assign({},K(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return h().createElement(ew,Object.assign({},K(t,"collapsed-icon"),{className:"collapsed-icon"}))}}var e0=["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"],e1=function(e){function t(e){var n;return o(this,t),(n=d(this,t,[e])).toggleCollapsed=function(e){var t=[];for(var r in n.state.expanded)t.push(n.state.expanded[r]);t[e]=!t[e],n.setState({expanded:t})},n.state={expanded:[]},n}return p(t,e),E(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?h().createElement(eq,{theme:n,iconStyle:r}):h().createElement(eQ,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,a=t.name,s=t.theme,i=t.jsvRoot,o=t.namespace,l=N(t,e0),E=0,u=5*this.props.indentWidth;i||(E=5*this.props.indentWidth);var c=Math.ceil(n.length/r);return h().createElement("div",Object.assign({className:"object-key-val"},K(s,i?"jsv-root":"objectKeyVal",{paddingLeft:E})),h().createElement(eZ,this.props),h().createElement("span",null,h().createElement(eJ,Object.assign({size:n.length},this.props))),q(Array(c)).map(function(t,i){return h().createElement("div",Object.assign({key:i,className:"object-key-val array-group"},K(s,"objectKeyVal",{marginLeft:6,paddingLeft:u})),h().createElement("span",K(s,"brace-row"),h().createElement("div",Object.assign({className:"icon-container"},K(s,"icon-container"),{onClick:function(t){e.toggleCollapsed(i)}}),e.getExpandedIcon(i)),e.state.expanded[i]?h().createElement(e4,Object.assign({key:a+i,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:r,index_offset:i*r,src:n.slice(i*r,i*r+r),namespace:o,type:"array",parent_type:"array_group",theme:s},l)):h().createElement("span",Object.assign({},K(s,"brace"),{onClick:function(t){e.toggleCollapsed(i)},className:"array-group-brace"}),"[",h().createElement("div",Object.assign({},K(s,"array-group-meta-data"),{className:"array-group-meta-data"}),h().createElement("span",Object.assign({className:"object-size"},K(s,"object-size")),i*r," - ",i*r+r>n.length?n.length:i*r+r)),"]")))}))}}])}(h().PureComponent),e2=["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"],e5=function(e){function t(e){o(this,t),(n=d(this,t,[e])).toggleCollapsed=function(){n.setState({expanded:!n.state.expanded},function(){et.set(n.props.rjvId,n.props.namespace,"expanded",n.state.expanded)})},n.getObjectContent=function(e,t,r){return h().createElement("div",{className:"pushed-content object-container"},h().createElement("div",Object.assign({className:"object-content"},K(n.props.theme,"pushed-content")),n.renderObjectContents(t,r)))},n.getEllipsis=function(){return 0===n.state.size?null:h().createElement("div",Object.assign({},K(n.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:n.toggleCollapsed}),"...")},n.getObjectMetaData=function(e){var t=n.state,r=t.size,a=t.hovered;return h().createElement(eJ,Object.assign({rowHovered:a,size:r},n.props))},n.renderObjectContents=function(e,t){var r,a=n.props,s=a.depth,i=a.parent_type,o=a.index_offset,l=a.groupArraysAfterLength,E=a.namespace,u=n.state.object_type,c=[],d=Object.keys(e||{});return n.props.sortKeys&&"array"!==u&&(d=d.sort()),d.forEach(function(a){if(r=new e3(a,e[a]),"array_group"===i&&o&&(r.name=parseInt(r.name)+o),e.hasOwnProperty(a)){if("object"===r.type)c.push(h().createElement(e4,Object.assign({key:r.name,depth:s+1,name:r.name,src:r.value,namespace:E.concat(r.name),parent_type:u},t)));else if("array"===r.type){var d=e4;l&&r.value.length>l&&(d=e1),c.push(h().createElement(d,Object.assign({key:r.name,depth:s+1,name:r.name,src:r.value,namespace:E.concat(r.name),type:"array",parent_type:u},t)))}else c.push(h().createElement(ez,Object.assign({key:r.name+"_"+E,variable:r,singleIndent:5,namespace:E,type:n.props.type},t)))}}),c};var n,r=t.getState(e);return n.state=i(i({},r),{},{prevProps:{}}),n}return p(t,e),E(t,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,a=r.src,s=r.theme,i=r.iconStyle;return"array_group"===r.parent_type?h().createElement("span",null,h().createElement("span",K(s,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(a):null):h().createElement("span",null,h().createElement("span",Object.assign({onClick:function(e){n.toggleCollapsed()}},K(s,"brace-row")),h().createElement("div",Object.assign({className:"icon-container"},K(s,"icon-container")),h().createElement(t?eq:eQ,{theme:s,iconStyle:i})),h().createElement(eZ,this.props),h().createElement("span",K(s,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(a):null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.depth,r=t.src,a=t.parent_type,s=t.theme,o=t.jsvRoot,l=t.iconStyle,E=N(t,e2),u=this.state,c=u.object_type,d=u.expanded,T={};return o||"array_group"===a?"array_group"===a&&(T.borderLeft=0,T.display="inline"):T.paddingLeft=5*this.props.indentWidth,h().createElement("div",Object.assign({className:"object-key-val",onMouseEnter:function(){return e.setState(i(i({},e.state),{},{hovered:!0}))},onMouseLeave:function(){return e.setState(i(i({},e.state),{},{hovered:!1}))}},K(s,o?"jsv-root":"objectKeyVal",T)),this.getBraceStart(c,d),d?this.getObjectContent(n,r,i({theme:s,iconStyle:l},E)):this.getEllipsis(),h().createElement("span",{className:"brace-row"},h().createElement("span",{style:i(i({},K(s,"brace").style),{},{paddingLeft:d?"3px":"0px"})},"array"===c?"]":"}"),d?null:this.getObjectMetaData(r)))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r=n.prevProps;return e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId?i(i({},t.getState(e)),{},{prevProps:e}):null}}])}(h().PureComponent);e5.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:I(e.src),namespace:e.namespace}))&&0!==t;return{expanded:et.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t,hovered:!1}};var e3=E(function e(t,n){o(this,e),this.name=t,this.value=n,this.type=I(n)});A(e5);let e4=e5;var e6=function(e){function t(){var e;o(this,t);for(var n=arguments.length,r=Array(n),a=0;as.groupArraysAfterLength&&(o=e1),h().createElement("div",{className:"pretty-json-container object-container"},h().createElement("div",{className:"object-content"},h().createElement(o,Object.assign({namespace:i,depth:0,jsvRoot:!0},s))))},e}return p(t,e),E(t)}(h().PureComponent),e8=function(e){function t(e){var n;return o(this,t),(n=d(this,t,[e])).closeModal=function(){ee.dispatch({rjvId:n.props.rjvId,name:"RESET"})},n.submit=function(){n.props.submit(n.state.input)},n.state={input:e.input?e.input:""},n}return p(t,e),E(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,a=t.isValid,s=this.state.input,i=a(s);return h().createElement("div",Object.assign({className:"key-modal-request"},K(n,"key-modal-request"),{onClick:this.closeModal}),h().createElement("div",Object.assign({},K(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),h().createElement("div",K(n,"key-modal-label"),"Key Name:"),h().createElement("div",{style:{position:"relative"}},h().createElement("input",Object.assign({},K(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:s,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){i&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),i?h().createElement(eX,Object.assign({},K(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),h().createElement("span",K(n,"key-modal-cancel"),h().createElement(eW,Object.assign({},K(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){ee.dispatch({rjvId:r,name:"RESET"})}})))))}}])}(h().PureComponent),e7=function(e){function t(){var e;o(this,t);for(var n=arguments.length,r=Array(n),a=0;a{};function dZ({src:e,type:t}){return"object"===t?Object.keys(e).length>10:"array"===t&&e.length>10}function dq({data:e,onUpdateData:t=dJ,editingEnabled:n=!1,clipboardEnabled:r=!0,displayDataTypes:a=!1,quotesOnKeys:s=!1,name:i=null,collapseStringsAfterLength:o=80}){return eI.jsx(null,{theme:"bright",displayDataTypes:a,quotesOnKeys:s,shouldCollapse:dZ,collapseStringsAfterLength:o,name:i,src:e,enableClipboard:r,onEdit:n&&(e=>{if("error"===e.new_value)return!1;t(e.updated_src)}),onDelete:n&&(e=>{if("error"===e.new_value)return!1;t(e.updated_src)}),onAdd:n&&(e=>{if("error"===e.new_value)return!1;t(e.updated_src)})})}function dQ({event:e}){var t;let n=(Array.isArray(e.breadcrumbs)?e.breadcrumbs:Array.isArray(null==(t=e.breadcrumbs)?void 0:t.values)?e.breadcrumbs.values:[]).filter(e=>e.message||e.data);return n.length?eI.jsx("div",{className:"flex-1 px-6 py-4",children:eI.jsx("div",{className:"divide-primary-800 grid-cols-2-auto -mx-2 grid space-y-2 divide-y",children:n.map((e,t)=>eI.jsxs(ep.Fragment,{children:[eI.jsxs("div",{className:"flex flex-none flex-col p-2",children:[eI.jsx("div",{className:"text-lg font-semibold",children:e.category||" "}),eI.jsx("div",{className:"text-primary-300 text-xs",children:eI.jsx(d$,{date:e.timestamp,format:"HH:mm:ss"})})]}),e.data?eI.jsx(dq,{data:e.data}):eI.jsx("pre",{className:E5("flex grow items-center whitespace-pre-line p-2 !font-mono",0===t?"!border-t-0":""),children:e.message})]},`${e.timestamp}-${e.category}-${e.type}`))})}):eI.jsxs("div",{className:"flex-1 space-y-4 px-6 py-4",children:[eI.jsx("div",{className:"text-primary-300",children:"No breadcrumbs available for this event. Try adding some to make debugging easier."}),eI.jsx("pre",{className:"whitespace-pre-wrap ",children:null})]})}function d0({tagKey:e,value:t,flowing:n=!1,maxWidth:r="400px"}){return t?eI.jsxs("div",{className:E5("border-primary-300 bg-primary-900 divide-x-primary-300 inline-flex divide-x overflow-hidden whitespace-nowrap rounded-full border font-mono text-sm",n&&"max-w-full"),children:[e&&eI.jsx("div",{className:"px-2 py-1 font-semibold",children:e}),eI.jsx("div",{title:t,className:E5("bg-primary-800 truncate px-2 py-1",n?"max-w-full":"max-w-none"),style:{maxWidth:n?"100%":r},children:t})]}):null}function d1({tags:e}){return eI.jsx("div",{className:"flex flex-row flex-wrap gap-2 pt-2",children:Object.keys(e).map(t=>eI.jsx(d0,{tagKey:t,value:e[t]},t))})}let d2=`Sentry.setContext("character", { name: "Mighty Fighter", age: 19, attack_type: "melee", });`,d5=eI.jsxs("div",{className:"space-y-4 px-6 py-4",children:[eI.jsx("div",{className:"text-primary-300",children:"No context available for this event. Try adding some to make debugging easier."}),eI.jsx("pre",{className:"whitespace-pre-wrap",children:d2})]});function d3({event:e}){if(!e)return d5;let t={request:e.request,...e.contexts};e.extra&&(t.extra=e.extra),e.modules&&(t.extra=Object.assign(t.extra||{},{modules:e.modules}));let n=Object.entries(t).filter(e=>e[1]),{tags:r}=e;return 0!==n.length||r?eI.jsxs("div",{className:"space-y-4 px-6 py-4",children:[r&&eI.jsxs("div",{className:"pb-4",children:[eI.jsx("h2",{className:"font-bold uppercase",children:"Tags"}),eI.jsx(d1,{tags:r})]}),eI.jsx("div",{className:"space-y-6",children:n.map(([e,t])=>eI.jsxs("div",{children:[eI.jsx("h2",{className:"font-bold uppercase",children:e}),eI.jsx("table",{className:"w-full",children:eI.jsx("tbody",{children:Object.entries(t).map(([t,n])=>eI.jsxs("tr",{children:[eI.jsx("th",{className:"text-primary-300 w-1/12 py-0.5 pr-4 text-left font-mono font-normal",children:eI.jsx("div",{className:"w-full truncate",children:t})}),eI.jsx("td",{className:"py-0.5",children:"object"==typeof n&&n?eI.jsx(dq,{data:n},`${e}-${t}`):eI.jsx("pre",{className:"text-primary-300 whitespace-nowrap font-mono",children:JSON.stringify(n)})})]},`${e}-${t}`))})})]},e))})]}):d5}function d4(e){return eI.jsx("span",{className:"bg-primary-800 inline-flex items-center rounded-md px-1.5 py-0.5 text-xs font-medium",...e})}function d6(e){return eI.jsx("div",{className:"divide-primary-900 border-primary-900 bg-primary-950 divide-y border-y",...e})}var d8={exports:{}};!function(e,t){var n;n=function(){return function(e,t,n){e=e||{};var r=t.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(e,t,n,a){return r.fromToBase(e,t,n,a)}n.en.relativeTime=a,r.fromToBase=function(t,r,s,i,o){for(var l,E,u,c=s.$locale().relativeTime||a,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],T=d.length,p=0;p0,h<=_.r||!_.r){h<=1&&p>0&&(_=d[p-1]);var f=c[_.l];o&&(h=o(""+h)),E="string"==typeof f?f.replace("%d",h):f(h,r,_.l,u);break}}if(r)return E;var S=u?c.future:c.past;return"function"==typeof S?S(E):S.replace("%s",E)},r.to=function(e,t){return s(e,t,this,!0)},r.from=function(e,t){return s(e,t,this)};var i=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(i(this),e)},r.fromNow=function(e){return this.from(i(this),e)}}},e.exports=n()}(d8);let d7=v(d8.exports);var d9="u">typeof window?ep.useLayoutEffect:ep.useEffect;function Te({date:e,...t}){let[n,r]=ep.useState(e?dj(e).fromNow():null);return function(e,t){let n=ep.useRef(e);d9(()=>{n.current=e},[e]),ep.useEffect(()=>{let e=setTimeout(()=>{n.current()},5e3);return()=>{clearTimeout(e)}},[5e3])}(()=>{e||r(null),r(dj(e).fromNow())},0),e?eI.jsx("time",{dateTime:e instanceof Date?e.toISOString():`${e}`,...t,children:n}):null}dj.extend(d7);let Tt=e_.createContext({events:[],setEvents:()=>{}});function Tn(e,t){if(Array.isArray(t.e)){if("RESET"===t.action)return t.e}else if("APPEND"===t.action)return[t.e,...e];return e}let Tr=({children:e})=>{let[t,n]=ep.useReducer(Tn,uu.getEvents());return ep.useEffect(()=>uu.subscribe("event",e=>{n({action:"APPEND",e:e})}),[]),eI.jsx(Tt.Provider,{value:{events:t,setEvents:n},children:e})},Ta=e=>(ep.useContext(Tt),e?uu.getEventsByTrace(e):uu.getEvents()),Ts=()=>(ep.useContext(Tt),{isLocalToSession:e=>uu.isTraceLocal(e)}),Ti=(e="")=>e.substring(0,8);function To({itemCount:e,...t}){return eI.jsxs("button",{className:"bg-primary-900 hover:bg-primary-800 text-primary-200 flex w-full cursor-pointer items-center gap-x-4 px-6 py-2 text-sm",...t,children:[eI.jsxs("strong",{children:[e.toLocaleString()," ",1!==e?"items were":"item was"," hidden from different sessions."]}),eI.jsx("span",{className:"hover:bg-primary-900 border-primary-500 rounded border px-1.5 py-0.5",children:"Reveal"})]})}function Tl({traceId:e}){let t=Ta(e),n=Ts(),r=db(),a=t.filter(e=>"transaction"!==e.type),[s,i]=ep.useState(!r.experiments["sentry:focus-local-events"]),o=s?a:a.filter(e=>{var t,r,a,s;return(null!=(r=null==(t=e.contexts)?void 0:t.trace)&&r.trace_id?n.isLocalToSession(null==(s=null==(a=e.contexts)?void 0:a.trace)?void 0:s.trace_id):null)!==!1}),l=a.length-o.length;return 0!==a.length?eI.jsxs(d6,{children:[l>0&&eI.jsx(To,{itemCount:l,onClick:()=>{i(!0)}}),o.map(e=>{var t,r;let a=null==(r=null==(t=e.contexts)?void 0:t.trace)?void 0:r.trace_id;return eI.jsxs(null,{className:"hover:bg-primary-900 flex cursor-pointer items-center gap-x-4 px-6 py-2",to:`/errors/${e.event_id}/details`,children:[eI.jsx(dO,{event:e,className:"text-primary-300 rounded-md"}),eI.jsxs("div",{className:"text-primary-300 flex w-48 flex-col truncate font-mono text-sm",children:[eI.jsxs("div",{className:"flex items-center gap-x-2",children:[eI.jsx("div",{children:Ti(e.event_id)}),a&&n.isLocalToSession(a)?eI.jsx(d4,{title:"This event is part of your local session.",children:"Local"}):null]}),eI.jsx("span",{}),eI.jsx(Te,{date:e.timestamp})]}),eI.jsx("div",{className:"flex-1",children:eI.jsx(dY,{event:e})})]},e.event_id)})]}):eI.jsx("div",{className:"text-primary-300 p-6",children:"Looks like there's no events recorded matching this query. \uD83E\uDD14"})}let TE=()=>{ep.useContext(Tt);let e=Ts(),t=uu.getEnvelopes(),n=t.filter(({envelope:t})=>{var n;let{trace_id:r}=(null==(n=t[0])?void 0:n.trace)||{};return!!r&&!1!==e.isLocalToSession(r)});return{allEnvelopes:t,localEnvelopes:n}};function Tu({title:e,subtitle:t,backto:n}){return eI.jsxs("div",{className:"border-b-primary-400 mb-4 flex border-b pb-4",children:[eI.jsxs("div",{className:"flex-1",children:[eI.jsx("h2",{className:"text-primary-300 text-xl",children:e}),t&&eI.jsx("h3",{className:"font-mono",children:t})]}),eI.jsx(null,{className:"hover:bg-primary-900 -my-1 flex cursor-pointer items-center justify-center rounded px-6 py-1 font-mono text-2xl",to:n,children:"✕"})]})}function Tc(e){let t=EF();return eI.jsx("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-10 bg-black bg-opacity-30",onClick:()=>t(e.backto),children:eI.jsx("div",{onClick:e=>e.stopPropagation(),className:"spotlight-sidepanel border-l-primary-400 from-primary-900 to-primary-950 fixed bottom-0 left-1/4 right-0 top-0 z-20 flex h-full flex-col overflow-auto border-l bg-gradient-to-br to-20% px-6 py-4",...e})})}function Td({data:e}){let[t,n]=ep.useState(!1),{envelope:r,rawEnvelope:a}=e,s=r[0],i=r[1];return eI.jsxs(Tc,{backto:"/explore/envelopes",children:[eI.jsx(Tu,{title:"Envelope Details",subtitle:s.event_id?eI.jsxs(eI.Fragment,{children:["Event Id ",eI.jsx("span",{className:"text-primary-500",children:"—"})," ",s.event_id]}):void 0,backto:"/explore/envelopes"}),eI.jsxs("label",{htmlFor:"json-toggle",className:"mb-8 flex cursor-pointer items-center",children:[eI.jsxs("div",{className:"relative flex h-4 items-center gap-2",children:[eI.jsx("input",{id:"json-toggle",type:"checkbox",className:"sr-only",onChange:()=>n(e=>!e),checked:t}),eI.jsx("div",{className:"bg-primary-400 h-4 w-10 rounded-full shadow-inner"}),eI.jsx("div",{className:"dot absolute -left-1 -top-1 h-6 w-6 rounded-full bg-white shadow transition"})]}),eI.jsx("span",{className:"ml-2",children:"Show Raw Data"})]}),t?eI.jsx("div",{className:"flex-1 overflow-y-auto",children:eI.jsx(dq,{data:a})}):eI.jsxs("div",{className:"flex flex-col gap-6 space-y-6",children:[eI.jsxs("div",{children:[eI.jsx("h2",{className:"mb-4 text-xl font-semibold",children:"Header"}),eI.jsx(dq,{data:s})]}),eI.jsxs("div",{className:"flex flex-col gap-2",children:[eI.jsx("h2",{className:"mb-2 text-xl font-semibold",children:"Items"}),i.map((e,t)=>{var n;return eI.jsx(dq,{data:e},`${t}-${null==(n=e[0])?void 0:n.type}`)})]})]})]})}function TT(){let{eventId:e}=EB(),t=db(),n=Ts(),{allEnvelopes:r,localEnvelopes:a}=TE(),s=r.length-a.length,[i,o]=ep.useState(!t.experiments["sentry:focus-local-events"]),l=e&&uu.getEnvelopes().find(({envelope:t})=>t[0].event_id===e)||null;return null!=r&&r.length?eI.jsxs(eI.Fragment,{children:[s>0&&!i&&eI.jsx(To,{itemCount:s,onClick:()=>{o(!0)}}),eI.jsxs("div",{children:[eI.jsx("div",{className:"border-b-primary-700 flex w-full items-center justify-between border-b px-6 py-4",children:eI.jsx("h1",{className:"text-2xl font-bold",children:"Event Envelopes"})}),eI.jsx("div",{className:"flex flex-col",children:(i?r:a).map(({envelope:t})=>{var r,a;let s=t[0],i=s.event_id,{trace_id:o}=(null==s?void 0:s.trace)||{},l=t[1].length>0?t[1][0]:null;return"string"!=typeof i?null:eI.jsx(null,{to:`/explore/envelopes/${s.event_id}`,children:eI.jsxs("div",{className:E5("hover:bg-primary-900 border-b-primary-900 flex cursor-pointer items-center gap-4 border-b px-6 py-2 transition-all",e===i?"bg-primary-900":""),children:[eI.jsx(dO,{className:"rounded-md",platform:uo((null==(r=s.sdk)?void 0:r.name)||"unknown")}),eI.jsxs("div",{className:"text-primary-300 flex flex-[0.25] flex-col truncate font-mono text-sm",children:[eI.jsx("h2",{className:"text-primary-50 text-xs",children:"Event Id"}),eI.jsxs("div",{className:"flex items-center gap-x-2",children:[eI.jsx("div",{children:Ti(i)}),o&&n.isLocalToSession(o)?eI.jsx(d4,{title:"This trace is part of your local session.",children:"Local"}):null]})]}),eI.jsxs("div",{className:"text-primary-300 flex flex-[0.25] flex-col truncate font-mono text-sm",children:[eI.jsx("h2",{className:"text-primary-50 text-xs",children:"Type"}),null!=(a=null==l?void 0:l[0])&&a.type?l[0].type:"-"]}),eI.jsxs("div",{className:"text-primary-300 flex flex-[0.25] flex-col truncate font-mono text-sm",children:[eI.jsx("h2",{className:"text-primary-50 text-xs",children:"Received"}),s.sent_at?eI.jsx(Te,{date:s.sent_at}):"-"]})]})},i)})})]}),l&&eI.jsx(Td,{data:l})]}):eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"No Envelopes found."})}function Tp(){return eI.jsx(Tr,{children:eI.jsxs(EX,{children:[eI.jsx(Ej,{path:"/:eventId",element:eI.jsx(TT,{})}),eI.jsx(Ej,{path:"/",element:eI.jsx(TT,{})})]})})}let T_=()=>(ep.useContext(Tt),uu.getSdks());function Th(){let e=T_();return eI.jsx(eI.Fragment,{children:0!==e.length?eI.jsx(d6,{children:e.map(e=>eI.jsxs("div",{className:"flex items-center gap-x-4 px-6 py-2",children:[eI.jsx(dO,{className:"rounded-md",platform:uo(e.name)}),eI.jsxs("div",{className:"text-primary-300 flex flex-col truncate font-mono text-sm",children:[eI.jsx("div",{children:e.name}),eI.jsx("div",{children:e.version}),eI.jsx(Te,{date:e.lastSeen})]})]},`${e.name}-${e.version}`))}):eI.jsx("div",{className:"text-primary-300 p-6",children:"Looks like there's no SDKs that have reported yet. \uD83E\uDD14"})})}function Tf(){return eI.jsx(Tr,{children:eI.jsx(EX,{children:eI.jsx(Ej,{path:"/",element:eI.jsx(Th,{})})})})}function TS({trace:e}){let t=[...new Set((e.transactions||[]).map(e=>{var t;return uo((null==(t=e.sdk)?void 0:t.name)||"unknown")}))];if(0===t.length)return eI.jsx(dO,{className:"rounded-md",platform:"unknown"});if(1===t.length)return eI.jsx(dO,{className:"rounded-md",platform:t[0]});let n=t.slice(0,3),r=t.slice(3);return eI.jsxs("div",{className:"bg-primary-900 flex h-[42px] w-[42px] flex-wrap items-center justify-center overflow-hidden rounded-md",children:[n.map(e=>eI.jsx(dO,{title:e,size:21,platform:e},e)),r.length>0&&eI.jsx("div",{title:r.join(", "),className:"h-[21px] w-[21px] bg-black p-0.5 text-xs font-bold text-white",children:`+${r.length}`})]})}function TR({trace:e,flowing:t=!1}){var n,r,a,s,i;let o=String((null==(a=null==(r=null==(n=e.rootTransaction)?void 0:n.contexts)?void 0:r.trace.data)?void 0:a.method)||(null==(i=null==(s=e.rootTransaction)?void 0:s.request)?void 0:i.method)||""),l=o&&e.rootTransactionName.startsWith(o)?e.rootTransactionName.slice(o.length+1):e.rootTransactionName;return eI.jsx(d0,{tagKey:o,value:l,flowing:t})}function TA({trace:e}){return eI.jsxs("div",{className:"border-b-primary-700 bg-primary-950 flex items-center gap-x-2 border-b px-6 py-4",children:[eI.jsx(TS,{trace:e}),eI.jsxs("h1",{className:"flex w-full flex-1 items-center truncate text-2xl",children:["Trace:\xa0\xa0",eI.jsx(TR,{trace:e,flowing:!0})]})]})}let TO={yr:"yr",mo:"mo",wk:"wk",d:"d",hr:"hr",min:"min",s:"s",ms:"ms"};function TN(e,t){let n="string"==typeof e?new Date(e).getTime():e;return Math.floor(("string"==typeof t?new Date(t).getTime():t)-n)}function TI(e,t=2){return e%1!=0||e%1==0&&e.toString().includes(".")?e.toFixed(t):e.toFixed(0)}function Tm(e){return e>=315576e5?`${TI(e/315576e5)}${TO.yr}`:e>=26298e5?`${TI(e/26298e5)}${TO.mo}`:e>=6048e5?`${TI(e/6048e5)}${TO.wk}`:e>=864e5?`${TI(e/864e5)}${TO.d}`:e>=36e5?`${TI(e/36e5)}${TO.hr}`:e>=6e4?`${TI(e/6e4)}${TO.min}`:e>=1e3?`${TI(e/1e3)}${TO.s}`:`${TI(e)}${TO.ms}`}function TC({date:e,...t}){return e?eI.jsx("time",{dateTime:e instanceof Date?e.toISOString():`${e}`,...t,children:dj(e).format("LL LTS")}):null}dj.extend(dK),function(e){e.QUOTED_IDENTIFIER="QUOTED_IDENTIFIER",e.IDENTIFIER="IDENTIFIER",e.STRING="STRING",e.VARIABLE="VARIABLE",e.RESERVED_KEYWORD="RESERVED_KEYWORD",e.RESERVED_FUNCTION_NAME="RESERVED_FUNCTION_NAME",e.RESERVED_PHRASE="RESERVED_PHRASE",e.RESERVED_SET_OPERATION="RESERVED_SET_OPERATION",e.RESERVED_CLAUSE="RESERVED_CLAUSE",e.RESERVED_SELECT="RESERVED_SELECT",e.RESERVED_JOIN="RESERVED_JOIN",e.ARRAY_IDENTIFIER="ARRAY_IDENTIFIER",e.ARRAY_KEYWORD="ARRAY_KEYWORD",e.CASE="CASE",e.END="END",e.WHEN="WHEN",e.ELSE="ELSE",e.THEN="THEN",e.LIMIT="LIMIT",e.BETWEEN="BETWEEN",e.AND="AND",e.OR="OR",e.XOR="XOR",e.OPERATOR="OPERATOR",e.COMMA="COMMA",e.ASTERISK="ASTERISK",e.DOT="DOT",e.OPEN_PAREN="OPEN_PAREN",e.CLOSE_PAREN="CLOSE_PAREN",e.LINE_COMMENT="LINE_COMMENT",e.BLOCK_COMMENT="BLOCK_COMMENT",e.NUMBER="NUMBER",e.NAMED_PARAMETER="NAMED_PARAMETER",e.QUOTED_PARAMETER="QUOTED_PARAMETER",e.NUMBERED_PARAMETER="NUMBERED_PARAMETER",e.POSITIONAL_PARAMETER="POSITIONAL_PARAMETER",e.CUSTOM_PARAMETER="CUSTOM_PARAMETER",e.DELIMITER="DELIMITER",e.EOF="EOF"}(i||(i={}));let TL=e=>({type:i.EOF,raw:"\xabEOF\xbb",text:"\xabEOF\xbb",start:e}),Tg=TL(1/0),Ty=e=>t=>t.type===e.type&&t.text===e.text,Tb={ARRAY:Ty({text:"ARRAY",type:i.RESERVED_KEYWORD}),BY:Ty({text:"BY",type:i.RESERVED_KEYWORD}),SET:Ty({text:"SET",type:i.RESERVED_CLAUSE}),STRUCT:Ty({text:"STRUCT",type:i.RESERVED_KEYWORD}),WINDOW:Ty({text:"WINDOW",type:i.RESERVED_CLAUSE})},Tv=e=>e===i.RESERVED_KEYWORD||e===i.RESERVED_FUNCTION_NAME||e===i.RESERVED_PHRASE||e===i.RESERVED_CLAUSE||e===i.RESERVED_SELECT||e===i.RESERVED_SET_OPERATION||e===i.RESERVED_JOIN||e===i.ARRAY_KEYWORD||e===i.CASE||e===i.END||e===i.WHEN||e===i.ELSE||e===i.THEN||e===i.LIMIT||e===i.BETWEEN||e===i.AND||e===i.OR||e===i.XOR,TD=e=>e===i.AND||e===i.OR||e===i.XOR,TP=e=>e.flatMap(TM),TM=e=>TG(Tk(e)).map(e=>e.trim()),TU=/[^[\]{}]+/y,Tx=/\{.*?\}/y,Tw=/\[.*?\]/y,Tk=e=>{let t=0,n=[];for(;te.trim());n.push(["",...e]),t+=a[0].length}Tx.lastIndex=t;let s=Tx.exec(e);if(s){let e=s[0].slice(1,-1).split("|").map(e=>e.trim());n.push(e),t+=s[0].length}if(!r&&!a&&!s)throw Error(`Unbalanced parenthesis in: ${e}`)}return n},TG=([e,...t])=>void 0===e?[""]:TG(t).flatMap(t=>e.map(e=>e.trim()+" "+t.trim())),TF=e=>[...new Set(e)],TB=e=>e[e.length-1],TH=e=>e.sort((e,t)=>t.length-e.length||e.localeCompare(t)),TY=e=>e.reduce((e,t)=>Math.max(e,t.length),0),TV=e=>e.replace(/\s+/gu," "),TW=e=>TF(Object.values(e).flat()),Tj=e=>/\n/.test(e),TX=TW({keywords:["ALL","AND","ANY","ARRAY","AS","ASC","ASSERT_ROWS_MODIFIED","AT","BETWEEN","BY","CASE","CAST","COLLATE","CONTAINS","CREATE","CROSS","CUBE","CURRENT","DEFAULT","DEFINE","DESC","DISTINCT","ELSE","END","ENUM","ESCAPE","EXCEPT","EXCLUDE","EXISTS","EXTRACT","FALSE","FETCH","FOLLOWING","FOR","FROM","FULL","GROUP","GROUPING","GROUPS","HASH","HAVING","IF","IGNORE","IN","INNER","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LIKE","LIMIT","LOOKUP","MERGE","NATURAL","NEW","NO","NOT","NULL","NULLS","OF","ON","OR","ORDER","OUTER","OVER","PARTITION","PRECEDING","PROTO","RANGE","RECURSIVE","RESPECT","RIGHT","ROLLUP","ROWS","SELECT","SET","SOME","STRUCT","TABLE","TABLESAMPLE","THEN","TO","TREAT","TRUE","UNBOUNDED","UNION","UNNEST","USING","WHEN","WHERE","WINDOW","WITH","WITHIN"],datatypes:["ARRAY","BOOL","BYTES","DATE","DATETIME","GEOGRAPHY","INTERVAL","INT64","INT","SMALLINT","INTEGER","BIGINT","TINYINT","BYTEINT","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","FLOAT64","STRING","STRUCT","TIME","TIMEZONE"],stringFormat:["HEX","BASEX","BASE64M","ASCII","UTF-8","UTF8"],misc:["SAFE"],ddl:["LIKE","COPY","CLONE","IN","OUT","INOUT","RETURNS","LANGUAGE","CASCADE","RESTRICT","DETERMINISTIC"]}),TK=TW({aead:["KEYS.NEW_KEYSET","KEYS.ADD_KEY_FROM_RAW_BYTES","AEAD.DECRYPT_BYTES","AEAD.DECRYPT_STRING","AEAD.ENCRYPT","KEYS.KEYSET_CHAIN","KEYS.KEYSET_FROM_JSON","KEYS.KEYSET_TO_JSON","KEYS.ROTATE_KEYSET","KEYS.KEYSET_LENGTH"],aggregateAnalytic:["ANY_VALUE","ARRAY_AGG","AVG","CORR","COUNT","COUNTIF","COVAR_POP","COVAR_SAMP","MAX","MIN","ST_CLUSTERDBSCAN","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","VAR_POP","VAR_SAMP"],aggregate:["ANY_VALUE","ARRAY_AGG","ARRAY_CONCAT_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","COUNT","COUNTIF","LOGICAL_AND","LOGICAL_OR","MAX","MIN","STRING_AGG","SUM"],approximateAggregate:["APPROX_COUNT_DISTINCT","APPROX_QUANTILES","APPROX_TOP_COUNT","APPROX_TOP_SUM"],array:["ARRAY_CONCAT","ARRAY_LENGTH","ARRAY_TO_STRING","GENERATE_ARRAY","GENERATE_DATE_ARRAY","GENERATE_TIMESTAMP_ARRAY","ARRAY_REVERSE","OFFSET","SAFE_OFFSET","ORDINAL","SAFE_ORDINAL"],bitwise:["BIT_COUNT"],conversion:["PARSE_BIGNUMERIC","PARSE_NUMERIC","SAFE_CAST"],date:["CURRENT_DATE","EXTRACT","DATE","DATE_ADD","DATE_SUB","DATE_DIFF","DATE_TRUNC","DATE_FROM_UNIX_DATE","FORMAT_DATE","LAST_DAY","PARSE_DATE","UNIX_DATE"],datetime:["CURRENT_DATETIME","DATETIME","EXTRACT","DATETIME_ADD","DATETIME_SUB","DATETIME_DIFF","DATETIME_TRUNC","FORMAT_DATETIME","LAST_DAY","PARSE_DATETIME"],debugging:["ERROR"],federatedQuery:["EXTERNAL_QUERY"],geography:["S2_CELLIDFROMPOINT","S2_COVERINGCELLIDS","ST_ANGLE","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_AZIMUTH","ST_BOUNDARY","ST_BOUNDINGBOX","ST_BUFFER","ST_BUFFERWITHTOLERANCE","ST_CENTROID","ST_CENTROID_AGG","ST_CLOSESTPOINT","ST_CLUSTERDBSCAN","ST_CONTAINS","ST_CONVEXHULL","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DUMP","ST_DWITHIN","ST_ENDPOINT","ST_EQUALS","ST_EXTENT","ST_EXTERIORRING","ST_GEOGFROM","ST_GEOGFROMGEOJSON","ST_GEOGFROMTEXT","ST_GEOGFROMWKB","ST_GEOGPOINT","ST_GEOGPOINTFROMGEOHASH","ST_GEOHASH","ST_GEOMETRYTYPE","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_INTERSECTSBOX","ST_ISCOLLECTION","ST_ISEMPTY","ST_LENGTH","ST_MAKELINE","ST_MAKEPOLYGON","ST_MAKEPOLYGONORIENTED","ST_MAXDISTANCE","ST_NPOINTS","ST_NUMGEOMETRIES","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SIMPLIFY","ST_SNAPTOGRID","ST_STARTPOINT","ST_TOUCHES","ST_UNION","ST_UNION_AGG","ST_WITHIN","ST_X","ST_Y"],hash:["FARM_FINGERPRINT","MD5","SHA1","SHA256","SHA512"],hll:["HLL_COUNT.INIT","HLL_COUNT.MERGE","HLL_COUNT.MERGE_PARTIAL","HLL_COUNT.EXTRACT"],interval:["MAKE_INTERVAL","EXTRACT","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL"],json:["JSON_EXTRACT","JSON_QUERY","JSON_EXTRACT_SCALAR","JSON_VALUE","JSON_EXTRACT_ARRAY","JSON_QUERY_ARRAY","JSON_EXTRACT_STRING_ARRAY","JSON_VALUE_ARRAY","TO_JSON_STRING"],math:["ABS","SIGN","IS_INF","IS_NAN","IEEE_DIVIDE","RAND","SQRT","POW","POWER","EXP","LN","LOG","LOG10","GREATEST","LEAST","DIV","SAFE_DIVIDE","SAFE_MULTIPLY","SAFE_NEGATE","SAFE_ADD","SAFE_SUBTRACT","MOD","ROUND","TRUNC","CEIL","CEILING","FLOOR","COS","COSH","ACOS","ACOSH","SIN","SINH","ASIN","ASINH","TAN","TANH","ATAN","ATANH","ATAN2","RANGE_BUCKET"],navigation:["FIRST_VALUE","LAST_VALUE","NTH_VALUE","LEAD","LAG","PERCENTILE_CONT","PERCENTILE_DISC"],net:["NET.IP_FROM_STRING","NET.SAFE_IP_FROM_STRING","NET.IP_TO_STRING","NET.IP_NET_MASK","NET.IP_TRUNC","NET.IPV4_FROM_INT64","NET.IPV4_TO_INT64","NET.HOST","NET.PUBLIC_SUFFIX","NET.REG_DOMAIN"],numbering:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","NTILE","ROW_NUMBER"],security:["SESSION_USER"],statisticalAggregate:["CORR","COVAR_POP","COVAR_SAMP","STDDEV_POP","STDDEV_SAMP","STDDEV","VAR_POP","VAR_SAMP","VARIANCE"],string:["ASCII","BYTE_LENGTH","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CODE_POINTS_TO_BYTES","CODE_POINTS_TO_STRING","CONCAT","CONTAINS_SUBSTR","ENDS_WITH","FORMAT","FROM_BASE32","FROM_BASE64","FROM_HEX","INITCAP","INSTR","LEFT","LENGTH","LPAD","LOWER","LTRIM","NORMALIZE","NORMALIZE_AND_CASEFOLD","OCTET_LENGTH","REGEXP_CONTAINS","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","REPEAT","REVERSE","RIGHT","RPAD","RTRIM","SAFE_CONVERT_BYTES_TO_STRING","SOUNDEX","SPLIT","STARTS_WITH","STRPOS","SUBSTR","SUBSTRING","TO_BASE32","TO_BASE64","TO_CODE_POINTS","TO_HEX","TRANSLATE","TRIM","UNICODE","UPPER"],time:["CURRENT_TIME","TIME","EXTRACT","TIME_ADD","TIME_SUB","TIME_DIFF","TIME_TRUNC","FORMAT_TIME","PARSE_TIME"],timestamp:["CURRENT_TIMESTAMP","EXTRACT","STRING","TIMESTAMP","TIMESTAMP_ADD","TIMESTAMP_SUB","TIMESTAMP_DIFF","TIMESTAMP_TRUNC","FORMAT_TIMESTAMP","PARSE_TIMESTAMP","TIMESTAMP_SECONDS","TIMESTAMP_MILLIS","TIMESTAMP_MICROS","UNIX_SECONDS","UNIX_MILLIS","UNIX_MICROS"],uuid:["GENERATE_UUID"],conditional:["COALESCE","IF","IFNULL","NULLIF"],legacyAggregate:["AVG","BIT_AND","BIT_OR","BIT_XOR","CORR","COUNT","COVAR_POP","COVAR_SAMP","EXACT_COUNT_DISTINCT","FIRST","GROUP_CONCAT","GROUP_CONCAT_UNQUOTED","LAST","MAX","MIN","NEST","NTH","QUANTILES","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","TOP","UNIQUE","VARIANCE","VAR_POP","VAR_SAMP"],legacyBitwise:["BIT_COUNT"],legacyCasting:["BOOLEAN","BYTES","CAST","FLOAT","HEX_STRING","INTEGER","STRING"],legacyComparison:["COALESCE","GREATEST","IFNULL","IS_INF","IS_NAN","IS_EXPLICITLY_DEFINED","LEAST","NVL"],legacyDatetime:["CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DATE_ADD","DATEDIFF","DAY","DAYOFWEEK","DAYOFYEAR","FORMAT_UTC_USEC","HOUR","MINUTE","MONTH","MSEC_TO_TIMESTAMP","NOW","PARSE_UTC_USEC","QUARTER","SEC_TO_TIMESTAMP","SECOND","STRFTIME_UTC_USEC","TIME","TIMESTAMP","TIMESTAMP_TO_MSEC","TIMESTAMP_TO_SEC","TIMESTAMP_TO_USEC","USEC_TO_TIMESTAMP","UTC_USEC_TO_DAY","UTC_USEC_TO_HOUR","UTC_USEC_TO_MONTH","UTC_USEC_TO_WEEK","UTC_USEC_TO_YEAR","WEEK","YEAR"],legacyIp:["FORMAT_IP","PARSE_IP","FORMAT_PACKED_IP","PARSE_PACKED_IP"],legacyJson:["JSON_EXTRACT","JSON_EXTRACT_SCALAR"],legacyMath:["ABS","ACOS","ACOSH","ASIN","ASINH","ATAN","ATANH","ATAN2","CEIL","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG2","LOG10","PI","POW","RADIANS","RAND","ROUND","SIN","SINH","SQRT","TAN","TANH"],legacyRegex:["REGEXP_MATCH","REGEXP_EXTRACT","REGEXP_REPLACE"],legacyString:["CONCAT","INSTR","LEFT","LENGTH","LOWER","LPAD","LTRIM","REPLACE","RIGHT","RPAD","RTRIM","SPLIT","SUBSTR","UPPER"],legacyTableWildcard:["TABLE_DATE_RANGE","TABLE_DATE_RANGE_STRICT","TABLE_QUERY"],legacyUrl:["HOST","DOMAIN","TLD"],legacyWindow:["AVG","COUNT","MAX","MIN","STDDEV","SUM","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER"],legacyMisc:["CURRENT_USER","EVERY","FROM_BASE64","HASH","FARM_FINGERPRINT","IF","POSITION","SHA1","SOME","TO_BASE64"],other:["BQ.JOBS.CANCEL","BQ.REFRESH_MATERIALIZED_VIEW"],ddl:["OPTIONS"],pivot:["PIVOT","UNPIVOT"],dataTypes:["BYTES","NUMERIC","DECIMAL","BIGNUMERIC","BIGDECIMAL","STRING"]}),T$=TP(["SELECT [ALL | DISTINCT] [AS STRUCT | AS VALUE]"]),Tz=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","QUALIFY","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","OMIT RECORD IF","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY SOURCE | BY TARGET] [THEN]","UPDATE SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMP|TEMPORARY|SNAPSHOT|EXTERNAL] TABLE [IF NOT EXISTS]","CLUSTER BY","FOR SYSTEM_TIME AS OF","WITH CONNECTION","WITH PARTITION COLUMNS","REMOTE WITH CONNECTION"]),TJ=TP(["UPDATE","DELETE [FROM]","DROP [SNAPSHOT | EXTERNAL] TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME TO","ALTER COLUMN [IF EXISTS]","SET DEFAULT COLLATE","SET OPTIONS","DROP NOT NULL","SET DATA TYPE","ALTER SCHEMA [IF EXISTS]","ALTER [MATERIALIZED] VIEW [IF EXISTS]","ALTER BI_CAPACITY","TRUNCATE TABLE","CREATE SCHEMA [IF NOT EXISTS]","DEFAULT COLLATE","CREATE [OR REPLACE] [TEMP|TEMPORARY|TABLE] FUNCTION [IF NOT EXISTS]","CREATE [OR REPLACE] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] ROW ACCESS POLICY [IF NOT EXISTS]","GRANT TO","FILTER USING","CREATE CAPACITY","AS JSON","CREATE RESERVATION","CREATE ASSIGNMENT","CREATE SEARCH INDEX [IF NOT EXISTS]","DROP SCHEMA [IF EXISTS]","DROP [MATERIALIZED] VIEW [IF EXISTS]","DROP [TABLE] FUNCTION [IF EXISTS]","DROP PROCEDURE [IF EXISTS]","DROP ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","DROP CAPACITY [IF EXISTS]","DROP RESERVATION [IF EXISTS]","DROP ASSIGNMENT [IF EXISTS]","DROP SEARCH INDEX [IF EXISTS]","DROP [IF EXISTS]","GRANT","REVOKE","DECLARE","EXECUTE IMMEDIATE","LOOP","END LOOP","REPEAT","END REPEAT","WHILE","END WHILE","BREAK","LEAVE","CONTINUE","ITERATE","FOR","END FOR","BEGIN","BEGIN TRANSACTION","COMMIT TRANSACTION","ROLLBACK TRANSACTION","RAISE","RETURN","CALL","ASSERT","EXPORT DATA"]),TZ={tokenizerOptions:{reservedSelect:T$,reservedClauses:[...Tz,...TJ],reservedSetOperations:TP(["UNION {ALL | DISTINCT}","EXCEPT DISTINCT","INTERSECT DISTINCT"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),reservedPhrases:TP(["TABLESAMPLE SYSTEM","ANY TYPE","ALL COLUMNS","NOT DETERMINISTIC","{ROWS | RANGE} BETWEEN","IS [NOT] DISTINCT FROM"]),reservedKeywords:TX,reservedFunctionNames:TK,extraParens:["[]"],stringTypes:[{quote:'""".."""',prefixes:["R","B","RB","BR"]},{quote:"'''..'''",prefixes:["R","B","RB","BR"]},'""-bs',"''-bs",{quote:'""-raw',prefixes:["R","B","RB","BR"],requirePrefix:!0},{quote:"''-raw",prefixes:["R","B","RB","BR"],requirePrefix:!0}],identTypes:["``"],identChars:{dashes:!0},paramTypes:{positional:!0,named:["@"],quoted:["@"]},variableTypes:[{regex:String.raw`@@\w+`}],lineCommentTypes:["--","#"],operators:["&","|","^","~",">>","<<","||","=>"],postProcess:function(e){var t;let n;return t=function(e){let t=[];for(let r=0;r"===t.text?n--:">>"===t.text&&(n-=2),0===n)return r}return e.length-1}(e,r+1),s=e.slice(r,n+1);t.push({type:i.IDENTIFIER,raw:s.map(Tq("raw")).join(""),text:s.map(Tq("text")).join(""),start:a.start}),r=n}else t.push(a)}return t}(e),n=Tg,t.map(e=>"OFFSET"===e.text&&"["===n.text?(n=e,{...e,type:i.RESERVED_FUNCTION_NAME}):(n=e,e))}},formatOptions:{onelineClauses:TJ}},Tq=e=>t=>t.type===i.IDENTIFIER||t.type===i.COMMA?t[e]+" ":t[e],TQ=TW({aggregate:["ARRAY_AGG","AVG","CORR","CORRELATION","COUNT","COUNT_BIG","COVAR_POP","COVARIANCE","COVAR","COVAR_SAMP","COVARIANCE_SAMP","CUME_DIST","GROUPING","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_ICPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV","STDDEV_SAMP","SUM","VAR_POP","VARIANCE","VAR","VAR_SAMP","VARIANCE_SAMP","XMLAGG"],scalar:["ABS","ABSVAL","ACOS","ADD_DAYS","ADD_MONTHS","ARRAY_DELETE","ARRAY_FIRST","ARRAY_LAST","ARRAY_NEXT","ARRAY_PRIOR","ARRAY_TRIM","ASCII","ASCII_CHR","ASCII_STR","ASCIISTR","ASIN","ATAN","ATANH","ATAN2","BIGINT","BINARY","BITAND","BITANDNOT","BITOR","BITXOR","BITNOT","BLOB","BTRIM","CARDINALITY","CCSID_ENCODING","CEILING","CEIL","CHAR","CHAR9","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CLOB","COALESCE","COLLATION_KEY","COMPARE_DECFLOAT","CONCAT","CONTAINS","COS","COSH","DATE","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEK_ISO","DAYOFYEAR","DAYS","DAYS_BETWEEN","DBCLOB","DECFLOAT","DECFLOAT_FORMAT","DECFLOAT_SORTKEY","DECIMAL","DEC","DECODE","DECRYPT_BINARY","DECRYPT_BIT","DECRYPT_CHAR","DECRYPT_DB","DECRYPT_DATAKEY_BIGINT","DECRYPT_DATAKEY_BIT","DECRYPT_DATAKEY_CLOB","DECRYPT_DATAKEY_DBCLOB","DECRYPT_DATAKEY_DECIMAL","DECRYPT_DATAKEY_INTEGER","DECRYPT_DATAKEY_VARCHAR","DECRYPT_DATAKEY_VARGRAPHIC","DEGREES","DIFFERENCE","DIGITS","DOUBLE_PRECISION","DOUBLE","DSN_XMLVALIDATE","EBCDIC_CHR","EBCDIC_STR","ENCRYPT_DATAKEY","ENCRYPT_TDES","EXP","EXTRACT","FLOAT","FLOOR","GENERATE_UNIQUE","GENERATE_UNIQUE_BINARY","GETHINT","GETVARIABLE","GRAPHIC","GREATEST","HASH","HASH_CRC32","HASH_MD5","HASH_SHA1","HASH_SHA256","HEX","HOUR","IDENTITY_VAL_LOCAL","IFNULL","INSERT","INSTR","INTEGER","INT","JULIAN_DAY","LAST_DAY","LCASE","LEAST","LEFT","LENGTH","LN","LOCATE","LOCATE_IN_STRING","LOG10","LOWER","LPAD","LTRIM","MAX","MAX_CARDINALITY","MICROSECOND","MIDNIGHT_SECONDS","MIN","MINUTE","MOD","MONTH","MONTHS_BETWEEN","MQREAD","MQREADCLOB","MQRECEIVE","MQRECEIVECLOB","MQSEND","MULTIPLY_ALT","NEXT_DAY","NEXT_MONTH","NORMALIZE_DECFLOAT","NORMALIZE_STRING","NULLIF","NVL","OVERLAY","PACK","POSITION","POSSTR","POWER","POW","QUANTIZE","QUARTER","RADIANS","RAISE_ERROR","RANDOM","RAND","REAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","RID","RIGHT","ROUND","ROUND_TIMESTAMP","ROWID","RPAD","RTRIM","SCORE","SECOND","SIGN","SIN","SINH","SMALLINT","SOUNDEX","SOAPHTTPC","SOAPHTTPV","SOAPHTTPNC","SOAPHTTPNV","SPACE","SQRT","STRIP","STRLEFT","STRPOS","STRRIGHT","SUBSTR","SUBSTRING","TAN","TANH","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMESTAMP_FORMAT","TIMESTAMP_ISO","TIMESTAMP_TZ","TO_CHAR","TO_CLOB","TO_DATE","TO_NUMBER","TOTALORDER","TO_TIMESTAMP","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRUNC","TRUNC_TIMESTAMP","UCASE","UNICODE","UNICODE_STR","UNISTR","UPPER","VALUE","VARBINARY","VARCHAR","VARCHAR9","VARCHAR_BIT_FORMAT","VARCHAR_FORMAT","VARGRAPHIC","VERIFY_GROUP_FOR_USER","VERIFY_ROLE_FOR_USER","VERIFY_TRUSTED_CONTEXT_ROLE_FOR_USER","WEEK","WEEK_ISO","WRAP","XMLATTRIBUTES","XMLCOMMENT","XMLCONCAT","XMLDOCUMENT","XMLELEMENT","XMLFOREST","XMLMODIFY","XMLNAMESPACES","XMLPARSE","XMLPI","XMLQUERY","XMLSERIALIZE","XMLTEXT","XMLXSROBJECTID","XSLTRANSFORM","YEAR"],table:["ADMIN_TASK_LIST","ADMIN_TASK_OUTPUT","ADMIN_TASK_STATUS","BLOCKING_THREADS","MQREADALL","MQREADALLCLOB","MQRECEIVEALL","MQRECEIVEALLCLOB","XMLTABLE"],row:["UNPACK"],olap:["CUME_DIST","PERCENT_RANK","RANK","DENSE_RANK","NTILE","LAG","LEAD","ROW_NUMBER","FIRST_VALUE","LAST_VALUE","NTH_VALUE","RATIO_TO_REPORT"],cast:["CAST"]}),T0=TW({standard:["ALL","ALLOCATE","ALLOW","ALTERAND","ANY","AS","ARRAY","ARRAY_EXISTS","ASENSITIVE","ASSOCIATE","ASUTIME","AT","AUDIT","AUX","AUXILIARY","BEFORE","BEGIN","BETWEEN","BUFFERPOOL","BY","CAPTURE","CASCADED","CAST","CCSID","CHARACTER","CHECK","CLONE","CLUSTER","COLLECTION","COLLID","COLUMN","CONDITION","CONNECTION","CONSTRAINT","CONTENT","CONTINUE","CREATE","CUBE","CURRENT","CURRENT_DATE","CURRENT_LC_CTYPE","CURRENT_PATH","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRVAL","CURSOR","DATA","DATABASE","DBINFO","DECLARE","DEFAULT","DESCRIPTOR","DETERMINISTIC","DISABLE","DISALLOW","DISTINCT","DO","DOCUMENT","DSSIZE","DYNAMIC","EDITPROC","ELSE","ELSEIF","ENCODING","ENCRYPTION","ENDING","END-EXEC","ERASE","ESCAPE","EXCEPTION","EXISTS","EXIT","EXTERNAL","FENCED","FIELDPROC","FINAL","FIRST","FOR","FREE","FULL","FUNCTION","GENERATED","GET","GLOBAL","GOTO","GROUP","HANDLER","HOLD","HOURS","IF","IMMEDIATE","IN","INCLUSIVE","INDEX","INHERIT","INNER","INOUT","INSENSITIVE","INTO","IS","ISOBID","ITERATE","JAR","KEEP","KEY","LANGUAGE","LAST","LC_CTYPE","LEAVE","LIKE","LOCAL","LOCALE","LOCATOR","LOCATORS","LOCK","LOCKMAX","LOCKSIZE","LONG","LOOP","MAINTAINED","MATERIALIZED","MICROSECONDS","MINUTEMINUTES","MODIFIES","MONTHS","NEXT","NEXTVAL","NO","NONE","NOT","NULL","NULLS","NUMPARTS","OBID","OF","OLD","ON","OPTIMIZATION","OPTIMIZE","ORDER","ORGANIZATION","OUT","OUTER","PACKAGE","PARAMETER","PART","PADDED","PARTITION","PARTITIONED","PARTITIONING","PATH","PIECESIZE","PERIOD","PLAN","PRECISION","PREVVAL","PRIOR","PRIQTY","PRIVILEGES","PROCEDURE","PROGRAM","PSID","PUBLIC","QUERY","QUERYNO","READS","REFERENCES","RESIGNAL","RESTRICT","RESULT","RESULT_SET_LOCATOR","RETURN","RETURNS","ROLE","ROLLUP","ROUND_CEILING","ROUND_DOWN","ROUND_FLOOR","ROUND_HALF_DOWN","ROUND_HALF_EVEN","ROUND_HALF_UP","ROUND_UP","ROW","ROWSET","SCHEMA","SCRATCHPAD","SECONDS","SECQTY","SECURITY","SEQUENCE","SENSITIVE","SESSION_USER","SIMPLE","SOME","SOURCE","SPECIFIC","STANDARD","STATIC","STATEMENT","STAY","STOGROUP","STORES","STYLE","SUMMARY","SYNONYM","SYSDATE","SYSTEM","SYSTIMESTAMP","TABLE","TABLESPACE","THEN","TO","TRIGGER","TYPE","UNDO","UNIQUE","UNTIL","USER","USING","VALIDPROC","VARIABLE","VARIANT","VCAT","VERSIONING","VIEW","VOLATILE","VOLUMES","WHILE","WLM","XMLEXISTS","XMLCAST","YEARS","ZONE"]}),T1=TP(["SELECT [ALL | DISTINCT]"]),T2=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY [INPUT SEQUENCE]","FETCH FIRST","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT","CREATE [OR REPLACE] VIEW","CREATE [GLOBAL TEMPORARY] TABLE"]),T5=TP(["UPDATE","WHERE CURRENT OF","WITH {RR | RS | CS | UR}","DELETE FROM","DROP TABLE [HIERARCHY]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","ALTER [COLUMN]","SET DATA TYPE","SET NOT NULL","DROP {IDENTITY | EXPRESSION | DEFAULT | NOT NULL}","TRUNCATE [TABLE]","SET [CURRENT] SCHEMA","AFTER","GO","ALLOCATE CURSOR","ALTER DATABASE","ALTER FUNCTION","ALTER INDEX","ALTER MASK","ALTER PERMISSION","ALTER PROCEDURE","ALTER SEQUENCE","ALTER STOGROUP","ALTER TABLESPACE","ALTER TRIGGER","ALTER TRUSTED CONTEXT","ALTER VIEW","ASSOCIATE LOCATORS","BEGIN DECLARE SECTION","CALL","CLOSE","COMMENT","COMMIT","CONNECT","CREATE ALIAS","CREATE AUXILIARY TABLE","CREATE DATABASE","CREATE FUNCTION","CREATE GLOBAL TEMPORARY TABLE","CREATE INDEX","CREATE LOB TABLESPACE","CREATE MASK","CREATE PERMISSION","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE STOGROUP","CREATE SYNONYM","CREATE TABLESPACE","CREATE TRIGGER","CREATE TRUSTED CONTEXT","CREATE TYPE","CREATE VARIABLE","DECLARE CURSOR","DECLARE GLOBAL TEMPORARY TABLE","DECLARE STATEMENT","DECLARE TABLE","DECLARE VARIABLE","DESCRIBE CURSOR","DESCRIBE INPUT","DESCRIBE OUTPUT","DESCRIBE PROCEDURE","DESCRIBE TABLE","DROP","END DECLARE SECTION","EXCHANGE","EXECUTE","EXECUTE IMMEDIATE","EXPLAIN","FETCH","FREE LOCATOR","GET DIAGNOSTICS","GRANT","HOLD LOCATOR","INCLUDE","LABEL","LOCK TABLE","OPEN","PREPARE","REFRESH","RELEASE","RELEASE SAVEPOINT","RENAME","REVOKE","ROLLBACK","SAVEPOINT","SELECT INTO","SET CONNECTION","SET CURRENT ACCELERATOR","SET CURRENT APPLICATION COMPATIBILITY","SET CURRENT APPLICATION ENCODING SCHEME","SET CURRENT DEBUG MODE","SET CURRENT DECFLOAT ROUNDING MODE","SET CURRENT DEGREE","SET CURRENT EXPLAIN MODE","SET CURRENT GET_ACCEL_ARCHIVE","SET CURRENT LOCALE LC_CTYPE","SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION","SET CURRENT OPTIMIZATION HINT","SET CURRENT PACKAGE PATH","SET CURRENT PACKAGESET","SET CURRENT PRECISION","SET CURRENT QUERY ACCELERATION","SET CURRENT QUERY ACCELERATION WAITFORDATA","SET CURRENT REFRESH AGE","SET CURRENT ROUTINE VERSION","SET CURRENT RULES","SET CURRENT SQLID","SET CURRENT TEMPORAL BUSINESS_TIME","SET CURRENT TEMPORAL SYSTEM_TIME","SET ENCRYPTION PASSWORD","SET PATH","SET SESSION TIME ZONE","SIGNAL","VALUES INTO","WHENEVER"]),T3={tokenizerOptions:{reservedSelect:T1,reservedClauses:[...T2,...T5],reservedSetOperations:TP(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN"]),reservedPhrases:TP(["ON DELETE","ON UPDATE","SET NULL","{ROWS | RANGE} BETWEEN"]),reservedKeywords:T0,reservedFunctionNames:TQ,stringTypes:[{quote:"''-qq",prefixes:["G","N","U&"]},{quote:"''-raw",prefixes:["X","BX","GX","UX"],requirePrefix:!0}],identTypes:['""-qq'],identChars:{first:"@#$"},paramTypes:{positional:!0,named:[":"]},paramChars:{first:"@#$",rest:"@#$"},operators:["**","\xac=","\xac>","\xac<","!>","!<","||"]},formatOptions:{onelineClauses:T5}},T4=TW({math:["ABS","ACOS","ASIN","ATAN","BIN","BROUND","CBRT","CEIL","CEILING","CONV","COS","DEGREES","EXP","FACTORIAL","FLOOR","GREATEST","HEX","LEAST","LN","LOG","LOG10","LOG2","NEGATIVE","PI","PMOD","POSITIVE","POW","POWER","RADIANS","RAND","ROUND","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIN","SQRT","TAN","UNHEX","WIDTH_BUCKET"],array:["ARRAY_CONTAINS","MAP_KEYS","MAP_VALUES","SIZE","SORT_ARRAY"],conversion:["BINARY","CAST"],date:["ADD_MONTHS","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","QUARTER","SECOND","TIMESTAMP","TO_DATE","TO_UTC_TIMESTAMP","TRUNC","UNIX_TIMESTAMP","WEEKOFYEAR","YEAR"],conditional:["ASSERT_TRUE","COALESCE","IF","ISNOTNULL","ISNULL","NULLIF","NVL"],string:["ASCII","BASE64","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONTEXT_NGRAMS","DECODE","ELT","ENCODE","FIELD","FIND_IN_SET","FORMAT_NUMBER","GET_JSON_OBJECT","IN_FILE","INITCAP","INSTR","LCASE","LENGTH","LEVENSHTEIN","LOCATE","LOWER","LPAD","LTRIM","NGRAMS","OCTET_LENGTH","PARSE_URL","PRINTF","QUOTE","REGEXP_EXTRACT","REGEXP_REPLACE","REPEAT","REVERSE","RPAD","RTRIM","SENTENCES","SOUNDEX","SPACE","SPLIT","STR_TO_MAP","SUBSTR","SUBSTRING","TRANSLATE","TRIM","UCASE","UNBASE64","UPPER"],masking:["MASK","MASK_FIRST_N","MASK_HASH","MASK_LAST_N","MASK_SHOW_FIRST_N","MASK_SHOW_LAST_N"],misc:["AES_DECRYPT","AES_ENCRYPT","CRC32","CURRENT_DATABASE","CURRENT_USER","HASH","JAVA_METHOD","LOGGED_IN_USER","MD5","REFLECT","SHA","SHA1","SHA2","SURROGATE_KEY","VERSION"],aggregate:["AVG","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COVAR_POP","COVAR_SAMP","HISTOGRAM_NUMERIC","MAX","MIN","NTILE","PERCENTILE","PERCENTILE_APPROX","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],table:["EXPLODE","INLINE","JSON_TUPLE","PARSE_URL_TUPLE","POSEXPLODE","STACK"],window:["LEAD","LAG","FIRST_VALUE","LAST_VALUE","RANK","ROW_NUMBER","DENSE_RANK","CUME_DIST","PERCENT_RANK","NTILE"],dataTypes:["DECIMAL","NUMERIC","VARCHAR","CHAR"]}),T6=TW({nonReserved:["ADD","ADMIN","AFTER","ANALYZE","ARCHIVE","ASC","BEFORE","BUCKET","BUCKETS","CASCADE","CHANGE","CLUSTER","CLUSTERED","CLUSTERSTATUS","COLLECTION","COLUMNS","COMMENT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONTINUE","DATA","DATABASES","DATETIME","DAY","DBPROPERTIES","DEFERRED","DEFINED","DELIMITED","DEPENDENCY","DESC","DIRECTORIES","DIRECTORY","DISABLE","DISTRIBUTE","ELEM_TYPE","ENABLE","ESCAPED","EXCLUSIVE","EXPLAIN","EXPORT","FIELDS","FILE","FILEFORMAT","FIRST","FORMAT","FORMATTED","FUNCTIONS","HOLD_DDLTIME","HOUR","IDXPROPERTIES","IGNORE","INDEX","INDEXES","INPATH","INPUTDRIVER","INPUTFORMAT","ITEMS","JAR","KEYS","KEY_TYPE","LIMIT","LINES","LOAD","LOCATION","LOCK","LOCKS","LOGICAL","LONG","MAPJOIN","MATERIALIZED","METADATA","MINUS","MINUTE","MONTH","MSCK","NOSCAN","NO_DROP","OFFLINE","OPTION","OUTPUTDRIVER","OUTPUTFORMAT","OVERWRITE","OWNER","PARTITIONED","PARTITIONS","PLUS","PRETTY","PRINCIPALS","PROTECTION","PURGE","READ","READONLY","REBUILD","RECORDREADER","RECORDWRITER","RELOAD","RENAME","REPAIR","REPLACE","REPLICATION","RESTRICT","REWRITE","ROLE","ROLES","SCHEMA","SCHEMAS","SECOND","SEMI","SERDE","SERDEPROPERTIES","SERVER","SETS","SHARED","SHOW","SHOW_DATABASE","SKEWED","SORT","SORTED","SSL","STATISTICS","STORED","STREAMTABLE","STRING","STRUCT","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","TINYINT","TOUCH","TRANSACTIONS","UNARCHIVE","UNDO","UNIONTYPE","UNLOCK","UNSET","UNSIGNED","URI","USE","UTC","UTCTIMESTAMP","VALUE_TYPE","VIEW","WHILE","YEAR","AUTOCOMMIT","ISOLATION","LEVEL","OFFSET","SNAPSHOT","TRANSACTION","WORK","WRITE","ABORT","KEY","LAST","NORELY","NOVALIDATE","NULLS","RELY","VALIDATE","DETAIL","DOW","EXPRESSION","OPERATOR","QUARTER","SUMMARY","VECTORIZATION","WEEK","YEARS","MONTHS","WEEKS","DAYS","HOURS","MINUTES","SECONDS","TIMESTAMPTZ","ZONE"],reserved:["ALL","ALTER","AND","ARRAY","AS","AUTHORIZATION","BETWEEN","BIGINT","BINARY","BOOLEAN","BOTH","BY","CASE","CAST","CHAR","COLUMN","CONF","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIMESTAMP","CURSOR","DATABASE","DATE","DECIMAL","DELETE","DESCRIBE","DISTINCT","DOUBLE","DROP","ELSE","END","EXCHANGE","EXISTS","EXTENDED","EXTERNAL","FALSE","FETCH","FLOAT","FOLLOWING","FOR","FROM","FULL","FUNCTION","GRANT","GROUP","GROUPING","HAVING","IF","IMPORT","IN","INNER","INSERT","INT","INTERSECT","INTERVAL","INTO","IS","JOIN","LATERAL","LEFT","LESS","LIKE","LOCAL","MACRO","MAP","MORE","NONE","NOT","NULL","OF","ON","OR","ORDER","OUT","OUTER","OVER","PARTIALSCAN","PARTITION","PERCENT","PRECEDING","PRESERVE","PROCEDURE","RANGE","READS","REDUCE","REVOKE","RIGHT","ROLLUP","ROW","ROWS","SELECT","SET","SMALLINT","TABLE","TABLESAMPLE","THEN","TIMESTAMP","TO","TRANSFORM","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNION","UNIQUEJOIN","UPDATE","USER","USING","UTC_TMESTAMP","VALUES","VARCHAR","WHEN","WHERE","WINDOW","WITH","COMMIT","ONLY","REGEXP","RLIKE","ROLLBACK","START","CACHE","CONSTRAINT","FOREIGN","PRIMARY","REFERENCES","DAYOFWEEK","EXTRACT","FLOOR","INTEGER","PRECISION","VIEWS","TIME","NUMERIC","SYNC"],fileTypes:["TEXTFILE","SEQUENCEFILE","ORC","CSV","TSV","PARQUET","AVRO","RCFILE","JSONFILE","INPUTFORMAT","OUTPUTFORMAT"]}),T8=TP(["SELECT [ALL | DISTINCT]"]),T7=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT INTO [TABLE]","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED [THEN]","UPDATE SET","INSERT [VALUES]","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [MATERIALIZED] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS]"]),T9=TP(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","RENAME TO","TRUNCATE [TABLE]","ALTER","CREATE","USE","DESCRIBE","DROP","FETCH","SHOW","STORED AS","STORED BY","ROW FORMAT"]),pe={tokenizerOptions:{reservedSelect:T8,reservedClauses:[...T7,...T9],reservedSetOperations:TP(["UNION [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","LEFT SEMI JOIN"]),reservedPhrases:TP(["{ROWS | RANGE} BETWEEN"]),reservedKeywords:T6,reservedFunctionNames:T4,extraParens:["[]"],stringTypes:['""-bs',"''-bs"],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||"]},formatOptions:{onelineClauses:T9}},pt=TW({all:["ACCESSIBLE","ACCOUNT","ACTION","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALL","ALGORITHM","ALTER","ALWAYS","ANALYZE","AND","ANY","AS","ASC","ASCII","ASENSITIVE","AT","ATOMIC","AUTHORS","AUTO_INCREMENT","AUTOEXTEND_SIZE","AUTO","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BODY","BOOL","BOOLEAN","BOTH","BTREE","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHANGE","CHANGED","CHAR","CHARACTER","CHARSET","CHECK","CHECKPOINT","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLOB","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMN_NAME","COLUMNS","COLUMN_ADD","COLUMN_CHECK","COLUMN_CREATE","COLUMN_DELETE","COLUMN_GET","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPRESSED","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONTRIBUTORS","CONVERT","CPU","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_POS","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","CYCLE","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELETE_DOMAIN_ID","DESC","DESCRIBE","DES_KEY_FILE","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DO_DOMAIN_IDS","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","ELSIF","EMPTY","ENABLE","ENCLOSED","END","ENDS","ENGINE","ENGINES","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXAMINED","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXCEPTION","EXISTS","EXIT","EXPANSION","EXPIRE","EXPORT","EXPLAIN","EXTENDED","EXTENT_SIZE","FALSE","FAST","FAULTS","FEDERATED","FETCH","FIELDS","FILE","FIRST","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GET_FORMAT","GET","GLOBAL","GOTO","GRANT","GRANTS","GROUP","HANDLER","HARD","HASH","HAVING","HELP","HIGH_PRIORITY","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORED","IGNORE_DOMAIN_IDS","IGNORE_SERVER_IDS","IMMEDIATE","IMPORT","INTERSECT","IN","INCREMENT","INDEX","INDEXES","INFILE","INITIAL_SIZE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INVISIBLE","INTO","IO","IO_THREAD","IPC","IS","ISOLATION","ISOPEN","ISSUER","ITERATE","INVOKER","JOIN","JSON","JSON_TABLE","KEY","KEYS","KEY_BLOCK_SIZE","KILL","LANGUAGE","LAST","LAST_VALUE","LASTVAL","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_GTID_POS","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_SERVER_ID","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_USER","MASTER_USE_GTID","MASTER_HEARTBEAT_PERIOD","MATCH","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_STATEMENT_TIME","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MAXVALUE","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUS","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONITOR","MONTH","MUTEX","MYSQL","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NESTED","NEVER","NEW","NEXT","NEXTVAL","NO","NOMAXVALUE","NOMINVALUE","NOCACHE","NOCYCLE","NO_WAIT","NOWAIT","NODEGROUP","NONE","NOT","NOTFOUND","NO_WRITE_TO_BINLOG","NULL","NUMBER","NUMERIC","NVARCHAR","OF","OFFSET","OLD_PASSWORD","ON","ONE","ONLINE","ONLY","OPEN","OPTIMIZE","OPTIONS","OPTION","OPTIONALLY","OR","ORDER","ORDINALITY","OTHERS","OUT","OUTER","OUTFILE","OVER","OVERLAPS","OWNER","PACKAGE","PACK_KEYS","PAGE","PAGE_CHECKSUM","PARSER","PARSE_VCOL_EXPR","PATH","PERIOD","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PERSISTENT","PHASE","PLUGIN","PLUGINS","PORT","PORTION","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PREVIOUS","PRIMARY","PRIVILEGES","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RAISE","RANGE","RAW","READ","READ_ONLY","READ_WRITE","READS","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDOFILE","REDUNDANT","REFERENCES","REGEXP","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEATABLE","REPLACE","REPLAY","REPLICA","REPLICAS","REPLICA_POS","REPLICATION","REPEAT","REQUIRE","RESET","RESIGNAL","RESTART","RESTORE","RESTRICT","RESUME","RETURNED_SQLSTATE","RETURN","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROUTINE","ROW","ROWCOUNT","ROWNUM","ROWS","ROWTYPE","ROW_COUNT","ROW_FORMAT","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMA_NAME","SCHEMAS","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SEQUENCE","SERIAL","SERIALIZABLE","SESSION","SERVER","SET","SETVAL","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLAVES","SLAVE_POS","SLOW","SNAPSHOT","SMALLINT","SOCKET","SOFT","SOME","SONAME","SOUNDS","SOURCE","STAGE","STORED","SPATIAL","SPECIFIC","REF_SYSTEM_ID","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_SECOND","SQL_TSI_MINUTE","SQL_TSI_HOUR","SQL_TSI_DAY","SQL_TSI_WEEK","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_YEAR","SSL","START","STARTING","STARTS","STATEMENT","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STRAIGHT_JOIN","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSDATE","SYSTEM","SYSTEM_TIME","TABLE","TABLE_NAME","TABLES","TABLESPACE","TABLE_CHECKSUM","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRANSACTION","TRANSACTIONAL","THREADS","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO_BUFFER_SIZE","UNDOFILE","UNDO","UNICODE","UNION","UNIQUE","UNKNOWN","UNLOCK","UNINSTALL","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARCHAR2","VARIABLES","VARYING","VIA","VIEW","VIRTUAL","VISIBLE","VERSIONING","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","X509","XOR","XA","XML","YEAR","YEAR_MONTH","ZEROFILL"]}),pn=TW({all:["ADDDATE","ADD_MONTHS","BIT_AND","BIT_OR","BIT_XOR","CAST","COUNT","CUME_DIST","CURDATE","CURTIME","DATE_ADD","DATE_SUB","DATE_FORMAT","DECODE","DENSE_RANK","EXTRACT","FIRST_VALUE","GROUP_CONCAT","JSON_ARRAYAGG","JSON_OBJECTAGG","LAG","LEAD","MAX","MEDIAN","MID","MIN","NOW","NTH_VALUE","NTILE","POSITION","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","ROW_NUMBER","SESSION_USER","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUBDATE","SUBSTR","SUBSTRING","SUM","SYSTEM_USER","TRIM","TRIM_ORACLE","VARIANCE","VAR_POP","VAR_SAMP","ABS","ACOS","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ASIN","ATAN","ATAN2","BENCHMARK","BIN","BINLOG_GTID_POS","BIT_COUNT","BIT_LENGTH","CEIL","CEILING","CHARACTER_LENGTH","CHAR_LENGTH","CHR","COERCIBILITY","COLUMN_CHECK","COLUMN_EXISTS","COLUMN_LIST","COLUMN_JSON","COMPRESS","CONCAT","CONCAT_OPERATOR_ORACLE","CONCAT_WS","CONNECTION_ID","CONV","CONVERT_TZ","COS","COT","CRC32","DATEDIFF","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEGREES","DECODE_HISTOGRAM","DECODE_ORACLE","DES_DECRYPT","DES_ENCRYPT","ELT","ENCODE","ENCRYPT","EXP","EXPORT_SET","EXTRACTVALUE","FIELD","FIND_IN_SET","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GET_LOCK","GREATEST","HEX","IFNULL","INSTR","ISNULL","IS_FREE_LOCK","IS_USED_LOCK","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_COMPACT","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_DETAILED","JSON_EXISTS","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_LOOSE","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_QUERY","JSON_QUOTE","JSON_OBJECT","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_SEARCH","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAST_DAY","LAST_INSERT_ID","LCASE","LEAST","LENGTH","LENGTHB","LN","LOAD_FILE","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LPAD_ORACLE","LTRIM","LTRIM_ORACLE","MAKEDATE","MAKETIME","MAKE_SET","MASTER_GTID_WAIT","MASTER_POS_WAIT","MD5","MONTHNAME","NAME_CONST","NVL","NVL2","OCT","OCTET_LENGTH","ORD","PERIOD_ADD","PERIOD_DIFF","PI","POW","POWER","QUOTE","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","RADIANS","RAND","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPLACE_ORACLE","REVERSE","ROUND","RPAD","RPAD_ORACLE","RTRIM","RTRIM_ORACLE","SEC_TO_TIME","SHA","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SPACE","SQRT","STRCMP","STR_TO_DATE","SUBSTR_ORACLE","SUBSTRING_INDEX","SUBTIME","SYS_GUID","TAN","TIMEDIFF","TIME_FORMAT","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_SECONDS","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","UUID","UUID_SHORT","VERSION","WEEKDAY","WEEKOFYEAR","WSREP_LAST_WRITTEN_GTID","WSREP_LAST_SEEN_GTID","WSREP_SYNC_WAIT_UPTO_GTID","YEARWEEK","COALESCE","NULLIF","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","BIT","BINARY","BLOB","CHAR","NATIONAL CHAR","CHAR BYTE","ENUM","VARBINARY","VARCHAR","NATIONAL VARCHAR","TIME","DATETIME","TIMESTAMP","YEAR"]}),pr=TP(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),pa=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] TABLE [IF NOT EXISTS]","RETURNING"]),ps=TP(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] [IGNORE] TABLE [IF EXISTS]","ADD [COLUMN] [IF NOT EXISTS]","{CHANGE | MODIFY} [COLUMN] [IF EXISTS]","DROP [COLUMN] [IF EXISTS]","RENAME [TO]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","SET {VISIBLE | INVISIBLE}","TRUNCATE [TABLE]","ALTER DATABASE","ALTER DATABASE COMMENT","ALTER EVENT","ALTER FUNCTION","ALTER PROCEDURE","ALTER SCHEMA","ALTER SCHEMA COMMENT","ALTER SEQUENCE","ALTER SERVER","ALTER USER","ALTER VIEW","ANALYZE","ANALYZE TABLE","BACKUP LOCK","BACKUP STAGE","BACKUP UNLOCK","BEGIN","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHECK TABLE","CHECK VIEW","CHECKSUM TABLE","COMMIT","CREATE AGGREGATE FUNCTION","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE INDEX","CREATE PROCEDURE","CREATE ROLE","CREATE SEQUENCE","CREATE SERVER","CREATE SPATIAL INDEX","CREATE TRIGGER","CREATE UNIQUE INDEX","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP INDEX","DROP PREPARE","DROP PROCEDURE","DROP ROLE","DROP SEQUENCE","DROP SERVER","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GET DIAGNOSTICS","GET DIAGNOSTICS CONDITION","GRANT","HANDLER","HELP","INSTALL PLUGIN","INSTALL SONAME","KILL","LOAD DATA INFILE","LOAD INDEX INTO CACHE","LOAD XML INFILE","LOCK TABLE","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","PURGE MASTER LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","REPAIR VIEW","RESET MASTER","RESET QUERY CACHE","RESET REPLICA","RESET SLAVE","RESIGNAL","REVOKE","ROLLBACK","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET GLOBAL TRANSACTION","SET NAMES","SET PASSWORD","SET ROLE","SET STATEMENT","SET TRANSACTION","SHOW","SHOW ALL REPLICAS STATUS","SHOW ALL SLAVES STATUS","SHOW AUTHORS","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW BINLOG STATUS","SHOW CHARACTER SET","SHOW CLIENT_STATISTICS","SHOW COLLATION","SHOW COLUMNS","SHOW CONTRIBUTORS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PACKAGE","SHOW CREATE PACKAGE BODY","SHOW CREATE PROCEDURE","SHOW CREATE SEQUENCE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINE INNODB STATUS","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW EXPLAIN","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW INDEXES","SHOW INDEX_STATISTICS","SHOW KEYS","SHOW LOCALES","SHOW MASTER LOGS","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PACKAGE BODY CODE","SHOW PACKAGE BODY STATUS","SHOW PACKAGE STATUS","SHOW PLUGINS","SHOW PLUGINS SONAME","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW QUERY_RESPONSE_TIME","SHOW RELAYLOG EVENTS","SHOW REPLICA","SHOW REPLICA HOSTS","SHOW REPLICA STATUS","SHOW SCHEMAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW SLAVE STATUS","SHOW STATUS","SHOW STORAGE ENGINES","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW USER_STATISTICS","SHOW VARIABLES","SHOW WARNINGS","SHOW WSREP_MEMBERSHIP","SHOW WSREP_STATUS","SHUTDOWN","SIGNAL","START ALL REPLICAS","START ALL SLAVES","START REPLICA","START SLAVE","START TRANSACTION","STOP ALL REPLICAS","STOP ALL SLAVES","STOP REPLICA","STOP SLAVE","UNINSTALL PLUGIN","UNINSTALL SONAME","UNLOCK TABLE","USE","XA BEGIN","XA COMMIT","XA END","XA PREPARE","XA RECOVER","XA ROLLBACK","XA START"]),pi={tokenizerOptions:{reservedSelect:pr,reservedClauses:[...pa,...ps],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]","MINUS [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),supportsXor:!0,reservedKeywords:pt,reservedFunctionNames:pn,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let r=e[n+1]||Tg;return Tb.SET(t)&&"("===r.text?{...t,type:i.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:ps}},po=TW({all:["ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","ALGORITHM","ALL","ALTER","ALWAYS","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASCII","ASENSITIVE","AT","ATTRIBUTE","AUTHENTICATION","AUTOEXTEND_SIZE","AUTO_INCREMENT","AVG","AVG_ROW_LENGTH","BACKUP","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BINLOG","BIT","BLOB","BLOCK","BOOL","BOOLEAN","BOTH","BTREE","BUCKETS","BY","BYTE","CACHE","CALL","CASCADE","CASCADED","CASE","CATALOG_NAME","CHAIN","CHALLENGE_RESPONSE","CHANGE","CHANGED","CHANNEL","CHAR","CHARACTER","CHARSET","CHECK","CHECKSUM","CIPHER","CLASS_ORIGIN","CLIENT","CLONE","CLOSE","COALESCE","CODE","COLLATE","COLLATION","COLUMN","COLUMNS","COLUMN_FORMAT","COLUMN_NAME","COMMENT","COMMIT","COMMITTED","COMPACT","COMPLETION","COMPONENT","COMPRESSED","COMPRESSION","CONCURRENT","CONDITION","CONNECTION","CONSISTENT","CONSTRAINT","CONSTRAINT_CATALOG","CONSTRAINT_NAME","CONSTRAINT_SCHEMA","CONTAINS","CONTEXT","CONTINUE","CONVERT","CPU","CREATE","CROSS","CUBE","CUME_DIST","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CURSOR_NAME","DATA","DATABASE","DATABASES","DATAFILE","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULT_AUTH","DEFINER","DEFINITION","DELAYED","DELAY_KEY_WRITE","DELETE","DENSE_RANK","DESC","DESCRIBE","DESCRIPTION","DETERMINISTIC","DIAGNOSTICS","DIRECTORY","DISABLE","DISCARD","DISK","DISTINCT","DISTINCTROW","DIV","DO","DOUBLE","DROP","DUAL","DUMPFILE","DUPLICATE","DYNAMIC","EACH","ELSE","ELSEIF","EMPTY","ENABLE","ENCLOSED","ENCRYPTION","END","ENDS","ENFORCED","ENGINE","ENGINES","ENGINE_ATTRIBUTE","ENUM","ERROR","ERRORS","ESCAPE","ESCAPED","EVENT","EVENTS","EVERY","EXCEPT","EXCHANGE","EXCLUDE","EXECUTE","EXISTS","EXIT","EXPANSION","EXPIRE","EXPLAIN","EXPORT","EXTENDED","EXTENT_SIZE","FACTOR","FAILED_LOGIN_ATTEMPTS","FALSE","FAST","FAULTS","FETCH","FIELDS","FILE","FILE_BLOCK_SIZE","FILTER","FINISH","FIRST","FIRST_VALUE","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOLLOWS","FOR","FORCE","FOREIGN","FORMAT","FOUND","FROM","FULL","FULLTEXT","FUNCTION","GENERAL","GENERATED","GEOMCOLLECTION","GEOMETRY","GEOMETRYCOLLECTION","GET","GET_FORMAT","GET_MASTER_PUBLIC_KEY","GET_SOURCE_PUBLIC_KEY","GLOBAL","GRANT","GRANTS","GROUP","GROUPING","GROUPS","GROUP_REPLICATION","GTID_ONLY","HANDLER","HASH","HAVING","HELP","HIGH_PRIORITY","HISTOGRAM","HISTORY","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IF","IGNORE","IGNORE_SERVER_IDS","IMPORT","IN","INACTIVE","INDEX","INDEXES","INFILE","INITIAL","INITIAL_SIZE","INITIATE","INNER","INOUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTALL","INSTANCE","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERSECT","INTERVAL","INTO","INVISIBLE","INVOKER","IO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IO_THREAD","IPC","IS","ISOLATION","ISSUER","ITERATE","JOIN","JSON","JSON_TABLE","JSON_VALUE","KEY","KEYRING","KEYS","KEY_BLOCK_SIZE","KILL","LAG","LANGUAGE","LAST","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEAVES","LEFT","LESS","LEVEL","LIKE","LIMIT","LINEAR","LINES","LINESTRING","LIST","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCK","LOCKED","LOCKS","LOGFILE","LOGS","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER","MASTER_AUTO_POSITION","MASTER_BIND","MASTER_COMPRESSION_ALGORITHMS","MASTER_CONNECT_RETRY","MASTER_DELAY","MASTER_HEARTBEAT_PERIOD","MASTER_HOST","MASTER_LOG_FILE","MASTER_LOG_POS","MASTER_PASSWORD","MASTER_PORT","MASTER_PUBLIC_KEY_PATH","MASTER_RETRY_COUNT","MASTER_SSL","MASTER_SSL_CA","MASTER_SSL_CAPATH","MASTER_SSL_CERT","MASTER_SSL_CIPHER","MASTER_SSL_CRL","MASTER_SSL_CRLPATH","MASTER_SSL_KEY","MASTER_SSL_VERIFY_SERVER_CERT","MASTER_TLS_CIPHERSUITES","MASTER_TLS_VERSION","MASTER_USER","MASTER_ZSTD_COMPRESSION_LEVEL","MATCH","MAXVALUE","MAX_CONNECTIONS_PER_HOUR","MAX_QUERIES_PER_HOUR","MAX_ROWS","MAX_SIZE","MAX_UPDATES_PER_HOUR","MAX_USER_CONNECTIONS","MEDIUM","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MERGE","MESSAGE_TEXT","MICROSECOND","MIDDLEINT","MIGRATE","MINUTE","MINUTE_MICROSECOND","MINUTE_SECOND","MIN_ROWS","MOD","MODE","MODIFIES","MODIFY","MONTH","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","MUTEX","MYSQL_ERRNO","NAME","NAMES","NATIONAL","NATURAL","NCHAR","NDB","NDBCLUSTER","NESTED","NETWORK_NAMESPACE","NEVER","NEW","NEXT","NO","NODEGROUP","NONE","NOT","NOWAIT","NO_WAIT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NULLS","NUMBER","NUMERIC","NVARCHAR","OF","OFF","OFFSET","OJ","OLD","ON","ONE","ONLY","OPEN","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONAL","OPTIONALLY","OPTIONS","OR","ORDER","ORDINALITY","ORGANIZATION","OTHERS","OUT","OUTER","OUTFILE","OVER","OWNER","PACK_KEYS","PAGE","PARSER","PARTIAL","PARTITION","PARTITIONING","PARTITIONS","PASSWORD","PASSWORD_LOCK_TIME","PATH","PERCENT_RANK","PERSIST","PERSIST_ONLY","PHASE","PLUGIN","PLUGINS","PLUGIN_DIR","POINT","POLYGON","PORT","PRECEDES","PRECEDING","PRECISION","PREPARE","PRESERVE","PREV","PRIMARY","PRIVILEGES","PRIVILEGE_CHECKS_USER","PROCEDURE","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROXY","PURGE","QUARTER","QUERY","QUICK","RANDOM","RANGE","RANK","READ","READS","READ_ONLY","READ_WRITE","REAL","REBUILD","RECOVER","RECURSIVE","REDO_BUFFER_SIZE","REDUNDANT","REFERENCE","REFERENCES","REGEXP","REGISTRATION","RELAY","RELAYLOG","RELAY_LOG_FILE","RELAY_LOG_POS","RELAY_THREAD","RELEASE","RELOAD","REMOVE","RENAME","REORGANIZE","REPAIR","REPEAT","REPEATABLE","REPLACE","REPLICA","REPLICAS","REPLICATE_DO_DB","REPLICATE_DO_TABLE","REPLICATE_IGNORE_DB","REPLICATE_IGNORE_TABLE","REPLICATE_REWRITE_DB","REPLICATE_WILD_DO_TABLE","REPLICATE_WILD_IGNORE_TABLE","REPLICATION","REQUIRE","REQUIRE_ROW_FORMAT","RESET","RESIGNAL","RESOURCE","RESPECT","RESTART","RESTORE","RESTRICT","RESUME","RETAIN","RETURN","RETURNED_SQLSTATE","RETURNING","RETURNS","REUSE","REVERSE","REVOKE","RIGHT","RLIKE","ROLE","ROLLBACK","ROLLUP","ROTATE","ROUTINE","ROW","ROWS","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","RTREE","SAVEPOINT","SCHEDULE","SCHEMA","SCHEMAS","SCHEMA_NAME","SECOND","SECONDARY","SECONDARY_ENGINE","SECONDARY_ENGINE_ATTRIBUTE","SECONDARY_LOAD","SECONDARY_UNLOAD","SECOND_MICROSECOND","SECURITY","SELECT","SENSITIVE","SEPARATOR","SERIAL","SERIALIZABLE","SERVER","SESSION","SET","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMPLE","SKIP","SLAVE","SLOW","SMALLINT","SNAPSHOT","SOCKET","SOME","SONAME","SOUNDS","SOURCE","SOURCE_AUTO_POSITION","SOURCE_BIND","SOURCE_COMPRESSION_ALGORITHMS","SOURCE_CONNECT_RETRY","SOURCE_DELAY","SOURCE_HEARTBEAT_PERIOD","SOURCE_HOST","SOURCE_LOG_FILE","SOURCE_LOG_POS","SOURCE_PASSWORD","SOURCE_PORT","SOURCE_PUBLIC_KEY_PATH","SOURCE_RETRY_COUNT","SOURCE_SSL","SOURCE_SSL_CA","SOURCE_SSL_CAPATH","SOURCE_SSL_CERT","SOURCE_SSL_CIPHER","SOURCE_SSL_CRL","SOURCE_SSL_CRLPATH","SOURCE_SSL_KEY","SOURCE_SSL_VERIFY_SERVER_CERT","SOURCE_TLS_CIPHERSUITES","SOURCE_TLS_VERSION","SOURCE_USER","SOURCE_ZSTD_COMPRESSION_LEVEL","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_AFTER_GTIDS","SQL_AFTER_MTS_GAPS","SQL_BEFORE_GTIDS","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CALC_FOUND_ROWS","SQL_NO_CACHE","SQL_SMALL_RESULT","SQL_THREAD","SQL_TSI_DAY","SQL_TSI_HOUR","SQL_TSI_MINUTE","SQL_TSI_MONTH","SQL_TSI_QUARTER","SQL_TSI_SECOND","SQL_TSI_WEEK","SQL_TSI_YEAR","SRID","SSL","STACKED","START","STARTING","STARTS","STATS_AUTO_RECALC","STATS_PERSISTENT","STATS_SAMPLE_PAGES","STATUS","STOP","STORAGE","STORED","STRAIGHT_JOIN","STREAM","STRING","SUBCLASS_ORIGIN","SUBJECT","SUBPARTITION","SUBPARTITIONS","SUPER","SUSPEND","SWAPS","SWITCHES","SYSTEM","TABLE","TABLES","TABLESPACE","TABLE_CHECKSUM","TABLE_NAME","TEMPORARY","TEMPTABLE","TERMINATED","TEXT","THAN","THEN","THREAD_PRIORITY","TIES","TIME","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TINYBLOB","TINYINT","TINYTEXT","TLS","TO","TRAILING","TRANSACTION","TRIGGER","TRIGGERS","TRUE","TRUNCATE","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNDOFILE","UNDO_BUFFER_SIZE","UNICODE","UNINSTALL","UNION","UNIQUE","UNKNOWN","UNLOCK","UNREGISTER","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USER_RESOURCES","USE_FRM","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALIDATION","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARYING","VCPU","VIEW","VIRTUAL","VISIBLE","WAIT","WARNINGS","WEEK","WEIGHT_STRING","WHEN","WHERE","WHILE","WINDOW","WITH","WITHOUT","WORK","WRAPPER","WRITE","X509","XA","XID","XML","XOR","YEAR","YEAR_MONTH","ZEROFILL","ZONE"]}),pl=TW({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","ASCII","ASIN","ATAN","ATAN2","AVG","BENCHMARK","BIN","BIN_TO_UUID","BINARY","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","CAN_ACCESS_COLUMN","CAN_ACCESS_DATABASE","CAN_ACCESS_TABLE","CAN_ACCESS_USER","CAN_ACCESS_VIEW","CAST","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CRC32","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DEFAULT","DEGREES","DENSE_RANK","DIV","ELT","EXP","EXPORT_SET","EXTRACT","EXTRACTVALUE","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOMCOLLECTION","GEOMETRYCOLLECTION","GET_DD_COLUMN_PRIVILEGES","GET_DD_CREATE_OPTIONS","GET_DD_INDEX_SUB_PART_LENGTH","GET_FORMAT","GET_LOCK","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","INTERNAL_AUTO_INCREMENT","INTERNAL_AVG_ROW_LENGTH","INTERNAL_CHECK_TIME","INTERNAL_CHECKSUM","INTERNAL_DATA_FREE","INTERNAL_DATA_LENGTH","INTERNAL_DD_CHAR_LENGTH","INTERNAL_GET_COMMENT_OR_ERROR","INTERNAL_GET_ENABLED_ROLE_JSON","INTERNAL_GET_HOSTNAME","INTERNAL_GET_USERNAME","INTERNAL_GET_VIEW_WARNING_OR_ERROR","INTERNAL_INDEX_COLUMN_CARDINALITY","INTERNAL_INDEX_LENGTH","INTERNAL_IS_ENABLED_ROLE","INTERNAL_IS_MANDATORY_ROLE","INTERNAL_KEYS_DISABLED","INTERNAL_MAX_DATA_LENGTH","INTERNAL_TABLE_ROWS","INTERNAL_UPDATE_TIME","INTERVAL","IS","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS NOT","IS NOT NULL","IS NULL","IS_USED_LOCK","IS_UUID","ISNULL","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","JSON_VALUE","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LINESTRING","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASTER_POS_WAIT","MATCH","MAX","MBRCONTAINS","MBRCOVEREDBY","MBRCOVERS","MBRDISJOINT","MBREQUALS","MBRINTERSECTS","MBROVERLAPS","MBRTOUCHES","MBRWITHIN","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MOD","MONTH","MONTHNAME","MULTILINESTRING","MULTIPOINT","MULTIPOLYGON","NAME_CONST","NOT","NOT IN","NOT LIKE","NOT REGEXP","NOW","NTH_VALUE","NTILE","NULLIF","OCT","OCTET_LENGTH","ORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","POINT","POLYGON","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","ST_AREA","ST_ASBINARY","ST_ASGEOJSON","ST_ASTEXT","ST_BUFFER","ST_BUFFER_STRATEGY","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_CONVEXHULL","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DISTANCE_SPHERE","ST_ENDPOINT","ST_ENVELOPE","ST_EQUALS","ST_EXTERIORRING","ST_FRECHETDISTANCE","ST_GEOHASH","ST_GEOMCOLLFROMTEXT","ST_GEOMCOLLFROMWKB","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMGEOJSON","ST_GEOMFROMTEXT","ST_GEOMFROMWKB","ST_HAUSDORFFDISTANCE","ST_INTERIORRINGN","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISSIMPLE","ST_ISVALID","ST_LATFROMGEOHASH","ST_LATITUDE","ST_LENGTH","ST_LINEFROMTEXT","ST_LINEFROMWKB","ST_LINEINTERPOLATEPOINT","ST_LINEINTERPOLATEPOINTS","ST_LONGFROMGEOHASH","ST_LONGITUDE","ST_MAKEENVELOPE","ST_MLINEFROMTEXT","ST_MLINEFROMWKB","ST_MPOINTFROMTEXT","ST_MPOINTFROMWKB","ST_MPOLYFROMTEXT","ST_MPOLYFROMWKB","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINTATDISTANCE","ST_POINTFROMGEOHASH","ST_POINTFROMTEXT","ST_POINTFROMWKB","ST_POINTN","ST_POLYFROMTEXT","ST_POLYFROMWKB","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SWAPXY","ST_SYMDIFFERENCE","ST_TOUCHES","ST_TRANSFORM","ST_UNION","ST_VALIDATE","ST_WITHIN","ST_X","ST_Y","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","YEAR","YEARWEEK","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),pE=TP(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),pu=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO]","REPLACE [LOW_PRIORITY | DELAYED] [INTO]","VALUES","SET","CREATE [OR REPLACE] [SQL SECURITY DEFINER | SQL SECURITY INVOKER] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY] TABLE [IF NOT EXISTS]"]),pc=TP(["UPDATE [LOW_PRIORITY] [IGNORE]","DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","{CHANGE | MODIFY} [COLUMN]","DROP [COLUMN]","RENAME [TO | AS]","RENAME COLUMN","ALTER [COLUMN]","{SET | DROP} DEFAULT","TRUNCATE [TABLE]","ALTER DATABASE","ALTER EVENT","ALTER FUNCTION","ALTER INSTANCE","ALTER LOGFILE GROUP","ALTER PROCEDURE","ALTER RESOURCE GROUP","ALTER SERVER","ALTER TABLESPACE","ALTER USER","ALTER VIEW","ANALYZE TABLE","BINLOG","CACHE INDEX","CALL","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK TABLE","CHECKSUM TABLE","CLONE","COMMIT","CREATE DATABASE","CREATE EVENT","CREATE FUNCTION","CREATE FUNCTION","CREATE INDEX","CREATE LOGFILE GROUP","CREATE PROCEDURE","CREATE RESOURCE GROUP","CREATE ROLE","CREATE SERVER","CREATE SPATIAL REFERENCE SYSTEM","CREATE TABLESPACE","CREATE TRIGGER","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DROP DATABASE","DROP EVENT","DROP FUNCTION","DROP FUNCTION","DROP INDEX","DROP LOGFILE GROUP","DROP PROCEDURE","DROP RESOURCE GROUP","DROP ROLE","DROP SERVER","DROP SPATIAL REFERENCE SYSTEM","DROP TABLESPACE","DROP TRIGGER","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","GRANT","HANDLER","HELP","IMPORT TABLE","INSTALL COMPONENT","INSTALL PLUGIN","KILL","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","RELEASE SAVEPOINT","RENAME TABLE","RENAME USER","REPAIR TABLE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW BINARY LOGS","SHOW BINLOG EVENTS","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE EVENT","SHOW CREATE FUNCTION","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE TRIGGER","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW EVENTS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW TRIGGERS","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SOURCE_POS_WAIT","START GROUP_REPLICATION","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP REPLICA","STOP SLAVE","TABLE","UNINSTALL COMPONENT","UNINSTALL PLUGIN","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),pd={tokenizerOptions:{reservedSelect:pE,reservedClauses:[...pu,...pc],reservedSetOperations:TP(["UNION [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL]","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),supportsXor:!0,reservedKeywords:po,reservedFunctionNames:pl,stringTypes:['""-qq-bs',{quote:"''-qq-bs",prefixes:["N"]},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_.$]+"},{quote:'""-qq-bs',prefixes:["@"],requirePrefix:!0},{quote:"''-qq-bs",prefixes:["@"],requirePrefix:!0},{quote:"``",prefixes:["@"],requirePrefix:!0}],paramTypes:{positional:!0},lineCommentTypes:["--","#"],operators:["%",":=","&","|","^","~","<<",">>","<=>","->","->>","&&","||","!"],postProcess:function(e){return e.map((t,n)=>{let r=e[n+1]||Tg;return Tb.SET(t)&&"("===r.text?{...t,type:i.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{onelineClauses:pc}},pT=TW({all:["ABORT","ABS","ACOS","ADVISOR","ARRAY_AGG","ARRAY_AGG","ARRAY_APPEND","ARRAY_AVG","ARRAY_BINARY_SEARCH","ARRAY_CONCAT","ARRAY_CONTAINS","ARRAY_COUNT","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_FLATTEN","ARRAY_IFNULL","ARRAY_INSERT","ARRAY_INTERSECT","ARRAY_LENGTH","ARRAY_MAX","ARRAY_MIN","ARRAY_MOVE","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_PUT","ARRAY_RANGE","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_REPLACE","ARRAY_REVERSE","ARRAY_SORT","ARRAY_STAR","ARRAY_SUM","ARRAY_SYMDIFF","ARRAY_SYMDIFF1","ARRAY_SYMDIFFN","ARRAY_UNION","ASIN","ATAN","ATAN2","AVG","BASE64","BASE64_DECODE","BASE64_ENCODE","BITAND ","BITCLEAR ","BITNOT ","BITOR ","BITSET ","BITSHIFT ","BITTEST ","BITXOR ","CEIL","CLOCK_LOCAL","CLOCK_MILLIS","CLOCK_STR","CLOCK_TZ","CLOCK_UTC","COALESCE","CONCAT","CONCAT2","CONTAINS","CONTAINS_TOKEN","CONTAINS_TOKEN_LIKE","CONTAINS_TOKEN_REGEXP","COS","COUNT","COUNT","COUNTN","CUME_DIST","CURL","DATE_ADD_MILLIS","DATE_ADD_STR","DATE_DIFF_MILLIS","DATE_DIFF_STR","DATE_FORMAT_STR","DATE_PART_MILLIS","DATE_PART_STR","DATE_RANGE_MILLIS","DATE_RANGE_STR","DATE_TRUNC_MILLIS","DATE_TRUNC_STR","DECODE","DECODE_JSON","DEGREES","DENSE_RANK","DURATION_TO_STR","ENCODED_SIZE","ENCODE_JSON","EXP","FIRST_VALUE","FLOOR","GREATEST","HAS_TOKEN","IFINF","IFMISSING","IFMISSINGORNULL","IFNAN","IFNANORINF","IFNULL","INITCAP","ISARRAY","ISATOM","ISBITSET","ISBOOLEAN","ISNUMBER","ISOBJECT","ISSTRING","LAG","LAST_VALUE","LEAD","LEAST","LENGTH","LN","LOG","LOWER","LTRIM","MAX","MEAN","MEDIAN","META","MILLIS","MILLIS_TO_LOCAL","MILLIS_TO_STR","MILLIS_TO_TZ","MILLIS_TO_UTC","MILLIS_TO_ZONE_NAME","MIN","MISSINGIF","NANIF","NEGINFIF","NOW_LOCAL","NOW_MILLIS","NOW_STR","NOW_TZ","NOW_UTC","NTH_VALUE","NTILE","NULLIF","NVL","NVL2","OBJECT_ADD","OBJECT_CONCAT","OBJECT_INNER_PAIRS","OBJECT_INNER_VALUES","OBJECT_LENGTH","OBJECT_NAMES","OBJECT_PAIRS","OBJECT_PUT","OBJECT_REMOVE","OBJECT_RENAME","OBJECT_REPLACE","OBJECT_UNWRAP","OBJECT_VALUES","PAIRS","PERCENT_RANK","PI","POLY_LENGTH","POSINFIF","POSITION","POWER","RADIANS","RANDOM","RANK","RATIO_TO_REPORT","REGEXP_CONTAINS","REGEXP_LIKE","REGEXP_MATCHES","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGEX_CONTAINS","REGEX_LIKE","REGEX_MATCHES","REGEX_POSITION","REGEX_REPLACE","REGEX_SPLIT","REPEAT","REPLACE","REVERSE","ROUND","ROW_NUMBER","RTRIM","SEARCH","SEARCH_META","SEARCH_SCORE","SIGN","SIN","SPLIT","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DURATION","STR_TO_MILLIS","STR_TO_TZ","STR_TO_UTC","STR_TO_ZONE_NAME","SUBSTR","SUFFIXES","SUM","TAN","TITLE","TOARRAY","TOATOM","TOBOOLEAN","TOKENS","TOKENS","TONUMBER","TOOBJECT","TOSTRING","TRIM","TRUNC","UPPER","UUID","VARIANCE","VARIANCE_POP","VARIANCE_SAMP","VAR_POP","VAR_SAMP","WEEKDAY_MILLIS","WEEKDAY_STR","CAST"]}),pp=TW({all:["ADVISE","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","BEGIN","BETWEEN","BINARY","BOOLEAN","BREAK","BUCKET","BUILD","BY","CALL","CASE","CAST","CLUSTER","COLLATE","COLLECTION","COMMIT","COMMITTED","CONNECT","CONTINUE","CORRELATED","COVER","CREATE","CURRENT","DATABASE","DATASET","DATASTORE","DECLARE","DECREMENT","DELETE","DERIVED","DESC","DESCRIBE","DISTINCT","DO","DROP","EACH","ELEMENT","ELSE","END","EVERY","EXCEPT","EXCLUDE","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FILTER","FIRST","FLATTEN","FLUSH","FOLLOWING","FOR","FORCE","FROM","FTS","FUNCTION","GOLANG","GRANT","GROUP","GROUPS","GSI","HASH","HAVING","IF","ISOLATION","IGNORE","ILIKE","IN","INCLUDE","INCREMENT","INDEX","INFER","INLINE","INNER","INSERT","INTERSECT","INTO","IS","JAVASCRIPT","JOIN","KEY","KEYS","KEYSPACE","KNOWN","LANGUAGE","LAST","LEFT","LET","LETTING","LEVEL","LIKE","LIMIT","LSM","MAP","MAPPING","MATCHED","MATERIALIZED","MERGE","MINUS","MISSING","NAMESPACE","NEST","NL","NO","NOT","NTH_VALUE","NULL","NULLS","NUMBER","OBJECT","OFFSET","ON","OPTION","OPTIONS","OR","ORDER","OTHERS","OUTER","OVER","PARSE","PARTITION","PASSWORD","PATH","POOL","PRECEDING","PREPARE","PRIMARY","PRIVATE","PRIVILEGE","PROBE","PROCEDURE","PUBLIC","RANGE","RAW","REALM","REDUCE","RENAME","RESPECT","RETURN","RETURNING","REVOKE","RIGHT","ROLE","ROLLBACK","ROW","ROWS","SATISFIES","SAVEPOINT","SCHEMA","SCOPE","SELECT","SELF","SEMI","SET","SHOW","SOME","START","STATISTICS","STRING","SYSTEM","THEN","TIES","TO","TRAN","TRANSACTION","TRIGGER","TRUE","TRUNCATE","UNBOUNDED","UNDER","UNION","UNIQUE","UNKNOWN","UNNEST","UNSET","UPDATE","UPSERT","USE","USER","USING","VALIDATE","VALUE","VALUED","VALUES","VIA","VIEW","WHEN","WHERE","WHILE","WINDOW","WITH","WITHIN","WORK","XOR"]}),p_=TP(["SELECT [ALL | DISTINCT]"]),ph=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","MERGE INTO","WHEN [NOT] MATCHED THEN","UPDATE SET","INSERT","NEST","UNNEST","RETURNING"]),pf=TP(["UPDATE","DELETE FROM","SET SCHEMA","ADVISE","ALTER INDEX","BEGIN TRANSACTION","BUILD INDEX","COMMIT TRANSACTION","CREATE COLLECTION","CREATE FUNCTION","CREATE INDEX","CREATE PRIMARY INDEX","CREATE SCOPE","DROP COLLECTION","DROP FUNCTION","DROP INDEX","DROP PRIMARY INDEX","DROP SCOPE","EXECUTE","EXECUTE FUNCTION","EXPLAIN","GRANT","INFER","PREPARE","REVOKE","ROLLBACK TRANSACTION","SAVEPOINT","SET TRANSACTION","UPDATE STATISTICS","UPSERT","LET","SET CURRENT SCHEMA","SHOW","USE [PRIMARY] KEYS"]),pS={tokenizerOptions:{reservedSelect:p_,reservedClauses:[...ph,...pf],reservedSetOperations:TP(["UNION [ALL]","EXCEPT [ALL]","INTERSECT [ALL]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT} [OUTER] JOIN","INNER JOIN"]),reservedPhrases:TP(["{ROWS | RANGE | GROUPS} BETWEEN"]),supportsXor:!0,reservedKeywords:pp,reservedFunctionNames:pT,stringTypes:['""-bs',"''-bs"],identTypes:["``"],extraParens:["[]","{}"],paramTypes:{positional:!0,numbered:["$"],named:["$"]},lineCommentTypes:["#","--"],operators:["%","==",":","||"]},formatOptions:{onelineClauses:pf}},pR=TW({all:["ADD","AGENT","AGGREGATE","ALL","ALTER","AND","ANY","ARRAY","ARROW","AS","ASC","AT","ATTRIBUTE","AUTHID","AVG","BEGIN","BETWEEN","BFILE_BASE","BINARY","BLOB_BASE","BLOCK","BODY","BOTH","BOUND","BULK","BY","BYTE","CALL","CALLING","CASCADE","CASE","CHAR","CHAR_BASE","CHARACTER","CHARSET","CHARSETFORM","CHARSETID","CHECK","CLOB_BASE","CLOSE","CLUSTER","CLUSTERS","COLAUTH","COLLECT","COLUMNS","COMMENT","COMMIT","COMMITTED","COMPILED","COMPRESS","CONNECT","CONSTANT","CONSTRUCTOR","CONTEXT","CONVERT","COUNT","CRASH","CREATE","CURRENT","CURSOR","CUSTOMDATUM","DANGLING","DATA","DATE","DATE_BASE","DAY","DECIMAL","DECLARE","DEFAULT","DEFINE","DELETE","DESC","DETERMINISTIC","DISTINCT","DOUBLE","DROP","DURATION","ELEMENT","ELSE","ELSIF","EMPTY","END","ESCAPE","EXCEPT","EXCEPTION","EXCEPTIONS","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FINAL","FIXED","FLOAT","FOR","FORALL","FORCE","FORM","FROM","FUNCTION","GENERAL","GOTO","GRANT","GROUP","HASH","HAVING","HEAP","HIDDEN","HOUR","IDENTIFIED","IF","IMMEDIATE","IN","INCLUDING","INDEX","INDEXES","INDICATOR","INDICES","INFINITE","INSERT","INSTANTIABLE","INT","INTERFACE","INTERSECT","INTERVAL","INTO","INVALIDATE","IS","ISOLATION","JAVA","LANGUAGE","LARGE","LEADING","LENGTH","LEVEL","LIBRARY","LIKE","LIKE2","LIKE4","LIKEC","LIMIT","LIMITED","LOCAL","LOCK","LONG","LOOP","MAP","MAX","MAXLEN","MEMBER","MERGE","MIN","MINUS","MINUTE","MOD","MODE","MODIFY","MONTH","MULTISET","NAME","NAN","NATIONAL","NATIVE","NCHAR","NEW","NOCOMPRESS","NOCOPY","NOT","NOWAIT","NULL","NUMBER_BASE","OBJECT","OCICOLL","OCIDATE","OCIDATETIME","OCIDURATION","OCIINTERVAL","OCILOBLOCATOR","OCINUMBER","OCIRAW","OCIREF","OCIREFCURSOR","OCIROWID","OCISTRING","OCITYPE","OF","ON","ONLY","OPAQUE","OPEN","OPERATOR","OPTION","OR","ORACLE","ORADATA","ORDER","OVERLAPS","ORGANIZATION","ORLANY","ORLVARY","OTHERS","OUT","OVERRIDING","PACKAGE","PARALLEL_ENABLE","PARAMETER","PARAMETERS","PARTITION","PASCAL","PIPE","PIPELINED","PRAGMA","PRECISION","PRIOR","PRIVATE","PROCEDURE","PUBLIC","RAISE","RANGE","RAW","READ","RECORD","REF","REFERENCE","REM","REMAINDER","RENAME","RESOURCE","RESULT","RETURN","RETURNING","REVERSE","REVOKE","ROLLBACK","ROW","SAMPLE","SAVE","SAVEPOINT","SB1","SB2","SB4","SECOND","SEGMENT","SELECT","SELF","SEPARATE","SEQUENCE","SERIALIZABLE","SET","SHARE","SHORT","SIZE","SIZE_T","SOME","SPARSE","SQL","SQLCODE","SQLDATA","SQLNAME","SQLSTATE","STANDARD","START","STATIC","STDDEV","STORED","STRING","STRUCT","STYLE","SUBMULTISET","SUBPARTITION","SUBSTITUTABLE","SUBTYPE","SUM","SYNONYM","TABAUTH","TABLE","TDO","THE","THEN","TIME","TIMESTAMP","TIMEZONE_ABBR","TIMEZONE_HOUR","TIMEZONE_MINUTE","TIMEZONE_REGION","TO","TRAILING","TRANSAC","TRANSACTIONAL","TRUSTED","TYPE","UB1","UB2","UB4","UNDER","UNION","UNIQUE","UNSIGNED","UNTRUSTED","UPDATE","USE","USING","VALIST","VALUE","VALUES","VARIABLE","VARIANCE","VARRAY","VARYING","VIEW","VIEWS","VOID","WHEN","WHERE","WHILE","WITH","WORK","WRAPPED","WRITE","YEAR","ZONE"]}),pA=TW({numeric:["ABS","ACOS","ASIN","ATAN","ATAN2","BITAND","CEIL","COS","COSH","EXP","FLOOR","LN","LOG","MOD","NANVL","POWER","REMAINDER","ROUND","SIGN","SIN","SINH","SQRT","TAN","TANH","TRUNC","WIDTH_BUCKET"],character:["CHR","CONCAT","INITCAP","LOWER","LPAD","LTRIM","NLS_INITCAP","NLS_LOWER","NLSSORT","NLS_UPPER","REGEXP_REPLACE","REGEXP_SUBSTR","REPLACE","RPAD","RTRIM","SOUNDEX","SUBSTR","TRANSLATE","TREAT","TRIM","UPPER","NLS_CHARSET_DECL_LEN","NLS_CHARSET_ID","NLS_CHARSET_NAME","ASCII","INSTR","LENGTH","REGEXP_INSTR"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_TIMESTAMP","DBTIMEZONE","EXTRACT","FROM_TZ","LAST_DAY","LOCALTIMESTAMP","MONTHS_BETWEEN","NEW_TIME","NEXT_DAY","NUMTODSINTERVAL","NUMTOYMINTERVAL","ROUND","SESSIONTIMEZONE","SYS_EXTRACT_UTC","SYSDATE","SYSTIMESTAMP","TO_CHAR","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_DSINTERVAL","TO_YMINTERVAL","TRUNC","TZ_OFFSET"],comparison:["GREATEST","LEAST"],conversion:["ASCIISTR","BIN_TO_NUM","CAST","CHARTOROWID","COMPOSE","CONVERT","DECOMPOSE","HEXTORAW","NUMTODSINTERVAL","NUMTOYMINTERVAL","RAWTOHEX","RAWTONHEX","ROWIDTOCHAR","ROWIDTONCHAR","SCN_TO_TIMESTAMP","TIMESTAMP_TO_SCN","TO_BINARY_DOUBLE","TO_BINARY_FLOAT","TO_CHAR","TO_CLOB","TO_DATE","TO_DSINTERVAL","TO_LOB","TO_MULTI_BYTE","TO_NCHAR","TO_NCLOB","TO_NUMBER","TO_DSINTERVAL","TO_SINGLE_BYTE","TO_TIMESTAMP","TO_TIMESTAMP_TZ","TO_YMINTERVAL","TO_YMINTERVAL","TRANSLATE","UNISTR"],largeObject:["BFILENAME","EMPTY_BLOB,","EMPTY_CLOB"],collection:["CARDINALITY","COLLECT","POWERMULTISET","POWERMULTISET_BY_CARDINALITY","SET"],hierarchical:["SYS_CONNECT_BY_PATH"],dataMining:["CLUSTER_ID","CLUSTER_PROBABILITY","CLUSTER_SET","FEATURE_ID","FEATURE_SET","FEATURE_VALUE","PREDICTION","PREDICTION_COST","PREDICTION_DETAILS","PREDICTION_PROBABILITY","PREDICTION_SET"],xml:["APPENDCHILDXML","DELETEXML","DEPTH","EXTRACT","EXISTSNODE","EXTRACTVALUE","INSERTCHILDXML","INSERTXMLBEFORE","PATH","SYS_DBURIGEN","SYS_XMLAGG","SYS_XMLGEN","UPDATEXML","XMLAGG","XMLCDATA","XMLCOLATTVAL","XMLCOMMENT","XMLCONCAT","XMLFOREST","XMLPARSE","XMLPI","XMLQUERY","XMLROOT","XMLSEQUENCE","XMLSERIALIZE","XMLTABLE","XMLTRANSFORM"],encoding:["DECODE","DUMP","ORA_HASH","VSIZE"],nullRelated:["COALESCE","LNNVL","NULLIF","NVL","NVL2"],env:["SYS_CONTEXT","SYS_GUID","SYS_TYPEID","UID","USER","USERENV"],aggregate:["AVG","COLLECT","CORR","CORR_S","CORR_K","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","FIRST","GROUP_ID","GROUPING","GROUPING_ID","LAST","MAX","MEDIAN","MIN","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANK","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","STATS_BINOMIAL_TEST","STATS_CROSSTAB","STATS_F_TEST","STATS_KS_TEST","STATS_MODE","STATS_MW_TEST","STATS_ONE_WAY_ANOVA","STATS_T_TEST_ONE","STATS_T_TEST_PAIRED","STATS_T_TEST_INDEP","STATS_T_TEST_INDEPU","STATS_WSR_TEST","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTILE","RATIO_TO_REPORT","ROW_NUMBER"],objectReference:["DEREF","MAKE_REF","REF","REFTOHEX","VALUE"],model:["CV","ITERATION_NUMBER","PRESENTNNV","PRESENTV","PREVIOUS"],dataTypes:["VARCHAR2","NVARCHAR2","NUMBER","FLOAT","TIMESTAMP","INTERVAL YEAR","INTERVAL DAY","RAW","UROWID","NCHAR","CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","NATIONAL CHARACTER","NATIONAL CHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NUMERIC","DECIMAL","FLOAT","VARCHAR"]}),pO=TP(["SELECT [ALL | DISTINCT | UNIQUE]"]),pN=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER [SIBLINGS] BY","OFFSET","FETCH {FIRST | NEXT}","FOR UPDATE [OF]","INSERT [INTO | ALL INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [THEN]","UPDATE SET","CREATE [OR REPLACE] [NO FORCE | FORCE] [EDITIONING | EDITIONABLE | EDITIONABLE EDITIONING | NONEDITIONABLE] VIEW","CREATE MATERIALIZED VIEW","CREATE [GLOBAL TEMPORARY | PRIVATE TEMPORARY | SHARDED | DUPLICATED | IMMUTABLE BLOCKCHAIN | BLOCKCHAIN | IMMUTABLE] TABLE","RETURNING"]),pI=TP(["UPDATE [ONLY]","DELETE FROM [ONLY]","DROP TABLE","ALTER TABLE","ADD","DROP {COLUMN | UNUSED COLUMNS | COLUMNS CONTINUE}","MODIFY","RENAME TO","RENAME COLUMN","TRUNCATE TABLE","SET SCHEMA","BEGIN","CONNECT BY","DECLARE","EXCEPT","EXCEPTION","LOOP","START WITH"]),pm={tokenizerOptions:{reservedSelect:pO,reservedClauses:[...pN,...pI],reservedSetOperations:TP(["UNION [ALL]","EXCEPT","INTERSECT"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | OUTER} APPLY"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL]","ON COMMIT","{ROWS | RANGE} BETWEEN"]),supportsXor:!0,reservedKeywords:pR,reservedFunctionNames:pA,stringTypes:[{quote:"''-qq",prefixes:["N"]},{quote:"q''",prefixes:["N"]}],identTypes:['""-qq'],identChars:{rest:"$#"},variableTypes:[{regex:"&{1,2}[A-Za-z][A-Za-z0-9_$#]*"}],paramTypes:{numbered:[":"],named:[":"]},paramChars:{},operators:["**",":=","%","~=","^=",">>","<<","=>","@","||"],postProcess:function(e){let t=Tg;return e.map(e=>Tb.SET(e)&&Tb.BY(t)?{...e,type:i.RESERVED_KEYWORD}:(Tv(e.type)&&(t=e),e))}},formatOptions:{alwaysDenseOperators:["@"],onelineClauses:pI}},pC=TW({math:["ABS","ACOS","ACOSD","ACOSH","ASIN","ASIND","ASINH","ATAN","ATAN2","ATAN2D","ATAND","ATANH","CBRT","CEIL","CEILING","COS","COSD","COSH","COT","COTD","DEGREES","DIV","EXP","FACTORIAL","FLOOR","GCD","LCM","LN","LOG","LOG10","MIN_SCALE","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SCALE","SETSEED","SIGN","SIN","SIND","SINH","SQRT","TAN","TAND","TANH","TRIM_SCALE","TRUNC","WIDTH_BUCKET"],string:["ABS","ASCII","BIT_LENGTH","BTRIM","CHARACTER_LENGTH","CHAR_LENGTH","CHR","CONCAT","CONCAT_WS","FORMAT","INITCAP","LEFT","LENGTH","LOWER","LPAD","LTRIM","MD5","NORMALIZE","OCTET_LENGTH","OVERLAY","PARSE_IDENT","PG_CLIENT_ENCODING","POSITION","QUOTE_IDENT","QUOTE_LITERAL","QUOTE_NULLABLE","REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE","REPEAT","REPLACE","REVERSE","RIGHT","RPAD","RTRIM","SPLIT_PART","SPRINTF","STARTS_WITH","STRING_AGG","STRING_TO_ARRAY","STRING_TO_TABLE","STRPOS","SUBSTR","SUBSTRING","TO_ASCII","TO_HEX","TRANSLATE","TRIM","UNISTR","UPPER"],binary:["BIT_COUNT","BIT_LENGTH","BTRIM","CONVERT","CONVERT_FROM","CONVERT_TO","DECODE","ENCODE","GET_BIT","GET_BYTE","LENGTH","LTRIM","MD5","OCTET_LENGTH","OVERLAY","POSITION","RTRIM","SET_BIT","SET_BYTE","SHA224","SHA256","SHA384","SHA512","STRING_AGG","SUBSTR","SUBSTRING","TRIM"],bitstring:["BIT_COUNT","BIT_LENGTH","GET_BIT","LENGTH","OCTET_LENGTH","OVERLAY","POSITION","SET_BIT","SUBSTRING"],pattern:["REGEXP_MATCH","REGEXP_MATCHES","REGEXP_REPLACE","REGEXP_SPLIT_TO_ARRAY","REGEXP_SPLIT_TO_TABLE"],datatype:["TO_CHAR","TO_DATE","TO_NUMBER","TO_TIMESTAMP"],datetime:["CLOCK_TIMESTAMP","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_BIN","DATE_PART","DATE_TRUNC","EXTRACT","ISFINITE","JUSTIFY_DAYS","JUSTIFY_HOURS","JUSTIFY_INTERVAL","LOCALTIME","LOCALTIMESTAMP","MAKE_DATE","MAKE_INTERVAL","MAKE_TIME","MAKE_TIMESTAMP","MAKE_TIMESTAMPTZ","NOW","PG_SLEEP","PG_SLEEP_FOR","PG_SLEEP_UNTIL","STATEMENT_TIMESTAMP","TIMEOFDAY","TO_TIMESTAMP","TRANSACTION_TIMESTAMP"],enum:["ENUM_FIRST","ENUM_LAST","ENUM_RANGE"],geometry:["AREA","BOUND_BOX","BOX","CENTER","CIRCLE","DIAGONAL","DIAMETER","HEIGHT","ISCLOSED","ISOPEN","LENGTH","LINE","LSEG","NPOINTS","PATH","PCLOSE","POINT","POLYGON","POPEN","RADIUS","SLOPE","WIDTH"],network:["ABBREV","BROADCAST","FAMILY","HOST","HOSTMASK","INET_MERGE","INET_SAME_FAMILY","MACADDR8_SET7BIT","MASKLEN","NETMASK","NETWORK","SET_MASKLEN","TEXT","TRUNC"],textsearch:["ARRAY_TO_TSVECTOR","GET_CURRENT_TS_CONFIG","JSONB_TO_TSVECTOR","JSON_TO_TSVECTOR","LENGTH","NUMNODE","PHRASETO_TSQUERY","PLAINTO_TSQUERY","QUERYTREE","SETWEIGHT","STRIP","TO_TSQUERY","TO_TSVECTOR","TSQUERY_PHRASE","TSVECTOR_TO_ARRAY","TS_DEBUG","TS_DELETE","TS_FILTER","TS_HEADLINE","TS_LEXIZE","TS_PARSE","TS_RANK","TS_RANK_CD","TS_REWRITE","TS_STAT","TS_TOKEN_TYPE","WEBSEARCH_TO_TSQUERY"],uuid:["UUID"],xml:["CURSOR_TO_XML","CURSOR_TO_XMLSCHEMA","DATABASE_TO_XML","DATABASE_TO_XMLSCHEMA","DATABASE_TO_XML_AND_XMLSCHEMA","NEXTVAL","QUERY_TO_XML","QUERY_TO_XMLSCHEMA","QUERY_TO_XML_AND_XMLSCHEMA","SCHEMA_TO_XML","SCHEMA_TO_XMLSCHEMA","SCHEMA_TO_XML_AND_XMLSCHEMA","STRING","TABLE_TO_XML","TABLE_TO_XMLSCHEMA","TABLE_TO_XML_AND_XMLSCHEMA","XMLAGG","XMLCOMMENT","XMLCONCAT","XMLELEMENT","XMLEXISTS","XMLFOREST","XMLPARSE","XMLPI","XMLROOT","XMLSERIALIZE","XMLTABLE","XML_IS_WELL_FORMED","XML_IS_WELL_FORMED_CONTENT","XML_IS_WELL_FORMED_DOCUMENT","XPATH","XPATH_EXISTS"],json:["ARRAY_TO_JSON","JSONB_AGG","JSONB_ARRAY_ELEMENTS","JSONB_ARRAY_ELEMENTS_TEXT","JSONB_ARRAY_LENGTH","JSONB_BUILD_ARRAY","JSONB_BUILD_OBJECT","JSONB_EACH","JSONB_EACH_TEXT","JSONB_EXTRACT_PATH","JSONB_EXTRACT_PATH_TEXT","JSONB_INSERT","JSONB_OBJECT","JSONB_OBJECT_AGG","JSONB_OBJECT_KEYS","JSONB_PATH_EXISTS","JSONB_PATH_EXISTS_TZ","JSONB_PATH_MATCH","JSONB_PATH_MATCH_TZ","JSONB_PATH_QUERY","JSONB_PATH_QUERY_ARRAY","JSONB_PATH_QUERY_ARRAY_TZ","JSONB_PATH_QUERY_FIRST","JSONB_PATH_QUERY_FIRST_TZ","JSONB_PATH_QUERY_TZ","JSONB_POPULATE_RECORD","JSONB_POPULATE_RECORDSET","JSONB_PRETTY","JSONB_SET","JSONB_SET_LAX","JSONB_STRIP_NULLS","JSONB_TO_RECORD","JSONB_TO_RECORDSET","JSONB_TYPEOF","JSON_AGG","JSON_ARRAY_ELEMENTS","JSON_ARRAY_ELEMENTS_TEXT","JSON_ARRAY_LENGTH","JSON_BUILD_ARRAY","JSON_BUILD_OBJECT","JSON_EACH","JSON_EACH_TEXT","JSON_EXTRACT_PATH","JSON_EXTRACT_PATH_TEXT","JSON_OBJECT","JSON_OBJECT_AGG","JSON_OBJECT_KEYS","JSON_POPULATE_RECORD","JSON_POPULATE_RECORDSET","JSON_STRIP_NULLS","JSON_TO_RECORD","JSON_TO_RECORDSET","JSON_TYPEOF","ROW_TO_JSON","TO_JSON","TO_JSONB","TO_TIMESTAMP"],sequence:["CURRVAL","LASTVAL","NEXTVAL","SETVAL"],conditional:["COALESCE","GREATEST","LEAST","NULLIF"],array:["ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_DIMS","ARRAY_FILL","ARRAY_LENGTH","ARRAY_LOWER","ARRAY_NDIMS","ARRAY_POSITION","ARRAY_POSITIONS","ARRAY_PREPEND","ARRAY_REMOVE","ARRAY_REPLACE","ARRAY_TO_STRING","ARRAY_UPPER","CARDINALITY","STRING_TO_ARRAY","TRIM_ARRAY","UNNEST"],range:["ISEMPTY","LOWER","LOWER_INC","LOWER_INF","MULTIRANGE","RANGE_MERGE","UPPER","UPPER_INC","UPPER_INF"],aggregate:["ARRAY_AGG","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COALESCE","CORR","COUNT","COVAR_POP","COVAR_SAMP","CUME_DIST","DENSE_RANK","EVERY","GROUPING","JSONB_AGG","JSONB_OBJECT_AGG","JSON_AGG","JSON_OBJECT_AGG","MAX","MIN","MODE","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","RANGE_AGG","RANGE_INTERSECT_AGG","RANK","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","STDDEV","STDDEV_POP","STDDEV_SAMP","STRING_AGG","SUM","TO_JSON","TO_JSONB","VARIANCE","VAR_POP","VAR_SAMP","XMLAGG"],window:["CUME_DIST","DENSE_RANK","FIRST_VALUE","LAG","LAST_VALUE","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],set:["GENERATE_SERIES","GENERATE_SUBSCRIPTS"],sysInfo:["ACLDEFAULT","ACLEXPLODE","COL_DESCRIPTION","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_QUERY","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","FORMAT_TYPE","HAS_ANY_COLUMN_PRIVILEGE","HAS_COLUMN_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_FOREIGN_DATA_WRAPPER_PRIVILEGE","HAS_FUNCTION_PRIVILEGE","HAS_LANGUAGE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_SEQUENCE_PRIVILEGE","HAS_SERVER_PRIVILEGE","HAS_TABLESPACE_PRIVILEGE","HAS_TABLE_PRIVILEGE","HAS_TYPE_PRIVILEGE","INET_CLIENT_ADDR","INET_CLIENT_PORT","INET_SERVER_ADDR","INET_SERVER_PORT","MAKEACLITEM","OBJ_DESCRIPTION","PG_BACKEND_PID","PG_BLOCKING_PIDS","PG_COLLATION_IS_VISIBLE","PG_CONF_LOAD_TIME","PG_CONTROL_CHECKPOINT","PG_CONTROL_INIT","PG_CONTROL_SYSTEM","PG_CONVERSION_IS_VISIBLE","PG_CURRENT_LOGFILE","PG_CURRENT_SNAPSHOT","PG_CURRENT_XACT_ID","PG_CURRENT_XACT_ID_IF_ASSIGNED","PG_DESCRIBE_OBJECT","PG_FUNCTION_IS_VISIBLE","PG_GET_CATALOG_FOREIGN_KEYS","PG_GET_CONSTRAINTDEF","PG_GET_EXPR","PG_GET_FUNCTIONDEF","PG_GET_FUNCTION_ARGUMENTS","PG_GET_FUNCTION_IDENTITY_ARGUMENTS","PG_GET_FUNCTION_RESULT","PG_GET_INDEXDEF","PG_GET_KEYWORDS","PG_GET_OBJECT_ADDRESS","PG_GET_OWNED_SEQUENCE","PG_GET_RULEDEF","PG_GET_SERIAL_SEQUENCE","PG_GET_STATISTICSOBJDEF","PG_GET_TRIGGERDEF","PG_GET_USERBYID","PG_GET_VIEWDEF","PG_HAS_ROLE","PG_IDENTIFY_OBJECT","PG_IDENTIFY_OBJECT_AS_ADDRESS","PG_INDEXAM_HAS_PROPERTY","PG_INDEX_COLUMN_HAS_PROPERTY","PG_INDEX_HAS_PROPERTY","PG_IS_OTHER_TEMP_SCHEMA","PG_JIT_AVAILABLE","PG_LAST_COMMITTED_XACT","PG_LISTENING_CHANNELS","PG_MY_TEMP_SCHEMA","PG_NOTIFICATION_QUEUE_USAGE","PG_OPCLASS_IS_VISIBLE","PG_OPERATOR_IS_VISIBLE","PG_OPFAMILY_IS_VISIBLE","PG_OPTIONS_TO_TABLE","PG_POSTMASTER_START_TIME","PG_SAFE_SNAPSHOT_BLOCKING_PIDS","PG_SNAPSHOT_XIP","PG_SNAPSHOT_XMAX","PG_SNAPSHOT_XMIN","PG_STATISTICS_OBJ_IS_VISIBLE","PG_TABLESPACE_DATABASES","PG_TABLESPACE_LOCATION","PG_TABLE_IS_VISIBLE","PG_TRIGGER_DEPTH","PG_TS_CONFIG_IS_VISIBLE","PG_TS_DICT_IS_VISIBLE","PG_TS_PARSER_IS_VISIBLE","PG_TS_TEMPLATE_IS_VISIBLE","PG_TYPEOF","PG_TYPE_IS_VISIBLE","PG_VISIBLE_IN_SNAPSHOT","PG_XACT_COMMIT_TIMESTAMP","PG_XACT_COMMIT_TIMESTAMP_ORIGIN","PG_XACT_STATUS","PQSERVERVERSION","ROW_SECURITY_ACTIVE","SESSION_USER","SHOBJ_DESCRIPTION","TO_REGCLASS","TO_REGCOLLATION","TO_REGNAMESPACE","TO_REGOPER","TO_REGOPERATOR","TO_REGPROC","TO_REGPROCEDURE","TO_REGROLE","TO_REGTYPE","TXID_CURRENT","TXID_CURRENT_IF_ASSIGNED","TXID_CURRENT_SNAPSHOT","TXID_SNAPSHOT_XIP","TXID_SNAPSHOT_XMAX","TXID_SNAPSHOT_XMIN","TXID_STATUS","TXID_VISIBLE_IN_SNAPSHOT","USER","VERSION"],sysAdmin:["BRIN_DESUMMARIZE_RANGE","BRIN_SUMMARIZE_NEW_VALUES","BRIN_SUMMARIZE_RANGE","CONVERT_FROM","CURRENT_SETTING","GIN_CLEAN_PENDING_LIST","PG_ADVISORY_LOCK","PG_ADVISORY_LOCK_SHARED","PG_ADVISORY_UNLOCK","PG_ADVISORY_UNLOCK_ALL","PG_ADVISORY_UNLOCK_SHARED","PG_ADVISORY_XACT_LOCK","PG_ADVISORY_XACT_LOCK_SHARED","PG_BACKUP_START_TIME","PG_CANCEL_BACKEND","PG_COLLATION_ACTUAL_VERSION","PG_COLUMN_COMPRESSION","PG_COLUMN_SIZE","PG_COPY_LOGICAL_REPLICATION_SLOT","PG_COPY_PHYSICAL_REPLICATION_SLOT","PG_CREATE_LOGICAL_REPLICATION_SLOT","PG_CREATE_PHYSICAL_REPLICATION_SLOT","PG_CREATE_RESTORE_POINT","PG_CURRENT_WAL_FLUSH_LSN","PG_CURRENT_WAL_INSERT_LSN","PG_CURRENT_WAL_LSN","PG_DATABASE_SIZE","PG_DROP_REPLICATION_SLOT","PG_EXPORT_SNAPSHOT","PG_FILENODE_RELATION","PG_GET_WAL_REPLAY_PAUSE_STATE","PG_IMPORT_SYSTEM_COLLATIONS","PG_INDEXES_SIZE","PG_IS_IN_BACKUP","PG_IS_IN_RECOVERY","PG_IS_WAL_REPLAY_PAUSED","PG_LAST_WAL_RECEIVE_LSN","PG_LAST_WAL_REPLAY_LSN","PG_LAST_XACT_REPLAY_TIMESTAMP","PG_LOGICAL_EMIT_MESSAGE","PG_LOGICAL_SLOT_GET_BINARY_CHANGES","PG_LOGICAL_SLOT_GET_CHANGES","PG_LOGICAL_SLOT_PEEK_BINARY_CHANGES","PG_LOGICAL_SLOT_PEEK_CHANGES","PG_LOG_BACKEND_MEMORY_CONTEXTS","PG_LS_ARCHIVE_STATUSDIR","PG_LS_DIR","PG_LS_LOGDIR","PG_LS_TMPDIR","PG_LS_WALDIR","PG_PARTITION_ANCESTORS","PG_PARTITION_ROOT","PG_PARTITION_TREE","PG_PROMOTE","PG_READ_BINARY_FILE","PG_READ_FILE","PG_RELATION_FILENODE","PG_RELATION_FILEPATH","PG_RELATION_SIZE","PG_RELOAD_CONF","PG_REPLICATION_ORIGIN_ADVANCE","PG_REPLICATION_ORIGIN_CREATE","PG_REPLICATION_ORIGIN_DROP","PG_REPLICATION_ORIGIN_OID","PG_REPLICATION_ORIGIN_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_IS_SETUP","PG_REPLICATION_ORIGIN_SESSION_PROGRESS","PG_REPLICATION_ORIGIN_SESSION_RESET","PG_REPLICATION_ORIGIN_SESSION_SETUP","PG_REPLICATION_ORIGIN_XACT_RESET","PG_REPLICATION_ORIGIN_XACT_SETUP","PG_REPLICATION_SLOT_ADVANCE","PG_ROTATE_LOGFILE","PG_SIZE_BYTES","PG_SIZE_PRETTY","PG_START_BACKUP","PG_STAT_FILE","PG_STOP_BACKUP","PG_SWITCH_WAL","PG_TABLESPACE_SIZE","PG_TABLE_SIZE","PG_TERMINATE_BACKEND","PG_TOTAL_RELATION_SIZE","PG_TRY_ADVISORY_LOCK","PG_TRY_ADVISORY_LOCK_SHARED","PG_TRY_ADVISORY_XACT_LOCK","PG_TRY_ADVISORY_XACT_LOCK_SHARED","PG_WALFILE_NAME","PG_WALFILE_NAME_OFFSET","PG_WAL_LSN_DIFF","PG_WAL_REPLAY_PAUSE","PG_WAL_REPLAY_RESUME","SET_CONFIG"],trigger:["SUPPRESS_REDUNDANT_UPDATES_TRIGGER","TSVECTOR_UPDATE_TRIGGER","TSVECTOR_UPDATE_TRIGGER_COLUMN"],eventTrigger:["PG_EVENT_TRIGGER_DDL_COMMANDS","PG_EVENT_TRIGGER_DROPPED_OBJECTS","PG_EVENT_TRIGGER_TABLE_REWRITE_OID","PG_EVENT_TRIGGER_TABLE_REWRITE_REASON","PG_GET_OBJECT_ADDRESS"],stats:["PG_MCV_LIST_ITEMS"],cast:["CAST"],dataTypes:["BIT","BIT VARYING","CHARACTER","CHARACTER VARYING","VARCHAR","CHAR","DECIMAL","NUMERIC","TIME","TIMESTAMP","ENUM"]}),pL=TW({all:["ABORT","ABSOLUTE","ACCESS","ACTION","ADD","ADMIN","AFTER","AGGREGATE","ALL","ALSO","ALTER","ALWAYS","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASENSITIVE","ASSERTION","ASSIGNMENT","ASYMMETRIC","AT","ATOMIC","ATTACH","ATTRIBUTE","AUTHORIZATION","BACKWARD","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","BIT","BOOLEAN","BOTH","BREADTH","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","COMPRESSION","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","DEPTH","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","FINALIZE","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","RETURN","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"]}),pg=TP(["SELECT [ALL | DISTINCT]"]),py=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","FOR {UPDATE | NO KEY UPDATE | SHARE | KEY SHARE} [OF]","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [TEMP | TEMPORARY] [RECURSIVE] VIEW","CREATE MATERIALIZED VIEW [IF NOT EXISTS]","CREATE [GLOBAL | LOCAL] [TEMPORARY | TEMP | UNLOGGED] TABLE [IF NOT EXISTS]","RETURNING"]),pb=TP(["UPDATE [ONLY]","WHERE CURRENT OF","ON CONFLICT","DELETE FROM [ONLY]","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS] [ONLY]","ALTER TABLE ALL IN TABLESPACE","RENAME [COLUMN]","RENAME TO","ADD [COLUMN] [IF NOT EXISTS]","DROP [COLUMN] [IF EXISTS]","ALTER [COLUMN]","[SET DATA] TYPE","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","TRUNCATE [TABLE] [ONLY]","SET SCHEMA","AFTER","ABORT","ALTER AGGREGATE","ALTER COLLATION","ALTER CONVERSION","ALTER DATABASE","ALTER DEFAULT PRIVILEGES","ALTER DOMAIN","ALTER EVENT TRIGGER","ALTER EXTENSION","ALTER FOREIGN DATA WRAPPER","ALTER FOREIGN TABLE","ALTER FUNCTION","ALTER GROUP","ALTER INDEX","ALTER LANGUAGE","ALTER LARGE OBJECT","ALTER MATERIALIZED VIEW","ALTER OPERATOR","ALTER OPERATOR CLASS","ALTER OPERATOR FAMILY","ALTER POLICY","ALTER PROCEDURE","ALTER PUBLICATION","ALTER ROLE","ALTER ROUTINE","ALTER RULE","ALTER SCHEMA","ALTER SEQUENCE","ALTER SERVER","ALTER STATISTICS","ALTER SUBSCRIPTION","ALTER SYSTEM","ALTER TABLESPACE","ALTER TEXT SEARCH CONFIGURATION","ALTER TEXT SEARCH DICTIONARY","ALTER TEXT SEARCH PARSER","ALTER TEXT SEARCH TEMPLATE","ALTER TRIGGER","ALTER TYPE","ALTER USER","ALTER USER MAPPING","ALTER VIEW","ANALYZE","BEGIN","CALL","CHECKPOINT","CLOSE","CLUSTER","COMMENT","COMMIT","COMMIT PREPARED","COPY","CREATE ACCESS METHOD","CREATE AGGREGATE","CREATE CAST","CREATE COLLATION","CREATE CONVERSION","CREATE DATABASE","CREATE DOMAIN","CREATE EVENT TRIGGER","CREATE EXTENSION","CREATE FOREIGN DATA WRAPPER","CREATE FOREIGN TABLE","CREATE FUNCTION","CREATE GROUP","CREATE INDEX","CREATE LANGUAGE","CREATE OPERATOR","CREATE OPERATOR CLASS","CREATE OPERATOR FAMILY","CREATE POLICY","CREATE PROCEDURE","CREATE PUBLICATION","CREATE ROLE","CREATE RULE","CREATE SCHEMA","CREATE SEQUENCE","CREATE SERVER","CREATE STATISTICS","CREATE SUBSCRIPTION","CREATE TABLESPACE","CREATE TEXT SEARCH CONFIGURATION","CREATE TEXT SEARCH DICTIONARY","CREATE TEXT SEARCH PARSER","CREATE TEXT SEARCH TEMPLATE","CREATE TRANSFORM","CREATE TRIGGER","CREATE TYPE","CREATE USER","CREATE USER MAPPING","DEALLOCATE","DECLARE","DISCARD","DROP ACCESS METHOD","DROP AGGREGATE","DROP CAST","DROP COLLATION","DROP CONVERSION","DROP DATABASE","DROP DOMAIN","DROP EVENT TRIGGER","DROP EXTENSION","DROP FOREIGN DATA WRAPPER","DROP FOREIGN TABLE","DROP FUNCTION","DROP GROUP","DROP INDEX","DROP LANGUAGE","DROP MATERIALIZED VIEW","DROP OPERATOR","DROP OPERATOR CLASS","DROP OPERATOR FAMILY","DROP OWNED","DROP POLICY","DROP PROCEDURE","DROP PUBLICATION","DROP ROLE","DROP ROUTINE","DROP RULE","DROP SCHEMA","DROP SEQUENCE","DROP SERVER","DROP STATISTICS","DROP SUBSCRIPTION","DROP TABLESPACE","DROP TEXT SEARCH CONFIGURATION","DROP TEXT SEARCH DICTIONARY","DROP TEXT SEARCH PARSER","DROP TEXT SEARCH TEMPLATE","DROP TRANSFORM","DROP TRIGGER","DROP TYPE","DROP USER","DROP USER MAPPING","DROP VIEW","EXECUTE","EXPLAIN","FETCH","GRANT","IMPORT FOREIGN SCHEMA","LISTEN","LOAD","LOCK","MOVE","NOTIFY","PREPARE","PREPARE TRANSACTION","REASSIGN OWNED","REFRESH MATERIALIZED VIEW","REINDEX","RELEASE SAVEPOINT","RESET","REVOKE","ROLLBACK","ROLLBACK PREPARED","ROLLBACK TO SAVEPOINT","SAVEPOINT","SECURITY LABEL","SELECT INTO","SET CONSTRAINTS","SET ROLE","SET SESSION AUTHORIZATION","SET TRANSACTION","SHOW","START TRANSACTION","UNLISTEN","VACUUM"]),pv={tokenizerOptions:{reservedSelect:pg,reservedClauses:[...py,...pb],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN","{TIMESTAMP | TIME} {WITH | WITHOUT} TIME ZONE","IS [NOT] DISTINCT FROM"]),reservedKeywords:pL,reservedFunctionNames:pC,nestedBlockComments:!0,extraParens:["[]"],stringTypes:["$$",{quote:"''-qq",prefixes:["U&"]},{quote:"''-bs",prefixes:["E"],requirePrefix:!0},{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:[{quote:'""-qq',prefixes:["U&"]}],identChars:{rest:"$"},paramTypes:{numbered:["$"]},operators:["%","^","|/","||/","@",":=","&","|","#","~","<<",">>","~>~","~<~","~>=~","~<=~","@-@","@@","##","<->","&&","&<","&>","<<|","&<|","|>>","|&>","<^","^>","?#","?-","?|","?-|","?||","@>","<@","~=","?","@?","?&","->","->>","#>","#>>","#-","=>",">>=","<<=","~~","~~*","!~~","!~~*","~","~*","!~","!~*","-|-","||","@@@","!!","<%","%>","<<%","%>>","<<->","<->>","<<<->","<->>>","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:pb}},pD=TW({aggregate:["ANY_VALUE","APPROXIMATE PERCENTILE_DISC","AVG","COUNT","LISTAGG","MAX","MEDIAN","MIN","PERCENTILE_CONT","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],array:["array","array_concat","array_flatten","get_array_length","split_to_array","subarray"],bitwise:["BIT_AND","BIT_OR","BOOL_AND","BOOL_OR"],conditional:["COALESCE","DECODE","GREATEST","LEAST","NVL","NVL2","NULLIF"],dateTime:["ADD_MONTHS","AT TIME ZONE","CONVERT_TIMEZONE","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE_CMP","DATE_CMP_TIMESTAMP","DATE_CMP_TIMESTAMPTZ","DATE_PART_YEAR","DATEADD","DATEDIFF","DATE_PART","DATE_TRUNC","EXTRACT","GETDATE","INTERVAL_CMP","LAST_DAY","MONTHS_BETWEEN","NEXT_DAY","SYSDATE","TIMEOFDAY","TIMESTAMP_CMP","TIMESTAMP_CMP_DATE","TIMESTAMP_CMP_TIMESTAMPTZ","TIMESTAMPTZ_CMP","TIMESTAMPTZ_CMP_DATE","TIMESTAMPTZ_CMP_TIMESTAMP","TIMEZONE","TO_TIMESTAMP","TRUNC"],spatial:["AddBBox","DropBBox","GeometryType","ST_AddPoint","ST_Angle","ST_Area","ST_AsBinary","ST_AsEWKB","ST_AsEWKT","ST_AsGeoJSON","ST_AsText","ST_Azimuth","ST_Boundary","ST_Collect","ST_Contains","ST_ContainsProperly","ST_ConvexHull","ST_CoveredBy","ST_Covers","ST_Crosses","ST_Dimension","ST_Disjoint","ST_Distance","ST_DistanceSphere","ST_DWithin","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_Force2D","ST_Force3D","ST_Force3DM","ST_Force3DZ","ST_Force4D","ST_GeometryN","ST_GeometryType","ST_GeomFromEWKB","ST_GeomFromEWKT","ST_GeomFromText","ST_GeomFromWKB","ST_InteriorRingN","ST_Intersects","ST_IsPolygonCCW","ST_IsPolygonCW","ST_IsClosed","ST_IsCollection","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_Length","ST_LengthSphere","ST_Length2D","ST_LineFromMultiPoint","ST_LineInterpolatePoint","ST_M","ST_MakeEnvelope","ST_MakeLine","ST_MakePoint","ST_MakePolygon","ST_MemSize","ST_MMax","ST_MMin","ST_Multi","ST_NDims","ST_NPoints","ST_NRings","ST_NumGeometries","ST_NumInteriorRings","ST_NumPoints","ST_Perimeter","ST_Perimeter2D","ST_Point","ST_PointN","ST_Points","ST_Polygon","ST_RemovePoint","ST_Reverse","ST_SetPoint","ST_SetSRID","ST_Simplify","ST_SRID","ST_StartPoint","ST_Touches","ST_Within","ST_X","ST_XMax","ST_XMin","ST_Y","ST_YMax","ST_YMin","ST_Z","ST_ZMax","ST_ZMin","SupportsBBox"],hash:["CHECKSUM","FUNC_SHA1","FNV_HASH","MD5","SHA","SHA1","SHA2"],hyperLogLog:["HLL","HLL_CREATE_SKETCH","HLL_CARDINALITY","HLL_COMBINE"],json:["IS_VALID_JSON","IS_VALID_JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_EXTRACT_ARRAY_ELEMENT_TEXT","JSON_EXTRACT_PATH_TEXT","JSON_PARSE","JSON_SERIALIZE"],math:["ABS","ACOS","ASIN","ATAN","ATAN2","CBRT","CEILING","CEIL","COS","COT","DEGREES","DEXP","DLOG1","DLOG10","EXP","FLOOR","LN","LOG","MOD","PI","POWER","RADIANS","RANDOM","ROUND","SIN","SIGN","SQRT","TAN","TO_HEX","TRUNC"],machineLearning:["EXPLAIN_MODEL"],string:["ASCII","BPCHARCMP","BTRIM","BTTEXT_PATTERN_CMP","CHAR_LENGTH","CHARACTER_LENGTH","CHARINDEX","CHR","COLLATE","CONCAT","CRC32","DIFFERENCE","INITCAP","LEFT","RIGHT","LEN","LENGTH","LOWER","LPAD","RPAD","LTRIM","OCTETINDEX","OCTET_LENGTH","POSITION","QUOTE_IDENT","QUOTE_LITERAL","REGEXP_COUNT","REGEXP_INSTR","REGEXP_REPLACE","REGEXP_SUBSTR","REPEAT","REPLACE","REPLICATE","REVERSE","RTRIM","SOUNDEX","SPLIT_PART","STRPOS","STRTOL","SUBSTRING","TEXTLEN","TRANSLATE","TRIM","UPPER"],superType:["decimal_precision","decimal_scale","is_array","is_bigint","is_boolean","is_char","is_decimal","is_float","is_integer","is_object","is_scalar","is_smallint","is_varchar","json_typeof"],window:["AVG","COUNT","CUME_DIST","DENSE_RANK","FIRST_VALUE","LAST_VALUE","LAG","LEAD","LISTAGG","MAX","MEDIAN","MIN","NTH_VALUE","NTILE","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","RANK","RATIO_TO_REPORT","ROW_NUMBER","STDDEV_SAMP","STDDEV_POP","SUM","VAR_SAMP","VAR_POP"],dataType:["CAST","CONVERT","TO_CHAR","TO_DATE","TO_NUMBER","TEXT_TO_INT_ALT","TEXT_TO_NUMERIC_ALT"],sysAdmin:["CHANGE_QUERY_PRIORITY","CHANGE_SESSION_PRIORITY","CHANGE_USER_PRIORITY","CURRENT_SETTING","PG_CANCEL_BACKEND","PG_TERMINATE_BACKEND","REBOOT_CLUSTER","SET_CONFIG"],sysInfo:["CURRENT_AWS_ACCOUNT","CURRENT_DATABASE","CURRENT_NAMESPACE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_USER","CURRENT_USER_ID","HAS_ASSUMEROLE_PRIVILEGE","HAS_DATABASE_PRIVILEGE","HAS_SCHEMA_PRIVILEGE","HAS_TABLE_PRIVILEGE","PG_BACKEND_PID","PG_GET_COLS","PG_GET_GRANTEE_BY_IAM_ROLE","PG_GET_IAM_ROLE_BY_USER","PG_GET_LATE_BINDING_VIEW_COLS","PG_LAST_COPY_COUNT","PG_LAST_COPY_ID","PG_LAST_UNLOAD_ID","PG_LAST_QUERY_ID","PG_LAST_UNLOAD_COUNT","SESSION_USER","SLICE_NUM","USER","VERSION"],dataTypes:["DECIMAL","NUMERIC","CHAR","CHARACTER","VARCHAR","CHARACTER VARYING","NCHAR","NVARCHAR","VARBYTE"]}),pP=TW({standard:["AES128","AES256","ALL","ALLOWOVERWRITE","ANY","ARRAY","AS","ASC","AUTHORIZATION","BACKUP","BETWEEN","BINARY","BOTH","CHECK","COLUMN","CONSTRAINT","CREATE","CROSS","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DESC","DISABLE","DISTINCT","DO","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GROUP","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTO","IS","ISNULL","LANGUAGE","LEADING","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","MINUS","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RECOVER","REFERENCES","REJECTLOG","RESORT","RESPECT","RESTORE","SIMILAR","SNAPSHOT","SOME","SYSTEM","TABLE","TAG","TDES","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","UNIQUE","USING","VERBOSE","WALLET","WITHOUT"],dataConversionParams:["ACCEPTANYDATE","ACCEPTINVCHARS","BLANKSASNULL","DATEFORMAT","EMPTYASNULL","ENCODING","ESCAPE","EXPLICIT_IDS","FILLRECORD","IGNOREBLANKLINES","IGNOREHEADER","REMOVEQUOTES","ROUNDEC","TIMEFORMAT","TRIMBLANKS","TRUNCATECOLUMNS"],dataLoadParams:["COMPROWS","COMPUPDATE","MAXERROR","NOLOAD","STATUPDATE"],dataFormatParams:["FORMAT","CSV","DELIMITER","FIXEDWIDTH","SHAPEFILE","AVRO","JSON","PARQUET","ORC"],copyAuthParams:["ACCESS_KEY_ID","CREDENTIALS","ENCRYPTED","IAM_ROLE","MASTER_SYMMETRIC_KEY","SECRET_ACCESS_KEY","SESSION_TOKEN"],copyCompressionParams:["BZIP2","GZIP","LZOP","ZSTD"],copyMiscParams:["MANIFEST","READRATIO","REGION","SSH"],compressionEncodings:["RAW","AZ64","BYTEDICT","DELTA","DELTA32K","LZO","MOSTLY8","MOSTLY16","MOSTLY32","RUNLENGTH","TEXT255","TEXT32K"],misc:["CATALOG_ROLE","SECRET_ARN","EXTERNAL","AUTO","EVEN","KEY","PREDICATE","COMPRESSION"],dataTypes:["BPCHAR","TEXT"]}),pM=TP(["SELECT [ALL | DISTINCT]"]),pU=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT INTO","VALUES","SET","CREATE [OR REPLACE | MATERIALIZED] VIEW","CREATE [TEMPORARY | TEMP | LOCAL TEMPORARY | LOCAL TEMP] TABLE [IF NOT EXISTS]"]),px=TP(["UPDATE","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ALTER TABLE APPEND","ADD [COLUMN]","DROP [COLUMN]","RENAME TO","RENAME COLUMN","ALTER COLUMN","TYPE","ENCODE","TRUNCATE [TABLE]","ABORT","ALTER DATABASE","ALTER DATASHARE","ALTER DEFAULT PRIVILEGES","ALTER GROUP","ALTER MATERIALIZED VIEW","ALTER PROCEDURE","ALTER SCHEMA","ALTER USER","ANALYSE","ANALYZE","ANALYSE COMPRESSION","ANALYZE COMPRESSION","BEGIN","CALL","CANCEL","CLOSE","COMMENT","COMMIT","COPY","CREATE DATABASE","CREATE DATASHARE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL SCHEMA","CREATE EXTERNAL TABLE","CREATE FUNCTION","CREATE GROUP","CREATE LIBRARY","CREATE MODEL","CREATE PROCEDURE","CREATE SCHEMA","CREATE USER","DEALLOCATE","DECLARE","DESC DATASHARE","DROP DATABASE","DROP DATASHARE","DROP FUNCTION","DROP GROUP","DROP LIBRARY","DROP MODEL","DROP MATERIALIZED VIEW","DROP PROCEDURE","DROP SCHEMA","DROP USER","DROP VIEW","DROP","EXECUTE","EXPLAIN","FETCH","GRANT","LOCK","PREPARE","REFRESH MATERIALIZED VIEW","RESET","REVOKE","ROLLBACK","SELECT INTO","SET SESSION AUTHORIZATION","SET SESSION CHARACTERISTICS","SHOW","SHOW EXTERNAL TABLE","SHOW MODEL","SHOW DATASHARES","SHOW PROCEDURE","SHOW TABLE","SHOW VIEW","START TRANSACTION","UNLOAD","VACUUM"]),pw={tokenizerOptions:{reservedSelect:pM,reservedClauses:[...pU,...px],reservedSetOperations:TP(["UNION [ALL]","EXCEPT","INTERSECT","MINUS"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:TP(["NULL AS","DATA CATALOG","HIVE METASTORE","{ROWS | RANGE} BETWEEN"]),reservedKeywords:pP,reservedFunctionNames:pD,stringTypes:["''-qq"],identTypes:['""-qq'],identChars:{first:"#"},paramTypes:{numbered:["$"]},operators:["^","%","@","|/","||/","&","|","~","<<",">>","||","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:px}},pk=TW({all:["ADD","AFTER","ALL","ALTER","ANALYZE","AND","ANTI","ANY","ARCHIVE","ARRAY","AS","ASC","AT","AUTHORIZATION","BETWEEN","BOTH","BUCKET","BUCKETS","BY","CACHE","CASCADE","CAST","CHANGE","CHECK","CLEAR","CLUSTER","CLUSTERED","CODEGEN","COLLATE","COLLECTION","COLUMN","COLUMNS","COMMENT","COMMIT","COMPACT","COMPACTIONS","COMPUTE","CONCATENATE","CONSTRAINT","COST","CREATE","CROSS","CUBE","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATA","DATABASE","DATABASES","DAY","DBPROPERTIES","DEFINED","DELETE","DELIMITED","DESC","DESCRIBE","DFS","DIRECTORIES","DIRECTORY","DISTINCT","DISTRIBUTE","DIV","DROP","ESCAPE","ESCAPED","EXCEPT","EXCHANGE","EXISTS","EXPORT","EXTENDED","EXTERNAL","EXTRACT","FALSE","FETCH","FIELDS","FILTER","FILEFORMAT","FIRST","FIRST_VALUE","FOLLOWING","FOR","FOREIGN","FORMAT","FORMATTED","FULL","FUNCTION","FUNCTIONS","GLOBAL","GRANT","GROUP","GROUPING","HOUR","IF","IGNORE","IMPORT","IN","INDEX","INDEXES","INNER","INPATH","INPUTFORMAT","INTERSECT","INTERVAL","INTO","IS","ITEMS","KEYS","LAST","LAST_VALUE","LATERAL","LAZY","LEADING","LEFT","LIKE","LINES","LIST","LOCAL","LOCATION","LOCK","LOCKS","LOGICAL","MACRO","MAP","MATCHED","MERGE","MINUTE","MONTH","MSCK","NAMESPACE","NAMESPACES","NATURAL","NO","NOT","NULL","NULLS","OF","ONLY","OPTION","OPTIONS","OR","ORDER","OUT","OUTER","OUTPUTFORMAT","OVER","OVERLAPS","OVERLAY","OVERWRITE","OWNER","PARTITION","PARTITIONED","PARTITIONS","PERCENT","PLACING","POSITION","PRECEDING","PRIMARY","PRINCIPALS","PROPERTIES","PURGE","QUERY","RANGE","RECORDREADER","RECORDWRITER","RECOVER","REDUCE","REFERENCES","RENAME","REPAIR","REPLACE","RESPECT","RESTRICT","REVOKE","RIGHT","RLIKE","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","SCHEMA","SECOND","SELECT","SEMI","SEPARATED","SERDE","SERDEPROPERTIES","SESSION_USER","SETS","SHOW","SKEWED","SOME","SORT","SORTED","START","STATISTICS","STORED","STRATIFY","STRUCT","SUBSTR","SUBSTRING","TABLE","TABLES","TBLPROPERTIES","TEMPORARY","TERMINATED","THEN","TO","TOUCH","TRAILING","TRANSACTION","TRANSACTIONS","TRIM","TRUE","TRUNCATE","UNARCHIVE","UNBOUNDED","UNCACHE","UNIQUE","UNKNOWN","UNLOCK","UNSET","USE","USER","USING","VIEW","WINDOW","YEAR","ANALYSE","ARRAY_ZIP","COALESCE","CONTAINS","CONVERT","DAYS","DAY_HOUR","DAY_MINUTE","DAY_SECOND","DECODE","DEFAULT","DISTINCTROW","ENCODE","EXPLODE","EXPLODE_OUTER","FIXED","GREATEST","GROUP_CONCAT","HOURS","HOUR_MINUTE","HOUR_SECOND","IFNULL","LEAST","LEVEL","MINUTE_SECOND","NULLIF","OFFSET","ON","OPTIMIZE","REGEXP","SEPARATOR","SIZE","STRING","TYPE","TYPES","UNSIGNED","VARIABLES","YEAR_MONTH"]}),pG=TW({aggregate:["APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","AVG","BIT_AND","BIT_OR","BIT_XOR","BOOL_AND","BOOL_OR","COLLECT_LIST","COLLECT_SET","CORR","COUNT","COUNT","COUNT","COUNT_IF","COUNT_MIN_SKETCH","COVAR_POP","COVAR_SAMP","EVERY","FIRST","FIRST_VALUE","GROUPING","GROUPING_ID","KURTOSIS","LAST","LAST_VALUE","MAX","MAX_BY","MEAN","MIN","MIN_BY","PERCENTILE","PERCENTILE","PERCENTILE_APPROX","SKEWNESS","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","SUM","VAR_POP","VAR_SAMP","VARIANCE"],window:["CUME_DIST","DENSE_RANK","LAG","LEAD","NTH_VALUE","NTILE","PERCENT_RANK","RANK","ROW_NUMBER"],array:["ARRAY","ARRAY_CONTAINS","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_REPEAT","ARRAY_UNION","ARRAYS_OVERLAP","ARRAYS_ZIP","FLATTEN","SEQUENCE","SHUFFLE","SLICE","SORT_ARRAY"],map:["ELEMENT_AT","ELEMENT_AT","MAP","MAP_CONCAT","MAP_ENTRIES","MAP_FROM_ARRAYS","MAP_FROM_ENTRIES","MAP_KEYS","MAP_VALUES","STR_TO_MAP"],datetime:["ADD_MONTHS","CURRENT_DATE","CURRENT_DATE","CURRENT_TIMESTAMP","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","DATE_ADD","DATE_FORMAT","DATE_FROM_UNIX_DATE","DATE_PART","DATE_SUB","DATE_TRUNC","DATEDIFF","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","EXTRACT","FROM_UNIXTIME","FROM_UTC_TIMESTAMP","HOUR","LAST_DAY","MAKE_DATE","MAKE_DT_INTERVAL","MAKE_INTERVAL","MAKE_TIMESTAMP","MAKE_YM_INTERVAL","MINUTE","MONTH","MONTHS_BETWEEN","NEXT_DAY","NOW","QUARTER","SECOND","SESSION_WINDOW","TIMESTAMP_MICROS","TIMESTAMP_MILLIS","TIMESTAMP_SECONDS","TO_DATE","TO_TIMESTAMP","TO_UNIX_TIMESTAMP","TO_UTC_TIMESTAMP","TRUNC","UNIX_DATE","UNIX_MICROS","UNIX_MILLIS","UNIX_SECONDS","UNIX_TIMESTAMP","WEEKDAY","WEEKOFYEAR","WINDOW","YEAR"],json:["FROM_JSON","GET_JSON_OBJECT","JSON_ARRAY_LENGTH","JSON_OBJECT_KEYS","JSON_TUPLE","SCHEMA_OF_JSON","TO_JSON"],misc:["ABS","ACOS","ACOSH","AGGREGATE","ARRAY_SORT","ASCII","ASIN","ASINH","ASSERT_TRUE","ATAN","ATAN2","ATANH","BASE64","BIGINT","BIN","BINARY","BIT_COUNT","BIT_GET","BIT_LENGTH","BOOLEAN","BROUND","BTRIM","CARDINALITY","CBRT","CEIL","CEILING","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHR","CONCAT","CONCAT_WS","CONV","COS","COSH","COT","CRC32","CURRENT_CATALOG","CURRENT_DATABASE","CURRENT_USER","DATE","DECIMAL","DEGREES","DOUBLE","ELT","EXP","EXPM1","FACTORIAL","FIND_IN_SET","FLOAT","FLOOR","FORALL","FORMAT_NUMBER","FORMAT_STRING","FROM_CSV","GETBIT","HASH","HEX","HYPOT","INITCAP","INLINE","INLINE_OUTER","INPUT_FILE_BLOCK_LENGTH","INPUT_FILE_BLOCK_START","INPUT_FILE_NAME","INSTR","INT","ISNAN","ISNOTNULL","ISNULL","JAVA_METHOD","LCASE","LEFT","LENGTH","LEVENSHTEIN","LN","LOCATE","LOG","LOG10","LOG1P","LOG2","LOWER","LPAD","LTRIM","MAP_FILTER","MAP_ZIP_WITH","MD5","MOD","MONOTONICALLY_INCREASING_ID","NAMED_STRUCT","NANVL","NEGATIVE","NVL","NVL2","OCTET_LENGTH","OVERLAY","PARSE_URL","PI","PMOD","POSEXPLODE","POSEXPLODE_OUTER","POSITION","POSITIVE","POW","POWER","PRINTF","RADIANS","RAISE_ERROR","RAND","RANDN","RANDOM","REFLECT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_REPLACE","REPEAT","REPLACE","REVERSE","RIGHT","RINT","ROUND","RPAD","RTRIM","SCHEMA_OF_CSV","SENTENCES","SHA","SHA1","SHA2","SHIFTLEFT","SHIFTRIGHT","SHIFTRIGHTUNSIGNED","SIGN","SIGNUM","SIN","SINH","SMALLINT","SOUNDEX","SPACE","SPARK_PARTITION_ID","SPLIT","SQRT","STACK","SUBSTR","SUBSTRING","SUBSTRING_INDEX","TAN","TANH","TIMESTAMP","TINYINT","TO_CSV","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRY_ADD","TRY_DIVIDE","TYPEOF","UCASE","UNBASE64","UNHEX","UPPER","UUID","VERSION","WIDTH_BUCKET","XPATH","XPATH_BOOLEAN","XPATH_DOUBLE","XPATH_FLOAT","XPATH_INT","XPATH_LONG","XPATH_NUMBER","XPATH_SHORT","XPATH_STRING","XXHASH64","ZIP_WITH"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","DEC","NUMERIC","VARCHAR"]}),pF=TP(["SELECT [ALL | DISTINCT]"]),pB=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","SORT BY","CLUSTER BY","DISTRIBUTE BY","LIMIT","INSERT [INTO | OVERWRITE] [TABLE]","VALUES","INSERT OVERWRITE [LOCAL] DIRECTORY","LOAD DATA [LOCAL] INPATH","[OVERWRITE] INTO TABLE","CREATE [OR REPLACE] [GLOBAL TEMPORARY | TEMPORARY] VIEW [IF NOT EXISTS]","CREATE [EXTERNAL] TABLE [IF NOT EXISTS]"]),pH=TP(["DROP TABLE [IF EXISTS]","ALTER TABLE","ADD COLUMNS","DROP {COLUMN | COLUMNS}","RENAME TO","RENAME COLUMN","ALTER COLUMN","TRUNCATE TABLE","LATERAL VIEW","ALTER DATABASE","ALTER VIEW","CREATE DATABASE","CREATE FUNCTION","DROP DATABASE","DROP FUNCTION","DROP VIEW","REPAIR TABLE","USE DATABASE","TABLESAMPLE","PIVOT","TRANSFORM","EXPLAIN","ADD FILE","ADD JAR","ANALYZE TABLE","CACHE TABLE","CLEAR CACHE","DESCRIBE DATABASE","DESCRIBE FUNCTION","DESCRIBE QUERY","DESCRIBE TABLE","LIST FILE","LIST JAR","REFRESH","REFRESH TABLE","REFRESH FUNCTION","RESET","SHOW COLUMNS","SHOW CREATE TABLE","SHOW DATABASES","SHOW FUNCTIONS","SHOW PARTITIONS","SHOW TABLE EXTENDED","SHOW TABLES","SHOW TBLPROPERTIES","SHOW VIEWS","UNCACHE TABLE"]),pY={tokenizerOptions:{reservedSelect:pF,reservedClauses:[...pB,...pH],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN","[LEFT] {ANTI | SEMI} JOIN","NATURAL [LEFT] {ANTI | SEMI} JOIN"]),reservedPhrases:TP(["ON DELETE","ON UPDATE","CURRENT ROW","{ROWS | RANGE} BETWEEN"]),supportsXor:!0,reservedKeywords:pk,reservedFunctionNames:pG,extraParens:["[]"],stringTypes:["''-bs",'""-bs',{quote:"''-raw",prefixes:["R","X"],requirePrefix:!0},{quote:'""-raw',prefixes:["R","X"],requirePrefix:!0}],identTypes:["``"],variableTypes:[{quote:"{}",prefixes:["$"],requirePrefix:!0}],operators:["%","~","^","|","&","<=>","==","!","||","->"],postProcess:function(e){return e.map((t,n)=>{let r=e[n-1]||Tg,a=e[n+1]||Tg;return Tb.WINDOW(t)&&a.type===i.OPEN_PAREN?{...t,type:i.RESERVED_FUNCTION_NAME}:"ITEMS"!==t.text||t.type!==i.RESERVED_KEYWORD||"COLLECTION"===r.text&&"TERMINATED"===a.text?t:{...t,type:i.IDENTIFIER,text:t.raw}})}},formatOptions:{onelineClauses:pH}},pV=TW({scalar:["ABS","CHANGES","CHAR","COALESCE","FORMAT","GLOB","HEX","IFNULL","IIF","INSTR","LAST_INSERT_ROWID","LENGTH","LIKE","LIKELIHOOD","LIKELY","LOAD_EXTENSION","LOWER","LTRIM","NULLIF","PRINTF","QUOTE","RANDOM","RANDOMBLOB","REPLACE","ROUND","RTRIM","SIGN","SOUNDEX","SQLITE_COMPILEOPTION_GET","SQLITE_COMPILEOPTION_USED","SQLITE_OFFSET","SQLITE_SOURCE_ID","SQLITE_VERSION","SUBSTR","SUBSTRING","TOTAL_CHANGES","TRIM","TYPEOF","UNICODE","UNLIKELY","UPPER","ZEROBLOB"],aggregate:["AVG","COUNT","GROUP_CONCAT","MAX","MIN","SUM","TOTAL"],datetime:["DATE","TIME","DATETIME","JULIANDAY","UNIXEPOCH","STRFTIME"],window:["row_number","rank","dense_rank","percent_rank","cume_dist","ntile","lag","lead","first_value","last_value","nth_value"],math:["ACOS","ACOSH","ASIN","ASINH","ATAN","ATAN2","ATANH","CEIL","CEILING","COS","COSH","DEGREES","EXP","FLOOR","LN","LOG","LOG","LOG10","LOG2","MOD","PI","POW","POWER","RADIANS","SIN","SINH","SQRT","TAN","TANH","TRUNC"],json:["JSON","JSON_ARRAY","JSON_ARRAY_LENGTH","JSON_ARRAY_LENGTH","JSON_EXTRACT","JSON_INSERT","JSON_OBJECT","JSON_PATCH","JSON_REMOVE","JSON_REPLACE","JSON_SET","JSON_TYPE","JSON_TYPE","JSON_VALID","JSON_QUOTE","JSON_GROUP_ARRAY","JSON_GROUP_OBJECT","JSON_EACH","JSON_TREE"],cast:["CAST"],dataTypes:["CHARACTER","VARCHAR","VARYING CHARACTER","NCHAR","NATIVE CHARACTER","NVARCHAR","NUMERIC","DECIMAL"]}),pW=TW({all:["ABORT","ACTION","ADD","AFTER","ALL","ALTER","AND","ANY","ARE","ARRAY","ALWAYS","ANALYZE","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DO","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUDE","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FILTER","FIRST","FOLLOWING","FOR","FOREIGN","FROM","FULL","GENERATED","GLOB","GROUP","GROUPS","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LAST","LEFT","LIKE","LIMIT","MATCH","MATERIALIZED","NATURAL","NO","NOT","NOTHING","NOTNULL","NULL","NULLS","OF","OFFSET","ON","ONLY","OPEN","OR","ORDER","OTHERS","OUTER","OVER","PARTITION","PLAN","PRAGMA","PRECEDING","PRIMARY","QUERY","RAISE","RANGE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RETURNING","RIGHT","ROLLBACK","ROW","ROWS","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TIES","TO","TRANSACTION","TRIGGER","UNBOUNDED","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WINDOW","WITH","WITHOUT"]}),pj=TP(["SELECT [ALL | DISTINCT]"]),pX=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK] INTO","REPLACE INTO","VALUES","SET","CREATE [TEMPORARY | TEMP] VIEW [IF NOT EXISTS]","CREATE [TEMPORARY | TEMP] TABLE [IF NOT EXISTS]"]),pK=TP(["UPDATE [OR ABORT | OR FAIL | OR IGNORE | OR REPLACE | OR ROLLBACK]","ON CONFLICT","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD [COLUMN]","DROP [COLUMN]","RENAME [COLUMN]","RENAME TO","SET SCHEMA"]),p$={tokenizerOptions:{reservedSelect:pj,reservedClauses:[...pX,...pK],reservedSetOperations:TP(["UNION [ALL]","EXCEPT","INTERSECT"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE | GROUPS} BETWEEN"]),reservedKeywords:pW,reservedFunctionNames:pV,stringTypes:["''-qq",{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``","[]"],paramTypes:{positional:!0,numbered:["?"],named:[":","@","$"]},operators:["%","~","&","|","<<",">>","==","->","->>","||"]},formatOptions:{onelineClauses:pK}},pz=TW({set:["GROUPING"],window:["RANK","DENSE_RANK","PERCENT_RANK","CUME_DIST","ROW_NUMBER"],numeric:["POSITION","OCCURRENCES_REGEX","POSITION_REGEX","EXTRACT","CHAR_LENGTH","CHARACTER_LENGTH","OCTET_LENGTH","CARDINALITY","ABS","MOD","LN","EXP","POWER","SQRT","FLOOR","CEIL","CEILING","WIDTH_BUCKET"],string:["SUBSTRING","SUBSTRING_REGEX","UPPER","LOWER","CONVERT","TRANSLATE","TRANSLATE_REGEX","TRIM","OVERLAY","NORMALIZE","SPECIFICTYPE"],datetime:["CURRENT_DATE","CURRENT_TIME","LOCALTIME","CURRENT_TIMESTAMP","LOCALTIMESTAMP"],aggregate:["COUNT","AVG","MAX","MIN","SUM","STDDEV_POP","STDDEV_SAMP","VAR_SAMP","VAR_POP","COLLECT","FUSION","INTERSECTION","COVAR_POP","COVAR_SAMP","CORR","REGR_SLOPE","REGR_INTERCEPT","REGR_COUNT","REGR_R2","REGR_AVGX","REGR_AVGY","REGR_SXX","REGR_SYY","REGR_SXY","PERCENTILE_CONT","PERCENTILE_DISC"],cast:["CAST"],caseAbbrev:["COALESCE","NULLIF"],nonStandard:["ROUND","SIN","COS","TAN","ASIN","ACOS","ATAN"],dataTypes:["CHARACTER","CHAR","CHARACTER VARYING","CHAR VARYING","VARCHAR","CHARACTER LARGE OBJECT","CHAR LARGE OBJECT","CLOB","NATIONAL CHARACTER","NATIONAL CHAR","NCHAR","NATIONAL CHARACTER VARYING","NATIONAL CHAR VARYING","NCHAR VARYING","NATIONAL CHARACTER LARGE OBJECT","NCHAR LARGE OBJECT","NCLOB","BINARY","BINARY VARYING","VARBINARY","BINARY LARGE OBJECT","BLOB","NUMERIC","DECIMAL","DEC","TIME","TIMESTAMP"]}),pJ=TW({all:["ALL","ALLOCATE","ALTER","ANY","ARE","ARRAY","AS","ASENSITIVE","ASYMMETRIC","AT","ATOMIC","AUTHORIZATION","BEGIN","BETWEEN","BIGINT","BINARY","BLOB","BOOLEAN","BOTH","BY","CALL","CALLED","CASCADED","CAST","CHAR","CHARACTER","CHECK","CLOB","CLOSE","COALESCE","COLLATE","COLUMN","COMMIT","CONDITION","CONNECT","CONSTRAINT","CORRESPONDING","CREATE","CROSS","CUBE","CURRENT","CURRENT_CATALOG","CURRENT_DEFAULT_TRANSFORM_GROUP","CURRENT_PATH","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TRANSFORM_GROUP_FOR_TYPE","CURRENT_USER","CURSOR","CYCLE","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DELETE","DEREF","DESCRIBE","DETERMINISTIC","DISCONNECT","DISTINCT","DOUBLE","DROP","DYNAMIC","EACH","ELEMENT","END-EXEC","ESCAPE","EVERY","EXCEPT","EXEC","EXECUTE","EXISTS","EXTERNAL","FALSE","FETCH","FILTER","FLOAT","FOR","FOREIGN","FREE","FROM","FULL","FUNCTION","GET","GLOBAL","GRANT","GROUP","HAVING","HOLD","HOUR","IDENTITY","IN","INDICATOR","INNER","INOUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","LANGUAGE","LARGE","LATERAL","LEADING","LEFT","LIKE","LIKE_REGEX","LOCAL","MATCH","MEMBER","MERGE","METHOD","MINUTE","MODIFIES","MODULE","MONTH","MULTISET","NATIONAL","NATURAL","NCHAR","NCLOB","NEW","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OF","OLD","ON","ONLY","OPEN","ORDER","OUT","OUTER","OVER","OVERLAPS","PARAMETER","PARTITION","PRECISION","PREPARE","PRIMARY","PROCEDURE","RANGE","READS","REAL","RECURSIVE","REF","REFERENCES","REFERENCING","RELEASE","RESULT","RETURN","RETURNS","REVOKE","RIGHT","ROLLBACK","ROLLUP","ROW","ROWS","SAVEPOINT","SCOPE","SCROLL","SEARCH","SECOND","SELECT","SENSITIVE","SESSION_USER","SET","SIMILAR","SMALLINT","SOME","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","START","STATIC","SUBMULTISET","SYMMETRIC","SYSTEM","SYSTEM_USER","TABLE","TABLESAMPLE","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSLATION","TREAT","TRIGGER","TRUE","UESCAPE","UNION","UNIQUE","UNKNOWN","UNNEST","UPDATE","USER","USING","VALUE","VALUES","VARBINARY","VARCHAR","VARYING","WHENEVER","WINDOW","WITHIN","WITHOUT","YEAR"]}),pZ=TP(["SELECT [ALL | DISTINCT]"]),pq=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [RECURSIVE] VIEW","CREATE [GLOBAL TEMPORARY | LOCAL TEMPORARY] TABLE"]),pQ=TP(["UPDATE","WHERE CURRENT OF","DELETE FROM","DROP TABLE","ALTER TABLE","ADD COLUMN","DROP [COLUMN]","RENAME COLUMN","RENAME TO","ALTER [COLUMN]","{SET | DROP} DEFAULT","ADD SCOPE","DROP SCOPE {CASCADE | RESTRICT}","RESTART WITH","TRUNCATE TABLE","SET SCHEMA"]),p0={tokenizerOptions:{reservedSelect:pZ,reservedClauses:[...pq,...pQ],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:pJ,reservedFunctionNames:pz,stringTypes:[{quote:"''-qq-bs",prefixes:["N","U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq',"``"],paramTypes:{positional:!0},operators:["||"]},formatOptions:{onelineClauses:pQ}},p1=TW({all:["ABS","ACOS","ALL_MATCH","ANY_MATCH","APPROX_DISTINCT","APPROX_MOST_FREQUENT","APPROX_PERCENTILE","APPROX_SET","ARBITRARY","ARRAYS_OVERLAP","ARRAY_AGG","ARRAY_DISTINCT","ARRAY_EXCEPT","ARRAY_INTERSECT","ARRAY_JOIN","ARRAY_MAX","ARRAY_MIN","ARRAY_POSITION","ARRAY_REMOVE","ARRAY_SORT","ARRAY_UNION","ASIN","ATAN","ATAN2","AT_TIMEZONE","AVG","BAR","BETA_CDF","BING_TILE","BING_TILES_AROUND","BING_TILE_AT","BING_TILE_COORDINATES","BING_TILE_POLYGON","BING_TILE_QUADKEY","BING_TILE_ZOOM_LEVEL","BITWISE_AND","BITWISE_AND_AGG","BITWISE_LEFT_SHIFT","BITWISE_NOT","BITWISE_OR","BITWISE_OR_AGG","BITWISE_RIGHT_SHIFT","BITWISE_RIGHT_SHIFT_ARITHMETIC","BITWISE_XOR","BIT_COUNT","BOOL_AND","BOOL_OR","CARDINALITY","CAST","CBRT","CEIL","CEILING","CHAR2HEXINT","CHECKSUM","CHR","CLASSIFY","COALESCE","CODEPOINT","COLOR","COMBINATIONS","CONCAT","CONCAT_WS","CONTAINS","CONTAINS_SEQUENCE","CONVEX_HULL_AGG","CORR","COS","COSH","COSINE_SIMILARITY","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CRC32","CUME_DIST","CURRENT_CATALOG","CURRENT_DATE","CURRENT_GROUPS","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_USER","DATE","DATE_ADD","DATE_DIFF","DATE_FORMAT","DATE_PARSE","DATE_TRUNC","DAY","DAY_OF_MONTH","DAY_OF_WEEK","DAY_OF_YEAR","DEGREES","DENSE_RANK","DOW","DOY","E","ELEMENT_AT","EMPTY_APPROX_SET","EVALUATE_CLASSIFIER_PREDICTIONS","EVERY","EXP","EXTRACT","FEATURES","FILTER","FIRST_VALUE","FLATTEN","FLOOR","FORMAT","FORMAT_DATETIME","FORMAT_NUMBER","FROM_BASE","FROM_BASE32","FROM_BASE64","FROM_BASE64URL","FROM_BIG_ENDIAN_32","FROM_BIG_ENDIAN_64","FROM_ENCODED_POLYLINE","FROM_GEOJSON_GEOMETRY","FROM_HEX","FROM_IEEE754_32","FROM_IEEE754_64","FROM_ISO8601_DATE","FROM_ISO8601_TIMESTAMP","FROM_ISO8601_TIMESTAMP_NANOS","FROM_UNIXTIME","FROM_UNIXTIME_NANOS","FROM_UTF8","GEOMETRIC_MEAN","GEOMETRY_FROM_HADOOP_SHAPE","GEOMETRY_INVALID_REASON","GEOMETRY_NEAREST_POINTS","GEOMETRY_TO_BING_TILES","GEOMETRY_UNION","GEOMETRY_UNION_AGG","GREATEST","GREAT_CIRCLE_DISTANCE","HAMMING_DISTANCE","HASH_COUNTS","HISTOGRAM","HMAC_MD5","HMAC_SHA1","HMAC_SHA256","HMAC_SHA512","HOUR","HUMAN_READABLE_SECONDS","IF","INDEX","INFINITY","INTERSECTION_CARDINALITY","INVERSE_BETA_CDF","INVERSE_NORMAL_CDF","IS_FINITE","IS_INFINITE","IS_JSON_SCALAR","IS_NAN","JACCARD_INDEX","JSON_ARRAY_CONTAINS","JSON_ARRAY_GET","JSON_ARRAY_LENGTH","JSON_EXISTS","JSON_EXTRACT","JSON_EXTRACT_SCALAR","JSON_FORMAT","JSON_PARSE","JSON_QUERY","JSON_SIZE","JSON_VALUE","KURTOSIS","LAG","LAST_DAY_OF_MONTH","LAST_VALUE","LEAD","LEARN_CLASSIFIER","LEARN_LIBSVM_CLASSIFIER","LEARN_LIBSVM_REGRESSOR","LEARN_REGRESSOR","LEAST","LENGTH","LEVENSHTEIN_DISTANCE","LINE_INTERPOLATE_POINT","LINE_INTERPOLATE_POINTS","LINE_LOCATE_POINT","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","LUHN_CHECK","MAKE_SET_DIGEST","MAP","MAP_AGG","MAP_CONCAT","MAP_ENTRIES","MAP_FILTER","MAP_FROM_ENTRIES","MAP_KEYS","MAP_UNION","MAP_VALUES","MAP_ZIP_WITH","MAX","MAX_BY","MD5","MERGE","MERGE_SET_DIGEST","MILLISECOND","MIN","MINUTE","MIN_BY","MOD","MONTH","MULTIMAP_AGG","MULTIMAP_FROM_ENTRIES","MURMUR3","NAN","NGRAMS","NONE_MATCH","NORMALIZE","NORMAL_CDF","NOW","NTH_VALUE","NTILE","NULLIF","NUMERIC_HISTOGRAM","OBJECTID","OBJECTID_TIMESTAMP","PARSE_DATA_SIZE","PARSE_DATETIME","PARSE_DURATION","PERCENT_RANK","PI","POSITION","POW","POWER","QDIGEST_AGG","QUARTER","RADIANS","RAND","RANDOM","RANK","REDUCE","REDUCE_AGG","REGEXP_COUNT","REGEXP_EXTRACT","REGEXP_EXTRACT_ALL","REGEXP_LIKE","REGEXP_POSITION","REGEXP_REPLACE","REGEXP_SPLIT","REGRESS","REGR_INTERCEPT","REGR_SLOPE","RENDER","REPEAT","REPLACE","REVERSE","RGB","ROUND","ROW_NUMBER","RPAD","RTRIM","SECOND","SEQUENCE","SHA1","SHA256","SHA512","SHUFFLE","SIGN","SIMPLIFY_GEOMETRY","SIN","SKEWNESS","SLICE","SOUNDEX","SPATIAL_PARTITIONING","SPATIAL_PARTITIONS","SPLIT","SPLIT_PART","SPLIT_TO_MAP","SPLIT_TO_MULTIMAP","SPOOKY_HASH_V2_32","SPOOKY_HASH_V2_64","SQRT","STARTS_WITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRPOS","ST_AREA","ST_ASBINARY","ST_ASTEXT","ST_BOUNDARY","ST_BUFFER","ST_CENTROID","ST_CONTAINS","ST_CONVEXHULL","ST_COORDDIM","ST_CROSSES","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_ENDPOINT","ST_ENVELOPE","ST_ENVELOPEASPTS","ST_EQUALS","ST_EXTERIORRING","ST_GEOMETRIES","ST_GEOMETRYFROMTEXT","ST_GEOMETRYN","ST_GEOMETRYTYPE","ST_GEOMFROMBINARY","ST_INTERIORRINGN","ST_INTERIORRINGS","ST_INTERSECTION","ST_INTERSECTS","ST_ISCLOSED","ST_ISEMPTY","ST_ISRING","ST_ISSIMPLE","ST_ISVALID","ST_LENGTH","ST_LINEFROMTEXT","ST_LINESTRING","ST_MULTIPOINT","ST_NUMGEOMETRIES","ST_NUMINTERIORRING","ST_NUMPOINTS","ST_OVERLAPS","ST_POINT","ST_POINTN","ST_POINTS","ST_POLYGON","ST_RELATE","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_TOUCHES","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","SUBSTR","SUBSTRING","SUM","TAN","TANH","TDIGEST_AGG","TIMESTAMP_OBJECTID","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO_BASE","TO_BASE32","TO_BASE64","TO_BASE64URL","TO_BIG_ENDIAN_32","TO_BIG_ENDIAN_64","TO_CHAR","TO_DATE","TO_ENCODED_POLYLINE","TO_GEOJSON_GEOMETRY","TO_GEOMETRY","TO_HEX","TO_IEEE754_32","TO_IEEE754_64","TO_ISO8601","TO_MILLISECONDS","TO_SPHERICAL_GEOGRAPHY","TO_TIMESTAMP","TO_UNIXTIME","TO_UTF8","TRANSFORM","TRANSFORM_KEYS","TRANSFORM_VALUES","TRANSLATE","TRIM","TRIM_ARRAY","TRUNCATE","TRY","TRY_CAST","TYPEOF","UPPER","URL_DECODE","URL_ENCODE","URL_EXTRACT_FRAGMENT","URL_EXTRACT_HOST","URL_EXTRACT_PARAMETER","URL_EXTRACT_PATH","URL_EXTRACT_PORT","URL_EXTRACT_PROTOCOL","URL_EXTRACT_QUERY","UUID","VALUES_AT_QUANTILES","VALUE_AT_QUANTILE","VARIANCE","VAR_POP","VAR_SAMP","VERSION","WEEK","WEEK_OF_YEAR","WIDTH_BUCKET","WILSON_INTERVAL_LOWER","WILSON_INTERVAL_UPPER","WITH_TIMEZONE","WORD_STEM","XXHASH64","YEAR","YEAR_OF_WEEK","YOW","ZIP","ZIP_WITH"],rowPattern:["CLASSIFIER","FIRST","LAST","MATCH_NUMBER","NEXT","PERMUTE","PREV"]}),p2=TW({all:["ABSENT","ADD","ADMIN","AFTER","ALL","ALTER","ANALYZE","AND","ANY","ARRAY","AS","ASC","AT","AUTHORIZATION","BERNOULLI","BETWEEN","BOTH","BY","CALL","CASCADE","CASE","CATALOGS","COLUMN","COLUMNS","COMMENT","COMMIT","COMMITTED","CONDITIONAL","CONSTRAINT","COPARTITION","CREATE","CROSS","CUBE","CURRENT","CURRENT_PATH","CURRENT_ROLE","DATA","DEALLOCATE","DEFAULT","DEFINE","DEFINER","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DISTINCT","DISTRIBUTED","DOUBLE","DROP","ELSE","EMPTY","ENCODING","END","ERROR","ESCAPE","EXCEPT","EXCLUDING","EXECUTE","EXISTS","EXPLAIN","FALSE","FETCH","FINAL","FIRST","FOLLOWING","FOR","FROM","FULL","FUNCTIONS","GRANT","GRANTED","GRANTS","GRAPHVIZ","GROUP","GROUPING","GROUPS","HAVING","IGNORE","IN","INCLUDING","INITIAL","INNER","INPUT","INSERT","INTERSECT","INTERVAL","INTO","INVOKER","IO","IS","ISOLATION","JOIN","JSON","JSON_ARRAY","JSON_OBJECT","KEEP","KEY","KEYS","LAST","LATERAL","LEADING","LEFT","LEVEL","LIKE","LIMIT","LOCAL","LOGICAL","MATCH","MATCHED","MATCHES","MATCH_RECOGNIZE","MATERIALIZED","MEASURES","NATURAL","NEXT","NFC","NFD","NFKC","NFKD","NO","NONE","NOT","NULL","NULLS","OBJECT","OF","OFFSET","OMIT","ON","ONE","ONLY","OPTION","OR","ORDER","ORDINALITY","OUTER","OUTPUT","OVER","OVERFLOW","PARTITION","PARTITIONS","PASSING","PAST","PATH","PATTERN","PER","PERMUTE","PRECEDING","PRECISION","PREPARE","PRIVILEGES","PROPERTIES","PRUNE","QUOTES","RANGE","READ","RECURSIVE","REFRESH","RENAME","REPEATABLE","RESET","RESPECT","RESTRICT","RETURNING","REVOKE","RIGHT","ROLE","ROLES","ROLLBACK","ROLLUP","ROW","ROWS","RUNNING","SCALAR","SCHEMA","SCHEMAS","SECURITY","SEEK","SELECT","SERIALIZABLE","SESSION","SET","SETS","SHOW","SKIP","SOME","START","STATS","STRING","SUBSET","SYSTEM","TABLE","TABLES","TABLESAMPLE","TEXT","THEN","TIES","TIME","TIMESTAMP","TO","TRAILING","TRANSACTION","TRUE","TYPE","UESCAPE","UNBOUNDED","UNCOMMITTED","UNCONDITIONAL","UNION","UNIQUE","UNKNOWN","UNMATCHED","UNNEST","UPDATE","USE","USER","USING","UTF16","UTF32","UTF8","VALIDATE","VALUE","VALUES","VERBOSE","VIEW","WHEN","WHERE","WINDOW","WITH","WITHIN","WITHOUT","WORK","WRAPPER","WRITE","ZONE"],types:["BIGINT","INT","INTEGER","SMALLINT","TINYINT","BOOLEAN","DATE","DECIMAL","REAL","DOUBLE","HYPERLOGLOG","QDIGEST","TDIGEST","P4HYPERLOGLOG","INTERVAL","TIMESTAMP","TIME","VARBINARY","VARCHAR","CHAR","ROW","ARRAY","MAP","JSON","JSON2016","IPADDRESS","GEOMETRY","UUID","SETDIGEST","JONIREGEXP","RE2JREGEXP","LIKEPATTERN","COLOR","CODEPOINTS","FUNCTION","JSONPATH"]}),p5=TP(["SELECT [ALL | DISTINCT]"]),p3=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY [ALL | DISTINCT]","HAVING","WINDOW","PARTITION BY","ORDER BY","LIMIT","OFFSET","FETCH {FIRST | NEXT}","INSERT INTO","VALUES","SET","CREATE [OR REPLACE] [MATERIALIZED] VIEW","CREATE TABLE [IF NOT EXISTS]","MATCH_RECOGNIZE","MEASURES","ONE ROW PER MATCH","ALL ROWS PER MATCH","AFTER MATCH","PATTERN","SUBSET","DEFINE"]),p4=TP(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","ADD COLUMN [IF NOT EXISTS]","DROP COLUMN [IF EXISTS]","RENAME COLUMN [IF EXISTS]","RENAME TO","SET AUTHORIZATION [USER | ROLE]","SET PROPERTIES","EXECUTE","TRUNCATE TABLE","ALTER SCHEMA","ALTER MATERIALIZED VIEW","ALTER VIEW","CREATE SCHEMA","CREATE ROLE","DROP SCHEMA","DROP MATERIALIZED VIEW","DROP VIEW","DROP ROLE","EXPLAIN","ANALYZE","EXPLAIN ANALYZE","EXPLAIN ANALYZE VERBOSE","USE","COMMENT ON TABLE","COMMENT ON COLUMN","DESCRIBE INPUT","DESCRIBE OUTPUT","REFRESH MATERIALIZED VIEW","RESET SESSION","SET SESSION","SET PATH","SET TIME ZONE","SHOW GRANTS","SHOW CREATE TABLE","SHOW CREATE SCHEMA","SHOW CREATE VIEW","SHOW CREATE MATERIALIZED VIEW","SHOW TABLES","SHOW SCHEMAS","SHOW CATALOGS","SHOW COLUMNS","SHOW STATS FOR","SHOW ROLES","SHOW CURRENT ROLES","SHOW ROLE GRANTS","SHOW FUNCTIONS","SHOW SESSION"]),p6={tokenizerOptions:{reservedSelect:p5,reservedClauses:[...p3,...p4],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT [ALL | DISTINCT]","INTERSECT [ALL | DISTINCT]"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL [INNER] JOIN","NATURAL {LEFT | RIGHT | FULL} [OUTER] JOIN"]),reservedPhrases:TP(["{ROWS | RANGE | GROUPS} BETWEEN","IS [NOT] DISTINCT FROM"]),reservedKeywords:p2,reservedFunctionNames:p1,extraParens:["[]","{}"],stringTypes:[{quote:"''-qq",prefixes:["U&"]},{quote:"''-raw",prefixes:["X"],requirePrefix:!0}],identTypes:['""-qq'],paramTypes:{positional:!0},operators:["%","->","=>",":","||","|","^","$"]},formatOptions:{onelineClauses:p4}},p8=TW({aggregate:["APPROX_COUNT_DISTINCT","AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","STDEV","STDEVP","SUM","VAR","VARP"],analytic:["CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","Collation - COLLATIONPROPERTY","Collation - TERTIARY_WEIGHTS"],configuration:["@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION"],conversion:["CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE"],cryptographic:["ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY"],cursor:["@@CURSOR_ROWS","@@FETCH_STATUS","CURSOR_STATUS"],dataType:["DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY"],datetime:["@@DATEFIRST","CURRENT_TIMESTAMP","CURRENT_TIMEZONE","CURRENT_TIMEZONE_ID","DATEADD","DATEDIFF","DATEDIFF_BIG","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","JSON","ISJSON","JSON_VALUE","JSON_QUERY","JSON_MODIFY"],mathematical:["ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","CHOOSE","GREATEST","IIF","LEAST"],metadata:["@@PROCID","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FILEPROPERTYEX","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","NEXT VALUE FOR","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY"],ranking:["DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME"],security:["CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","DATABASE_PRINCIPAL_ID","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME"],string:["ASCII","CHAR","CHARINDEX","CONCAT","CONCAT_WS","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STRING_AGG","STRING_ESCAPE","STUFF","SUBSTRING","TRANSLATE","TRIM","UNICODE","UPPER"],system:["$PARTITION","@@ERROR","@@IDENTITY","@@PACK_RECEIVED","@@ROWCOUNT","@@TRANCOUNT","BINARY_CHECKSUM","CHECKSUM","COMPRESS","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","CURRENT_TRANSACTION_ID","DECOMPRESS","ERROR_LINE","ERROR_MESSAGE","ERROR_NUMBER","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GET_FILESTREAM_TRANSACTION_CONTEXT","GETANSINULL","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","SESSION_CONTEXT","XACT_STATE"],statistical:["@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACK_SENT","@@PACKET_ERRORS","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE","TEXTPTR","TEXTVALID"],trigger:["COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE"],caseAbbrev:["COALESCE","NULLIF"],dataTypes:["DECIMAL","NUMERIC","FLOAT","REAL","DATETIME2","DATETIMEOFFSET","TIME","CHAR","VARCHAR","NCHAR","NVARCHAR","BINARY","VARBINARY"]}),p7=TW({standard:["ADD","ALL","ALTER","AND","ANY","AS","ASC","AUTHORIZATION","BACKUP","BEGIN","BETWEEN","BREAK","BROWSE","BULK","BY","CASCADE","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLUMN","COMMIT","COMPUTE","CONSTRAINT","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DBCC","DEALLOCATE","DECLARE","DEFAULT","DELETE","DENY","DESC","DISK","DISTINCT","DISTRIBUTED","DOUBLE","DROP","DUMP","ERRLVL","ESCAPE","EXEC","EXECUTE","EXISTS","EXIT","EXTERNAL","FETCH","FILE","FILLFACTOR","FOR","FOREIGN","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GOTO","GRANT","GROUP","HAVING","HOLDLOCK","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IN","INDEX","INNER","INSERT","INTERSECT","INTO","IS","JOIN","KEY","KILL","LEFT","LIKE","LINENO","LOAD","MERGE","NATIONAL","NOCHECK","NONCLUSTERED","NOT","NULL","NULLIF","OF","OFF","OFFSETS","ON","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OUTER","OVER","PERCENT","PIVOT","PLAN","PRECISION","PRIMARY","PRINT","PROC","PROCEDURE","PUBLIC","RAISERROR","READ","READTEXT","RECONFIGURE","REFERENCES","REPLICATION","RESTORE","RESTRICT","RETURN","REVERT","REVOKE","RIGHT","ROLLBACK","ROWCOUNT","ROWGUIDCOL","RULE","SAVE","SCHEMA","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION_USER","SET","SETUSER","SHUTDOWN","SOME","STATISTICS","SYSTEM_USER","TABLE","TABLESAMPLE","TEXTSIZE","THEN","TO","TOP","TRAN","TRANSACTION","TRIGGER","TRUNCATE","TRY_CONVERT","TSEQUAL","UNION","UNIQUE","UNPIVOT","UPDATE","UPDATETEXT","USE","USER","VALUES","VARYING","VIEW","WAITFOR","WHERE","WHILE","WITH","WITHIN GROUP","WRITETEXT"],odbc:["ABSOLUTE","ACTION","ADA","ADD","ALL","ALLOCATE","ALTER","AND","ANY","ARE","AS","ASC","ASSERTION","AT","AUTHORIZATION","AVG","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BY","CASCADE","CASCADED","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CLOSE","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATE","DAY","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DESCRIBE","DESCRIPTOR","DIAGNOSTICS","DISCONNECT","DISTINCT","DOMAIN","DOUBLE","DROP","END-EXEC","ESCAPE","EXCEPTION","EXEC","EXECUTE","EXISTS","EXTERNAL","EXTRACT","FALSE","FETCH","FIRST","FLOAT","FOR","FOREIGN","FORTRAN","FOUND","FROM","FULL","GET","GLOBAL","GO","GOTO","GRANT","GROUP","HAVING","HOUR","IDENTITY","IMMEDIATE","IN","INCLUDE","INDEX","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISOLATION","JOIN","KEY","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LOCAL","LOWER","MATCH","MAX","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NONE","NOT","NULL","NULLIF","NUMERIC","OCTET_LENGTH","OF","ONLY","OPEN","OPTION","OR","ORDER","OUTER","OUTPUT","OVERLAPS","PAD","PARTIAL","PASCAL","POSITION","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURE","PUBLIC","READ","REAL","REFERENCES","RELATIVE","RESTRICT","REVOKE","RIGHT","ROLLBACK","ROWS","SCHEMA","SCROLL","SECOND","SECTION","SELECT","SESSION","SESSION_USER","SET","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","SUBSTRING","SUM","SYSTEM_USER","TABLE","TEMPORARY","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRANSACTION","TRANSLATE","TRANSLATION","TRIM","TRUE","UNION","UNIQUE","UNKNOWN","UPDATE","UPPER","USAGE","USER","VALUE","VALUES","VARCHAR","VARYING","VIEW","WHENEVER","WHERE","WITH","WORK","WRITE","YEAR","ZONE"]}),p9=TP(["SELECT [ALL | DISTINCT]"]),_e=TP(["WITH","INTO","FROM","WHERE","GROUP BY","HAVING","WINDOW","PARTITION BY","ORDER BY","OFFSET","FETCH {FIRST | NEXT}","INSERT [INTO]","VALUES","SET","MERGE [INTO]","WHEN [NOT] MATCHED [BY TARGET | BY SOURCE] [THEN]","UPDATE SET","CREATE [OR ALTER] [MATERIALIZED] VIEW","CREATE TABLE","CREATE [OR ALTER] {PROC | PROCEDURE}"]),_t=TP(["UPDATE","WHERE CURRENT OF","DELETE [FROM]","DROP TABLE [IF EXISTS]","ALTER TABLE","ADD","DROP COLUMN [IF EXISTS]","ALTER COLUMN","TRUNCATE TABLE","ADD SENSITIVITY CLASSIFICATION","ADD SIGNATURE","AGGREGATE","ANSI_DEFAULTS","ANSI_NULLS","ANSI_NULL_DFLT_OFF","ANSI_NULL_DFLT_ON","ANSI_PADDING","ANSI_WARNINGS","APPLICATION ROLE","ARITHABORT","ARITHIGNORE","ASSEMBLY","ASYMMETRIC KEY","AUTHORIZATION","AVAILABILITY GROUP","BACKUP","BACKUP CERTIFICATE","BACKUP MASTER KEY","BACKUP SERVICE MASTER KEY","BEGIN CONVERSATION TIMER","BEGIN DIALOG CONVERSATION","BROKER PRIORITY","BULK INSERT","CERTIFICATE","CLOSE MASTER KEY","CLOSE SYMMETRIC KEY","COLLATE","COLUMN ENCRYPTION KEY","COLUMN MASTER KEY","COLUMNSTORE INDEX","CONCAT_NULL_YIELDS_NULL","CONTEXT_INFO","CONTRACT","CREDENTIAL","CRYPTOGRAPHIC PROVIDER","CURSOR_CLOSE_ON_COMMIT","DATABASE","DATABASE AUDIT SPECIFICATION","DATABASE ENCRYPTION KEY","DATABASE HADR","DATABASE SCOPED CONFIGURATION","DATABASE SCOPED CREDENTIAL","DATABASE SET","DATEFIRST","DATEFORMAT","DEADLOCK_PRIORITY","DENY","DENY XML","DISABLE TRIGGER","ENABLE TRIGGER","END CONVERSATION","ENDPOINT","EVENT NOTIFICATION","EVENT SESSION","EXECUTE AS","EXTERNAL DATA SOURCE","EXTERNAL FILE FORMAT","EXTERNAL LANGUAGE","EXTERNAL LIBRARY","EXTERNAL RESOURCE POOL","EXTERNAL TABLE","FIPS_FLAGGER","FMTONLY","FORCEPLAN","FULLTEXT CATALOG","FULLTEXT INDEX","FULLTEXT STOPLIST","FUNCTION","GET CONVERSATION GROUP","GET_TRANSMISSION_STATUS","GRANT","GRANT XML","IDENTITY_INSERT","IMPLICIT_TRANSACTIONS","INDEX","LANGUAGE","LOCK_TIMEOUT","LOGIN","MASTER KEY","MESSAGE TYPE","MOVE CONVERSATION","NOCOUNT","NOEXEC","NUMERIC_ROUNDABORT","OFFSETS","OPEN MASTER KEY","OPEN SYMMETRIC KEY","PARSEONLY","PARTITION FUNCTION","PARTITION SCHEME","PROCEDURE","QUERY_GOVERNOR_COST_LIMIT","QUEUE","QUOTED_IDENTIFIER","RECEIVE","REMOTE SERVICE BINDING","REMOTE_PROC_TRANSACTIONS","RESOURCE GOVERNOR","RESOURCE POOL","RESTORE","RESTORE FILELISTONLY","RESTORE HEADERONLY","RESTORE LABELONLY","RESTORE MASTER KEY","RESTORE REWINDONLY","RESTORE SERVICE MASTER KEY","RESTORE VERIFYONLY","REVERT","REVOKE","REVOKE XML","ROLE","ROUTE","ROWCOUNT","RULE","SCHEMA","SEARCH PROPERTY LIST","SECURITY POLICY","SELECTIVE XML INDEX","SEND","SENSITIVITY CLASSIFICATION","SEQUENCE","SERVER AUDIT","SERVER AUDIT SPECIFICATION","SERVER CONFIGURATION","SERVER ROLE","SERVICE","SERVICE MASTER KEY","SETUSER","SHOWPLAN_ALL","SHOWPLAN_TEXT","SHOWPLAN_XML","SIGNATURE","SPATIAL INDEX","STATISTICS","STATISTICS IO","STATISTICS PROFILE","STATISTICS TIME","STATISTICS XML","SYMMETRIC KEY","SYNONYM","TABLE","TABLE IDENTITY","TEXTSIZE","TRANSACTION ISOLATION LEVEL","TRIGGER","TYPE","UPDATE STATISTICS","USER","WORKLOAD GROUP","XACT_ABORT","XML INDEX","XML SCHEMA COLLECTION"]),_n={tokenizerOptions:{reservedSelect:p9,reservedClauses:[..._e,..._t],reservedSetOperations:TP(["UNION [ALL]","EXCEPT","INTERSECT"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","{CROSS | OUTER} APPLY"]),reservedPhrases:TP(["ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]","{ROWS | RANGE} BETWEEN"]),reservedKeywords:p7,reservedFunctionNames:p8,nestedBlockComments:!0,stringTypes:[{quote:"''-qq",prefixes:["N"]}],identTypes:['""-qq',"[]"],identChars:{first:"#@",rest:"#@$"},paramTypes:{named:["@"],quoted:["@"]},operators:["%","&","|","^","~","!<","!>","+=","-=","*=","/=","%=","|=","&=","^=","::"]},formatOptions:{alwaysDenseOperators:["::"],onelineClauses:_t}},_r=TW({all:["ABORT","ABSOLUTE","ACCESS","ACCESSIBLE","ACCOUNT","ACTION","ACTIVE","ADD","ADMIN","AFTER","AGAINST","AGGREGATE","AGGREGATES","AGGREGATOR","AGGREGATOR_ID","AGGREGATOR_PLAN_HASH","AGGREGATORS","ALGORITHM","ALL","ALSO","ALTER","ALWAYS","ANALYZE","AND","ANY","ARGHISTORY","ARRANGE","ARRANGEMENT","ARRAY","AS","ASC","ASCII","ASENSITIVE","ASM","ASSERTION","ASSIGNMENT","AST","ASYMMETRIC","ASYNC","AT","ATTACH","ATTRIBUTE","AUTHORIZATION","AUTO","AUTO_INCREMENT","AUTO_REPROVISION","AUTOSTATS","AUTOSTATS_CARDINALITY_MODE","AUTOSTATS_ENABLED","AUTOSTATS_HISTOGRAM_MODE","AUTOSTATS_SAMPLING","AVAILABILITY","AVG","AVG_ROW_LENGTH","AVRO","AZURE","BACKGROUND","_BACKGROUND_THREADS_FOR_CLEANUP","BACKUP","BACKUP_HISTORY","BACKUP_ID","BACKWARD","BATCH","BATCHES","BATCH_INTERVAL","_BATCH_SIZE_LIMIT","BEFORE","BEGIN","BETWEEN","BIGINT","BINARY","_BINARY","BIT","BLOB","BOOL","BOOLEAN","BOOTSTRAP","BOTH","_BT","BTREE","BUCKET_COUNT","BUCKETS","BY","BYTE","BYTE_LENGTH","CACHE","CALL","CALL_FOR_PIPELINE","CALLED","CAPTURE","CASCADE","CASCADED","CASE","CATALOG","CHAIN","CHANGE","CHAR","CHARACTER","CHARACTERISTICS","CHARSET","CHECK","CHECKPOINT","_CHECK_CAN_CONNECT","_CHECK_CONSISTENCY","CHECKSUM","_CHECKSUM","CLASS","CLEAR","CLIENT","CLIENT_FOUND_ROWS","CLOSE","CLUSTER","CLUSTERED","CNF","COALESCE","COLLATE","COLLATION","COLUMN","COLUMNAR","COLUMNS","COLUMNSTORE","COLUMNSTORE_SEGMENT_ROWS","COMMENT","COMMENTS","COMMIT","COMMITTED","_COMMIT_LOG_TAIL","COMPACT","COMPILE","COMPRESSED","COMPRESSION","CONCURRENT","CONCURRENTLY","CONDITION","CONFIGURATION","CONNECTION","CONNECTIONS","CONFIG","CONSTRAINT","CONTAINS","CONTENT","CONTINUE","_CONTINUE_REPLAY","CONVERSION","CONVERT","COPY","_CORE","COST","CREATE","CREDENTIALS","CROSS","CUBE","CSV","CUME_DIST","CURRENT","CURRENT_CATALOG","CURRENT_DATE","CURRENT_SCHEMA","CURRENT_SECURITY_GROUPS","CURRENT_SECURITY_ROLES","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","CYCLE","DATA","DATABASE","DATABASES","DATE","DATETIME","DAY","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFAULTS","DEFERRABLE","DEFERRED","DEFINED","DEFINER","DELAYED","DELAY_KEY_WRITE","DELETE","DELIMITER","DELIMITERS","DENSE_RANK","DESC","DESCRIBE","DETACH","DETERMINISTIC","DICTIONARY","DIFFERENTIAL","DIRECTORY","DISABLE","DISCARD","_DISCONNECT","DISK","DISTINCT","DISTINCTROW","DISTRIBUTED_JOINS","DIV","DO","DOCUMENT","DOMAIN","DOUBLE","DROP","_DROP_PROFILE","DUAL","DUMP","DUPLICATE","DURABILITY","DYNAMIC","EARLIEST","EACH","ECHO","ELECTION","ELSE","ELSEIF","ENABLE","ENCLOSED","ENCODING","ENCRYPTED","END","ENGINE","ENGINES","ENUM","ERRORS","ESCAPE","ESCAPED","ESTIMATE","EVENT","EVENTS","EXCEPT","EXCLUDE","EXCLUDING","EXCLUSIVE","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTENDED","EXTENSION","EXTERNAL","EXTERNAL_HOST","EXTERNAL_PORT","EXTRACTOR","EXTRACTORS","EXTRA_JOIN","_FAILOVER","FAILED_LOGIN_ATTEMPTS","FAILURE","FALSE","FAMILY","FAULT","FETCH","FIELDS","FILE","FILES","FILL","FIX_ALTER","FIXED","FLOAT","FLOAT4","FLOAT8","FLUSH","FOLLOWING","FOR","FORCE","FORCE_COMPILED_MODE","FORCE_INTERPRETER_MODE","FOREGROUND","FOREIGN","FORMAT","FORWARD","FREEZE","FROM","FS","_FSYNC","FULL","FULLTEXT","FUNCTION","FUNCTIONS","GC","GCS","GET_FORMAT","_GC","_GCX","GENERATE","GEOGRAPHY","GEOGRAPHYPOINT","GEOMETRY","GEOMETRYPOINT","GLOBAL","_GLOBAL_VERSION_TIMESTAMP","GRANT","GRANTED","GRANTS","GROUP","GROUPING","GROUPS","GZIP","HANDLE","HANDLER","HARD_CPU_LIMIT_PERCENTAGE","HASH","HAS_TEMP_TABLES","HAVING","HDFS","HEADER","HEARTBEAT_NO_LOGGING","HIGH_PRIORITY","HISTOGRAM","HOLD","HOLDING","HOST","HOSTS","HOUR","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IDENTIFIED","IDENTITY","IF","IGNORE","ILIKE","IMMEDIATE","IMMUTABLE","IMPLICIT","IMPORT","IN","INCLUDING","INCREMENT","INCREMENTAL","INDEX","INDEXES","INFILE","INHERIT","INHERITS","_INIT_PROFILE","INIT","INITIALIZE","INITIALLY","INJECT","INLINE","INNER","INOUT","INPUT","INSENSITIVE","INSERT","INSERT_METHOD","INSTANCE","INSTEAD","IN","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","_INTERNAL_DYNAMIC_TYPECAST","INTERPRETER_MODE","INTERSECT","INTERVAL","INTO","INVOKER","ISOLATION","ITERATE","JOIN","JSON","KAFKA","KEY","KEY_BLOCK_SIZE","KEYS","KILL","KILLALL","LABEL","LAG","LANGUAGE","LARGE","LAST","LAST_VALUE","LATERAL","LATEST","LC_COLLATE","LC_CTYPE","LEAD","LEADING","LEAF","LEAKPROOF","LEAVE","LEAVES","LEFT","LEVEL","LICENSE","LIKE","LIMIT","LINES","LISTEN","LLVM","LOADDATA_WHERE","LOAD","LOCAL","LOCALTIME","LOCALTIMESTAMP","LOCATION","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","_LS","LZ4","MANAGEMENT","_MANAGEMENT_THREAD","MAPPING","MASTER","MATCH","MATERIALIZED","MAXVALUE","MAX_CONCURRENCY","MAX_ERRORS","MAX_PARTITIONS_PER_BATCH","MAX_QUEUE_DEPTH","MAX_RETRIES_PER_BATCH_PARTITION","MAX_ROWS","MBC","MPL","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MEMBER","MEMORY","MEMORY_PERCENTAGE","_MEMSQL_TABLE_ID_LOOKUP","MEMSQL","MEMSQL_DESERIALIZE","MEMSQL_IMITATING_KAFKA","MEMSQL_SERIALIZE","MERGE","METADATA","MICROSECOND","MIDDLEINT","MIN_ROWS","MINUS","MINUTE_MICROSECOND","MINUTE_SECOND","MINVALUE","MOD","MODE","MODEL","MODIFIES","MODIFY","MONTH","MOVE","MPL","NAMES","NAMED","NAMESPACE","NATIONAL","NATURAL","NCHAR","NEXT","NO","NODE","NONE","NO_QUERY_REWRITE","NOPARAM","NOT","NOTHING","NOTIFY","NOWAIT","NO_WRITE_TO_BINLOG","NO_QUERY_REWRITE","NORELY","NTH_VALUE","NTILE","NULL","NULLCOLS","NULLS","NUMERIC","NVARCHAR","OBJECT","OF","OFF","OFFLINE","OFFSET","OFFSETS","OIDS","ON","ONLINE","ONLY","OPEN","OPERATOR","OPTIMIZATION","OPTIMIZE","OPTIMIZER","OPTIMIZER_STATE","OPTION","OPTIONS","OPTIONALLY","OR","ORDER","ORDERED_SERIALIZE","ORPHAN","OUT","OUT_OF_ORDER","OUTER","OUTFILE","OVER","OVERLAPS","OVERLAY","OWNED","OWNER","PACK_KEYS","PAIRED","PARSER","PARQUET","PARTIAL","PARTITION","PARTITION_ID","PARTITIONING","PARTITIONS","PASSING","PASSWORD","PASSWORD_LOCK_TIME","PAUSE","_PAUSE_REPLAY","PERIODIC","PERSISTED","PIPELINE","PIPELINES","PLACING","PLAN","PLANS","PLANCACHE","PLUGINS","POOL","POOLS","PORT","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRIOR","PRIVILEGES","PROCEDURAL","PROCEDURE","PROCEDURES","PROCESS","PROCESSLIST","PROFILE","PROFILES","PROGRAM","PROMOTE","PROXY","PURGE","QUARTER","QUERIES","QUERY","QUERY_TIMEOUT","QUEUE","RANGE","RANK","READ","_READ","READS","REAL","REASSIGN","REBALANCE","RECHECK","RECORD","RECURSIVE","REDUNDANCY","REDUNDANT","REF","REFERENCE","REFERENCES","REFRESH","REGEXP","REINDEX","RELATIVE","RELEASE","RELOAD","RELY","REMOTE","REMOVE","RENAME","REPAIR","_REPAIR_TABLE","REPEAT","REPEATABLE","_REPL","_REPROVISIONING","REPLACE","REPLICA","REPLICATE","REPLICATING","REPLICATION","REQUIRE","RESOURCE","RESOURCE_POOL","RESET","RESTART","RESTORE","RESTRICT","RESULT","_RESURRECT","RETRY","RETURN","RETURNING","RETURNS","REVERSE","RG_POOL","REVOKE","RIGHT","RIGHT_ANTI_JOIN","RIGHT_SEMI_JOIN","RIGHT_STRAIGHT_JOIN","RLIKE","ROLES","ROLLBACK","ROLLUP","ROUTINE","ROW","ROW_COUNT","ROW_FORMAT","ROW_NUMBER","ROWS","ROWSTORE","RULE","_RPC","RUNNING","S3","SAFE","SAVE","SAVEPOINT","SCALAR","SCHEMA","SCHEMAS","SCHEMA_BINDING","SCROLL","SEARCH","SECOND","SECOND_MICROSECOND","SECURITY","SELECT","SEMI_JOIN","_SEND_THREADS","SENSITIVE","SEPARATOR","SEQUENCE","SEQUENCES","SERIAL","SERIALIZABLE","SERIES","SERVICE_USER","SERVER","SESSION","SESSION_USER","SET","SETOF","SECURITY_LISTS_INTERSECT","SHA","SHARD","SHARDED","SHARDED_ID","SHARE","SHOW","SHUTDOWN","SIGNAL","SIGNED","SIMILAR","SIMPLE","SITE","SKIP","SKIPPED_BATCHES","__SLEEP","SMALLINT","SNAPSHOT","_SNAPSHOT","_SNAPSHOTS","SOFT_CPU_LIMIT_PERCENTAGE","SOME","SONAME","SPARSE","SPATIAL","SPATIAL_CHECK_INDEX","SPECIFIC","SQL","SQL_BIG_RESULT","SQL_BUFFER_RESULT","SQL_CACHE","SQL_CALC_FOUND_ROWS","SQLEXCEPTION","SQL_MODE","SQL_NO_CACHE","SQL_NO_LOGGING","SQL_SMALL_RESULT","SQLSTATE","SQLWARNING","STDIN","STDOUT","STOP","STORAGE","STRAIGHT_JOIN","STRICT","STRING","STRIP","SUCCESS","SUPER","SYMMETRIC","SYNC_SNAPSHOT","SYNC","_SYNC","_SYNC2","_SYNC_PARTITIONS","_SYNC_SNAPSHOT","SYNCHRONIZE","SYSID","SYSTEM","TABLE","TABLE_CHECKSUM","TABLES","TABLESPACE","TAGS","TARGET_SIZE","TASK","TEMP","TEMPLATE","TEMPORARY","TEMPTABLE","_TERM_BUMP","TERMINATE","TERMINATED","TEXT","THEN","TIME","TIMEOUT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIMEZONE","TINYBLOB","TINYINT","TINYTEXT","TO","TRACELOGS","TRADITIONAL","TRAILING","TRANSFORM","TRANSACTION","_TRANSACTIONS_EXPERIMENTAL","TREAT","TRIGGER","TRIGGERS","TRUE","TRUNC","TRUNCATE","TRUSTED","TWO_PHASE","_TWOPCID","TYPE","TYPES","UNBOUNDED","UNCOMMITTED","UNDEFINED","UNDO","UNENCRYPTED","UNENFORCED","UNHOLD","UNICODE","UNION","UNIQUE","_UNITTEST","UNKNOWN","UNLISTEN","_UNLOAD","UNLOCK","UNLOGGED","UNPIVOT","UNSIGNED","UNTIL","UPDATE","UPGRADE","USAGE","USE","USER","USERS","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","_UTF8","VACUUM","VALID","VALIDATE","VALIDATOR","VALUE","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARIABLES","VARIADIC","VARYING","VERBOSE","VIEW","VOID","VOLATILE","VOTING","WAIT","_WAKE","WARNINGS","WEEK","WHEN","WHERE","WHILE","WHITESPACE","WINDOW","WITH","WITHOUT","WITHIN","_WM_HEARTBEAT","WORK","WORKLOAD","WRAPPER","WRITE","XACT_ID","XOR","YEAR","YEAR_MONTH","YES","ZEROFILL","ZONE"]}),_a=TW({all:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_COUNT_DISTINCT_ACCUMULATE","APPROX_COUNT_DISTINCT_COMBINE","APPROX_COUNT_DISTINCT_ESTIMATE","APPROX_GEOGRAPHY_INTERSECTS","APPROX_PERCENTILE","ASCII","ASIN","ATAN","ATAN2","AVG","BIN","BINARY","BIT_AND","BIT_COUNT","BIT_OR","BIT_XOR","CAST","CEIL","CEILING","CHAR","CHARACTER_LENGTH","CHAR_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COLLECT","CONCAT","CONCAT_WS","CONNECTION_ID","CONV","CONVERT","CONVERT_TZ","COS","COT","COUNT","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATEDIFF","DATE_FORMAT","DATE_SUB","DATE_TRUNC","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DENSE_RANK","DIV","DOT_PRODUCT","ELT","EUCLIDEAN_DISTANCE","EXP","EXTRACT","FIELD","FIRST","FIRST_VALUE","FLOOR","FORMAT","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEOGRAPHY_AREA","GEOGRAPHY_CONTAINS","GEOGRAPHY_DISTANCE","GEOGRAPHY_INTERSECTS","GEOGRAPHY_LATITUDE","GEOGRAPHY_LENGTH","GEOGRAPHY_LONGITUDE","GEOGRAPHY_POINT","GEOGRAPHY_WITHIN_DISTANCE","GEOMETRY_AREA","GEOMETRY_CONTAINS","GEOMETRY_DISTANCE","GEOMETRY_FILTER","GEOMETRY_INTERSECTS","GEOMETRY_LENGTH","GEOMETRY_POINT","GEOMETRY_WITHIN_DISTANCE","GEOMETRY_X","GEOMETRY_Y","GREATEST","GROUPING","GROUP_CONCAT","HEX","HIGHLIGHT","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INITCAP","INSERT","INSTR","INTERVAL","IS","IS NULL","JSON_AGG","JSON_ARRAY_CONTAINS_DOUBLE","JSON_ARRAY_CONTAINS_JSON","JSON_ARRAY_CONTAINS_STRING","JSON_ARRAY_PUSH_DOUBLE","JSON_ARRAY_PUSH_JSON","JSON_ARRAY_PUSH_STRING","JSON_DELETE_KEY","JSON_EXTRACT_DOUBLE","JSON_EXTRACT_JSON","JSON_EXTRACT_STRING","JSON_EXTRACT_BIGINT","JSON_GET_TYPE","JSON_LENGTH","JSON_SET_DOUBLE","JSON_SET_JSON","JSON_SET_STRING","JSON_SPLICE_DOUBLE","JSON_SPLICE_JSON","JSON_SPLICE_STRING","LAG","LAST_DAY","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LIKE","LN","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LPAD","LTRIM","MATCH","MAX","MD5","MEDIAN","MICROSECOND","MIN","MINUTE","MOD","MONTH","MONTHNAME","MONTHS_BETWEEN","NOT","NOW","NTH_VALUE","NTILE","NULLIF","OCTET_LENGTH","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIVOT","POSITION","POW","POWER","QUARTER","QUOTE","RADIANS","RAND","RANK","REGEXP","REPEAT","REPLACE","REVERSE","RIGHT","RLIKE","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCALAR","SCHEMA","SEC_TO_TIME","SHA1","SHA2","SIGMOID","SIGN","SIN","SLEEP","SPLIT","SOUNDEX","SOUNDS LIKE","SOURCE_POS_WAIT","SPACE","SQRT","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUM","SYS_GUID","TAN","TIME","TIMEDIFF","TIME_BUCKET","TIME_FORMAT","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TIME_TO_SEC","TO_BASE64","TO_CHAR","TO_DAYS","TO_JSON","TO_NUMBER","TO_SECONDS","TO_TIMESTAMP","TRIM","TRUNC","TRUNCATE","UCASE","UNHEX","UNIX_TIMESTAMP","UPDATEXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","VALUES","VARIANCE","VAR_POP","VAR_SAMP","VECTOR_SUB","VERSION","WEEK","WEEKDAY","WEEKOFYEAR","YEAR","BIT","TINYINT","SMALLINT","MEDIUMINT","INT","INTEGER","BIGINT","DECIMAL","DEC","NUMERIC","FIXED","FLOAT","DOUBLE","DOUBLE PRECISION","REAL","DATETIME","TIMESTAMP","TIME","YEAR","CHAR","NATIONAL CHAR","VARCHAR","NATIONAL VARCHAR","BINARY","VARBINARY","BLOB","TEXT","ENUM"]}),_s=TP(["SELECT [ALL | DISTINCT | DISTINCTROW]"]),_i=TP(["WITH","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","LIMIT","OFFSET","INSERT [IGNORE] [INTO]","VALUES","REPLACE [INTO]","SET","CREATE VIEW","CREATE [ROWSTORE] [REFERENCE | TEMPORARY | GLOBAL TEMPORARY] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [TEMPORARY] PROCEDURE [IF NOT EXISTS]","CREATE [OR REPLACE] [EXTERNAL] FUNCTION"]),_o=TP(["UPDATE","DELETE [FROM]","DROP [TEMPORARY] TABLE [IF EXISTS]","ALTER [ONLINE] TABLE","ADD [COLUMN]","ADD [UNIQUE] {INDEX | KEY}","DROP [COLUMN]","MODIFY [COLUMN]","CHANGE","RENAME [TO | AS]","TRUNCATE [TABLE]","ADD AGGREGATOR","ADD LEAF","AGGREGATOR SET AS MASTER","ALTER DATABASE","ALTER PIPELINE","ALTER RESOURCE POOL","ALTER USER","ALTER VIEW","ANALYZE TABLE","ATTACH DATABASE","ATTACH LEAF","ATTACH LEAF ALL","BACKUP DATABASE","BINLOG","BOOTSTRAP AGGREGATOR","CACHE INDEX","CALL","CHANGE","CHANGE MASTER TO","CHANGE REPLICATION FILTER","CHANGE REPLICATION SOURCE TO","CHECK BLOB CHECKSUM","CHECK TABLE","CHECKSUM TABLE","CLEAR ORPHAN DATABASES","CLONE","COMMIT","CREATE DATABASE","CREATE GROUP","CREATE INDEX","CREATE LINK","CREATE MILESTONE","CREATE PIPELINE","CREATE RESOURCE POOL","CREATE ROLE","CREATE USER","DEALLOCATE PREPARE","DESCRIBE","DETACH DATABASE","DETACH PIPELINE","DROP DATABASE","DROP FUNCTION","DROP INDEX","DROP LINK","DROP PIPELINE","DROP PROCEDURE","DROP RESOURCE POOL","DROP ROLE","DROP USER","DROP VIEW","EXECUTE","EXPLAIN","FLUSH","FORCE","GRANT","HANDLER","HELP","KILL CONNECTION","KILLALL QUERIES","LOAD DATA","LOAD INDEX INTO CACHE","LOAD XML","LOCK INSTANCE FOR BACKUP","LOCK TABLES","MASTER_POS_WAIT","OPTIMIZE TABLE","PREPARE","PURGE BINARY LOGS","REBALANCE PARTITIONS","RELEASE SAVEPOINT","REMOVE AGGREGATOR","REMOVE LEAF","REPAIR TABLE","REPLACE","REPLICATE DATABASE","RESET","RESET MASTER","RESET PERSIST","RESET REPLICA","RESET SLAVE","RESTART","RESTORE DATABASE","RESTORE REDUNDANCY","REVOKE","ROLLBACK","ROLLBACK TO SAVEPOINT","SAVEPOINT","SET CHARACTER SET","SET DEFAULT ROLE","SET NAMES","SET PASSWORD","SET RESOURCE GROUP","SET ROLE","SET TRANSACTION","SHOW","SHOW CHARACTER SET","SHOW COLLATION","SHOW COLUMNS","SHOW CREATE DATABASE","SHOW CREATE FUNCTION","SHOW CREATE PIPELINE","SHOW CREATE PROCEDURE","SHOW CREATE TABLE","SHOW CREATE USER","SHOW CREATE VIEW","SHOW DATABASES","SHOW ENGINE","SHOW ENGINES","SHOW ERRORS","SHOW FUNCTION CODE","SHOW FUNCTION STATUS","SHOW GRANTS","SHOW INDEX","SHOW MASTER STATUS","SHOW OPEN TABLES","SHOW PLUGINS","SHOW PRIVILEGES","SHOW PROCEDURE CODE","SHOW PROCEDURE STATUS","SHOW PROCESSLIST","SHOW PROFILE","SHOW PROFILES","SHOW RELAYLOG EVENTS","SHOW REPLICA STATUS","SHOW REPLICAS","SHOW SLAVE","SHOW SLAVE HOSTS","SHOW STATUS","SHOW TABLE STATUS","SHOW TABLES","SHOW VARIABLES","SHOW WARNINGS","SHUTDOWN","SNAPSHOT DATABASE","SOURCE_POS_WAIT","START GROUP_REPLICATION","START PIPELINE","START REPLICA","START SLAVE","START TRANSACTION","STOP GROUP_REPLICATION","STOP PIPELINE","STOP REPLICA","STOP REPLICATING","STOP SLAVE","TEST PIPELINE","UNLOCK INSTANCE","UNLOCK TABLES","USE","XA","ITERATE","LEAVE","LOOP","REPEAT","RETURN","WHILE"]),_l={tokenizerOptions:{reservedSelect:_s,reservedClauses:[..._i,..._o],reservedSetOperations:TP(["UNION [ALL | DISTINCT]","EXCEPT","INTERSECT","MINUS"]),reservedJoins:TP(["JOIN","{LEFT | RIGHT | FULL} [OUTER] JOIN","{INNER | CROSS} JOIN","NATURAL {LEFT | RIGHT} [OUTER] JOIN","STRAIGHT_JOIN"]),reservedPhrases:TP(["ON DELETE","ON UPDATE","CHARACTER SET","{ROWS | RANGE} BETWEEN"]),reservedKeywords:_r,reservedFunctionNames:_a,stringTypes:['""-qq-bs',"''-qq-bs",{quote:"''-raw",prefixes:["B","X"],requirePrefix:!0}],identTypes:["``"],identChars:{first:"$",rest:"$",allowFirstCharNumber:!0},variableTypes:[{regex:"@@?[A-Za-z0-9_$]+"},{quote:"``",prefixes:["@"],requirePrefix:!0}],lineCommentTypes:["--","#"],operators:[":=","&","|","^","~","<<",">>","<=>","&&","||","::","::$","::%",":>","!:>"],postProcess:function(e){return e.map((t,n)=>{let r=e[n+1]||Tg;return Tb.SET(t)&&"("===r.text?{...t,type:i.RESERVED_FUNCTION_NAME}:t})}},formatOptions:{alwaysDenseOperators:["::","::$","::%"],onelineClauses:_o}},_E=TW({all:["ABS","ACOS","ACOSH","ADD_MONTHS","ALL_USER_NAMES","ANY_VALUE","APPROX_COUNT_DISTINCT","APPROX_PERCENTILE","APPROX_PERCENTILE_ACCUMULATE","APPROX_PERCENTILE_COMBINE","APPROX_PERCENTILE_ESTIMATE","APPROX_TOP_K","APPROX_TOP_K_ACCUMULATE","APPROX_TOP_K_COMBINE","APPROX_TOP_K_ESTIMATE","APPROXIMATE_JACCARD_INDEX","APPROXIMATE_SIMILARITY","ARRAY_AGG","ARRAY_APPEND","ARRAY_CAT","ARRAY_COMPACT","ARRAY_CONSTRUCT","ARRAY_CONSTRUCT_COMPACT","ARRAY_CONTAINS","ARRAY_INSERT","ARRAY_INTERSECTION","ARRAY_POSITION","ARRAY_PREPEND","ARRAY_SIZE","ARRAY_SLICE","ARRAY_TO_STRING","ARRAY_UNION_AGG","ARRAY_UNIQUE_AGG","ARRAYS_OVERLAP","AS_ARRAY","AS_BINARY","AS_BOOLEAN","AS_CHAR","AS_VARCHAR","AS_DATE","AS_DECIMAL","AS_NUMBER","AS_DOUBLE","AS_REAL","AS_INTEGER","AS_OBJECT","AS_TIME","AS_TIMESTAMP_LTZ","AS_TIMESTAMP_NTZ","AS_TIMESTAMP_TZ","ASCII","ASIN","ASINH","ATAN","ATAN2","ATANH","AUTO_REFRESH_REGISTRATION_HISTORY","AUTOMATIC_CLUSTERING_HISTORY","AVG","BASE64_DECODE_BINARY","BASE64_DECODE_STRING","BASE64_ENCODE","BIT_LENGTH","BITAND","BITAND_AGG","BITMAP_BIT_POSITION","BITMAP_BUCKET_NUMBER","BITMAP_CONSTRUCT_AGG","BITMAP_COUNT","BITMAP_OR_AGG","BITNOT","BITOR","BITOR_AGG","BITSHIFTLEFT","BITSHIFTRIGHT","BITXOR","BITXOR_AGG","BOOLAND","BOOLAND_AGG","BOOLNOT","BOOLOR","BOOLOR_AGG","BOOLXOR","BOOLXOR_AGG","BUILD_SCOPED_FILE_URL","BUILD_STAGE_FILE_URL","CASE","CAST","CBRT","CEIL","CHARINDEX","CHECK_JSON","CHECK_XML","CHR","CHAR","COALESCE","COLLATE","COLLATION","COMPLETE_TASK_GRAPHS","COMPRESS","CONCAT","CONCAT_WS","CONDITIONAL_CHANGE_EVENT","CONDITIONAL_TRUE_EVENT","CONTAINS","CONVERT_TIMEZONE","COPY_HISTORY","CORR","COS","COSH","COT","COUNT","COUNT_IF","COVAR_POP","COVAR_SAMP","CUME_DIST","CURRENT_ACCOUNT","CURRENT_AVAILABLE_ROLES","CURRENT_CLIENT","CURRENT_DATABASE","CURRENT_DATE","CURRENT_IP_ADDRESS","CURRENT_REGION","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_SCHEMAS","CURRENT_SECONDARY_ROLES","CURRENT_SESSION","CURRENT_STATEMENT","CURRENT_TASK_GRAPHS","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_TRANSACTION","CURRENT_USER","CURRENT_VERSION","CURRENT_WAREHOUSE","DATA_TRANSFER_HISTORY","DATABASE_REFRESH_HISTORY","DATABASE_REFRESH_PROGRESS","DATABASE_REFRESH_PROGRESS_BY_JOB","DATABASE_STORAGE_USAGE_HISTORY","DATE_FROM_PARTS","DATE_PART","DATE_TRUNC","DATEADD","DATEDIFF","DAYNAME","DECODE","DECOMPRESS_BINARY","DECOMPRESS_STRING","DECRYPT","DECRYPT_RAW","DEGREES","DENSE_RANK","DIV0","EDITDISTANCE","ENCRYPT","ENCRYPT_RAW","ENDSWITH","EQUAL_NULL","EXP","EXPLAIN_JSON","EXTERNAL_FUNCTIONS_HISTORY","EXTERNAL_TABLE_FILES","EXTERNAL_TABLE_FILE_REGISTRATION_HISTORY","EXTRACT","EXTRACT_SEMANTIC_CATEGORIES","FACTORIAL","FIRST_VALUE","FLATTEN","FLOOR","GENERATE_COLUMN_DESCRIPTION","GENERATOR","GET","GET_ABSOLUTE_PATH","GET_DDL","GET_IGNORE_CASE","GET_OBJECT_REFERENCES","GET_PATH","GET_PRESIGNED_URL","GET_RELATIVE_PATH","GET_STAGE_LOCATION","GETBIT","GREATEST","GROUPING","GROUPING_ID","HASH","HASH_AGG","HAVERSINE","HEX_DECODE_BINARY","HEX_DECODE_STRING","HEX_ENCODE","HLL","HLL_ACCUMULATE","HLL_COMBINE","HLL_ESTIMATE","HLL_EXPORT","HLL_IMPORT","HOUR","MINUTE","SECOND","IFF","IFNULL","ILIKE","ILIKE ANY","INFER_SCHEMA","INITCAP","INSERT","INVOKER_ROLE","INVOKER_SHARE","IS_ARRAY","IS_BINARY","IS_BOOLEAN","IS_CHAR","IS_VARCHAR","IS_DATE","IS_DATE_VALUE","IS_DECIMAL","IS_DOUBLE","IS_REAL","IS_GRANTED_TO_INVOKER_ROLE","IS_INTEGER","IS_NULL_VALUE","IS_OBJECT","IS_ROLE_IN_SESSION","IS_TIME","IS_TIMESTAMP_LTZ","IS_TIMESTAMP_NTZ","IS_TIMESTAMP_TZ","JAROWINKLER_SIMILARITY","JSON_EXTRACT_PATH_TEXT","KURTOSIS","LAG","LAST_DAY","LAST_QUERY_ID","LAST_TRANSACTION","LAST_VALUE","LEAD","LEAST","LEFT","LENGTH","LEN","LIKE","LIKE ALL","LIKE ANY","LISTAGG","LN","LOCALTIME","LOCALTIMESTAMP","LOG","LOGIN_HISTORY","LOGIN_HISTORY_BY_USER","LOWER","LPAD","LTRIM","MATERIALIZED_VIEW_REFRESH_HISTORY","MD5","MD5_HEX","MD5_BINARY","MD5_NUMBER — Obsoleted","MD5_NUMBER_LOWER64","MD5_NUMBER_UPPER64","MEDIAN","MIN","MAX","MINHASH","MINHASH_COMBINE","MOD","MODE","MONTHNAME","MONTHS_BETWEEN","NEXT_DAY","NORMAL","NTH_VALUE","NTILE","NULLIF","NULLIFZERO","NVL","NVL2","OBJECT_AGG","OBJECT_CONSTRUCT","OBJECT_CONSTRUCT_KEEP_NULL","OBJECT_DELETE","OBJECT_INSERT","OBJECT_KEYS","OBJECT_PICK","OCTET_LENGTH","PARSE_IP","PARSE_JSON","PARSE_URL","PARSE_XML","PERCENT_RANK","PERCENTILE_CONT","PERCENTILE_DISC","PI","PIPE_USAGE_HISTORY","POLICY_CONTEXT","POLICY_REFERENCES","POSITION","POW","POWER","PREVIOUS_DAY","QUERY_ACCELERATION_HISTORY","QUERY_HISTORY","QUERY_HISTORY_BY_SESSION","QUERY_HISTORY_BY_USER","QUERY_HISTORY_BY_WAREHOUSE","RADIANS","RANDOM","RANDSTR","RANK","RATIO_TO_REPORT","REGEXP","REGEXP_COUNT","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_SUBSTR","REGEXP_SUBSTR_ALL","REGR_AVGX","REGR_AVGY","REGR_COUNT","REGR_INTERCEPT","REGR_R2","REGR_SLOPE","REGR_SXX","REGR_SXY","REGR_SYY","REGR_VALX","REGR_VALY","REPEAT","REPLACE","REPLICATION_GROUP_REFRESH_HISTORY","REPLICATION_GROUP_REFRESH_PROGRESS","REPLICATION_GROUP_REFRESH_PROGRESS_BY_JOB","REPLICATION_GROUP_USAGE_HISTORY","REPLICATION_USAGE_HISTORY","REST_EVENT_HISTORY","RESULT_SCAN","REVERSE","RIGHT","RLIKE","ROUND","ROW_NUMBER","RPAD","RTRIM","RTRIMMED_LENGTH","SEARCH_OPTIMIZATION_HISTORY","SEQ1","SEQ2","SEQ4","SEQ8","SERVERLESS_TASK_HISTORY","SHA1","SHA1_HEX","SHA1_BINARY","SHA2","SHA2_HEX","SHA2_BINARY","SIGN","SIN","SINH","SKEW","SOUNDEX","SPACE","SPLIT","SPLIT_PART","SPLIT_TO_TABLE","SQRT","SQUARE","ST_AREA","ST_ASEWKB","ST_ASEWKT","ST_ASGEOJSON","ST_ASWKB","ST_ASBINARY","ST_ASWKT","ST_ASTEXT","ST_AZIMUTH","ST_CENTROID","ST_COLLECT","ST_CONTAINS","ST_COVEREDBY","ST_COVERS","ST_DIFFERENCE","ST_DIMENSION","ST_DISJOINT","ST_DISTANCE","ST_DWITHIN","ST_ENDPOINT","ST_ENVELOPE","ST_GEOGFROMGEOHASH","ST_GEOGPOINTFROMGEOHASH","ST_GEOGRAPHYFROMWKB","ST_GEOGRAPHYFROMWKT","ST_GEOHASH","ST_GEOMETRYFROMWKB","ST_GEOMETRYFROMWKT","ST_HAUSDORFFDISTANCE","ST_INTERSECTION","ST_INTERSECTS","ST_LENGTH","ST_MAKEGEOMPOINT","ST_GEOM_POINT","ST_MAKELINE","ST_MAKEPOINT","ST_POINT","ST_MAKEPOLYGON","ST_POLYGON","ST_NPOINTS","ST_NUMPOINTS","ST_PERIMETER","ST_POINTN","ST_SETSRID","ST_SIMPLIFY","ST_SRID","ST_STARTPOINT","ST_SYMDIFFERENCE","ST_UNION","ST_WITHIN","ST_X","ST_XMAX","ST_XMIN","ST_Y","ST_YMAX","ST_YMIN","STAGE_DIRECTORY_FILE_REGISTRATION_HISTORY","STAGE_STORAGE_USAGE_HISTORY","STARTSWITH","STDDEV","STDDEV_POP","STDDEV_SAMP","STRIP_NULL_VALUE","STRTOK","STRTOK_SPLIT_TO_TABLE","STRTOK_TO_ARRAY","SUBSTR","SUBSTRING","SUM","SYSDATE","SYSTEM$ABORT_SESSION","SYSTEM$ABORT_TRANSACTION","SYSTEM$AUTHORIZE_PRIVATELINK","SYSTEM$AUTHORIZE_STAGE_PRIVATELINK_ACCESS","SYSTEM$BEHAVIOR_CHANGE_BUNDLE_STATUS","SYSTEM$CANCEL_ALL_QUERIES","SYSTEM$CANCEL_QUERY","SYSTEM$CLUSTERING_DEPTH","SYSTEM$CLUSTERING_INFORMATION","SYSTEM$CLUSTERING_RATIO ","SYSTEM$CURRENT_USER_TASK_NAME","SYSTEM$DATABASE_REFRESH_HISTORY ","SYSTEM$DATABASE_REFRESH_PROGRESS","SYSTEM$DATABASE_REFRESH_PROGRESS_BY_JOB ","SYSTEM$DISABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$DISABLE_DATABASE_REPLICATION","SYSTEM$ENABLE_BEHAVIOR_CHANGE_BUNDLE","SYSTEM$ESTIMATE_QUERY_ACCELERATION","SYSTEM$ESTIMATE_SEARCH_OPTIMIZATION_COSTS","SYSTEM$EXPLAIN_JSON_TO_TEXT","SYSTEM$EXPLAIN_PLAN_JSON","SYSTEM$EXTERNAL_TABLE_PIPE_STATUS","SYSTEM$GENERATE_SAML_CSR","SYSTEM$GENERATE_SCIM_ACCESS_TOKEN","SYSTEM$GET_AWS_SNS_IAM_POLICY","SYSTEM$GET_PREDECESSOR_RETURN_VALUE","SYSTEM$GET_PRIVATELINK","SYSTEM$GET_PRIVATELINK_AUTHORIZED_ENDPOINTS","SYSTEM$GET_PRIVATELINK_CONFIG","SYSTEM$GET_SNOWFLAKE_PLATFORM_INFO","SYSTEM$GET_TAG","SYSTEM$GET_TAG_ALLOWED_VALUES","SYSTEM$GET_TAG_ON_CURRENT_COLUMN","SYSTEM$GET_TAG_ON_CURRENT_TABLE","SYSTEM$GLOBAL_ACCOUNT_SET_PARAMETER","SYSTEM$LAST_CHANGE_COMMIT_TIME","SYSTEM$LINK_ACCOUNT_OBJECTS_BY_NAME","SYSTEM$MIGRATE_SAML_IDP_REGISTRATION","SYSTEM$PIPE_FORCE_RESUME","SYSTEM$PIPE_STATUS","SYSTEM$REVOKE_PRIVATELINK","SYSTEM$REVOKE_STAGE_PRIVATELINK_ACCESS","SYSTEM$SET_RETURN_VALUE","SYSTEM$SHOW_OAUTH_CLIENT_SECRETS","SYSTEM$STREAM_GET_TABLE_TIMESTAMP","SYSTEM$STREAM_HAS_DATA","SYSTEM$TASK_DEPENDENTS_ENABLE","SYSTEM$TYPEOF","SYSTEM$USER_TASK_CANCEL_ONGOING_EXECUTIONS","SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN","SYSTEM$WAIT","SYSTEM$WHITELIST","SYSTEM$WHITELIST_PRIVATELINK","TAG_REFERENCES","TAG_REFERENCES_ALL_COLUMNS","TAG_REFERENCES_WITH_LINEAGE","TAN","TANH","TASK_DEPENDENTS","TASK_HISTORY","TIME_FROM_PARTS","TIME_SLICE","TIMEADD","TIMEDIFF","TIMESTAMP_FROM_PARTS","TIMESTAMPADD","TIMESTAMPDIFF","TO_ARRAY","TO_BINARY","TO_BOOLEAN","TO_CHAR","TO_VARCHAR","TO_DATE","DATE","TO_DECIMAL","TO_NUMBER","TO_NUMERIC","TO_DOUBLE","TO_GEOGRAPHY","TO_GEOMETRY","TO_JSON","TO_OBJECT","TO_TIME","TIME","TO_TIMESTAMP","TO_TIMESTAMP_LTZ","TO_TIMESTAMP_NTZ","TO_TIMESTAMP_TZ","TO_VARIANT","TO_XML","TRANSLATE","TRIM","TRUNCATE","TRUNC","TRUNC","TRY_BASE64_DECODE_BINARY","TRY_BASE64_DECODE_STRING","TRY_CAST","TRY_HEX_DECODE_BINARY","TRY_HEX_DECODE_STRING","TRY_PARSE_JSON","TRY_TO_BINARY","TRY_TO_BOOLEAN","TRY_TO_DATE","TRY_TO_DECIMAL","TRY_TO_NUMBER","TRY_TO_NUMERIC","TRY_TO_DOUBLE","TRY_TO_GEOGRAPHY","TRY_TO_GEOMETRY","TRY_TO_TIME","TRY_TO_TIMESTAMP","TRY_TO_TIMESTAMP_LTZ","TRY_TO_TIMESTAMP_NTZ","TRY_TO_TIMESTAMP_TZ","TYPEOF","UNICODE","UNIFORM","UPPER","UUID_STRING","VALIDATE","VALIDATE_PIPE_LOAD","VAR_POP","VAR_SAMP","VARIANCE","VARIANCE_SAMP","VARIANCE_POP","WAREHOUSE_LOAD_HISTORY","WAREHOUSE_METERING_HISTORY","WIDTH_BUCKET","XMLGET","YEAR","YEAROFWEEK","YEAROFWEEKISO","DAY","DAYOFMONTH","DAYOFWEEK","DAYOFWEEKISO","DAYOFYEAR","WEEK","WEEK","WEEKOFYEAR","WEEKISO","MONTH","QUARTER","ZEROIFNULL","ZIPF"]}),_u=TW({all:["ACCOUNT","ALL","ALTER","AND","ANY","AS","BETWEEN","BY","CASE","CAST","CHECK","COLUMN","CONNECT","CONNECTION","CONSTRAINT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DATABASE","DELETE","DISTINCT","DROP","ELSE","EXISTS","FALSE","FOLLOWING","FOR","FROM","FULL","GRANT","GROUP","GSCLUSTER","HAVING","ILIKE","IN","INCREMENT","INNER","INSERT","INTERSECT","INTO","IS","ISSUE","JOIN","LATERAL","LEFT","LIKE","LOCALTIME","LOCALTIMESTAMP","MINUS","NATURAL","NOT","NULL","OF","ON","OR","ORDER","ORGANIZATION","QUALIFY","REGEXP","REVOKE","RIGHT","RLIKE","ROW","ROWS","SAMPLE","SCHEMA","SELECT","SET","SOME","START","TABLE","TABLESAMPLE","THEN","TO","TRIGGER","TRUE","TRY_CAST","UNION","UNIQUE","UPDATE","USING","VALUES","VIEW","WHEN","WHENEVER","WHERE","WITH"]}),_c=TP(["SELECT [ALL | DISTINCT]"]),_d=TP(["WITH [RECURSIVE]","FROM","WHERE","GROUP BY","HAVING","PARTITION BY","ORDER BY","QUALIFY","LIMIT","OFFSET","FETCH [FIRST | NEXT]","INSERT [OVERWRITE] [ALL INTO | INTO | ALL | FIRST]","{THEN | ELSE} INTO","VALUES","SET","CREATE [OR REPLACE] [SECURE] [RECURSIVE] VIEW [IF NOT EXISTS]","CREATE [OR REPLACE] [VOLATILE] TABLE [IF NOT EXISTS]","CREATE [OR REPLACE] [LOCAL | GLOBAL] {TEMP|TEMPORARY} TABLE [IF NOT EXISTS]","CLUSTER BY","[WITH] {MASKING POLICY | TAG | ROW ACCESS POLICY}","COPY GRANTS","USING TEMPLATE","MERGE INTO","WHEN MATCHED [AND]","THEN {UPDATE SET | DELETE}","WHEN NOT MATCHED THEN INSERT"]),_T=TP(["UPDATE","DELETE FROM","DROP TABLE [IF EXISTS]","ALTER TABLE [IF EXISTS]","RENAME TO","SWAP WITH","[SUSPEND | RESUME] RECLUSTER","DROP CLUSTERING KEY","ADD [COLUMN]","RENAME COLUMN","{ALTER | MODIFY} [COLUMN]","DROP [COLUMN]","{ADD | ALTER | MODIFY | DROP} [CONSTRAINT]","RENAME CONSTRAINT","{ADD | DROP} SEARCH OPTIMIZATION","{SET | UNSET} TAG","{ADD | DROP} ROW ACCESS POLICY","DROP ALL ROW ACCESS POLICIES","{SET | DROP} DEFAULT","{SET | DROP} NOT NULL","[SET DATA] TYPE","[UNSET] COMMENT","{SET | UNSET} MASKING POLICY","TRUNCATE [TABLE] [IF EXISTS]","ALTER ACCOUNT","ALTER API INTEGRATION","ALTER CONNECTION","ALTER DATABASE","ALTER EXTERNAL TABLE","ALTER FAILOVER GROUP","ALTER FILE FORMAT","ALTER FUNCTION","ALTER INTEGRATION","ALTER MASKING POLICY","ALTER MATERIALIZED VIEW","ALTER NETWORK POLICY","ALTER NOTIFICATION INTEGRATION","ALTER PIPE","ALTER PROCEDURE","ALTER REPLICATION GROUP","ALTER RESOURCE MONITOR","ALTER ROLE","ALTER ROW ACCESS POLICY","ALTER SCHEMA","ALTER SECURITY INTEGRATION","ALTER SEQUENCE","ALTER SESSION","ALTER SESSION POLICY","ALTER SHARE","ALTER STAGE","ALTER STORAGE INTEGRATION","ALTER STREAM","ALTER TAG","ALTER TASK","ALTER USER","ALTER VIEW","ALTER WAREHOUSE","BEGIN","CALL","COMMIT","COPY INTO","CREATE ACCOUNT","CREATE API INTEGRATION","CREATE CONNECTION","CREATE DATABASE","CREATE EXTERNAL FUNCTION","CREATE EXTERNAL TABLE","CREATE FAILOVER GROUP","CREATE FILE FORMAT","CREATE FUNCTION","CREATE INTEGRATION","CREATE MANAGED ACCOUNT","CREATE MASKING POLICY","CREATE MATERIALIZED VIEW","CREATE NETWORK POLICY","CREATE NOTIFICATION INTEGRATION","CREATE PIPE","CREATE PROCEDURE","CREATE REPLICATION GROUP","CREATE RESOURCE MONITOR","CREATE ROLE","CREATE ROW ACCESS POLICY","CREATE SCHEMA","CREATE SECURITY INTEGRATION","CREATE SEQUENCE","CREATE SESSION POLICY","CREATE SHARE","CREATE STAGE","CREATE STORAGE INTEGRATION","CREATE STREAM","CREATE TAG","CREATE TASK","CREATE USER","CREATE WAREHOUSE","DELETE","DESCRIBE DATABASE","DESCRIBE EXTERNAL TABLE","DESCRIBE FILE FORMAT","DESCRIBE FUNCTION","DESCRIBE INTEGRATION","DESCRIBE MASKING POLICY","DESCRIBE MATERIALIZED VIEW","DESCRIBE NETWORK POLICY","DESCRIBE PIPE","DESCRIBE PROCEDURE","DESCRIBE RESULT","DESCRIBE ROW ACCESS POLICY","DESCRIBE SCHEMA","DESCRIBE SEQUENCE","DESCRIBE SESSION POLICY","DESCRIBE SHARE","DESCRIBE STAGE","DESCRIBE STREAM","DESCRIBE TABLE","DESCRIBE TASK","DESCRIBE TRANSACTION","DESCRIBE USER","DESCRIBE VIEW","DESCRIBE WAREHOUSE","DROP CONNECTION","DROP DATABASE","DROP EXTERNAL TABLE","DROP FAILOVER GROUP","DROP FILE FORMAT","DROP FUNCTION","DROP INTEGRATION","DROP MANAGED ACCOUNT","DROP MASKING POLICY","DROP MATERIALIZED VIEW","DROP NETWORK POLICY","DROP PIPE","DROP PROCEDURE","DROP REPLICATION GROUP","DROP RESOURCE MONITOR","DROP ROLE","DROP ROW ACCESS POLICY","DROP SCHEMA","DROP SEQUENCE","DROP SESSION POLICY","DROP SHARE","DROP STAGE","DROP STREAM","DROP TAG","DROP TASK","DROP USER","DROP VIEW","DROP WAREHOUSE","EXECUTE IMMEDIATE","EXECUTE TASK","EXPLAIN","GET","GRANT OWNERSHIP","GRANT ROLE","INSERT","LIST","MERGE","PUT","REMOVE","REVOKE ROLE","ROLLBACK","SHOW COLUMNS","SHOW CONNECTIONS","SHOW DATABASES","SHOW DATABASES IN FAILOVER GROUP","SHOW DATABASES IN REPLICATION GROUP","SHOW DELEGATED AUTHORIZATIONS","SHOW EXTERNAL FUNCTIONS","SHOW EXTERNAL TABLES","SHOW FAILOVER GROUPS","SHOW FILE FORMATS","SHOW FUNCTIONS","SHOW GLOBAL ACCOUNTS","SHOW GRANTS","SHOW INTEGRATIONS","SHOW LOCKS","SHOW MANAGED ACCOUNTS","SHOW MASKING POLICIES","SHOW MATERIALIZED VIEWS","SHOW NETWORK POLICIES","SHOW OBJECTS","SHOW ORGANIZATION ACCOUNTS","SHOW PARAMETERS","SHOW PIPES","SHOW PRIMARY KEYS","SHOW PROCEDURES","SHOW REGIONS","SHOW REPLICATION ACCOUNTS","SHOW REPLICATION DATABASES","SHOW REPLICATION GROUPS","SHOW RESOURCE MONITORS","SHOW ROLES","SHOW ROW ACCESS POLICIES","SHOW SCHEMAS","SHOW SEQUENCES","SHOW SESSION POLICIES","SHOW SHARES","SHOW SHARES IN FAILOVER GROUP","SHOW SHARES IN REPLICATION GROUP","SHOW STAGES","SHOW STREAMS","SHOW TABLES","SHOW TAGS","SHOW TASKS","SHOW TRANSACTIONS","SHOW USER FUNCTIONS","SHOW USERS","SHOW VARIABLES","SHOW VIEWS","SHOW WAREHOUSES","TRUNCATE MATERIALIZED VIEW","UNDROP DATABASE","UNDROP SCHEMA","UNDROP TABLE","UNDROP TAG","UNSET","USE DATABASE","USE ROLE","USE SCHEMA","USE SECONDARY ROLES","USE WAREHOUSE"]),_p=Object.freeze(Object.defineProperty({__proto__:null,bigquery:TZ,db2:T3,hive:pe,mariadb:pi,mysql:pd,n1ql:pS,plsql:pm,postgresql:pv,redshift:pw,singlestoredb:_l,snowflake:{tokenizerOptions:{reservedSelect:_c,reservedClauses:[..._d,..._T],reservedSetOperations:TP(["UNION [ALL]","MINUS","EXCEPT","INTERSECT"]),reservedJoins:TP(["[INNER] JOIN","[NATURAL] {LEFT | RIGHT | FULL} [OUTER] JOIN","{CROSS | NATURAL} JOIN"]),reservedPhrases:TP(["{ROWS | RANGE} BETWEEN","ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]"]),reservedKeywords:_u,reservedFunctionNames:_E,stringTypes:["$$","''-qq-bs"],identTypes:['""-qq'],variableTypes:[{regex:"[$][1-9]\\d*"},{regex:"[$][_a-zA-Z][_a-zA-Z0-9$]*"}],extraParens:["[]"],identChars:{rest:"$"},lineCommentTypes:["--","//"],operators:["%","::","||",":","=>"]},formatOptions:{alwaysDenseOperators:[":","::"],onelineClauses:_T}},spark:pY,sql:p0,sqlite:p$,transactsql:_n,trino:p6},Symbol.toStringTag,{value:"Module"})),__=e=>e.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),_h=/\s+/uy,_f=e=>RegExp(`(?:${e})`,"uy"),_S=e=>e.split("").map(e=>/ /gu.test(e)?"\\s+":`[${e.toUpperCase()}${e.toLowerCase()}]`).join(""),_R=e=>e+"(?:-"+e+")*",_A=({prefixes:e,requirePrefix:t})=>`(?:${e.map(_S).join("|")}${t?"":"|"})`,_O=e=>RegExp(`(?:${e.map(__).join("|")}).*?(?=\r |\r| |$)`,"uy"),_N=(e,t=[])=>{let n="open"===e?0:1;return _f(["()",...t].map(e=>e[n]).map(__).join("|"))},_I=e=>_f(`${TH(e).map(__).join("|")}`),_m=({rest:e,dashes:t})=>e||t?`(?![${e||""}${t?"-":""}])`:"",_C=(e,t={})=>{if(0===e.length)return/^\b$/u;let n=_m(t),r=TH(e).map(__).join("|").replace(/ /gu,"\\s+");return RegExp(`(?:${r})${n}\\b`,"iuy")},_L=(e,t)=>{if(!e.length)return;let n=e.map(__).join("|");return _f(`(?:${n})(?:${t})`)},_g={"``":"(?:`[^`]*`)+","[]":String.raw`(?:\[[^\]]*\])(?:\][^\]]*\])*`,'""-qq':String.raw`(?:"[^"]*")+`,'""-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")`,'""-qq-bs':String.raw`(?:"[^"\\]*(?:\\.[^"\\]*)*")+`,'""-raw':String.raw`(?:"[^"]*")`,"''-qq":String.raw`(?:'[^']*')+`,"''-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')`,"''-qq-bs":String.raw`(?:'[^'\\]*(?:\\.[^'\\]*)*')+`,"''-raw":String.raw`(?:'[^']*')`,$$:String.raw`(?\$\w*\$)[\s\S]*?\k`,"'''..'''":String.raw`'''[^\\]*?(?:\\.[^\\]*?)*?'''`,'""".."""':String.raw`"""[^\\]*?(?:\\.[^\\]*?)*?"""`,"{}":String.raw`(?:\{[^\}]*\})`,"q''":(()=>{let e={"<":">","[":"]","(":")","{":"}"},t=Object.entries(e).map(([e,t])=>"{left}(?:(?!{right}').)*?{right}".replace(/{left}/g,__(e)).replace(/{right}/g,__(t))),n=__(Object.keys(e).join(""));return`[Qq]'(?:${String.raw`(?[^\s${n}])(?:(?!\k').)*?\k`}|${t.join("|")})'`})()},_y=e=>"string"==typeof e?_g[e]:"regex"in e?e.regex:_A(e)+_g[e.quote],_b=e=>_f(e.map(e=>"regex"in e?e.regex:_y(e)).join("|")),_v=e=>e.map(_y).join("|"),_D=e=>_f(_v(e)),_P=(e={})=>_f(_M(e)),_M=({first:e,rest:t,dashes:n,allowFirstCharNumber:r}={})=>{let a="\\p{Alphabetic}\\p{Mark}_",s="\\p{Decimal_Number}",i=__(e??""),o=__(t??""),l=r?`[${a}${s}${i}][${a}${s}${o}]*`:`[${a}${i}][${a}${s}${o}]*`;return n?_R(l):l};function _U(e,t){let n=e.slice(0,t).split(/\n/);return{line:n.length,col:n[n.length-1].length+1}}class _x{constructor(e){y(this,"input",""),y(this,"index",0),this.rules=e}tokenize(e){let t;this.input=e,this.index=0;let n=[];for(;this.index0;)if(n=this.matchSection(_w,e))t+=n,r++;else if(n=this.matchSection(_G,e))t+=n,r--;else{if(!(n=this.matchSection(_k,e)))return null;t+=n}return[t]}matchSection(e,t){e.lastIndex=this.lastIndex;let n=e.exec(t);return n&&(this.lastIndex+=n[0].length),n?n[0]:null}}class _B{constructor(e){this.cfg=e,this.rulesBeforeParams=this.buildRulesBeforeParams(e),this.rulesAfterParams=this.buildRulesAfterParams(e)}tokenize(e,t){let n=new _x([...this.rulesBeforeParams,...this.buildParamRules(this.cfg,t),...this.rulesAfterParams]).tokenize(e);return this.cfg.postProcess?this.cfg.postProcess(n):n}buildRulesBeforeParams(e){return this.validRules([{type:i.BLOCK_COMMENT,regex:e.nestedBlockComments?new _F:/(\/\*[^]*?\*\/)/uy},{type:i.LINE_COMMENT,regex:_O(e.lineCommentTypes??["--"])},{type:i.QUOTED_IDENTIFIER,regex:_D(e.identTypes)},{type:i.NUMBER,regex:/(?:0x[0-9a-fA-F]+|0b[01]+|(?:-\s*)?[0-9]+(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+(?:\.[0-9]+)?)?)(?!\w)/uy},{type:i.RESERVED_PHRASE,regex:_C(e.reservedPhrases??[],e.identChars),text:_H},{type:i.CASE,regex:/CASE\b/iuy,text:_H},{type:i.END,regex:/END\b/iuy,text:_H},{type:i.BETWEEN,regex:/BETWEEN\b/iuy,text:_H},{type:i.LIMIT,regex:e.reservedClauses.includes("LIMIT")?/LIMIT\b/iuy:void 0,text:_H},{type:i.RESERVED_CLAUSE,regex:_C(e.reservedClauses,e.identChars),text:_H},{type:i.RESERVED_SELECT,regex:_C(e.reservedSelect,e.identChars),text:_H},{type:i.RESERVED_SET_OPERATION,regex:_C(e.reservedSetOperations,e.identChars),text:_H},{type:i.WHEN,regex:/WHEN\b/iuy,text:_H},{type:i.ELSE,regex:/ELSE\b/iuy,text:_H},{type:i.THEN,regex:/THEN\b/iuy,text:_H},{type:i.RESERVED_JOIN,regex:_C(e.reservedJoins,e.identChars),text:_H},{type:i.AND,regex:/AND\b/iuy,text:_H},{type:i.OR,regex:/OR\b/iuy,text:_H},{type:i.XOR,regex:e.supportsXor?/XOR\b/iuy:void 0,text:_H},{type:i.RESERVED_FUNCTION_NAME,regex:_C(e.reservedFunctionNames,e.identChars),text:_H},{type:i.RESERVED_KEYWORD,regex:_C(e.reservedKeywords,e.identChars),text:_H}])}buildRulesAfterParams(e){return this.validRules([{type:i.VARIABLE,regex:e.variableTypes?_b(e.variableTypes):void 0},{type:i.STRING,regex:_D(e.stringTypes)},{type:i.IDENTIFIER,regex:_P(e.identChars)},{type:i.DELIMITER,regex:/[;]/uy},{type:i.COMMA,regex:/[,]/y},{type:i.OPEN_PAREN,regex:_N("open",e.extraParens)},{type:i.CLOSE_PAREN,regex:_N("close",e.extraParens)},{type:i.OPERATOR,regex:_I(["+","-","/",">","<","=","<>","<=",">=","!=",...e.operators??[]])},{type:i.ASTERISK,regex:/[*]/uy},{type:i.DOT,regex:/[.]/uy}])}buildParamRules(e,t){var n,r,a,s,o;let l={named:(null==t?void 0:t.named)||(null===(n=e.paramTypes)||void 0===n?void 0:n.named)||[],quoted:(null==t?void 0:t.quoted)||(null===(r=e.paramTypes)||void 0===r?void 0:r.quoted)||[],numbered:(null==t?void 0:t.numbered)||(null===(a=e.paramTypes)||void 0===a?void 0:a.numbered)||[],positional:"boolean"==typeof(null==t?void 0:t.positional)?t.positional:null===(s=e.paramTypes)||void 0===s?void 0:s.positional,custom:(null==t?void 0:t.custom)||(null===(o=e.paramTypes)||void 0===o?void 0:o.custom)||[]};return this.validRules([{type:i.NAMED_PARAMETER,regex:_L(l.named,_M(e.paramChars||e.identChars)),key:e=>e.slice(1)},{type:i.QUOTED_PARAMETER,regex:_L(l.quoted,_v(e.identTypes)),key:e=>(({tokenKey:e,quoteChar:t})=>e.replace(RegExp(__("\\"+t),"gu"),t))({tokenKey:e.slice(2,-1),quoteChar:e.slice(-1)})},{type:i.NUMBERED_PARAMETER,regex:_L(l.numbered,"[0-9]+"),key:e=>e.slice(1)},{type:i.POSITIONAL_PARAMETER,regex:l.positional?/[?]/y:void 0},...l.custom.map(e=>({type:i.CUSTOM_PARAMETER,regex:_f(e.regex),key:e.key??(e=>e)}))])}validRules(e){return e.filter(e=>!!e.regex)}}let _H=e=>TV(e.toUpperCase()),_Y=new Map,_V=e=>{let t=_Y.get(e);return t||(t=_W(e),_Y.set(e,t)),t},_W=e=>({tokenizer:new _B(e.tokenizerOptions),formatOptions:_j(e.formatOptions)}),_j=e=>({alwaysDenseOperators:e.alwaysDenseOperators||[],onelineClauses:Object.fromEntries(e.onelineClauses.map(e=>[e,!0]))});function _X(e){return"tabularLeft"===e.indentStyle||"tabularRight"===e.indentStyle?" ".repeat(10):e.useTabs?" ":" ".repeat(e.tabWidth)}function _K(e){return"tabularLeft"===e.indentStyle||"tabularRight"===e.indentStyle}class _${constructor(e){this.params=e,this.index=0}get({key:e,text:t}){return this.params?e?this.params[e]:this.params[this.index++]:t}getPositionalParameterIndex(){return this.index}setPositionalParameterIndex(e){this.index=e}}var _z={exports:{}};!function(e){var t;t=function(){function e(t,n,r){return this.id=++e.highestId,this.name=t,this.symbols=n,this.postprocess=r,this}function t(e,t,n,r){this.rule=e,this.dot=t,this.reference=n,this.data=[],this.wantedBy=r,this.isComplete=this.dot===e.symbols.length}function n(e,t){this.grammar=e,this.index=t,this.states=[],this.wants={},this.scannable=[],this.completed={}}function r(e,t){this.rules=e,this.start=t||this.rules[0].name;var n=this.byName={};this.rules.forEach(function(e){n.hasOwnProperty(e.name)||(n[e.name]=[]),n[e.name].push(e)})}function a(){this.reset("")}function s(e,t,s){if(e instanceof r)var i=e,s=t;else var i=r.fromCompiled(e,t);for(var o in this.grammar=i,this.options={keepHistory:!1,lexer:i.lexer||new a},s||{})this.options[o]=s[o];this.lexer=this.options.lexer,this.lexerState=void 0;var l=new n(i,0);this.table=[l],l.wants[i.start]=[],l.predict(i.start),l.process(),this.current=0}function i(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return e.toString();if(e.type)return"%"+e.type;if(e.test)return"<"+String(e.test)+">";throw Error("Unknown symbol type: "+e)}}return e.highestId=0,e.prototype.toString=function(e){var t=typeof e>"u"?this.symbols.map(i).join(" "):this.symbols.slice(0,e).map(i).join(" ")+" ● "+this.symbols.slice(e).map(i).join(" ");return this.name+" → "+t},t.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},t.prototype.nextState=function(e){var n=new t(this.rule,this.dot+1,this.reference,this.wantedBy);return n.left=this,n.right=e,n.isComplete&&(n.data=n.build(),n.right=void 0),n},t.prototype.build=function(){var e=[],t=this;do e.push(t.right.data),t=t.left;while(t.left);return e.reverse(),e},t.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,s.fail))},n.prototype.process=function(e){for(var t=this.states,n=this.wants,r=this.completed,a=0;a0&&t.push(" ^ "+r+" more lines identical to this"),r=0,t.push(" "+i)),n=i}},s.prototype.getSymbolDisplay=function(e){return function(e){var t=typeof e;if("string"===t)return e;if("object"===t){if(e.literal)return JSON.stringify(e.literal);if(e instanceof RegExp)return"character matching "+e;if(e.type)return e.type+" token";if(e.test)return"token matching "+String(e.test);throw Error("Unknown symbol type: "+e)}}(e)},s.prototype.buildFirstStateStack=function(e,t){if(-1!==t.indexOf(e))return null;if(0===e.wantedBy.length)return[e];var n=e.wantedBy[0],r=[e].concat(t),a=this.buildFirstStateStack(n,r);return null===a?null:[e].concat(a)},s.prototype.save=function(){var e=this.table[this.current];return e.lexerState=this.lexerState,e},s.prototype.restore=function(e){var t=e.index;this.current=t,this.table[t]=e,this.table.splice(t+1),this.lexerState=e.lexerState,this.results=this.finish()},s.prototype.rewind=function(e){if(!this.options.keepHistory)throw Error("set option `keepHistory` to enable rewinding");this.restore(this.table[e])},s.prototype.finish=function(){var e=[],t=this.grammar.start;return this.table[this.table.length-1].states.forEach(function(n){n.rule.name===t&&n.dot===n.rule.symbols.length&&0===n.reference&&n.data!==s.fail&&e.push(n)}),e.map(function(e){return e.data})},{Parser:s,Grammar:r,Rule:e}},e.exports?e.exports=t():b.nearley=t()}(_z);let _J=v(_z.exports),_Z=(e,t,n)=>{if(Tv(e.type)){let r=_1(n,t);if(r&&"."===r.text)return{...e,type:i.IDENTIFIER,text:e.raw}}return e},_q=(e,t,n)=>{if(e.type===i.RESERVED_FUNCTION_NAME){let r=_2(n,t);if(!r||!_5(r))return{...e,type:i.RESERVED_KEYWORD}}return e},_Q=(e,t,n)=>{if(e.type===i.IDENTIFIER){let r=_2(n,t);if(r&&_3(r))return{...e,type:i.ARRAY_IDENTIFIER}}return e},_0=(e,t,n)=>{if(e.type===i.RESERVED_KEYWORD){let r=_2(n,t);if(r&&_3(r))return{...e,type:i.ARRAY_KEYWORD}}return e},_1=(e,t)=>_2(e,t,-1),_2=(e,t,n=1)=>{let r=1;for(;e[t+r*n]&&_4(e[t+r*n]);)r++;return e[t+r*n]},_5=e=>e.type===i.OPEN_PAREN&&"("===e.text,_3=e=>e.type===i.OPEN_PAREN&&"["===e.text,_4=e=>e.type===i.BLOCK_COMMENT||e.type===i.LINE_COMMENT;class _6{constructor(e){y(this,"index",0),y(this,"tokens",[]),y(this,"input",""),this.tokenize=e}reset(e,t){this.input=e,this.index=0,this.tokens=this.tokenize(e)}next(){return this.tokens[this.index++]}save(){}formatError(e){let{line:t,col:n}=_U(this.input,e.start);return`Parse error at token: ${e.text} at line ${t} column ${n}`}has(e){return e in i}}function _8(e){return e[0]}!function(e){e.statement="statement",e.clause="clause",e.set_operation="set_operation",e.function_call="function_call",e.array_subscript="array_subscript",e.property_access="property_access",e.parenthesis="parenthesis",e.between_predicate="between_predicate",e.case_expression="case_expression",e.case_when="case_when",e.case_else="case_else",e.limit_clause="limit_clause",e.all_columns_asterisk="all_columns_asterisk",e.literal="literal",e.identifier="identifier",e.keyword="keyword",e.parameter="parameter",e.operator="operator",e.comma="comma",e.line_comment="line_comment",e.block_comment="block_comment"}(o||(o={}));let _7=new _6(e=>[]),_9=([[e]])=>e,he=e=>({type:o.keyword,tokenType:e.type,text:e.text,raw:e.raw}),ht=(e,{leading:t,trailing:n})=>(null!=t&&t.length&&(e={...e,leadingComments:t}),null!=n&&n.length&&(e={...e,trailingComments:n}),e),hn=(e,{leading:t,trailing:n})=>{if(null!=t&&t.length){let[n,...r]=e;e=[ht(n,{leading:t}),...r]}return null!=n&&n.length&&(e=[...e.slice(0,-1),ht(e[e.length-1],{trailing:n})]),e},hr={Lexer:_7,ParserRules:[{name:"main$ebnf$1",symbols:[]},{name:"main$ebnf$1",symbols:["main$ebnf$1","statement"],postprocess:e=>e[0].concat([e[1]])},{name:"main",symbols:["main$ebnf$1"],postprocess:([e])=>{let t=e[e.length-1];return t&&!t.hasSemicolon?t.children.length>0?e:e.slice(0,-1):e}},{name:"statement$subexpression$1",symbols:[_7.has("DELIMITER")?{type:"DELIMITER"}:DELIMITER]},{name:"statement$subexpression$1",symbols:[_7.has("EOF")?{type:"EOF"}:EOF]},{name:"statement",symbols:["expressions_or_clauses","statement$subexpression$1"],postprocess:([e,[t]])=>({type:o.statement,children:e,hasSemicolon:t.type===i.DELIMITER})},{name:"expressions_or_clauses$ebnf$1",symbols:[]},{name:"expressions_or_clauses$ebnf$1",symbols:["expressions_or_clauses$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses$ebnf$2",symbols:[]},{name:"expressions_or_clauses$ebnf$2",symbols:["expressions_or_clauses$ebnf$2","clause"],postprocess:e=>e[0].concat([e[1]])},{name:"expressions_or_clauses",symbols:["expressions_or_clauses$ebnf$1","expressions_or_clauses$ebnf$2"],postprocess:([e,t])=>[...e,...t]},{name:"clause$subexpression$1",symbols:["limit_clause"]},{name:"clause$subexpression$1",symbols:["select_clause"]},{name:"clause$subexpression$1",symbols:["other_clause"]},{name:"clause$subexpression$1",symbols:["set_operation"]},{name:"clause",symbols:["clause$subexpression$1"],postprocess:_9},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["free_form_sql"]},{name:"limit_clause$ebnf$1$subexpression$1$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"limit_clause$ebnf$1$subexpression$1",symbols:[_7.has("COMMA")?{type:"COMMA"}:COMMA,"limit_clause$ebnf$1$subexpression$1$ebnf$1"]},{name:"limit_clause$ebnf$1",symbols:["limit_clause$ebnf$1$subexpression$1"],postprocess:_8},{name:"limit_clause$ebnf$1",symbols:[],postprocess:()=>null},{name:"limit_clause",symbols:[_7.has("LIMIT")?{type:"LIMIT"}:LIMIT,"_","expression_chain_","limit_clause$ebnf$1"],postprocess:([e,t,n,r])=>{if(!r)return{type:o.limit_clause,limitKw:ht(he(e),{trailing:t}),count:n};{let[a,s]=r;return{type:o.limit_clause,limitKw:ht(he(e),{trailing:t}),offset:n,count:s}}}},{name:"select_clause$subexpression$1$ebnf$1",symbols:[]},{name:"select_clause$subexpression$1$ebnf$1",symbols:["select_clause$subexpression$1$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["all_columns_asterisk","select_clause$subexpression$1$ebnf$1"]},{name:"select_clause$subexpression$1$ebnf$2",symbols:[]},{name:"select_clause$subexpression$1$ebnf$2",symbols:["select_clause$subexpression$1$ebnf$2","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"select_clause$subexpression$1",symbols:["asteriskless_free_form_sql","select_clause$subexpression$1$ebnf$2"]},{name:"select_clause",symbols:[_7.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT,"select_clause$subexpression$1"],postprocess:([e,[t,n]])=>({type:o.clause,nameKw:he(e),children:[t,...n]})},{name:"select_clause",symbols:[_7.has("RESERVED_SELECT")?{type:"RESERVED_SELECT"}:RESERVED_SELECT],postprocess:([e])=>({type:o.clause,nameKw:he(e),children:[]})},{name:"all_columns_asterisk",symbols:[_7.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK],postprocess:()=>({type:o.all_columns_asterisk})},{name:"other_clause$ebnf$1",symbols:[]},{name:"other_clause$ebnf$1",symbols:["other_clause$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"other_clause",symbols:[_7.has("RESERVED_CLAUSE")?{type:"RESERVED_CLAUSE"}:RESERVED_CLAUSE,"other_clause$ebnf$1"],postprocess:([e,t])=>({type:o.clause,nameKw:he(e),children:t})},{name:"set_operation$ebnf$1",symbols:[]},{name:"set_operation$ebnf$1",symbols:["set_operation$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"set_operation",symbols:[_7.has("RESERVED_SET_OPERATION")?{type:"RESERVED_SET_OPERATION"}:RESERVED_SET_OPERATION,"set_operation$ebnf$1"],postprocess:([e,t])=>({type:o.set_operation,nameKw:he(e),children:t})},{name:"expression_chain_$ebnf$1",symbols:["expression_with_comments_"]},{name:"expression_chain_$ebnf$1",symbols:["expression_chain_$ebnf$1","expression_with_comments_"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain_",symbols:["expression_chain_$ebnf$1"],postprocess:_8},{name:"expression_chain$ebnf$1",symbols:[]},{name:"expression_chain$ebnf$1",symbols:["expression_chain$ebnf$1","_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"expression_chain",symbols:["expression","expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"andless_expression_chain$ebnf$1",symbols:[]},{name:"andless_expression_chain$ebnf$1",symbols:["andless_expression_chain$ebnf$1","_andless_expression_with_comments"],postprocess:e=>e[0].concat([e[1]])},{name:"andless_expression_chain",symbols:["andless_expression","andless_expression_chain$ebnf$1"],postprocess:([e,t])=>[e,...t]},{name:"expression_with_comments_",symbols:["expression","_"],postprocess:([e,t])=>ht(e,{trailing:t})},{name:"_expression_with_comments",symbols:["_","expression"],postprocess:([e,t])=>ht(t,{leading:e})},{name:"_andless_expression_with_comments",symbols:["_","andless_expression"],postprocess:([e,t])=>ht(t,{leading:e})},{name:"free_form_sql$subexpression$1",symbols:["asteriskless_free_form_sql"]},{name:"free_form_sql$subexpression$1",symbols:["asterisk"]},{name:"free_form_sql",symbols:["free_form_sql$subexpression$1"],postprocess:_9},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["logic_operator"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["between_predicate"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comma"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["comment"]},{name:"asteriskless_free_form_sql$subexpression$1",symbols:["other_keyword"]},{name:"asteriskless_free_form_sql",symbols:["asteriskless_free_form_sql$subexpression$1"],postprocess:_9},{name:"expression$subexpression$1",symbols:["andless_expression"]},{name:"expression$subexpression$1",symbols:["logic_operator"]},{name:"expression",symbols:["expression$subexpression$1"],postprocess:_9},{name:"andless_expression$subexpression$1",symbols:["asteriskless_andless_expression"]},{name:"andless_expression$subexpression$1",symbols:["asterisk"]},{name:"andless_expression",symbols:["andless_expression$subexpression$1"],postprocess:_9},{name:"asteriskless_andless_expression$subexpression$1",symbols:["array_subscript"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["case_expression"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["function_call"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["property_access"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["parenthesis"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["curly_braces"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["square_brackets"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["operator"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["identifier"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["parameter"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["literal"]},{name:"asteriskless_andless_expression$subexpression$1",symbols:["keyword"]},{name:"asteriskless_andless_expression",symbols:["asteriskless_andless_expression$subexpression$1"],postprocess:_9},{name:"array_subscript",symbols:[_7.has("ARRAY_IDENTIFIER")?{type:"ARRAY_IDENTIFIER"}:ARRAY_IDENTIFIER,"_","square_brackets"],postprocess:([e,t,n])=>({type:o.array_subscript,array:ht({type:o.identifier,text:e.text},{trailing:t}),parenthesis:n})},{name:"array_subscript",symbols:[_7.has("ARRAY_KEYWORD")?{type:"ARRAY_KEYWORD"}:ARRAY_KEYWORD,"_","square_brackets"],postprocess:([e,t,n])=>({type:o.array_subscript,array:ht(he(e),{trailing:t}),parenthesis:n})},{name:"function_call",symbols:[_7.has("RESERVED_FUNCTION_NAME")?{type:"RESERVED_FUNCTION_NAME"}:RESERVED_FUNCTION_NAME,"_","parenthesis"],postprocess:([e,t,n])=>({type:o.function_call,nameKw:ht(he(e),{trailing:t}),parenthesis:n})},{name:"parenthesis",symbols:[{literal:"("},"expressions_or_clauses",{literal:")"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"(",closeParen:")"})},{name:"curly_braces$ebnf$1",symbols:[]},{name:"curly_braces$ebnf$1",symbols:["curly_braces$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"curly_braces",symbols:[{literal:"{"},"curly_braces$ebnf$1",{literal:"}"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"{",closeParen:"}"})},{name:"square_brackets$ebnf$1",symbols:[]},{name:"square_brackets$ebnf$1",symbols:["square_brackets$ebnf$1","free_form_sql"],postprocess:e=>e[0].concat([e[1]])},{name:"square_brackets",symbols:[{literal:"["},"square_brackets$ebnf$1",{literal:"]"}],postprocess:([e,t,n])=>({type:o.parenthesis,children:t,openParen:"[",closeParen:"]"})},{name:"property_access$subexpression$1",symbols:["identifier"]},{name:"property_access$subexpression$1",symbols:["array_subscript"]},{name:"property_access$subexpression$1",symbols:["all_columns_asterisk"]},{name:"property_access",symbols:["expression","_",_7.has("DOT")?{type:"DOT"}:DOT,"_","property_access$subexpression$1"],postprocess:([e,t,n,r,[a]])=>({type:o.property_access,object:ht(e,{trailing:t}),property:ht(a,{leading:r})})},{name:"between_predicate",symbols:[_7.has("BETWEEN")?{type:"BETWEEN"}:BETWEEN,"_","andless_expression_chain","_",_7.has("AND")?{type:"AND"}:AND,"_","andless_expression"],postprocess:([e,t,n,r,a,s,i])=>({type:o.between_predicate,betweenKw:he(e),expr1:hn(n,{leading:t,trailing:r}),andKw:he(a),expr2:[ht(i,{leading:s})]})},{name:"case_expression$ebnf$1",symbols:["expression_chain_"],postprocess:_8},{name:"case_expression$ebnf$1",symbols:[],postprocess:()=>null},{name:"case_expression$ebnf$2",symbols:[]},{name:"case_expression$ebnf$2",symbols:["case_expression$ebnf$2","case_clause"],postprocess:e=>e[0].concat([e[1]])},{name:"case_expression",symbols:[_7.has("CASE")?{type:"CASE"}:CASE,"_","case_expression$ebnf$1","case_expression$ebnf$2",_7.has("END")?{type:"END"}:END],postprocess:([e,t,n,r,a])=>({type:o.case_expression,caseKw:ht(he(e),{trailing:t}),endKw:he(a),expr:n||[],clauses:r})},{name:"case_clause",symbols:[_7.has("WHEN")?{type:"WHEN"}:WHEN,"_","expression_chain_",_7.has("THEN")?{type:"THEN"}:THEN,"_","expression_chain_"],postprocess:([e,t,n,r,a,s])=>({type:o.case_when,whenKw:ht(he(e),{trailing:t}),thenKw:ht(he(r),{trailing:a}),condition:n,result:s})},{name:"case_clause",symbols:[_7.has("ELSE")?{type:"ELSE"}:ELSE,"_","expression_chain_"],postprocess:([e,t,n])=>({type:o.case_else,elseKw:ht(he(e),{trailing:t}),result:n})},{name:"comma$subexpression$1",symbols:[_7.has("COMMA")?{type:"COMMA"}:COMMA]},{name:"comma",symbols:["comma$subexpression$1"],postprocess:([[e]])=>({type:o.comma})},{name:"asterisk$subexpression$1",symbols:[_7.has("ASTERISK")?{type:"ASTERISK"}:ASTERISK]},{name:"asterisk",symbols:["asterisk$subexpression$1"],postprocess:([[e]])=>({type:o.operator,text:e.text})},{name:"operator$subexpression$1",symbols:[_7.has("OPERATOR")?{type:"OPERATOR"}:OPERATOR]},{name:"operator",symbols:["operator$subexpression$1"],postprocess:([[e]])=>({type:o.operator,text:e.text})},{name:"identifier$subexpression$1",symbols:[_7.has("IDENTIFIER")?{type:"IDENTIFIER"}:IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[_7.has("QUOTED_IDENTIFIER")?{type:"QUOTED_IDENTIFIER"}:QUOTED_IDENTIFIER]},{name:"identifier$subexpression$1",symbols:[_7.has("VARIABLE")?{type:"VARIABLE"}:VARIABLE]},{name:"identifier",symbols:["identifier$subexpression$1"],postprocess:([[e]])=>({type:o.identifier,text:e.text})},{name:"parameter$subexpression$1",symbols:[_7.has("NAMED_PARAMETER")?{type:"NAMED_PARAMETER"}:NAMED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[_7.has("QUOTED_PARAMETER")?{type:"QUOTED_PARAMETER"}:QUOTED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[_7.has("NUMBERED_PARAMETER")?{type:"NUMBERED_PARAMETER"}:NUMBERED_PARAMETER]},{name:"parameter$subexpression$1",symbols:[_7.has("POSITIONAL_PARAMETER")?{type:"POSITIONAL_PARAMETER"}:POSITIONAL_PARAMETER]},{name:"parameter$subexpression$1",symbols:[_7.has("CUSTOM_PARAMETER")?{type:"CUSTOM_PARAMETER"}:CUSTOM_PARAMETER]},{name:"parameter",symbols:["parameter$subexpression$1"],postprocess:([[e]])=>({type:o.parameter,key:e.key,text:e.text})},{name:"literal$subexpression$1",symbols:[_7.has("NUMBER")?{type:"NUMBER"}:NUMBER]},{name:"literal$subexpression$1",symbols:[_7.has("STRING")?{type:"STRING"}:STRING]},{name:"literal",symbols:["literal$subexpression$1"],postprocess:([[e]])=>({type:o.literal,text:e.text})},{name:"keyword$subexpression$1",symbols:[_7.has("RESERVED_KEYWORD")?{type:"RESERVED_KEYWORD"}:RESERVED_KEYWORD]},{name:"keyword$subexpression$1",symbols:[_7.has("RESERVED_PHRASE")?{type:"RESERVED_PHRASE"}:RESERVED_PHRASE]},{name:"keyword$subexpression$1",symbols:[_7.has("RESERVED_JOIN")?{type:"RESERVED_JOIN"}:RESERVED_JOIN]},{name:"keyword",symbols:["keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"logic_operator$subexpression$1",symbols:[_7.has("AND")?{type:"AND"}:AND]},{name:"logic_operator$subexpression$1",symbols:[_7.has("OR")?{type:"OR"}:OR]},{name:"logic_operator$subexpression$1",symbols:[_7.has("XOR")?{type:"XOR"}:XOR]},{name:"logic_operator",symbols:["logic_operator$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"other_keyword$subexpression$1",symbols:[_7.has("WHEN")?{type:"WHEN"}:WHEN]},{name:"other_keyword$subexpression$1",symbols:[_7.has("THEN")?{type:"THEN"}:THEN]},{name:"other_keyword$subexpression$1",symbols:[_7.has("ELSE")?{type:"ELSE"}:ELSE]},{name:"other_keyword$subexpression$1",symbols:[_7.has("END")?{type:"END"}:END]},{name:"other_keyword",symbols:["other_keyword$subexpression$1"],postprocess:([[e]])=>he(e)},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1","comment"],postprocess:e=>e[0].concat([e[1]])},{name:"_",symbols:["_$ebnf$1"],postprocess:([e])=>e},{name:"comment",symbols:[_7.has("LINE_COMMENT")?{type:"LINE_COMMENT"}:LINE_COMMENT],postprocess:([e])=>({type:o.line_comment,text:e.text,precedingWhitespace:e.precedingWhitespace})},{name:"comment",symbols:[_7.has("BLOCK_COMMENT")?{type:"BLOCK_COMMENT"}:BLOCK_COMMENT],postprocess:([e])=>({type:o.block_comment,text:e.text,precedingWhitespace:e.precedingWhitespace})}],ParserStart:"main"},{Parser:ha,Grammar:hs}=_J,hi=/^\s+/u;!function(e){e[e.SPACE=0]="SPACE",e[e.NO_SPACE=1]="NO_SPACE",e[e.NO_NEWLINE=2]="NO_NEWLINE",e[e.NEWLINE=3]="NEWLINE",e[e.MANDATORY_NEWLINE=4]="MANDATORY_NEWLINE",e[e.INDENT=5]="INDENT",e[e.SINGLE_INDENT=6]="SINGLE_INDENT"}(l||(l={}));class ho{constructor(e){y(this,"items",[]),this.indentation=e}add(...e){for(let t of e)switch(t){case l.SPACE:this.items.push(l.SPACE);break;case l.NO_SPACE:this.trimHorizontalWhitespace();break;case l.NO_NEWLINE:this.trimWhitespace();break;case l.NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(l.NEWLINE);break;case l.MANDATORY_NEWLINE:this.trimHorizontalWhitespace(),this.addNewline(l.MANDATORY_NEWLINE);break;case l.INDENT:this.addIndentation();break;case l.SINGLE_INDENT:this.items.push(l.SINGLE_INDENT);break;default:this.items.push(t)}}trimHorizontalWhitespace(){for(;hl(TB(this.items));)this.items.pop()}trimWhitespace(){for(;hE(TB(this.items));)this.items.pop()}addNewline(e){if(this.items.length>0)switch(TB(this.items)){case l.NEWLINE:this.items.pop(),this.items.push(e);break;case l.MANDATORY_NEWLINE:break;default:this.items.push(e)}}addIndentation(){for(let e=0;ethis.itemToString(e)).join("")}getLayoutItems(){return this.items}itemToString(e){switch(e){case l.SPACE:return" ";case l.NEWLINE:case l.MANDATORY_NEWLINE:return` `;case l.SINGLE_INDENT:return this.indentation.getSingleIndent();default:return e}}}let hl=e=>e===l.SPACE||e===l.SINGLE_INDENT,hE=e=>e===l.SPACE||e===l.SINGLE_INDENT||e===l.NEWLINE,hu="top-level";class hc{constructor(e){y(this,"indentTypes",[]),this.indent=e}getSingleIndent(){return this.indent}getLevel(){return this.indentTypes.length}increaseTopLevel(){this.indentTypes.push(hu)}increaseBlockLevel(){this.indentTypes.push("block-level")}decreaseTopLevel(){this.indentTypes.length>0&&TB(this.indentTypes)===hu&&this.indentTypes.pop()}decreaseBlockLevel(){for(;this.indentTypes.length>0&&this.indentTypes.pop()===hu;);}}class hd extends ho{constructor(e){super(new hc("")),y(this,"length",0),y(this,"trailingSpace",!1),this.expressionWidth=e}add(...e){if(e.forEach(e=>this.addToLength(e)),this.length>this.expressionWidth)throw new hT;super.add(...e)}addToLength(e){if("string"==typeof e)this.length+=e.length,this.trailingSpace=!1;else{if(e===l.MANDATORY_NEWLINE||e===l.NEWLINE)throw new hT;e===l.INDENT||e===l.SINGLE_INDENT||e===l.SPACE?this.trailingSpace||(this.length++,this.trailingSpace=!0):(e===l.NO_NEWLINE||e===l.NO_SPACE)&&this.trailingSpace&&(this.trailingSpace=!1,this.length--)}}}class hT extends Error{}class hp{constructor({cfg:e,dialectCfg:t,params:n,layout:r,inline:a=!1}){y(this,"inline",!1),y(this,"nodes",[]),y(this,"index",-1),this.cfg=e,this.dialectCfg=t,this.inline=a,this.params=n,this.layout=r}format(e){for(this.nodes=e,this.index=0;this.index{this.layout.add(this.showKw(e.nameKw))}),this.formatNode(e.parenthesis)}formatArraySubscript(e){this.withComments(e.array,()=>{this.layout.add(e.array.type===o.keyword?this.showKw(e.array):e.array.text)}),this.formatNode(e.parenthesis)}formatPropertyAccess(e){this.formatNode(e.object),this.layout.add(l.NO_SPACE,"."),this.formatNode(e.property)}formatParenthesis(e){let t=this.formatInlineExpression(e.children);t?(this.layout.add(e.openParen),this.layout.add(...t.getLayoutItems()),this.layout.add(l.NO_SPACE,e.closeParen,l.SPACE)):(this.layout.add(e.openParen,l.NEWLINE),_K(this.cfg)?(this.layout.add(l.INDENT),this.layout=this.formatSubExpression(e.children)):(this.layout.indentation.increaseBlockLevel(),this.layout.add(l.INDENT),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseBlockLevel()),this.layout.add(l.NEWLINE,l.INDENT,e.closeParen,l.SPACE))}formatBetweenPredicate(e){this.layout.add(this.showKw(e.betweenKw),l.SPACE),this.layout=this.formatSubExpression(e.expr1),this.layout.add(l.NO_SPACE,l.SPACE,this.showNonTabularKw(e.andKw),l.SPACE),this.layout=this.formatSubExpression(e.expr2),this.layout.add(l.SPACE)}formatCaseExpression(e){this.formatNode(e.caseKw),this.layout.indentation.increaseBlockLevel(),this.layout=this.formatSubExpression(e.expr),this.layout=this.formatSubExpression(e.clauses),this.layout.indentation.decreaseBlockLevel(),this.layout.add(l.NEWLINE,l.INDENT),this.formatNode(e.endKw)}formatCaseWhen(e){this.layout.add(l.NEWLINE,l.INDENT),this.formatNode(e.whenKw),this.layout=this.formatSubExpression(e.condition),this.formatNode(e.thenKw),this.layout=this.formatSubExpression(e.result)}formatCaseElse(e){this.layout.add(l.NEWLINE,l.INDENT),this.formatNode(e.elseKw),this.layout=this.formatSubExpression(e.result)}formatClause(e){this.isOnelineClause(e)?this.formatClauseInOnelineStyle(e):_K(this.cfg)?this.formatClauseInTabularStyle(e):this.formatClauseInIndentedStyle(e)}isOnelineClause(e){return this.dialectCfg.onelineClauses[e.nameKw.text]}formatClauseInIndentedStyle(e){this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e.nameKw),l.NEWLINE),this.layout.indentation.increaseTopLevel(),this.layout.add(l.INDENT),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatClauseInOnelineStyle(e){this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e.nameKw),l.SPACE),this.layout=this.formatSubExpression(e.children)}formatClauseInTabularStyle(e){this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e.nameKw),l.SPACE),this.layout.indentation.increaseTopLevel(),this.layout=this.formatSubExpression(e.children),this.layout.indentation.decreaseTopLevel()}formatSetOperation(e){this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e.nameKw),l.NEWLINE),this.layout.add(l.INDENT),this.layout=this.formatSubExpression(e.children)}formatLimitClause(e){this.withComments(e.limitKw,()=>{this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e.limitKw))}),this.layout.indentation.increaseTopLevel(),_K(this.cfg)?this.layout.add(l.SPACE):this.layout.add(l.NEWLINE,l.INDENT),e.offset&&(this.layout=this.formatSubExpression(e.offset),this.layout.add(l.NO_SPACE,",",l.SPACE)),this.layout=this.formatSubExpression(e.count),this.layout.indentation.decreaseTopLevel()}formatAllColumnsAsterisk(e){this.layout.add("*",l.SPACE)}formatLiteral(e){this.layout.add(e.text,l.SPACE)}formatIdentifier(e){this.layout.add(e.text,l.SPACE)}formatParameter(e){this.layout.add(this.params.get(e),l.SPACE)}formatOperator({text:e}){this.cfg.denseOperators||this.dialectCfg.alwaysDenseOperators.includes(e)?this.layout.add(l.NO_SPACE,e):":"===e?this.layout.add(l.NO_SPACE,e,l.SPACE):this.layout.add(e,l.SPACE)}formatComma(e){this.inline?this.layout.add(l.NO_SPACE,",",l.SPACE):this.layout.add(l.NO_SPACE,",",l.NEWLINE,l.INDENT)}withComments(e,t){this.formatComments(e.leadingComments),t(),this.formatComments(e.trailingComments)}formatComments(e){e&&e.forEach(e=>{e.type===o.line_comment?this.formatLineComment(e):this.formatBlockComment(e)})}formatLineComment(e){Tj(e.precedingWhitespace||"")?this.layout.add(l.NEWLINE,l.INDENT,e.text,l.MANDATORY_NEWLINE,l.INDENT):this.layout.getLayoutItems().length>0?this.layout.add(l.NO_NEWLINE,l.SPACE,e.text,l.MANDATORY_NEWLINE,l.INDENT):this.layout.add(e.text,l.MANDATORY_NEWLINE,l.INDENT)}formatBlockComment(e){this.isMultilineBlockComment(e)?(this.splitBlockComment(e.text).forEach(e=>{this.layout.add(l.NEWLINE,l.INDENT,e)}),this.layout.add(l.NEWLINE,l.INDENT)):this.layout.add(e.text,l.SPACE)}isMultilineBlockComment(e){return Tj(e.text)||Tj(e.precedingWhitespace||"")}isDocComment(e){let t=e.split(/\n/);return/^\/\*\*?$/.test(t[0])&&t.slice(1,t.length-1).every(e=>/^\s*\*/.test(e))&&/^\s*\*\/$/.test(TB(t))}splitBlockComment(e){return this.isDocComment(e)?e.split(/\n/).map(e=>/^\s*\*/.test(e)?" "+e.replace(/^\s*/,""):e):e.split(/\n/).map(e=>e.replace(/^\s*/,""))}formatSubExpression(e){return new hp({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:this.layout,inline:this.inline}).format(e)}formatInlineExpression(e){let t=this.params.getPositionalParameterIndex();try{return new hp({cfg:this.cfg,dialectCfg:this.dialectCfg,params:this.params,layout:new hd(this.cfg.expressionWidth),inline:!0}).format(e)}catch(e){if(e instanceof hT){this.params.setPositionalParameterIndex(t);return}throw e}}formatKeywordNode(e){switch(e.tokenType){case i.RESERVED_JOIN:return this.formatJoin(e);case i.AND:case i.OR:case i.XOR:return this.formatLogicalOperator(e);default:return this.formatKeyword(e)}}formatJoin(e){_K(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e),l.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e),l.SPACE)}formatKeyword(e){this.layout.add(this.showKw(e),l.SPACE)}formatLogicalOperator(e){"before"===this.cfg.logicalOperatorNewline?_K(this.cfg)?(this.layout.indentation.decreaseTopLevel(),this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e),l.SPACE),this.layout.indentation.increaseTopLevel()):this.layout.add(l.NEWLINE,l.INDENT,this.showKw(e),l.SPACE):this.layout.add(this.showKw(e),l.NEWLINE,l.INDENT)}showKw(e){var t;return TD(t=e.tokenType)||t===i.RESERVED_CLAUSE||t===i.RESERVED_SELECT||t===i.RESERVED_SET_OPERATION||t===i.RESERVED_JOIN||t===i.LIMIT?function(e,t){if("standard"===t)return e;let n=[];return e.length>=10&&e.includes(" ")&&([e,...n]=e.split(" ")),(e="tabularLeft"===t?e.padEnd(9," "):e.padStart(9," "))+["",...n].join(" ")}(this.showNonTabularKw(e),this.cfg.indentStyle):this.showNonTabularKw(e)}showNonTabularKw(e){switch(this.cfg.keywordCase){case"preserve":return TV(e.raw);case"upper":return e.text;case"lower":return e.text.toLowerCase()}}}class h_{constructor(e,t){this.dialect=e,this.cfg=t,this.params=new _$(this.cfg.params)}format(e){let t=this.parse(e),n=this.formatAst(t);return this.postFormat(n).trimEnd()}parse(e){return(function(e){let t={},n=new _6(n=>[...e.tokenize(n,t).map(_Z).map(_q).map(_Q).map(_0),TL(n.length)]),r=new ha(hs.fromCompiled(hr),{lexer:n});return{parse:(e,n)=>{t=n;let{results:a}=r.feed(e);if(1===a.length)return a[0];throw 0===a.length?Error("Parse error: Invalid SQL"):Error(`Parse error: Ambiguous grammar ${JSON.stringify(a,void 0,2)}`)}}})(this.dialect.tokenizer).parse(e,this.cfg.paramTypes||{})}formatAst(e){return e.map(e=>this.formatStatement(e)).join(` `.repeat(this.cfg.linesBetweenQueries+1))}formatStatement(e){let t=new hp({cfg:this.cfg,dialectCfg:this.dialect.formatOptions,params:this.params,layout:new ho(new hc(_X(this.cfg)))}).format(e.children);return e.hasSemicolon&&(this.cfg.newlineBeforeSemicolon?t.add(l.NEWLINE,";"):t.add(l.NO_NEWLINE,";")),t.toString()}postFormat(e){var t,n,r;return this.cfg.tabulateAlias&&(e=function(e){let t=e.split(` `),n=[];for(let e=0;e({line:e,matches:e.match(/(^.*?\S) (AS )?(\S+,?$)/i)})).map(({line:e,matches:t})=>t?{precedingText:t[1],as:t[2],alias:t[3]}:{precedingText:e}),s=TY(a.map(({precedingText:e})=>e.replace(/\s*,\s*$/,"")));n=[...n,...r=a.map(({precedingText:e,as:t,alias:n})=>e+(n?" ".repeat(s-e.length+1)+(t??"")+n:""))]}n.push(t[e])}return n.join(` `)}(e)),("before"===this.cfg.commaPosition||"tabular"===this.cfg.commaPosition)&&(t=e,n=this.cfg.commaPosition,r=_X(this.cfg),e=(function(e){let t=[];for(let n=0;n{if(1===e.length)return e;if("tabular"===n)return function(e){let t=TY(e.map(e=>e.replace(/\s*--.*/,"")))-1;return e.map((n,r)=>r===e.length-1?n:function(e,t){let[,n,r]=e.match(/^(.*?),(\s*--.*)?$/)||[],a=" ".repeat(t-n.length);return`${n}${a},${r??""}`}(n,t))}(e);if("before"===n)return e.map(e=>e.replace(/,(\s*(--.*)?$)/,"$1")).map((e,t)=>{if(0===t)return e;let[n]=e.match(hi)||[""];return n.replace(RegExp(r+"$"),"")+r.replace(/ {2}$/,", ")+e.trimStart()});throw Error(`Unexpected commaPosition: ${n}`)}).join(` `)),e}}class hh extends null{}let hf={bigquery:"bigquery",db2:"db2",hive:"hive",mariadb:"mariadb",mysql:"mysql",n1ql:"n1ql",plsql:"plsql",postgresql:"postgresql",redshift:"redshift",spark:"spark",sqlite:"sqlite",sql:"sql",trino:"trino",transactsql:"transactsql",tsql:"transactsql",singlestoredb:"singlestoredb",snowflake:"snowflake"},hS=Object.keys(hf),hR={tabWidth:2,useTabs:!1,keywordCase:"preserve",indentStyle:"standard",logicalOperatorNewline:"before",tabulateAlias:!1,commaPosition:"after",expressionWidth:50,linesBetweenQueries:1,denseOperators:!1,newlineBeforeSemicolon:!1},hA=(e,t={})=>{if("string"==typeof t.language&&!hS.includes(t.language))throw new hh(`Unsupported SQL dialect: ${t.language}`);let n=hf[t.language||"sql"];return hO(e,{...t,dialect:_p[n]})},hO=(e,{dialect:t,...n})=>{if("string"!=typeof e)throw Error("Invalid query argument. Expected string, instead got "+typeof e);let r=function(e){var t;if("multilineLists"in e)throw new hh("multilineLists config is no more supported.");if("newlineBeforeOpenParen"in e)throw new hh("newlineBeforeOpenParen config is no more supported.");if("newlineBeforeCloseParen"in e)throw new hh("newlineBeforeCloseParen config is no more supported.");if("aliasAs"in e)throw new hh("aliasAs config is no more supported.");if(e.expressionWidth<=0)throw new hh(`expressionWidth config must be positive number. Received ${e.expressionWidth} instead.`);if("before"===e.commaPosition&&e.useTabs)throw new hh("commaPosition: before does not work when tabs are used for indentation.");return e.params&&!((t=e.params)instanceof Array?t:Object.values(t)).every(e=>"string"==typeof e)&&console.warn('WARNING: All "params" option values should be strings.'),e}({...hR,...n});return new h_(_V(t),r).format(e)},hN=/^db(?:\.[A-Za-z]+)*$/,hI={avgDuration:"AVG_DURATION",timeSpent:"TIME_SPENT",description:"DESC",avgEncodedSize:"AVG_ENCODED_SIZE"},hm=[{id:"description",title:"Resource Description",sortKey:hI.description,primary:!0},{id:"avgDuration",title:"Avg Duration",sortKey:hI.avgDuration},{id:"timeSpent",title:"Time Spent",sortKey:hI.timeSpent},{id:"avgEncodedSize",title:"Avg Encoded Size",sortKey:hI.avgEncodedSize}],hC={queryDesc:"QUERY_DESCRIPTION",timeSpent:"TIME_SPENT",avgDuration:"AVG_DURATION"},hL=[{id:"queryDesc",title:"Query Description",sortKey:hC.queryDesc,primary:!0},{id:"avgDuration",title:"Avg Duration",sortKey:hC.avgDuration},{id:"timeSpent",title:"Time Spent",sortKey:hC.timeSpent}],hg={count:"count",lastSeen:"lastSeen"},hy=[{id:"transaction",title:"Transaction",primary:!0},{id:"lastSeen",title:"Last Seen",sortKey:hg.lastSeen},{id:"count",title:"Count",sortKey:hg.count}],hb={timestamp:"timestamp",duration:"duration"},hv=[{id:"eventId",title:"Event Id",primary:!0},{id:"toalDuration",title:"Total Duration",sortKey:hb.duration},{id:"timestamp",title:"Timestamp",sortKey:hb.timestamp},{id:"traceId",title:"Trace Id"}],hD={foundIn:"FOUND_IN",spanId:"SPAN_ID",timeSpent:"TIME_SPENT"},hP=[{id:"foundIn",title:"Found In",sortKey:hD.foundIn,primary:!0},{id:"spanId",title:"Span Id",sortKey:hD.spanId},{id:"timeSpent",title:"Time Spent",sortKey:hD.timeSpent}],hM={pages:"Pages",lcp:"LCP",fcp:"FCP",fid:"FID",cls:"CLS",ttfb:"TTFB",score:"PERFORMANCE_TOTAL_SCORE"},hU=[{id:"pages",title:"Pages",sortKey:hM.pages,primary:!0},{id:"lcp",title:"LCP",sortKey:hM.lcp},{id:"fcp",title:"FCP",sortKey:hM.fcp},{id:"fid",title:"FID",sortKey:hM.fid},{id:"cls",title:"CLS",sortKey:hM.cls},{id:"ttfb",title:"TTFB",sortKey:hM.ttfb},{id:"score",title:"Perf Score",sortKey:hM.score}],hx={profiles:[{name:"Chrome",scoreComponents:[{measurement:"fcp",weight:.15,p10:900,p50:1600,optional:!1},{measurement:"lcp",weight:.3,p10:1200,p50:2400,optional:!1},{measurement:"fid",weight:.3,p10:100,p50:300,optional:!0},{measurement:"cls",weight:.15,p10:.1,p50:.25,optional:!1},{measurement:"ttfb",weight:.1,p10:200,p50:400,optional:!1}],condition:{op:"eq",name:"event.contexts.browser.name",value:"Chrome"}}]};function hw(e,t=2){if(0==e)return"0 B";let n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(t))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}let hk=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor",className:"bi bi-chevron-down",viewBox:"0 0 16 16","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"}));function hG({handleResize:e,isResizing:t,setIsResizing:n,...r}){let[a,s]=ep.useState(!1),i=t=>{t.target instanceof HTMLDivElement&&e(t)},o=()=>{n(!1),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",o)};return eI.jsx("div",{className:E5("resizer","absolute left-0 top-0 h-full w-1 cursor-col-resize rounded-sm p-0.5 transition-colors",a||t?"bg-primary-600 translate-x-[-2px] transform":""),onClick:e=>e.preventDefault(),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),onMouseOver:()=>s(!0),onMouseDown:e=>{e.preventDefault(),s(!0),n(!0),document.addEventListener("mousemove",i),document.addEventListener("mouseup",o)},...r})}let hF=({span:e,startTimestamp:t,totalDuration:n,depth:r=1,traceContext:a,totalTransactions:s=0,spanNodeWidth:i,setSpanNodeWidth:o=()=>{},query:l})=>{var E,u;let{spanId:c}=EB(),d=ep.useRef(null),[T,p]=ep.useState(e.transaction&&s>1&&1!==r||r>=15),[_,h]=ep.useState(!1),f=TN(e.start_timestamp,e.timestamp),S=!!l&&(e.span_id.includes(l)||(null==(E=e.op)?void 0:E.includes(l))||(null==(u=e.description)?void 0:u.includes(l)));return eI.jsxs("li",{className:"pl-4",ref:d,children:[eI.jsxs(null,{className:E5("hover:bg-primary-900 group flex text-sm",S?"bg-primary-200 bg-opacity-20":"",c===e.span_id?"bg-primary-900":""),style:{pointerEvents:_?"none":"auto"},to:`/explore/traces/${e.trace_id}/spans/${e.span_id}`,children:[eI.jsxs("div",{className:E5("node group-hover:bg-primary-900",S?"bg-transparent":"",e.status&&"ok"!==e.status?"text-red-400":"",c===e.span_id?"bg-primary-900":"bg-primary-950"),style:{width:`${i}%`},children:[(e.children||[]).length>0&&eI.jsxs("div",{className:"bg-primary-600 z-10 mr-1 flex items-center gap-1 rounded-lg px-1 text-xs font-bold text-white",onClick:e=>{e.preventDefault(),p(e=>!e)},children:[(e.children||[]).length,eI.jsx(hk,{width:12,height:12,className:E5("transition",T?"rotate-0":"rotate-180")})]}),e.transaction&&eI.jsx(dO,{size:16,platform:e.transaction.platform}),e.op&&eI.jsxs(eI.Fragment,{children:[eI.jsx("span",{className:"font-bold",children:e.op}),eI.jsx("span",{className:"text-primary-400",children:"–"})]}),eI.jsx("span",{className:"block truncate",title:e.description||e.span_id,children:e.description||e.span_id})]}),eI.jsxs("div",{className:E5("waterfall",S?"!bg-transparent":""),style:{left:`${i}%`},children:[eI.jsx(hG,{setIsResizing:h,isResizing:_,handleResize:e=>{if(d.current){let t=d.current.getBoundingClientRect();o((e.clientX-t.left)/t.width*100)}}}),eI.jsx("div",{className:"bg-primary-900 absolute -m-0.5 w-full p-0.5",style:{left:`calc(min(${(e.start_timestamp-t)/n*100}%, 95% - 1px) + 4px)`,width:`max(1px, ${f/n*95}%)`},children:eI.jsxs("span",{className:E5("whitespace-nowrap",function(e){return e>1e3?"text-red-400":e>500?"text-orange-400":e>100?"text-yellow-400":void 0}(f)),children:[f.toLocaleString()," ms"]})})]})]}),!T&&eI.jsx(hB,{traceContext:a,tree:e.children||[],startTimestamp:t,totalDuration:n,depth:r+1,totalTransactions:s,spanNodeWidth:i,setSpanNodeWidth:o,query:l})]},e.span_id)};function hB({traceContext:e,tree:t,startTimestamp:n,totalDuration:r,depth:a=1,totalTransactions:s,spanNodeWidth:i,setSpanNodeWidth:o,query:l}){return t&&t.length?eI.jsx("ul",{className:"tree",children:t.map(t=>eI.jsx(hF,{traceContext:e,depth:a,span:t,totalTransactions:s,startTimestamp:n,totalDuration:r,spanNodeWidth:i,setSpanNodeWidth:o,query:l},t.span_id))}):null}function hH({desc:e,dbType:t}){if(e.startsWith("{")||"mongodb"===t)try{return eI.jsx(dq,{data:JSON.parse(e)})}catch{}let n=e;if(e.match(/^(SELECT|INSERT|UPDATE|DELETE|TRUNCATE|ALTER) /i))try{n=hA(e.replace(/([\s,(])(%[a-z])([\s,)])/gim,"$1?$3"),{language:t||"sql"})}catch(e){console.error(e)}return eI.jsx("pre",{className:"text-primary-300 whitespace-pre-wrap break-words font-mono text-sm",children:n})}function hY({span:e}){var t,n;let r=null,a=null;return e.op&&hN.test(e.op)&&e.description?(a="Query",r=eI.jsx(hH,{desc:e.description,dbType:null==(t=e.data)?void 0:t["db.system"]})):"resource.img"===e.op&&(null==(n=e.description)?void 0:n.indexOf("/"))===0?(a="Preview",r=eI.jsx("a",{href:e.description,className:"border-primary-950 hover:border-primary-700 -m-2 inline-block max-w-sm cursor-pointer rounded border p-1",children:eI.jsx("img",{src:e.description,alt:"preview",style:{maxHeight:300}})})):e.description?(a="Description",r=eI.jsx("pre",{className:"text-primary-300 whitespace-pre-wrap break-words font-mono text-sm",children:e.description})):r=eI.jsx("div",{className:"text-primary-300",children:"No description recorded for this span."}),eI.jsxs("div",{children:[a&&eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:a}),r]})}function hV({traceContext:e,span:t,startTimestamp:n,totalDuration:r,totalTransactions:a}){var s;let[i,o]=ep.useState(50),l=TN(t.start_timestamp,t.timestamp),E=uu.getEventsByTrace(t.trace_id).filter(e=>"transaction"!==e.type&&"exception"in e);return eI.jsxs(Tc,{backto:`/explore/traces/${t.trace_id}`,children:[eI.jsx(Tu,{title:"Span Details",subtitle:eI.jsxs(eI.Fragment,{children:[t.op&&eI.jsxs(eI.Fragment,{children:[t.op," ",eI.jsx("span",{className:"text-primary-500",children:"—"})," "]}),t.span_id]}),backto:`/explore/traces/${t.trace_id}`}),eI.jsxs("div",{className:"space-y-6",children:[eI.jsx("div",{children:eI.jsxs("div",{className:"flex flex-col space-y-4",children:[eI.jsxs("div",{className:"text-primary-300 flex flex-1 items-center gap-x-1",children:[eI.jsx(TC,{date:t.start_timestamp}),eI.jsx("span",{children:"—"}),eI.jsxs("span",{children:[eI.jsxs("strong",{children:[TN(n,t.start_timestamp)," ms"]})," into trace"]})]}),eI.jsx("div",{className:"flex-1",children:eI.jsx("div",{className:"border-primary-800 relative h-8 border py-1",children:eI.jsx("div",{className:"bg-primary-800 absolute bottom-0 top-0 -m-0.5 flex w-full items-center p-0.5",style:{left:`min(${(t.start_timestamp-n)/r*100}%, 100% - 1px)`,width:`max(1px, ${l/r*100}%)`},children:eI.jsxs("span",{className:"whitespace-nowrap",children:[l," ms"]})})})})]})}),E.length>0&&eI.jsxs("div",{className:"flex flex-col items-start",children:[eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:"Related Errors"}),E.map(e=>eI.jsx(null,{className:"cursor-pointer underline",to:`/errors/${e.event_id}`,children:eI.jsx(dw,{event:e})},e.event_id))]}),eI.jsx(hY,{span:t}),eI.jsxs("div",{children:[eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:"Tags"}),t.tags&&Object.keys(t.tags).length?eI.jsx("table",{className:"w-full text-sm",children:eI.jsx("tbody",{children:Object.entries(t.tags).map(([e,t])=>eI.jsxs("tr",{className:"text-primary-300",children:[eI.jsx("th",{className:" w-1/12 py-0.5 pr-4 text-left font-mono font-normal",children:eI.jsx("div",{className:"w-full truncate",children:e})}),eI.jsx("td",{className:"py-0.5",children:eI.jsx("pre",{className:"whitespace-nowrap font-mono",children:JSON.stringify(t,void 0,2)})})]},e))})}):eI.jsx("div",{className:"text-primary-300",children:"No tags recorded for this span."})]}),eI.jsxs("div",{children:[eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:"Context"}),eI.jsx("table",{className:"w-full text-sm",children:eI.jsx("tbody",{children:[["status",t.status||""],["trace",t.trace_id],["span",t.span_id],["parent",t.parent_span_id?eI.jsx(null,{className:"underline",to:`/explore/traces/${t.trace_id}/spans/${t.parent_span_id}`,children:t.parent_span_id},`link-to-${t.parent_span_id}`):""],["op",t.op]].map(([e,t])=>eI.jsxs("tr",{className:"text-primary-300",children:[eI.jsx("th",{className:" w-1/12 py-0.5 pr-4 text-left font-mono font-normal",children:eI.jsx("div",{className:"w-full truncate",children:e})}),eI.jsx("td",{className:"py-0.5",children:eI.jsx("pre",{className:"whitespace-nowrap font-mono",children:t})})]},e))})})]}),t.data&&eI.jsxs("div",{children:[eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:"Data"}),eI.jsx("table",{className:"w-full text-sm",children:eI.jsx("tbody",{children:Object.entries(t.data).map(([e,t])=>eI.jsxs("tr",{className:"text-primary-300",children:[eI.jsx("th",{className:" w-1/12 py-0.5 pr-4 text-left font-mono font-normal",children:eI.jsx("div",{className:"w-full truncate",children:e})}),eI.jsx("td",{className:"py-0.5",children:eI.jsx("pre",{className:"whitespace-nowrap font-mono",children:"number"==typeof t?-1!==e.indexOf("size")||-1!==e.indexOf("length")?hw(t):t.toLocaleString():`${t}`})})]},e))})})]}),((null==(s=t.children)?void 0:s.length)??0)>0&&eI.jsxs("div",{children:[eI.jsx("h2",{className:"mb-2 font-bold uppercase",children:"Sub-tree"}),eI.jsx(hB,{traceContext:e,tree:[t],startTimestamp:n,totalDuration:r,totalTransactions:a,spanNodeWidth:i,setSpanNodeWidth:o})]})]})]})}function hW({traceId:e}){let{spanId:t}=EB(),[n,r]=ep.useState(50),a=uu.getTraceById(e),s=t?uu.getSpanById(e,t):void 0,i=a.start_timestamp,o=a.timestamp-i;return eI.jsxs(eI.Fragment,{children:[eI.jsx("div",{className:"px-6 py-4",children:eI.jsxs("div",{className:"text-primary-300 flex flex-1 items-center gap-x-1",children:[eI.jsx("div",{className:"text-primary-200",children:eI.jsx(TC,{date:a.start_timestamp})}),eI.jsx("span",{children:"—"}),eI.jsxs("span",{children:[eI.jsxs("strong",{className:"text-primary-200 font-bold",children:[TN(a.start_timestamp,a.timestamp).toLocaleString()," ms"]})," ","recorded in"," ",eI.jsxs("strong",{className:"text-primary-200 font-bold",children:[a.spans.length.toLocaleString()," spans"]})]})]})}),eI.jsx("div",{className:"flex-1 px-2 pb-6",children:eI.jsx(hB,{traceContext:a,tree:a.spanTree,startTimestamp:i,totalDuration:o,totalTransactions:(a.transactions||[]).length,spanNodeWidth:n,setSpanNodeWidth:r})}),s?eI.jsx(hV,{traceContext:a,startTimestamp:i,totalDuration:o,span:s,totalTransactions:(a.transactions||[]).length}):null]})}function hj(){let{traceId:e}=EB(),t=Ta(e),n=Ts();if(!e)return eI.jsx("p",{className:"text-primary-300 p-6",children:"Unknown trace id"});let r=uu.getTraceById(e);if(!r)return eI.jsxs("p",{className:"text-primary-300 p-6",children:["Trace not found. Check for more"," ",eI.jsx(null,{to:"/traces",className:"underline",children:"traces"})]});let a=t.filter(e=>{var t,r,a,s;return"transaction"!==e.type&&(null!=(r=null==(t=e.contexts)?void 0:t.trace)&&r.trace_id?n.isLocalToSession(null==(s=null==(a=e.contexts)?void 0:a.trace)?void 0:s.trace_id):null)!==!1}).length,s=[dh("details","Details"),dh("context","Context"),dh("errors","Errors",{notificationCount:{count:a,severe:a>0}})];return eI.jsxs(eI.Fragment,{children:[eI.jsx(TA,{trace:r}),eI.jsx(E3,{tabs:s,nested:!0}),eI.jsxs(EX,{children:[eI.jsx(Ej,{path:"details",element:eI.jsx(hW,{traceId:e})}),eI.jsx(Ej,{path:"spans/:spanId",element:eI.jsx(hW,{traceId:e})}),eI.jsx(Ej,{path:"context",element:eI.jsx(d3,{event:r.rootTransaction||r.transactions[0]})}),eI.jsx(Ej,{path:"errors",element:eI.jsx(Tl,{traceId:e})}),eI.jsx(Ej,{path:"*",element:eI.jsx(EV,{to:`/explore/traces/${e}/details`,replace:!0})})]})]})}let hX=()=>(ep.useContext(Tt),uu.getTraces());function hK(){let e=hX(),t=Ts(),n=db(),[r,a]=ep.useState(!n.experiments["sentry:focus-local-events"]),s=r?e:e.filter(e=>!1!==t.isLocalToSession(e.trace_id)),i=e.length-s.length;return eI.jsx(eI.Fragment,{children:0!==e.length?eI.jsxs(d6,{children:[i>0&&eI.jsx(To,{itemCount:i,onClick:()=>{a(!0)}}),s.map(e=>{let n=TN(e.start_timestamp,e.timestamp);return eI.jsxs(null,{className:"hover:bg-primary-900 flex cursor-pointer items-center gap-x-4 px-6 py-2",to:e.trace_id,children:[eI.jsx(TS,{trace:e}),eI.jsxs("div",{className:"text-primary-300 flex w-48 flex-col truncate font-mono text-sm",children:[eI.jsxs("div",{className:"flex items-center gap-x-2",children:[eI.jsx("div",{children:Ti(e.trace_id)}),t.isLocalToSession(e.trace_id)?eI.jsx(d4,{title:"This trace is part of your local session.",children:"Local"}):null]}),eI.jsx(Te,{date:e.start_timestamp})]}),eI.jsx(TR,{trace:e}),eI.jsx("div",{className:"flex flex-col truncate font-mono",children:eI.jsxs("div",{className:"text-primary-300 flex space-x-2 text-sm",children:[eI.jsx("div",{className:E5("ok"===e.status?"text-green-400":e.status?"text-red-400":""),children:e.status||""}),eI.jsx("div",{children:"—"}),eI.jsxs("div",{children:[n," ms"]}),eI.jsx("div",{children:"—"}),eI.jsxs("div",{children:[e.spans.length.toLocaleString()," spans, ",e.transactions.length.toLocaleString()," txns"]})]})})]},e.trace_id)})]}):eI.jsx("div",{className:"text-primary-300 p-6",children:"Looks like there's no traces recorded matching this query. \uD83E\uDD14"})})}function h$(){return eI.jsxs(EX,{children:[eI.jsx(Ej,{path:"/:traceId/*",element:eI.jsx(hj,{})}),eI.jsx(Ej,{path:"/",element:eI.jsx(hK,{})})]})}let hz=()=>{ep.useContext(Tt);let e=Ts(),t=uu.getTraces(),n=t.filter(t=>!1!==e.isLocalToSession(t.trace_id));return{allSpans:t.reduce((e,t)=>[...e,...t.spans],[]),localSpans:n.reduce((e,t)=>[...e,...t.spans],[])}},hJ=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:24,height:24,viewBox:"0 0 24 24","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{d:"M17,14 C17.8092996,14 18.2680938,14.9010044 17.836059,15.5493995 L17.7682213,15.6401844 L12.7682213,21.6401844 C12.3950792,22.0879549 11.7283228,22.1178063 11.3160321,21.7297385 L11.2317787,21.6401844 L6.23177872,15.6401844 C5.71367776,15.0184632 6.11213562,14.0891988 6.88682851,14.0060047 L7,14 L17,14 Z M11.2317787,2.3598156 C11.6049208,1.91204508 12.2716772,1.88219371 12.6839679,2.2702615 L12.7682213,2.3598156 L17.7682213,8.3598156 C18.2863222,8.98153675 17.8878644,9.91080124 17.1131715,9.99399528 L17,10 L7,10 C6.19070043,10 5.73190618,9.09899556 6.16394105,8.45060047 L6.23177872,8.3598156 L11.2317787,2.3598156 Z"})),hZ=({title:e,titleId:t,...n})=>ep.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",width:24,height:24,viewBox:"-96 0 512 512","aria-labelledby":t,...n},e?ep.createElement("title",{id:t},e):null,ep.createElement("path",{xmlns:"http://www.w3.org/2000/svg",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"}));function hq({defaultSortType:e="",defaultAsc:t=!1}){let[n,r]=ep.useState({active:e,asc:t});return{toggleSortOrder:e=>r(t=>t.active===e?{active:e,asc:!t.asc}:{active:e,asc:!1}),sort:n,setSort:r}}let hQ=({query:e,spanData:t})=>{let n=t.filter(t=>t.description===e).map(e=>e.timestamp-e.start_timestamp),r=n.reduce((e,t)=>e+t,0);return{avgDuration:r/n.length,timeSpent:r,description:e}},h0={[hC.queryDesc]:(e,t)=>e.descriptiont.description?1:0,[hC.avgDuration]:(e,t)=>e.avgDuration-t.avgDuration,[hC.timeSpent]:(e,t)=>e.timeSpent-t.timeSpent},h1=({showAll:e})=>{let{allSpans:t,localSpans:n}=hz(),{sort:r,toggleSortOrder:a}=hq({defaultSortType:hC.timeSpent}),s=ep.useMemo(()=>{let a=h0[r.active]||h0[hC.timeSpent],s=(e?t:n).filter(e=>hN.test(e.op||"")),i=new Set(s.map(e=>String(null==e?void 0:e.description).trim()));return i.delete(""),[...i].map(e=>hQ({query:e,spanData:s})).sort((e,t)=>r.asc?a(e,t):a(t,e))},[t,n,e,r]);return null!=s&&s.length?eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hL.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 select-none px-6 py-3.5 text-sm font-semibold",e.primary?"w-2/5":"w-[15%]"),children:eI.jsxs("div",{className:E5("flex cursor-pointer items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>a(e.sortKey),children:[e.title,r.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",r.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"})]})},e.id))})}),eI.jsx("tbody",{children:s.map(e=>eI.jsxs("tr",{className:"hover:bg-primary-900",children:[eI.jsx("td",{className:"text-primary-200 w-2/5 truncate whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:eI.jsx(null,{className:"truncate hover:underline",to:`/insights/queries/${btoa(e.description)}`,children:e.description})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.avgDuration)}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.timeSpent)})]},e.description))})]}):eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"No Database queries found. Add integration in Sentry initialization to track Database queries."})};function h2({crumbs:e}){return eI.jsx("div",{className:"flex items-center gap-1 px-6 py-4",children:e.map((t,n)=>{let r=n===e.length-1;return eI.jsxs("div",{className:"flex items-center gap-1",children:[n>0&&eI.jsx(hk,{width:12,height:12,className:"stroke-primary-300 -rotate-90"}),t.link&&t.to?eI.jsx(null,{className:E5(r?"text-primary-200":"text-primary-300","hover:text-primary-100 truncate text-sm hover:underline"),to:t.to,children:t.label}):eI.jsx("span",{className:E5(r?"text-primary-200":"text-primary-300","truncate text-sm"),children:t.label})]},t.id)})})}let h5={[hD.foundIn]:(e,t)=>e.trace_idt.trace_id?1:0,[hD.spanId]:(e,t)=>e.span_idt.span_id?1:0,[hD.timeSpent]:(e,t)=>e.timestamp-e.start_timestamp-(t.timestamp-t.start_timestamp)},h3=({showAll:e})=>{let{allSpans:t,localSpans:n}=hz(),{type:r}=EB(),{sort:a,toggleSortOrder:s}=hq({defaultSortType:hD.timeSpent}),i=ep.useMemo(()=>{if(!r)return[];let s=e?t:n,i=h5[a.active]||h5[hD.timeSpent],o=atob(r);return s.filter(e=>e.description===o).sort((e,t)=>a.asc?i(e,t):i(t,e))},[t,n,e,a,r]);return i&&i.length?eI.jsxs(eI.Fragment,{children:[eI.jsx(h2,{crumbs:[{id:"queries",label:"Queries",link:!0,to:"/insights/queries"},{id:"querySummary",label:"Query Summary",link:!1}]}),eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hP.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 px-6 py-3.5 text-sm font-semibold",e.primary?"w-2/5":"w-[15%]"),children:eI.jsxs("div",{className:E5("flex cursor-pointer select-none items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>s(e.sortKey),children:[e.title,a.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",a.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"})]})},e.id))})}),eI.jsx("tbody",{children:i.map(e=>eI.jsxs("tr",{className:"hover:bg-primary-900",children:[eI.jsx("td",{className:"text-primary-200 w-2/5 truncate whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:eI.jsx(null,{className:"truncate hover:underline",to:`/explore/traces/${e.trace_id}`,children:Ti(e.trace_id)})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:eI.jsx(null,{className:"truncate hover:underline",to:`/explore/traces/${e.trace_id}/spans/${e.span_id}`,children:Ti(e.span_id)})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.timestamp-e.start_timestamp)})]},e.span_id))})]})]}):eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"Query not found."})},h4=e=>{switch(e){case"top":return"bottom-full left-1/2 transform -translate-x-1/2 mb-2";case"bottom":return"top-full left-1/2 transform -translate-x-1/2 mt-2";case"left":return"top-1/2 right-full transform -translate-y-1/2 mr-2";default:return"top-1/2 left-full transform -translate-y-1/2 ml-2"}},h6=({content:e,position:t="right",children:n})=>{let[r,a]=ep.useState(!1);return eI.jsxs("div",{className:"relative inline-block max-w-full",onMouseEnter:()=>{a(!0)},onMouseLeave:()=>{a(!1)},children:[n,r&&eI.jsx("div",{className:E5("absolute z-10",h4(t)),children:e})]})},h8=({resource:e,spanData:t})=>{let n=t.filter(t=>t.description===e),r=n.reduce((e,t)=>e+(t.timestamp-t.start_timestamp),0);return{avgDuration:r/n.length,timeSpent:r,description:e,avgEncodedSize:n.reduce((e,t)=>{let n=t.data&&t.data["http.response_content_length"];return"number"==typeof n?e+n:e},0)/n.length,similarResources:n}},h7=(e,t)=>{if(t.type)return e.filter(e=>e.description===t.type);if(t.regex){let n=new RegExp(t.regex);return e.filter(e=>n.test(e.op||""))}return[]},h9={[hI.description]:(e,t)=>e.descriptiont.description?1:0,[hI.avgEncodedSize]:(e,t)=>e.avgEncodedSize-t.avgEncodedSize,[hI.avgDuration]:(e,t)=>e.avgDuration-t.avgDuration,[hI.timeSpent]:(e,t)=>e.timeSpent-t.timeSpent},fe=({showAll:e})=>{let{allSpans:t,localSpans:n}=hz(),{sort:r,toggleSortOrder:a}=hq({defaultSortType:hI.timeSpent}),s=ep.useMemo(()=>{let a=h7(e?t:n,{regex:/resource\.[A-Za-z]+/}),s=new Set(a.map(e=>String(null==e?void 0:e.description).trim()));s.delete("");let i=[...s],o=h9[r.active]||h9[hI.timeSpent];return i.map(e=>h8({resource:e,spanData:a})).sort((e,t)=>r.asc?o(e,t):o(t,e))},[r,e,t,n]);return null!=s&&s.length?eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hm.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 px-6 py-3.5 text-sm font-semibold",e.primary?"w-2/5":"w-[15%]"),children:eI.jsxs("div",{className:E5("flex cursor-pointer select-none items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>a(e.sortKey),children:[e.title,r.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",r.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"})]})},e.id))})}),eI.jsx("tbody",{children:s.map(e=>{var t;return eI.jsxs("tr",{className:"hover:bg-primary-900",children:[eI.jsx("td",{className:"text-primary-200 relative w-2/5 whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:eI.jsx(h6,{position:"right",content:"resource.img"===e.similarResources[0].op&&(null==(t=e.description)?void 0:t.indexOf("/"))===0&&eI.jsxs("div",{className:"bg-primary-800 cursor-pointer rounded-lg p-4 shadow-md",children:[eI.jsx("h2",{className:"mb-2 font-bold",children:"Preview"}),eI.jsx("img",{src:e.description,className:"inline-block max-h-[150px] max-w-[150px] rounded p-1",alt:"preview"})]}),children:eI.jsx("div",{className:"truncate",children:e.description})})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.avgDuration)}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.timeSpent)}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:hw(e.avgEncodedSize)})]},e.description)})})]}):eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"No Resource found."})},ft=Math.sqrt(2);function fn(e,t){if(t)for(let s of t.profiles){let t=e.measurements;if(t){let e=!1,i=0,o=0;for(let e of s.scoreComponents)e.optional&&!Object.prototype.hasOwnProperty.call(t,e.measurement)||(o+=e.weight);if(Math.abs(o)e.transaction&&t.transaction&&e.transactiont.transaction?1:0,[hM.lcp]:(e,t)=>e.measurements["score.lcp"].value-t.measurements["score.lcp"].value,[hM.fid]:(e,t)=>e.measurements["score.fid"].value-t.measurements["score.fid"].value,[hM.fcp]:(e,t)=>e.measurements["score.fcp"].value-t.measurements["score.fcp"].value,[hM.cls]:(e,t)=>e.measurements["score.cls"].value-t.measurements["score.cls"].value,[hM.ttfb]:(e,t)=>e.measurements["score.ttfb"].value-t.measurements["score.ttfb"].value,[hM.score]:(e,t)=>e.measurements["score.total"].value-t.measurements["score.total"].value},fa=()=>{let e=Ta(),t=EF(),{sort:n,toggleSortOrder:r}=hq({defaultSortType:hM.score}),a=ep.useMemo(()=>{let t=fr[n.active]||fr[hM.score];return e.filter(e=>{var t,n;return e.measurements&&(null==(n=null==(t=null==e?void 0:e.contexts)?void 0:t.trace)?void 0:n.op)==="pageload"}).map(e=>{let t={...e};return fn(t,hx),t}).sort((e,r)=>n.asc?t(e,r):t(r,e))},[e,n]);return null!=a&&a.length?eI.jsx(eI.Fragment,{children:eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hU.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 px-6 py-3.5 text-sm font-semibold",e.primary?"w-2/5":"w-[15%]"),children:eI.jsxs("div",{className:E5("flex cursor-pointer select-none items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>r(e.sortKey),children:[e.title,n.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",n.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"})]})},e.id))})}),eI.jsx("tbody",{children:a.map(e=>{var n,r,a,s,i,o;return eI.jsxs("tr",{className:"hover:bg-primary-900 cursor-pointer",onClick:()=>t(`/insights/webvitals/${e.event_id}`),children:[eI.jsx("td",{className:"text-primary-200 w-2/5 truncate whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:e.transaction}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(n=e.measurements)&&n.lcp?Tm(e.measurements.lcp.value):"-"}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(r=e.measurements)&&r.fcp?Tm(e.measurements.fcp.value):"-"}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(a=e.measurements)&&a.fid?Tm(e.measurements.fid.value):"-"}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(s=e.measurements)&&s.cls?e.measurements.cls.value:"-"}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(i=e.measurements)&&i.ttfb?Tm(e.measurements.ttfb.value):"-"}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:null!=(o=e.measurements["score.total"])&&o.value?Math.trunc(100*e.measurements["score.total"].value):"-"})]},e.event_id)})})]})}):eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"No Measurements found."})};function fs({values:e,maxValues:t,size:n=20,barWidth:r=3,text:a,textCss:s,segmentColors:i,backgroundColors:o,progressEndcaps:l,onHoverActions:E,onBlur:u,...c}){let d=n/2,T=n/4,p=n/2-r/2,_=2*Math.PI*p,h=ep.useMemo(()=>{let n=t.reduce((e,t)=>e+t,0),a=null;return t.flatMap((t,s)=>{let c=Math.min(Math.max(e[s],0),t),d=e.length>1?1:0,T=(1-Math.max(t-d,0)/n)*_,h=(1-Math.max(c-d,0)/n)*_,f=a;a+=360*t/n;let S=p+r/2,R=`${S}-${o[s]}-${i[s]}`;return[eI.jsx("circle",{strokeDashoffset:T,r:p,cx:S,cy:S,onMouseOver:()=>null==E?void 0:E[s](),onFocus:()=>null==E?void 0:E[s](),onMouseLeave:()=>null==u?void 0:u(),onBlur:()=>null==u?void 0:u(),className:E5(o[s]),style:{fill:"none",strokeWidth:r,strokeDasharray:`${_} ${_}`,transform:`rotate(${f}deg)`,transformOrigin:"50% 50%",transition:"stroke 300ms"}},`ring-bg-${R}`),eI.jsx("circle",{strokeDashoffset:h,strokeLinecap:l,r:p,cx:S,cy:S,onMouseOver:()=>null==E?void 0:E[s](),onFocus:()=>null==E?void 0:E[s](),onMouseLeave:()=>null==u?void 0:u(),onBlur:()=>null==u?void 0:u(),className:E5(i[s]),style:{fill:"none",strokeWidth:r,strokeDasharray:`${_} ${_}`,transform:`rotate(${f}deg)`,transformOrigin:"50% 50%",transition:"stroke 300ms, stroke-dashoffset 300ms"}},`ring-bar-${R}`)]})},[o,r,_,t,E,u,l,p,i,e]);return eI.jsxs("svg",{className:"relative",role:"img",height:2*p+r,width:2*p+r,...c,children:[eI.jsx("title",{children:"Web Vitals Breakdown"}),h,eI.jsx("foreignObject",{height:d,width:d,x:T,y:T,children:void 0!==a?eI.jsx("div",{className:E5("text-primary-100 flex h-full w-full items-center justify-center text-xl font-bold",s),children:a}):null})]})}class fi extends null{}function fo({webVital:e,coordinates:t,labelCoordinates:n={}}){var r,a;let s=(null==(r=null==n?void 0:n[e])?void 0:r.x)??0,i=(null==(a=null==n?void 0:n[e])?void 0:a.y)??0;return eI.jsx("text",{className:"fill-primary-200 stroke-primary-200 uppercase",x:t.x+s,y:t.y+i,children:e})}let fl=({metricScore:e,metricWeights:t,totalScore:n,size:r=200,barWidth:a=25,left:s=40,top:i=25,labelWidthPadding:o=28,labelHeightPadding:l=14,radiusPadding:E=4})=>{let[u,c]=ep.useState(null),[d,T]=ep.useState({x:0,y:0}),p=ep.useRef(null),_=function({elem:e,onPositionChange:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:a,...s}){let i=ep.useRef(new AbortController),o=ep.useCallback(async n=>{if(!e.current){t(void 0);return}try{let r=await function(e,{signal:t}){return new Promise((n,r)=>{t.aborted&&r(new fi);let a=()=>{r(new fi)},s=new IntersectionObserver(e=>{for(let r of e)n(r.boundingClientRect),t.removeEventListener("abort",a);s.disconnect()});t.addEventListener("abort",a),s.observe(e)})}(e.current,{signal:i.current.signal});t({height:r.height,left:Math.min(n.clientX-r.left,r.width),top:Math.min(n.clientY-r.top,r.height),width:r.width})}catch(e){if(e instanceof fi)return}},[t,i,e]),l=ep.useCallback(()=>{i.current&&(i.current.abort(),i.current=new AbortController),t(void 0)},[t,i]);return{...s,onMouseEnter:e=>{o(e),null==n||n(e)},onMouseMove:t=>{var n;null!=(n=e.current)&&n.contains(t.target)&&(o(t),null==r||r(t))},onMouseLeave:e=>{l(),null==a||a(e)}}}({elem:p,onPositionChange:e=>{if(e){let{left:t,top:n}=e;T({x:t,y:n})}}}),{lcpX:h,lcpY:f,fcpX:S,fcpY:R,fidX:A,fidY:O,clsX:N,clsY:I,ttfbX:m,ttfbY:C}=function(e,t,n,r,a,s,i,o){let l=e/2+r+o,E={x:t+e/2-s/2,y:n+e/2+i/2},u=Object.values(a).reduce((e,t)=>e+t,0),[c,d,T,p,_]=[a.lcp,a.fcp,a.fid,a.cls,a.ttfb].map(e=>e/u*360),h=E.x+l*Math.cos((-90+c/2)*Math.PI/180),f=E.y+l*Math.sin((-90+c/2)*Math.PI/180),S=E.x+l*Math.cos((-90+c+d/2)*Math.PI/180),R=E.y+l*Math.sin((-90+c+d/2)*Math.PI/180),A=E.x+l*Math.cos((-90+c+d+T/2)*Math.PI/180),O=E.y+l*Math.sin((-90+c+d+T/2)*Math.PI/180),N=E.x+l*Math.cos((-90+c+d+T+p/2)*Math.PI/180);return{lcpX:h,lcpY:f,fcpX:S,fcpY:R,fidX:A,fidY:O,clsX:N,clsY:E.y+l*Math.sin((-90+c+d+T+p/2)*Math.PI/180),ttfbX:E.x-12+l*Math.cos((-90+c+d+T+p+_/2)*Math.PI/180),ttfbY:E.y+l*Math.sin((-90+c+d+T+p+_/2)*Math.PI/180)}}(r,s,i,a,t,o,l,E);return eI.jsxs("div",{ref:p,..._,children:[u&&eI.jsxs("div",{className:E5("bg-primary-900 border-primary-400 absolute flex w-40 items-center justify-between rounded-lg border p-3 shadow-lg"),style:{transform:`translate3d(${d.x-100}px, ${d.y-74}px, 0px)`},children:[eI.jsx("span",{className:"text-primary-200",children:`${u.toUpperCase()} Score:`}),eI.jsx("span",{className:"text-primary-200 font-semibold",children:e[`${u}Score`]})]}),eI.jsxs("svg",{height:r+3*i,width:r+3*s,children:[eI.jsxs(eI.Fragment,{children:[t.lcp>0&&eI.jsx(fo,{webVital:"lcp",coordinates:{x:h,y:f}}),t.fcp>0&&eI.jsx(fo,{webVital:"fcp",coordinates:{x:S,y:R}}),t.fid>0&&eI.jsx(fo,{webVital:"fid",coordinates:{x:A,y:O}}),t.cls>0&&eI.jsx(fo,{webVital:"cls",coordinates:{x:N,y:I}}),t.ttfb>0&&eI.jsx(fo,{webVital:"ttfb",coordinates:{x:m,y:C}})]}),eI.jsx(fs,{values:[(e.lcpScore??0)*t.lcp*.01,(e.fcpScore??0)*t.fcp*.01,(e.fidScore??0)*t.fid*.01,(e.clsScore??0)*t.cls*.01,(e.ttfbScore??0)*t.ttfb*.01],maxValues:[t.lcp,t.fcp,t.fid,t.cls,t.ttfb],text:n,size:r,barWidth:a,segmentColors:["stroke-primary-300","stroke-primary-400","stroke-primary-500","stroke-primary-600","stroke-primary-700"],backgroundColors:["stroke-gray-400","stroke-gray-400","stroke-gray-400","stroke-gray-400","stroke-gray-400"],x:s,y:i,onHoverActions:[()=>c("lcp"),()=>c("fcp"),()=>c("fid"),()=>c("cls"),()=>c("ttfb")],onBlur:()=>c(null)})]})]})},fE=()=>{var e,t,n,r,a;let s=Ta(),{page:i}=EB(),o=[];if(s.filter(e=>e.event_id===i).map(e=>{let t={...e};fn(t,hx),o.push(t)}),i&&o.length){let s={fcpScore:Math.trunc(100*o[0].measurements["score.fcp"].value),lcpScore:Math.trunc(100*o[0].measurements["score.lcp"].value),fidScore:Math.trunc(100*o[0].measurements["score.fid"].value),clsScore:Math.trunc(100*o[0].measurements["score.cls"].value),ttfbScore:Math.trunc(100*o[0].measurements["score.ttfb"].value)},i={fcp:Math.trunc(100*o[0].measurements["score.weight.fcp"].value),lcp:Math.trunc(100*o[0].measurements["score.weight.lcp"].value),fid:Math.trunc(100*o[0].measurements["score.weight.fid"].value),cls:Math.trunc(100*o[0].measurements["score.weight.cls"].value),ttfb:Math.trunc(100*o[0].measurements["score.weight.ttfb"].value)},l=Math.trunc(100*o[0].measurements["score.total"].value),E=[{id:"fcpScore",description:"First Contentful Paint",label:"FCP",score:null!=(e=o[0].measurements)&&e.fcp?Tm(o[0].measurements.fcp.value):"-"},{id:"lcpScore",description:"Largest Contentful Paint",label:"LCP",score:null!=(t=o[0].measurements)&&t.lcp?Tm(o[0].measurements.lcp.value):"-"},{id:"fidScore",description:"First Input Delay",label:"FID",score:null!=(n=o[0].measurements)&&n.fid?Tm(o[0].measurements.fid.value):"-"},{id:"clsScore",description:"Cumulative Layout Shift",label:"CLS",score:null!=(r=o[0].measurements)&&r.cls?Tm(o[0].measurements.cls.value):"-"},{id:"ttfbScore",description:"Time to First Byte",label:"TTFB",score:null!=(a=o[0].measurements)&&a.ttfb?Tm(o[0].measurements.ttfb.value):"-"}];return eI.jsxs(eI.Fragment,{children:[eI.jsx(h2,{crumbs:[{id:"webVitals",label:"Web Vitals",link:!0,to:"/insights/webvitals"},{id:"performanceSummary",label:"Performance Summary",link:!1}]}),eI.jsxs("div",{className:"w-full px-6",children:[eI.jsx("div",{className:"flex w-full items-center justify-center p-6",children:eI.jsx(fl,{totalScore:l,metricWeights:i,metricScore:s})}),eI.jsx("div",{className:"flex w-full flex-wrap justify-center gap-2",children:E.map(e=>eI.jsxs("div",{className:"bg-primary-900 border-primary-400 flex w-80 flex-col items-center gap-4 rounded-lg border p-2 shadow-lg",children:[eI.jsx("span",{className:"text-primary-300 text-base font-semibold",children:e.label}),eI.jsx("span",{className:"text-primary-300 text-sm font-light",children:e.description}),eI.jsx("h2",{className:"text-primary-300 text-lg font-bold",children:e.score??"-"})]},e.id))})]})]})}return eI.jsx("p",{className:"text-primary-300 px-6 py-4",children:"No measurement found."})};function fu({showAll:e}){let{name:t}=EB(),n=Ta(),r=Ts(),{sort:a,toggleSortOrder:s}=hq({defaultSortType:hb.timestamp}),i=ep.useMemo(()=>{if(!t)return[];let s={[hb.timestamp]:(e,t)=>e.start_timestamp-t.start_timestamp,[hb.duration]:(e,t)=>e.timestamp+t.start_timestamp-e.start_timestamp-t.timestamp},i=atob(t),o=n.filter(e=>"transaction"===e.type).filter(e=>e.transaction===i),l=e?o:o.filter(e=>{var t,n;let a=null==(n=null==(t=e.contexts)?void 0:t.trace)?void 0:n.trace_id;return!a||r.isLocalToSession(a)}),E=s[a.active]||s[hb.timestamp];return l.sort((e,t)=>a.asc?E(e,t):E(t,e))},[a,e,n,r,t]);return eI.jsx(eI.Fragment,{children:0!==i.length?eI.jsxs("div",{children:[eI.jsx(h2,{crumbs:[{id:"transactions",label:"Transactions",link:!0,to:"/performance/transactions"},{id:"txnSummary",label:"Transaction Summary",link:!1}]}),eI.jsx("div",{className:"w-11/12 px-6 py-4",children:eI.jsx("h1",{className:"truncate text-2xl font-bold",children:atob(t)})}),eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hv.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 select-none px-6 py-3.5 text-sm font-semibold",e.primary?"w-2/5":"w-[15%]"),children:eI.jsxs("div",{className:E5("flex cursor-pointer items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>e.sortKey&&s(e.sortKey),children:[e.title,e.sortKey&&(a.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",a.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"}))]})},e.id))})}),eI.jsx("tbody",{children:i.map(e=>{var t,n,r,a,s,i,o,l;return eI.jsxs("tr",{className:"hover:bg-primary-900",children:[eI.jsx("td",{className:"text-primary-200 w-2/5 truncate whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:eI.jsx(null,{className:"truncate hover:underline",to:`/explore/traces/${null==(n=null==(t=e.contexts)?void 0:t.trace)?void 0:n.trace_id}/spans/${null==(a=null==(r=e.contexts)?void 0:r.trace)?void 0:a.span_id}`,children:Ti(e.event_id)})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:Tm(e.timestamp-e.start_timestamp)}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:eI.jsx(TC,{date:e.start_timestamp})}),eI.jsx("td",{className:"text-primary-200 w-[15%] whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:eI.jsx(null,{className:"truncate hover:underline",to:`/explore/traces/${null==(i=null==(s=e.contexts)?void 0:s.trace)?void 0:i.trace_id}`,children:Ti(null==(l=null==(o=e.contexts)?void 0:o.trace)?void 0:l.trace_id)})})]},e.event_id)})})]})]}):eI.jsx("div",{className:"text-primary-300 p-6",children:"Looks like there's no transaction recorded matching this query. \uD83E\uDD14"})})}function fc({showAll:e}){let t=Ta(),n=Ts(),r=EF(),{sort:a,toggleSortOrder:s}=hq({defaultSortType:hg.lastSeen}),i=ep.useMemo(()=>{let r={[hg.count]:(e,t)=>e[1].transactions.length-t[1].transactions.length,[hg.lastSeen]:(e,t)=>e[1].lastSeen-t[1].lastSeen},s=r[a.active]||r[hg.lastSeen],i=t.filter(e=>"transaction"===e.type);return Object.entries((e?i:i.filter(e=>{var t,r;let a=null==(r=null==(t=e.contexts)?void 0:t.trace)?void 0:r.trace_id;return!a||n.isLocalToSession(a)})).reduce((e,t)=>(t.transaction&&(t.transaction in e?(e[t.transaction].transactions.push(t),t.start_timestamp&&(e[t.transaction].lastSeen=t.start_timestamp)):e[t.transaction]={transactions:[t],lastSeen:t.start_timestamp}),e),{})).sort((e,t)=>a.asc?s(e,t):s(t,e))},[a,e,t,n]);return eI.jsx(eI.Fragment,{children:0!==i.length?eI.jsx("div",{children:eI.jsxs("table",{className:"divide-primary-700 w-full table-fixed divide-y",children:[eI.jsx("thead",{children:eI.jsx("tr",{children:hy.map(e=>eI.jsx("th",{scope:"col",className:E5("text-primary-100 select-none px-6 py-3.5 text-sm font-semibold",e.primary?"w-3/5":"w-1/5"),children:eI.jsxs("div",{className:E5("flex cursor-pointer items-center gap-1",e.primary?"justify-start":"justify-end"),onClick:()=>e.sortKey&&s(e.sortKey),children:[e.title,e.sortKey&&(a.active===e.sortKey?eI.jsx(hZ,{width:12,height:12,className:E5("fill-primary-300",a.asc?"-translate-y-0.5 rotate-0":"translate-y-0.5 rotate-180")}):eI.jsx(hJ,{width:12,height:12,className:"stroke-primary-300"}))]})},e.id))})}),eI.jsx("tbody",{children:i.map(([e,t])=>eI.jsxs("tr",{className:"hover:bg-primary-900 cursor-pointer",onClick:()=>{r(`/performance/transactions/${btoa(e)}`)},children:[eI.jsx("td",{className:"text-primary-200 w-3/5 truncate whitespace-nowrap px-6 py-4 text-left text-sm font-medium",children:e}),eI.jsx("td",{className:"text-primary-200 w-1/5 whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:eI.jsx(TC,{date:t.lastSeen})}),eI.jsx("td",{className:"text-primary-200 w-1/5 whitespace-nowrap px-6 py-4 text-right text-sm font-medium",children:t.transactions.length})]},e))})]})}):eI.jsx("div",{className:"text-primary-300 p-6",children:"Looks like there's no transactions recorded matching this query. \uD83E\uDD14"})})}let fd=0;function fT(e,t){let n=t.stacktrace||t.stack||"",r=t&&fp.test(t.message)?1:0,a="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(n,r,a)}catch{}return[]}let fp=/Minified React error #\d+;/i;function f_(e){return!!("u">typeof WebAssembly&&"u">typeof WebAssembly.Exception)&&e instanceof WebAssembly.Exception}let fh=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",ff=(e,t,n,r)=>{let a,s;return i=>{t.value>=0&&(i||r)&&((s=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=s,t.rating=fh(t.value,n),e(t))}},fS=()=>`v4-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,fR=(e=!0)=>{let t=ud.performance&&ud.performance.getEntriesByType&&ud.performance.getEntriesByType("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart{let e=fR();return e&&e.activationStart||0},fO=(e,t)=>{let n=fR(),r="navigate";return n&&(ud.document&&ud.document.prerendering||fA()>0?r="prerender":ud.document&&ud.document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:fS(),navigationType:r}},fN=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},fI=e=>{let t=t=>{("pagehide"===t.type||ud.document&&"hidden"===ud.document.visibilityState)&&e(t)};ud.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},fm=e=>{let t=!1;return()=>{t||(e(),t=!0)}},fC=-1,fL=()=>"hidden"!==ud.document.visibilityState||ud.document.prerendering?1/0:0,fg=e=>{"hidden"===ud.document.visibilityState&&fC>-1&&(fC="visibilitychange"===e.type?e.timeStamp:0,fb())},fy=()=>{addEventListener("visibilitychange",fg,!0),addEventListener("prerenderingchange",fg,!0)},fb=()=>{removeEventListener("visibilitychange",fg,!0),removeEventListener("prerenderingchange",fg,!0)},fv=()=>(ud.document&&fC<0&&(fC=fL(),fy()),{get firstHiddenTime(){return fC}}),fD=e=>{ud.document&&ud.document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},fP=[1800,3e3],fM=(e,t={})=>{fD(()=>{let n;let r=fv(),a=fO("FCP"),s=fN("paint",e=>{e.forEach(e=>{"first-contentful-paint"===e.name&&(s.disconnect(),e.startTime{fM(fm(()=>{let n=fO("CLS",0),r,a=0,s=[],i=e=>{e.forEach(e=>{if(!e.hadRecentInput){let t=s[0],n=s[s.length-1];a&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,s.push(e)):(a=e.value,s=[e])}}),a>n.value&&(n.value=a,n.entries=s,r())},o=fN("layout-shift",i);o&&(r=ff(e,n,fU,t.reportAllChanges),fI(()=>{i(o.takeRecords()),r(!0)}),setTimeout(r,0))}))},fw=[100,300],fk=(e,t={})=>{fD(()=>{let n;let r=fv(),a=fO("FID"),s=e=>{e.startTime{e.forEach(s)},o=fN("first-input",i);n=ff(e,a,fw,t.reportAllChanges),o&&fI(fm(()=>{i(o.takeRecords()),o.disconnect()}))})},fG=0,fF=1/0,fB=0,fH=e=>{e.forEach(e=>{e.interactionId&&(fF=Math.min(fF,e.interactionId),fG=(fB=Math.max(fB,e.interactionId))?(fB-fF)/7+1:0)})},fY=()=>E?fG:performance.interactionCount||0,fV=()=>{"interactionCount"in performance||E||(E=fN("event",fH,{type:"event",buffered:!0,durationThreshold:0}))},fW=[],fj=new Map,fX=()=>fY()-0,fK=()=>{let e=Math.min(fW.length-1,Math.floor(fX()/50));return fW[e]},f$=[],fz=e=>{if(f$.forEach(t=>t(e)),!(e.interactionId||"first-input"===e.entryType))return;let t=fW[fW.length-1],n=fj.get(e.interactionId);if(n||fW.length<10||t&&e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===(n.entries[0]&&n.entries[0].startTime)&&n.entries.push(e);else{let t={id:e.interactionId,latency:e.duration,entries:[e]};fj.set(t.id,t),fW.push(t)}fW.sort((e,t)=>t.latency-e.latency),fW.length>10&&fW.splice(10).forEach(e=>fj.delete(e.id))}},fJ=e=>{let t=ud.requestIdleCallback||ud.setTimeout,n=-1;return e=fm(e),ud.document&&"hidden"===ud.document.visibilityState?e():(n=t(e),fI(e)),n},fZ=[200,500],fq=(e,t={})=>{"PerformanceEventTiming"in ud&&"interactionId"in PerformanceEventTiming.prototype&&fD(()=>{let n;fV();let r=fO("INP"),a=e=>{fJ(()=>{e.forEach(fz);let t=fK();t&&t.latency!==r.value&&(r.value=t.latency,r.entries=t.entries,n())})},s=fN("event",a,{durationThreshold:null!=t.durationThreshold?t.durationThreshold:40});n=ff(e,r,fZ,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),fI(()=>{a(s.takeRecords()),n(!0)}))})},fQ=[2500,4e3],f0={},f1=(e,t={})=>{fD(()=>{let n;let r=fv(),a=fO("LCP"),s=e=>{t.reportAllChanges||(e=e.slice(-1)),e.forEach(e=>{e.startTime{f0[a.id]||(s(i.takeRecords()),i.disconnect(),f0[a.id]=!0,n(!0))});["keydown","click"].forEach(e=>{ud.document&&addEventListener(e,()=>fJ(r),{once:!0,capture:!0})}),fI(r)}})},f2=e=>{ud.document&&ud.document.prerendering?fD(()=>f2(e)):ud.document&&"complete"!==ud.document.readyState?addEventListener("load",()=>f2(e),!0):setTimeout(e,0)},f5=(e,t={})=>{let n=fO("TTFB"),r=ff(e,n,null,t.reportAllChanges);f2(()=>{let e=fR();e&&(n.value=Math.max(e.responseStart-fA(),0),n.entries=[e],r(!0))})},f3={},f4={};function f6(e,t){return Sr(e,t),f4[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),fN(e,t=>{f8(e,{entries:t})},t)}(e),f4[e]=!0),Sa(e,t)}function f8(e,t){let n=f3[e];if(!(!n||!n.length))for(let e of n)try{e(t)}catch(e){}}function f7(){return fx(e=>{f8("cls",{metric:e}),u=e},{reportAllChanges:!0})}function f9(){return fk(e=>{f8("fid",{metric:e}),c=e})}function Se(){return f1(e=>{f8("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function St(){return fq(e=>{f8("inp",{metric:e}),p=e})}function Sn(e,t,n,r,a=!1){let s;return Sr(e,t),f4[e]||(s=n(),f4[e]=!0),r&&t({metric:r}),Sa(e,t,a?s:void 0)}function Sr(e,t){f3[e]=f3[e]||[],f3[e].push(t)}function Sa(e,t,n){return()=>{n&&n();let r=f3[e];if(!r)return;let a=r.indexOf(t);-1!==a&&r.splice(a,1)}}function Ss(e){return e/1e3}function Si(){if(!ud.document)return;let e=uL.bind(null,"dom"),t=So(e,!0);ud.document.addEventListener("click",t,!1),ud.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=ud[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(uY(r,"addEventListener",function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},s=r[n]=r[n]||{refCount:0};if(!s.handler){let r=So(e);s.handler=r,t.call(this,n,r,a)}s.refCount++}catch{}return t.call(this,n,r,a)}}),uY(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function So(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(e){try{return e.target}catch{return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||!("INPUT"===r.tagName||"TEXTAREA"===r.tagName||r.isContentEditable)))return;uV(n,"_sentryCaptured",!0),r&&!r._sentryId&&uV(r,"_sentryId",uZ());let a="keypress"===n.type?"input":n.type;(function(e){if(e.type!==h)return!1;try{if(!e.target||e.target._sentryId!==f)return!1}catch{}return!0})(n)||(e({event:n,name:a,global:t}),h=n.type,f=r?r._sentryId:void 0),clearTimeout(_),_=ud.setTimeout(()=>{f=void 0,h=void 0},1e3)}}function Sl(){if(!function(){let e=ud.chrome,t=e&&e.app&&e.app.runtime,n="history"in ud&&!!ud.history.pushState&&!!ud.history.replaceState;return!t&&n}())return;let e=ud.onpopstate;function t(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=S,t=String(n);S=t,uL("history",{from:e,to:t})}return e.apply(this,t)}}ud.onpopstate=function(...t){let n=ud.location.href,r=S;if(S=n,uL("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch{}},uY(ud.history,"pushState",t),uY(ud.history,"replaceState",t)}let SE={};function Su(...e){return(function(e){let t=SE[e];if(t)return t;let n=ud[e];if(du(n))return SE[e]=n.bind(ud);let r=ud.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return n&&(SE[e]=n.bind(ud))})("setTimeout")(...e)}let Sc="__sentry_xhr_v3__";function Sd(e,t,n,r){let a={filename:e,function:""===t?"?":t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==r&&(a.colno=r),a}let ST=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Sp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,S_=/\((\S*)(?::(\d+))(?::(\d+))\)/,Sh=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sf=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,SS=(function(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1])}([30,e=>{let t=ST.exec(e);if(t){let[,e,n,r]=t;return Sd(e,"?",+n,+r)}let n=Sp.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){let e=S_.exec(n[2]);e&&(n[2]=e[1],n[3]=e[2],n[4]=e[3])}let[e,t]=SS(n[1]||"?",n[2]);return Sd(t,e,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,e=>{let t=Sh.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=Sf.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=SS(n,e),Sd(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}),SR="sentryReplaySession",SA="Unable to send Replay";function SO(e){let t,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function SN(e){let t=SO([e,"optionalAccess",e=>e.host]);return SO([t,"optionalAccess",e=>e.shadowRoot])===e}function SI(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function Sm(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,SC).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch{return null}}function SC(e){let t;if("styleSheet"in e)try{t=Sm(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch{}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n-1,SO([this,"access",e=>e.getMeta,"call",t=>t(e),"optionalAccess",e=>e.id])??-1):-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Sg({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function Sy({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function Sb(e){return e.toLowerCase()}function Sv(e){return e.toUpperCase()}let SD="__rrweb_original__";function SP(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sb(t):null}function SM(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function SU(e,t){var n;let r;try{r=new URL(e,(()=>window.location.href,t??window.location.href))}catch{return null}return n=SO([r.pathname.match(/\.([0-9a-z]+)(?:$)/i),"optionalAccess",e=>e[1]]),n??null}let Sx={};function Sw(e){let t=Sx[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return Sx[e]=r.bind(window)}function Sk(...e){return Sw("setTimeout")(...e)}function SG(...e){return Sw("clearTimeout")(...e)}function SF(e){try{return e.contentDocument}catch{}}let SB=1,SH=RegExp("[^a-z0-9-_:]");function SY(){return SB++}let SV=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,SW=/^(?:[a-z+]+:)?\/\//i,Sj=/^www\..*/i,SX=/^(data:)([^,]*),(.*)/i;function SK(e,t){return(e||"").replace(SV,(e,n,r,a,s,i)=>{let o=r||s||i,l=n||a||"";if(!o)return e;if(SW.test(o)||Sj.test(o)||SX.test(o))return`url(${l}${o}${l})`;if("/"===o[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+o}${l})`;let E=t.split("/"),u=o.split("/");for(let e of(E.pop(),u))"."!==e&&(".."===e?E.pop():E.push(e));return`url(${l}${E.join("/")}${l})`})}let S$=/^[^ \t\n\r\u000c]+/,Sz=/^[, \t\n\r\u000c]+/,SJ=new WeakMap;function SZ(e,t){return t&&""!==t.trim()?Sq(e,t):t}function Sq(e,t){let n=SJ.get(e);if(n||(n=e.createElement("a"),SJ.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function SQ(e,t,n,r,a,s){return r&&("src"!==n&&("href"!==n||"use"===t&&"#"===r[0])&&("xlink:href"!==n||"#"===r[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;let a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}let a=[];for(;r(Sz),!(n>=t.length);){let s=r(S$);if(","===s.slice(-1))s=SZ(e,s.substring(0,s.length-1)),a.push(s);else{let r="";s=SZ(e,s);let i=!1;for(;;){let e=t.charAt(n);if(""===e){a.push((s+r).trim());break}if(i)")"===e&&(i=!1);else if(","===e){n+=1,a.push((s+r).trim());break}else"("===e&&(i=!0);r+=e,n+=1}}}return a.join(", ")}(e,r):"style"===n?SK(r,Sq(e)):"object"===t&&"data"===n?SZ(e,r):"function"==typeof s?s(n,r,a):r:SZ(e,r))}function S0(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function S1(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:S1(e.parentNode,t,n,r+1)}function S2(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}return!!(t&&n.matches(t))}catch{return!1}}}function S5(e,t,n,r,a,s){try{let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){let e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let o=-1,l=-1;if(s){if((l=S1(i,S2(r,a)))<0)return!0;o=S1(i,S2(t,n),l>=0?l:1/0)}else{if((o=S1(i,S2(t,n)))<0)return!1;l=S1(i,S2(r,a),o>=0?o:1/0)}return o>=0?!(l>=0)||o<=l:!(l>=0)&&!!s}catch{}return!!s}function S3(e){return null==e?"":e.toLowerCase()}function S4(e,t){let n;let{doc:r,mirror:a,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:T=!1,inlineStylesheet:p=!0,maskInputOptions:_={},maskAttributeFn:h,maskTextFn:f,maskInputFn:S,slimDOMOptions:O,dataURLOptions:N={},inlineImages:I=!1,recordCanvas:m=!1,onSerialize:C,onIframeLoad:L,iframeLoadTimeout:g=5e3,onStylesheetLoad:y,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:v=()=>!1,newlyAddedElement:D=!1}=t,{preserveWhiteSpace:P=!0}=t,M=function(e,t){let{doc:n,mirror:r,blockClass:a,blockSelector:s,unblockSelector:i,maskAllText:o,maskAttributeFn:l,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:T,maskInputOptions:p={},maskTextFn:_,maskInputFn:h,dataURLOptions:f={},inlineImages:S,recordCanvas:O,keepIframeSrcFn:N,newlyAddedElement:I=!1}=t,m=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:Rv.Document,childNodes:[],compatMode:e.compatMode}:{type:Rv.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Rv.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return function(e,t){let n;let{doc:r,blockClass:a,blockSelector:s,unblockSelector:i,inlineStylesheet:o,maskInputOptions:l={},maskAttributeFn:E,maskInputFn:u,dataURLOptions:c={},inlineImages:d,recordCanvas:T,keepIframeSrcFn:p,newlyAddedElement:_=!1,rootId:h,maskAllText:f,maskTextClass:S,unmaskTextClass:O,maskTextSelector:N,unmaskTextSelector:I}=t,m=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}(e,a,s,i),C=function(e){if(e instanceof HTMLFormElement)return"form";let t=Sb(e.tagName);return SH.test(t)?"div":t}(e),L={},g=e.attributes.length;for(let t=0;tt.href===e.href),n=null;t&&(n=Sm(t)),n&&(L.rel=null,L.href=null,L.crossorigin=null,L._cssText=SK(n,t.href))}if("style"===C&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=Sm(e.sheet);t&&(L._cssText=SK(t,Sq(r)))}if("input"===C||"textarea"===C||"select"===C||"option"===C){let t=SP(e),n=SM(e,Sv(C),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=S5(e,S,N,O,I,Sg({type:t,tagName:Sv(C),maskInputOptions:l}));L.value=Sy({isMasked:r,element:e,value:n,maskInputFn:u})}r&&(L.checked=r)}if("option"===C&&(e.selected&&!l.select?L.selected=!0:delete L.selected),"canvas"===C&&T){if("2d"===e.__context)(function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n0!==e))return!1}return!0})(e)||(L.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){let t=e.toDataURL(c.type,c.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(c.type,c.quality)&&(L.rr_dataURL=t)}}if("img"===C&&d){R||(A=(R=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"",n=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{R.width=e.naturalWidth,R.height=e.naturalHeight,A.drawImage(e,0,0),L.rr_dataURL=R.toDataURL(c.type,c.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?L.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===C||"video"===C)&&(L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime),_||(e.scrollLeft&&(L.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(L.rr_scrollTop=e.scrollTop)),m){let{width:t,height:n}=e.getBoundingClientRect();L={class:L.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==C||p(L.src)||(m||SF(e)||(L.rr_src=L.src),delete L.src);try{customElements.get(C)&&(n=!0)}catch{}return{type:Rv.Element,tagName:C,attributes:L,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:m,rootId:h,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:s,unblockSelector:i,inlineStylesheet:T,maskAttributeFn:l,maskInputOptions:p,maskInputFn:h,dataURLOptions:f,inlineImages:S,recordCanvas:O,keepIframeSrcFn:N,newlyAddedElement:I,rootId:m,maskAllText:o,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:s,unmaskTextSelector:i,maskTextFn:o,maskInputOptions:l,maskInputFn:E,rootId:u}=t,c=e.parentNode&&e.parentNode.tagName,d=e.textContent,T="STYLE"===c||void 0,p="SCRIPT"===c||void 0,_="TEXTAREA"===c||void 0;if(T&&d){try{e.nextSibling||e.previousSibling||SO([e,"access",e=>e.parentNode,"access",e=>e.sheet,"optionalAccess",e=>e.cssRules])&&(d=Sm(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}d=SK(d,Sq(t.doc))}p&&(d="SCRIPT_PLACEHOLDER");let h=S5(e,r,s,a,i,n);return T||p||_||!d||!h||(d=o?o(d,e.parentElement):d.replace(/[\S]/g,"*")),_&&d&&(l.textarea||h)&&(d=E?E(d,e.parentNode):d.replace(/[\S]/g,"*")),"OPTION"===c&&d&&(d=Sy({isMasked:S5(e,r,s,a,i,Sg({type:null,tagName:c,maskInputOptions:l})),element:e,value:d,maskInputFn:E})),{type:Rv.Text,textContent:d||"",isStyle:T,rootId:u}}(e,{doc:n,maskAllText:o,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,maskTextFn:_,maskInputOptions:p,maskInputFn:h,rootId:m});case e.CDATA_SECTION_NODE:return{type:Rv.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:Rv.Comment,textContent:e.textContent||"",rootId:m};default:return!1}}(e,{doc:r,mirror:a,blockClass:s,blockSelector:i,maskAllText:l,unblockSelector:o,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:_,maskAttributeFn:h,maskTextFn:f,maskInputFn:S,dataURLOptions:N,inlineImages:I,recordCanvas:m,keepIframeSrcFn:v,newlyAddedElement:D});if(!M)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!(O.comment&&M.type===Rv.Comment||M.type===Rv.Element&&(O.script&&("script"===M.tagName||"link"===M.tagName&&("preload"===M.attributes.rel||"modulepreload"===M.attributes.rel)||"link"===M.tagName&&"prefetch"===M.attributes.rel&&"string"==typeof M.attributes.href&&"js"===SU(M.attributes.href))||O.headFavicon&&("link"===M.tagName&&"shortcut icon"===M.attributes.rel||"meta"===M.tagName&&(S3(M.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===S3(M.attributes.name)||"icon"===S3(M.attributes.rel)||"apple-touch-icon"===S3(M.attributes.rel)||"shortcut icon"===S3(M.attributes.rel)))||"meta"===M.tagName&&(O.headMetaDescKeywords&&S3(M.attributes.name).match(/^description|keywords$/)||O.headMetaSocial&&(S3(M.attributes.property).match(/^(og|twitter|fb):/)||S3(M.attributes.name).match(/^(og|twitter):/)||"pinterest"===S3(M.attributes.name))||O.headMetaRobots&&("robots"===S3(M.attributes.name)||"googlebot"===S3(M.attributes.name)||"bingbot"===S3(M.attributes.name))||O.headMetaHttpEquiv&&void 0!==M.attributes["http-equiv"]||O.headMetaAuthorship&&("author"===S3(M.attributes.name)||"generator"===S3(M.attributes.name)||"framework"===S3(M.attributes.name)||"publisher"===S3(M.attributes.name)||"progid"===S3(M.attributes.name)||S3(M.attributes.property).match(/^article:/)||S3(M.attributes.property).match(/^product:/))||O.headMetaVerification&&("google-site-verification"===S3(M.attributes.name)||"yandex-verification"===S3(M.attributes.name)||"csrf-token"===S3(M.attributes.name)||"p:domain_verify"===S3(M.attributes.name)||"verify-v1"===S3(M.attributes.name)||"verification"===S3(M.attributes.name)||"shopify-checkout-api-token"===S3(M.attributes.name)))))&&(P||M.type!==Rv.Text||M.isStyle||M.textContent.replace(/^\s+|\s+$/gm,"").length)?SY():-2;let U=Object.assign(M,{id:n});if(a.add(e,U),-2===n)return null;C&&C(e);let x=!T;if(U.type===Rv.Element){x=x&&!U.needBlock,delete U.needBlock;let t=e.shadowRoot;t&&SI(t)&&(U.isShadowHost=!0)}if((U.type===Rv.Document||U.type===Rv.Element)&&x){O.headWhitespace&&U.type===Rv.Element&&"head"===U.tagName&&(P=!1);let t={doc:r,mirror:a,blockClass:s,blockSelector:i,maskAllText:l,unblockSelector:o,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:T,inlineStylesheet:p,maskInputOptions:_,maskAttributeFn:h,maskTextFn:f,maskInputFn:S,slimDOMOptions:O,dataURLOptions:N,inlineImages:I,recordCanvas:m,preserveWhiteSpace:P,onSerialize:C,onIframeLoad:L,iframeLoadTimeout:g,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:v};for(let n of Array.from(e.childNodes)){let e=S4(n,t);e&&U.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=S4(n,t);r&&(SI(e.shadowRoot)&&(r.isShadow=!0),U.childNodes.push(r))}}return e.parentNode&&SN(e.parentNode)&&SI(e.parentNode)&&(U.isShadow=!0),U.type===Rv.Element&&"iframe"===U.tagName&&function(e,t,n){let r=e.contentWindow;if(!r)return;let a=!1,s;try{s=r.document.readyState}catch{return}if("complete"!==s){let r=Sk(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{SG(r),a=!0,t()});return}let i="about:blank";if(r.location.href!==i||e.src===i||""===e.src)return Sk(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=SF(e);if(t&&L){let n=S4(t,{doc:t,mirror:a,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:_,maskAttributeFn:h,maskTextFn:f,maskInputFn:S,slimDOMOptions:O,dataURLOptions:N,inlineImages:I,recordCanvas:m,preserveWhiteSpace:P,onSerialize:C,onIframeLoad:L,iframeLoadTimeout:g,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:v});n&&L(e,n)}},g),U.type===Rv.Element&&"link"===U.tagName&&"string"==typeof U.attributes.rel&&("stylesheet"===U.attributes.rel||"preload"===U.attributes.rel&&"string"==typeof U.attributes.href&&"css"===SU(U.attributes.href))&&function(e,t,n){let r=!1,a;try{a=e.sheet}catch{return}if(a)return;let s=Sk(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{SG(s),r=!0,t()})}(e,()=>{if(y){let t=S4(e,{doc:r,mirror:a,blockClass:s,blockSelector:i,unblockSelector:o,maskAllText:l,maskTextClass:E,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:_,maskAttributeFn:h,maskTextFn:f,maskInputFn:S,slimDOMOptions:O,dataURLOptions:N,inlineImages:I,recordCanvas:m,preserveWhiteSpace:P,onSerialize:C,onIframeLoad:L,iframeLoadTimeout:g,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:v});t&&y(e,t)}},b),U}function S6(e){let t,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}function S8(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let S7=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`,S9={map:{},getId:()=>(console.error(S7),-1),getNode:()=>(console.error(S7),null),removeNodeFromMap(){console.error(S7)},has:()=>(console.error(S7),!1),reset(){console.error(S7)}};function Re(e,t,n={}){let r=null,a=0;return function(...s){let i=Date.now();a||!1!==n.leading||(a=i);let o=t-(i-a),l=this;o<=0||o>t?(r&&(function(...e){Rf("clearTimeout")(...e)}(r),r=null),a=i,e.apply(l,s)):r||!1===n.trailing||(r=RS(()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(l,s)},o))}}function Rt(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(S9=new Proxy(S9,{get:(e,t,n)=>("map"===t&&console.error(S7),Reflect.get(e,t,n))}));let Rn=Date.now;function Rr(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:S6([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollLeft])||S6([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollLeft])||S6([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:S6([t,"optionalAccess",e=>e.documentElement,"access",e=>e.scrollTop])||S6([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.parentElement,"optionalAccess",e=>e.scrollTop])||S6([t,"optionalAccess",e=>e.body,"optionalAccess",e=>e.scrollTop])||0}}function Ra(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Rs(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ri(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function Ro(e,t,n,r,a){if(!e)return!1;let s=Ri(e);if(!s)return!1;let i=S2(t,n);if(!a){let e=r&&s.matches(r);return i(s)&&!e}let o=S1(s,i),l=-1;return!(o<0)&&(r&&(l=S1(s,S2(null,r))),o>-1&&l<0||oe.shadowRoot])}/[1-9][0-9]{12}/.test(Date.now().toString())||(Rn=()=>new Date().getTime());class RT{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){var t;return t=this.styleIDMap.get(e),t??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Rp(e){let t=null;return S6([e,"access",e=>e.getRootNode,"optionalCall",e=>e(),"optionalAccess",e=>e.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function R_(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t=e,n;for(;n=Rp(t);)t=n;return t}(e);return t.contains(n)}(e))}let Rh={};function Rf(e){let t=Rh[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch{}return Rh[e]=r.bind(window)}function RS(...e){return Rf("setTimeout")(...e)}var RR,RA,RO,RN,RI,Rm,RC,RL,Rg,Ry,Rb,Rv,RD,RP=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(RP||{}),RM=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(RM||{}),RU=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(RU||{}),Rx=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Rx||{});function Rw(e){try{return e.contentDocument}catch{}}(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(RD||(RD={})),function(e){e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(Om||(Om={}));class Rk{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;nn.call(t,...e)),t=void 0)}return n}([t,"optionalAccess",e=>e.next])||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let RG=(e,t)=>`${e}@${t}`;class RF{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new Rk,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!R_(a))return;let s=SN(a.parentNode)?this.mirror.getId(Rp(a)):this.mirror.getId(a.parentNode),i=r(a);if(-1===s||-1===i)return n.addNode(a);let o=S4(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{Ru(e,this.mirror)&&!Ro(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),Rc(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Rd(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{Ro(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)}});o&&(e.push({parentId:s,nextId:i,node:o}),t.add(o.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)RH(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||a(e);for(let e of this.addedSet)!RY(this.droppedSet,e)&&!RH(this.removes,e,this.mirror)||RY(this.movedSet,e)?a(e):this.droppedSet.add(e);let s=null;for(;n.length;){let e=null;if(s){let t=this.mirror.getId(s.value.parentNode),n=r(s.value);-1!==t&&-1!==n&&(e=s)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}s=e.previous,n.removeNode(e.value),a(e.value)}let i={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(i))},this.processMutation=e=>{if(!Rl(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;Ro(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:S5(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ri(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=SP(t),a=t.tagName;r=SM(t,a,n);let s=Sg({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=Sy({isMasked:S5(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,s),element:t,value:r,maskInputFn:this.maskInputFn})}if(Ro(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(Rw(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!S0(t.tagName,n)&&(a.attributes[n]=SQ(this.doc,Sb(t.tagName),Sb(n),r,t,this.maskAttributeFn),"style"===n)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement("span");for(let r of(e.oldValue&&n.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(r),s=t.style.getPropertyPriority(r);e!==n.style.getPropertyValue(r)||s!==n.style.getPropertyPriority(r)?""===s?a.styleDiff[r]=e:a.styleDiff[r]=[e,s]:a._unchangedStyles[r]=[e,s]}for(let e of Array.from(n.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(Ro(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=SN(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Ro(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Rl(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(RB(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(SN(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[RG(n,r)]?RB(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(SN(e.target)&&SI(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(Rl(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[RG(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Ro(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(e=>this.genAdds(e)),Rd(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=e[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function RB(e,t){e.delete(t),t.childNodes.forEach(t=>RB(e,t))}function RH(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function RY(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let RV=e=>O?(...t)=>{try{return e(...t)}catch(e){if(O&&!0===O(e))return()=>{};throw e}}:e;function RW(e){let t,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}let Rj=[];function RX(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function RK(e,t){let n=new RF;Rj.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,a=RW([window,"optionalAccess",e=>e.Zone,"optionalAccess",e=>e.__symbol__,"optionalCall",e=>e("MutationObserver")]);a&&window[a]&&(r=window[a]);let s=new r(RV(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return s.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),s}function R$({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:s,sampling:i}){return S8("scroll",RV(Re(RV(i=>{let o=RX(i);if(!o||Ro(o,r,a,s,!0))return;let l=n.getId(o);if(o===t&&t.defaultView){let n=Rr(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:o.scrollLeft,y:o.scrollTop})}),i.scroll||100)),t)}let Rz=["INPUT","TEXTAREA","SELECT"],RJ=new WeakMap;function RZ(e){var t;return t=[],R1("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||R1("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||R1("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||R1("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?t.unshift(Array.from(e.parentRule.cssRules).indexOf(e)):e.parentStyleSheet&&t.unshift(Array.from(e.parentStyleSheet.cssRules).indexOf(e)),t}function Rq(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function RQ({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let a="#document"===n.nodeName?RW([n,"access",e=>e.defaultView,"optionalAccess",e=>e.Document]):RW([n,"access",e=>e.ownerDocument,"optionalAccess",e=>e.defaultView,"optionalAccess",e=>e.ShadowRoot]),s=RW([a,"optionalAccess",e=>e.prototype])?Object.getOwnPropertyDescriptor(RW([a,"optionalAccess",e=>e.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&s?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get(){return RW([s,"access",e=>e.get,"optionalAccess",e=>e.call,"call",e=>e(this)])},set(e){let n=RW([s,"access",e=>e.set,"optionalAccess",e=>e.call,"call",t=>t(this,e)]);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch{}return n}}),RV(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:s.configurable,enumerable:s.enumerable,get:s.get,set:s.set})})):()=>{}}function R0(e,t={}){let n;let r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=RK(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};let a="number"==typeof t.mousemove?t.mousemove:50,s="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,i=[],o,l=Re(RV(t=>{let n=Date.now()-o;e(i.map(e=>(e.timeOffset-=n,e)),t),i=[],o=null}),s),E=RV(Re(RV(e=>{let t=RX(e),{clientX:n,clientY:a}=RE(e)?e.changedTouches[0]:e;o||(o=Rn()),i.push({x:n,y:a,id:r.getId(t),timeOffset:Rn()-o}),l("u">typeof DragEvent&&e instanceof DragEvent?RM.Drag:e instanceof MouseEvent?RM.MouseMove:RM.TouchMove)}),a,{trailing:!1})),u=[S8("mousemove",E,n),S8("touchmove",E,n),S8("drag",E,n)];return RV(()=>{u.forEach(e=>e())})}(e),s=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:s,sampling:i}){if(!1===i.mouseInteraction)return()=>{};let o=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,l=[],E=null,u=t=>i=>{let o=RX(i);if(Ro(o,r,a,s,!0))return;let l=null,u=t;if("pointerType"in i){switch(i.pointerType){case"mouse":l=Rx.Mouse;break;case"touch":l=Rx.Touch;break;case"pen":l=Rx.Pen}l===Rx.Touch&&(RU[t]===RU.MouseDown?u="TouchStart":RU[t]===RU.MouseUp&&(u="TouchEnd"))}else RE(i)&&(l=Rx.Touch);null!==l?(E=l,(u.startsWith("Touch")&&l===Rx.Touch||u.startsWith("Mouse")&&l===Rx.Mouse)&&(l=null)):RU[t]===RU.Click&&(l=E,E=null);let c=RE(i)?i.changedTouches[0]:i;if(!c)return;let d=n.getId(o),{clientX:T,clientY:p}=c;RV(e)({type:RU[u],id:d,x:T,y:p,...null!==l&&{pointerType:l}})};return Object.keys(RU).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==o[e]).forEach(e=>{let n=Sb(e),r=u(e);if(window.PointerEvent)switch(RU[e]){case RU.MouseDown:case RU.MouseUp:n=n.replace("mouse","pointer");break;case RU.TouchStart:case RU.TouchEnd:return}l.push(S8(n,r,t))}),RV(()=>{l.forEach(e=>e())})}(e),i=R$(e),o=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return S8("resize",RV(Re(RV(()=>{let t=Ra(),a=Rs();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:s,ignoreClass:i,ignoreSelector:o,maskInputOptions:l,maskInputFn:E,sampling:u,userTriggeredOnInput:c,maskTextClass:d,unmaskTextClass:T,maskTextSelector:p,unmaskTextSelector:_}){function h(e){let n=RX(e),u=e.isTrusted,h=n&&Sv(n.tagName);if("OPTION"===h&&(n=n.parentElement),!n||!h||0>Rz.indexOf(h)||Ro(n,r,a,s,!0))return;let S=n;if(S.classList.contains(i)||o&&S.matches(o))return;let R=SP(n),A=SM(S,h,R),O=!1,N=Sg({maskInputOptions:l,tagName:h,type:R}),I=S5(n,d,p,T,_,N);("radio"===R||"checkbox"===R)&&(O=n.checked),A=Sy({isMasked:I,element:n,value:A,maskInputFn:E}),f(n,c?{text:A,isChecked:O,userTriggered:u}:{text:A,isChecked:O});let m=n.name;"radio"===R&&m&&O&&t.querySelectorAll(`input[type="radio"][name="${m}"]`).forEach(e=>{if(e!==n){let t=Sy({isMasked:I,element:e,value:SM(e,h,R),maskInputFn:E});f(e,c?{text:t,isChecked:!O,userTriggered:!1}:{text:t,isChecked:!O})}})}function f(t,r){let a=RJ.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){RJ.set(t,r);let a=n.getId(t);RV(e)({...r,id:a})}}let S=("last"===u.input?["change"]:["input","change"]).map(e=>S8(e,RV(h),t)),R=t.defaultView;if(!R)return()=>{S.forEach(e=>e())};let A=R.Object.getOwnPropertyDescriptor(R.HTMLInputElement.prototype,"value"),O=[[R.HTMLInputElement.prototype,"value"],[R.HTMLInputElement.prototype,"checked"],[R.HTMLSelectElement.prototype,"value"],[R.HTMLTextAreaElement.prototype,"value"],[R.HTMLSelectElement.prototype,"selectedIndex"],[R.HTMLOptionElement.prototype,"selected"]];return A&&A.set&&S.push(...O.map(e=>(function e(t,n,r,a,s=window){let i=s.Object.getOwnPropertyDescriptor(t,n);return s.Object.defineProperty(t,n,a?r:{set(e){RS(()=>{r.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,n,i||{},!0)})(e[0],e[1],{set(){RV(h)({target:this,isTrusted:!1})}},!1,R))),RV(()=>{S.forEach(e=>e())})}(e),E=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:s,doc:i}){let o=RV(i=>Re(RV(s=>{let o=RX(s);if(!o||Ro(o,t,n,r,!0))return;let{currentTime:l,volume:E,muted:u,playbackRate:c}=o;e({type:i,id:a.getId(o),currentTime:l,volume:E,muted:u,playbackRate:c})}),s.media||500)),l=[S8("play",o(0),i),S8("pause",o(1),i),S8("seeked",o(2),i),S8("volumechange",o(3),i),S8("ratechange",o(4),i)];return RV(()=>{l.forEach(e=>e())})}(e),u=()=>{},c=()=>{},d=()=>{},T=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let a,s;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:RV((r,a,s)=>{let[i,o]=s,{id:l,styleId:E}=Rq(a,t,n.styleMirror);return(l&&-1!==l||E&&-1!==E)&&e({id:l,styleId:E,adds:[{rule:i,index:o}]}),r.apply(a,s)})});let o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:RV((r,a,s)=>{let[i]=s,{id:o,styleId:l}=Rq(a,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:i}]}),r.apply(a,s)})}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:RV((r,a,s)=>{let[i]=s,{id:o,styleId:l}=Rq(a,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replace:i}),r.apply(a,s)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:RV((r,a,s)=>{let[i]=s,{id:o,styleId:l}=Rq(a,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,replaceSync:i}),r.apply(a,s)})}));let l={};R2("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(R2("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),R2("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),R2("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let E={};return Object.entries(l).forEach(([r,a])=>{E[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(E[r].insertRule,{apply:RV((r,a,s)=>{let[i,o]=s,{id:l,styleId:E}=Rq(a.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||E&&-1!==E)&&e({id:l,styleId:E,adds:[{rule:i,index:[...RZ(a),o||0]}]}),r.apply(a,s)})}),a.prototype.deleteRule=new Proxy(E[r].deleteRule,{apply:RV((r,a,s)=>{let[i]=s,{id:o,styleId:l}=Rq(a.parentStyleSheet,t,n.styleMirror);return(o&&-1!==o||l&&-1!==l)&&e({id:o,styleId:l,removes:[{index:[...RZ(a),i]}]}),r.apply(a,s)})})}),RV(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=E[e].insertRule,t.prototype.deleteRule=E[e].deleteRule})})}(e,{win:r}),c=RQ(e,e.doc),d=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){let s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:RV((a,i,o)=>{let[l,E,u]=o;if(n.has(l))return s.apply(i,[l,E,u]);let{id:c,styleId:d}=Rq(RW([i,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(c&&-1!==c||d&&-1!==d)&&e({id:c,styleId:d,set:{property:l,value:E,priority:u},index:RZ(i.parentRule)}),a.apply(i,o)})});let i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:RV((a,s,o)=>{let[l]=o;if(n.has(l))return i.apply(s,[l]);let{id:E,styleId:u}=Rq(RW([s,"access",e=>e.parentRule,"optionalAccess",e=>e.parentStyleSheet]),t,r.styleMirror);return(E&&-1!==E||u&&-1!==u)&&e({id:E,styleId:u,remove:{property:l},index:RZ(s.parentRule)}),a.apply(s,o)})}),RV(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:r}),e.collectFonts&&(T=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(e,t,n){let r=new s(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let i=Rt(t.fonts,"add",function(t){return function(n){return RS(RV(()=>{let t=a.get(n);t&&(e(t),a.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=s}),r.push(i),RV(()=>{r.forEach(e=>e())})}(e)));let p=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:s,selectionCb:i}=e,o=!0,l=RV(()=>{let e=t.getSelection();if(!e||o&&RW([e,"optionalAccess",e=>e.isCollapsed]))return;o=e.isCollapsed||!1;let l=[],E=e.rangeCount||0;for(let t=0;t{}}(e),h=[];for(let t of e.plugins)h.push(t.observer(t.callback,r,t.options));return RV(()=>{Rj.forEach(e=>e.reset()),RW([n,"optionalAccess",e=>e.disconnect,"call",e=>e()]),a(),s(),i(),o(),l(),E(),u(),c(),d(),T(),p(),_(),h.forEach(e=>e())})}function R1(e){return"u">typeof window[e]}function R2(e){return!!("u">typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class R5{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let a=n||this.getIdToRemoteIdMap(e),s=r||this.getRemoteIdToIdMap(e),i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),s.set(i,t)),i}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:r.get(t)||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}function R3(e){let t,n=e[0],r=1;for(;rn.call(t,...e)),t=void 0)}return n}class R4{constructor(){this.crossOriginIframeMirror=new R5(SY),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class R6{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new R5(SY),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new R5(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),R3([this,"access",e=>e.loadListener,"optionalCall",t=>t(e)]);let n=Rw(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case RP.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:RP.IncrementalSnapshot,data:{source:RM.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case RP.Meta:case RP.Load:case RP.DomContentLoaded:break;case RP.Plugin:return t;case RP.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case RP.IncrementalSnapshot:switch(t.data.source){case RM.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case RM.Drag:case RM.TouchMove:case RM.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case RM.ViewportResize:return!1;case RM.MediaInteraction:case RM.MouseInteraction:case RM.Scroll:case RM.CanvasMutation:case RM.Input:return this.replaceIds(t.data,e,["id"]),t;case RM.StyleSheetRule:case RM.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case RM.Font:return t;case RM.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case RM.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),R3([t,"access",e=>e.data,"access",e=>e.styles,"optionalAccess",e=>e.forEach,"call",t=>t(t=>{this.replaceStyleIds(t,e,["styleId"])})]),t}}return!1}replace(e,t,n,r){for(let a of r)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===Rv.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class R8{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class R7{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!SI(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=RK({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(R$({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),RS(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(RQ({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=Rw(e),n=function(e){try{return e.contentWindow}catch{}}(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(Rt(e.prototype,"attachShadow",function(e){return function(r){let a=e.call(this,r);return this.shadowRoot&&R_(this)&&n.addShadowRoot(this.shadowRoot,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class R9{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class Ae{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new RT,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:SC(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class At{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){Rf("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=d_([e,"access",e=>e.contentWindow,"optionalAccess",e=>e.Array,"access",e=>e.from])||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let An=new SL;function Ar(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,unblockSelector:i=null,ignoreClass:o="rr-ignore",ignoreSelector:l=null,maskAllText:E=!1,maskTextClass:u="rr-mask",unmaskTextClass:c=null,maskTextSelector:d=null,unmaskTextSelector:T=null,inlineStylesheet:p=!0,maskAllInputs:_,maskInputOptions:h,slimDOMOptions:f,maskAttributeFn:S,maskInputFn:R,maskTextFn:A,maxCanvasSize:m=null,packFn:C,sampling:L={},dataURLOptions:g={},mousemoveWait:y,recordDOM:b=!0,recordCanvas:v=!1,recordCrossOriginIframes:D=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:U=!1,inlineImages:x=!1,plugins:w,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:G=new Set([]),errorHandler:F,onMutation:B,getCanvasManager:H}=e;O=F;let Y=!D||window.parent===window,V=!1;if(!Y)try{window.parent.document&&(V=!1)}catch{V=!0}if(Y&&!t)throw Error("emit function is required");if(!Y&&!V)return()=>{};void 0!==y&&void 0===L.mousemove&&(L.mousemove=y),An.reset();let W=!0===_?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==h?h:{},j=!0===f||"all"===f?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===f,headMetaDescKeywords:"all"===f}:f||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode);return!1})}();let X,K=0,$=e=>{for(let t of w||[])t.eventProcessor&&(e=t.eventProcessor(e));return C&&!V&&(e=C(e)),e};N=(e,a)=>{if(e.timestamp=Rn(),d_([Rj,"access",e=>e[0],"optionalAccess",e=>e.isFrozen,"call",e=>e()])&&e.type!==RP.FullSnapshot&&!(e.type===RP.IncrementalSnapshot&&e.data.source===RM.Mutation)&&Rj.forEach(e=>e.unfreeze()),Y)d_([t,"optionalCall",t=>t($(e),a)]);else if(V){let t={type:"rrweb",event:$(e),origin:window.location.origin,isCheckout:a};window.parent.postMessage(t,"*")}if(e.type===RP.FullSnapshot)X=e,K=0;else if(e.type===RP.IncrementalSnapshot){if(e.data.source===RM.Mutation&&e.data.isAttachIframe)return;K++;let t=r&&K>=r,a=n&&X&&e.timestamp-X.timestamp>n;(t||a)&&er(!0)}};let z=e=>{N({type:RP.IncrementalSnapshot,data:{source:RM.Mutation,...e}})},J=e=>N({type:RP.IncrementalSnapshot,data:{source:RM.Scroll,...e}}),Z=e=>N({type:RP.IncrementalSnapshot,data:{source:RM.CanvasMutation,...e}}),q=new Ae({mutationCb:z,adoptedStyleSheetCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new R4:new R6({mirror:An,mutationCb:z,stylesheetManager:q,recordCrossOriginIframes:D,wrappedEmit:N});for(let e of w||[])e.getMirror&&e.getMirror({nodeMirror:An,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});let ee=new At,et=function(e,t){try{return e?e(t):new R9}catch{return console.warn("Unable to initialize CanvasManager"),new R9}}(H,{mirror:An,win:window,mutationCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.CanvasMutation,...e}}),recordCanvas:v,blockClass:a,blockSelector:s,unblockSelector:i,maxCanvasSize:m,sampling:L.canvas,dataURLOptions:g,errorHandler:F}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new R8:new R7({mutationCb:z,scrollCb:J,bypassOptions:{onMutation:B,blockClass:a,blockSelector:s,unblockSelector:i,maskAllText:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:T,inlineStylesheet:p,maskInputOptions:W,dataURLOptions:g,maskAttributeFn:S,maskTextFn:A,maskInputFn:R,recordCanvas:v,inlineImages:x,sampling:L,slimDOMOptions:j,iframeManager:Q,stylesheetManager:q,canvasManager:et,keepIframeSrcFn:k,processedNodeManager:ee},mirror:An}),er=(e=!1)=>{if(!b)return;N({type:RP.Meta,data:{href:window.location.href,width:Rs(),height:Ra()}},e),q.reset(),en.init(),Rj.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new SL,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:s=null,maskAllText:i=!1,maskTextClass:o="rr-mask",unmaskTextClass:l=null,maskTextSelector:E=null,unmaskTextSelector:u=null,inlineStylesheet:c=!0,inlineImages:d=!1,recordCanvas:T=!1,maskAllInputs:p=!1,maskAttributeFn:_,maskTextFn:h,maskInputFn:f,slimDOM:S=!1,dataURLOptions:R,preserveWhiteSpace:A,onSerialize:O,onIframeLoad:N,iframeLoadTimeout:I,onStylesheetLoad:m,stylesheetLoadTimeout:C,keepIframeSrcFn:L=()=>!1}=t;return S4(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:s,maskAllText:i,maskTextClass:o,unmaskTextClass:l,maskTextSelector:E,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:c,maskInputOptions:!0===p?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===p?{}:p,maskAttributeFn:_,maskTextFn:h,maskInputFn:f,slimDOMOptions:!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===S,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===S?{}:S,dataURLOptions:R,inlineImages:d,recordCanvas:T,preserveWhiteSpace:A,onSerialize:O,onIframeLoad:N,iframeLoadTimeout:I,onStylesheetLoad:m,stylesheetLoadTimeout:C,keepIframeSrcFn:L,newlyAddedElement:!1})}(document,{mirror:An,blockClass:a,blockSelector:s,unblockSelector:i,maskAllText:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:T,inlineStylesheet:p,maskAllInputs:W,maskAttributeFn:S,maskInputFn:R,maskTextFn:A,slimDOM:j,dataURLOptions:g,recordCanvas:v,inlineImages:x,onSerialize:e=>{Ru(e,An)&&Q.addIframe(e),Rc(e,An)&&q.trackLinkElement(e),Rd(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{q.attachLinkElement(e,t)},keepIframeSrcFn:k});if(!t)return console.warn("Failed to snapshot the document");N({type:RP.FullSnapshot,data:{node:t,initialOffset:Rr(window)}}),Rj.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&q.adoptStyleSheets(document.adoptedStyleSheets,An.getId(document))};I=er;try{let e=[],t=e=>RV(R0)({onMutation:B,mutationCb:z,mousemoveCb:(e,t)=>N({type:RP.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.MouseInteraction,...e}}),scrollCb:J,viewportResizeCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.ViewportResize,...e}}),inputCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.Input,...e}}),mediaInteractionCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.MediaInteraction,...e}}),styleSheetRuleCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.StyleSheetRule,...e}}),styleDeclarationCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.StyleDeclaration,...e}}),canvasMutationCb:Z,fontCb:e=>N({type:RP.IncrementalSnapshot,data:{source:RM.Font,...e}}),selectionCb:e=>{N({type:RP.IncrementalSnapshot,data:{source:RM.Selection,...e}})},customElementCb:e=>{N({type:RP.IncrementalSnapshot,data:{source:RM.CustomElement,...e}})},blockClass:a,ignoreClass:o,ignoreSelector:l,maskAllText:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:T,maskInputOptions:W,inlineStylesheet:p,sampling:L,recordDOM:b,recordCanvas:v,inlineImages:x,userTriggeredOnInput:M,collectFonts:U,doc:e,maskAttributeFn:S,maskInputFn:R,maskTextFn:A,keepIframeSrcFn:k,blockSelector:s,unblockSelector:i,slimDOMOptions:j,dataURLOptions:g,mirror:An,iframeManager:Q,stylesheetManager:q,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:G,plugins:d_([w,"optionalAccess",e=>e.filter,"call",e=>e(e=>e.observer),"optionalAccess",e=>e.map,"call",e=>e(e=>({observer:e.observer,options:e.options,callback:t=>N({type:RP.Plugin,data:{plugin:e.name,payload:t}})}))])||[]},{});Q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(S8("DOMContentLoaded",()=>{N({type:RP.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(S8("load",()=>{N({type:RP.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),I=void 0,O=void 0}}catch(e){console.warn(e)}}function Aa(e){return e>0x2540be3ff?e:1e3*e}function As(e){return e>0x2540be3ff?e/1e3:e}function Ai(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:RP.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:cK(t,10,1e3)}}),"console"===t.category)))}function Ao(e){return e.closest("button,a")||e}function Al(e){let t=AE(e);return t&&t instanceof Element?Ao(t):t}function AE(e){return"object"==typeof e&&e&&"target"in e?e.target:e}Ar.mirror=An,Ar.takeFullSnapshot=function(e){if(!I)throw Error("please take full snapshot after start recording");I(e)};let Au=new Set([RM.Mutation,RM.StyleSheetRule,RM.StyleDeclaration,RM.AdoptedStyleSheet,RM.CanvasMutation,RM.Selection,RM.MediaInteraction]);class Ac{constructor(e,t,n=Ai){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=AT()},m||(m=[],uY(ud,"open",function(e){return function(...t){if(m)try{m.forEach(e=>e())}catch{}return e.apply(ud,t)}})),m.push(e),()=>{let t=m?m.indexOf(e):-1;t>-1&&m.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n;if(n=this._ignoreSelector,!Ad.includes(t.tagName)||"INPUT"===t.tagName&&!["submit","button"].includes(t.getAttribute("type")||"")||"A"===t.tagName&&(t.hasAttribute("download")||t.hasAttribute("target")&&"_self"!==t.getAttribute("target"))||n&&t.matches(n)||!(e.data&&"number"==typeof e.data.nodeId&&e.timestamp))return;let r={timestamp:As(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===r.node&&1>Math.abs(e.timestamp-r.timestamp))||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=As(e)}registerScroll(e=Date.now()){this._lastScroll=As(e)}registerClick(e){let t=Ao(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=AT();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:s}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.slowClickDetected",data:{...s.data,url:ud.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:"default",message:s.message,timestamp:s.timestamp,category:"ui.multiClick",data:{...s.data,url:ud.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Su(()=>this._checkClicks(),1e3)}}let Ad=["A","BUTTON","INPUT"];function AT(){return Date.now()/1e3}function Ap(e){return{timestamp:Date.now()/1e3,type:"default",...e}}!function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"}(OC||(OC={}));let A_=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]),Ah=e=>t=>{if(!e.isEnabled())return;let n=function(e){let{target:t,message:n}=function(e){let t="click"===e.name,n,r=null;try{r=t?Al(e.event):AE(e.event),n=uF(r,{maxStringLength:200})||""}catch{n=""}return{target:r,message:n}}(e);return Ap({category:`ui.${e.name}`,...Af(t,n)})}(t);if(!n)return;let r="click"===t.name,a=r?t.event:void 0;r&&e.clickDetector&&a&&a.target&&!a.altKey&&!a.metaKey&&!a.ctrlKey&&!a.shiftKey&&function(e,t,n){e.handleClick(t,n)}(e.clickDetector,n,Al(t.event)),Ai(e,n)};function Af(e,t){let n=Ar.mirror.getId(e),r=n&&Ar.mirror.getNode(n),a=r&&Ar.mirror.getMeta(r),s=a&&a.type===OC.Element?a:null;return{message:t,data:s?{nodeId:n,node:{id:n,tagName:s.tagName,textContent:Array.from(s.childNodes).map(e=>e.type===OC.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(A_.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(s.attributes)}}:{}}}let AS={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:s,decodedBodySize:i,encodedBodySize:o,responseStatus:l,transferSize:E}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:AO(s),end:AO(a),name:r,data:{size:E,statusCode:l,decodedBodySize:i,encodedBodySize:o}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:a}=e,s=AO(a);return{type:n,name:r,start:s,end:s+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:s,encodedBodySize:i,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,domInteractive:E,loadEventStart:u,loadEventEnd:c,redirectCount:d,startTime:T,transferSize:p,type:_}=e;return 0===a?null:{type:`${t}.${_}`,start:AO(T),end:AO(s),name:n,data:{size:p,decodedBodySize:r,encodedBodySize:i,duration:a,domInteractive:E,domContentLoadedEventStart:o,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:c,domComplete:s,redirectCount:d}}}};function AR(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function AA(e){let t=AS[e.entryType];return t?t(e):null}function AO(e){return((uJ||ud.performance.timeOrigin)+e)/1e3}function AN(e){let t=e.entries[e.entries.length-1];return AL(e,"largest-contentful-paint",t&&t.element?[t.element]:void 0)}function AI(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=Ar.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return AL(e,"cumulative-layout-shift",n,t)}function Am(e){let t=e.entries[e.entries.length-1];return AL(e,"first-input-delay",t&&t.target?[t.target]:void 0)}function AC(e){let t=e.entries[e.entries.length-1];return AL(e,"interaction-to-next-paint",t&&t.target?[t.target]:void 0)}function AL(e,t,n,r){let a=e.value,s=e.rating,i=AO(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:s,nodeIds:n?n.map(e=>Ar.mirror.getId(e)):void 0,attributions:r}}}let Ag=["info","warn","error","log"];(function(){let e={exception:()=>{},infoTick:()=>{},setConfig:e=>{e.captureExceptions,e.traceInternals}};Ag.forEach(t=>{e[t]=()=>{}})})();class Ay extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Ab{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new Ay;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?Aa(e):null}}class Av{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,a)=>{let s=({data:t})=>{if(t.method===e&&t.id===n){if(this._worker.removeEventListener("message",s),!t.success){a(Error("Error in compression worker"));return}r(t.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class AD{constructor(e){this._worker=new Av(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=Aa(e.timestamp);(!this._earliestTimestamp||t2e7?Promise.reject(new Ay):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class AP{constructor(e){this._fallback=new Ab,this._compression=new AD(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){}}}function AM(){try{return"sessionStorage"in ud&&!!ud.sessionStorage}catch{return!1}}function AU(e){return void 0!==e&&Math.random()e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)}function Aj(e){return"transaction"===e.type}function AX(e){return"feedback"===e.type}function AK(e){return!!e.category}function A$(){let e=cs().getPropagationContext().dsc;e&&delete e.replay_id;let t=cD();if(t){let e=cY(t);delete e.replay_id}}function Az(e,t){return t.map(({type:t,start:n,end:r,name:a,data:s})=>{let i=e.throttledAddEvent({type:RP.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:s}}});return"string"==typeof i?Promise.resolve(null):i})}function AJ(e,t){e.isEnabled()&&null!==t&&(function(e,t){let n=t&&t.getDsn(),r=t&&t.getOptions().tunnel;return!!n&&e.includes(n.host)||!!r&&dE(e)===dE(r)}(t.name,cl())||e.addUpdate(()=>(Az(e,[t]),!0)))}function AZ(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=A4(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Aq(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function AQ(e){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[A4(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}function A0(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function A1(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:a,method:s,statusCode:i,request:o,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:uK({method:s,statusCode:i,request:o,response:l})}}function A2(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function A5(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:a,warnings:s}=function(e){if(!e||"string"!=typeof e)return{body:e};let t=e.length>15e4,n=function(e){let t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){let t=e.slice(0,15e4);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=a,s&&s.length>0&&(r._meta={warnings:s}),r}function A3(e,t){return Object.entries(e).reduce((n,[r,a])=>{let s=r.toLowerCase();return t.includes(s)&&e[r]&&(n[s]=a),n},{})}function A4(e){return new URLSearchParams(e).toString()}function A6(e,t=ud.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(ud.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function A8(e,t,n){try{let r=await A7(e,t,n),a=A1("resource.fetch",r);AJ(n.replay,a)}catch(e){}}async function A7(e,t,n){var r,a;let s=Date.now(),{startTimestamp:i=s,endTimestamp:o=s}=t,{url:l,method:E,status_code:u=0,request_body_size:c,response_body_size:d}=e.data,T=(r=n.networkDetailAllowUrls,uH(A6(l),r)&&(a=n.networkDetailDenyUrls,!uH(A6(l),a)));return{startTimestamp:i,endTimestamp:o,url:l,method:E,statusCode:u,request:T?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let a=n?1===n.length&&"string"!=typeof n[0]?Or(n[0],t):2===n.length?Or(n[1],t):{}:{};if(!e)return A5(a,r,void 0);let[s,i]=AQ(Ot(n)),o=A5(a,r,s);return i?A0(o,i):o}(n,t.input,c):A2(c),response:await A9(T,n,t.response,d)}}async function A9(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return A2(a);let s=r?On(r.headers,n):{};if(!r||!t&&void 0!==a)return A5(s,a,void 0);let[i,o]=await Oe(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{let s=e&&e.length&&void 0===n?AZ(e):n;return r?t?A5(a,s,e):A5(a,s,void 0):A2(s)}catch(e){return A5(a,n,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:s});return o?A0(l,o):l}async function Oe(e){let t=function(e){try{return e.clone()}catch(e){}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await new Promise((e,n)=>{let r=Su(()=>n(Error("Timeout while trying to read response body")),500);Oa(t).then(t=>e(t),e=>n(e)).finally(()=>clearTimeout(r))})]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?[void 0,"BODY_PARSE_TIMEOUT"]:[void 0,"BODY_PARSE_ERROR"]}}function Ot(e=[]){if(!(2!==e.length||"object"!=typeof e[1]))return e[1].body}function On(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function Or(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?On(n,t):Array.isArray(n)?{}:A3(n,t):{}}async function Oa(e){return await e.text()}async function Os(e,t,n){try{let r=function(e,t,n){var r,a;let s=Date.now(),{startTimestamp:i=s,endTimestamp:o=s,input:l,xhr:E}=t,{url:u,method:c,status_code:d=0,request_body_size:T,response_body_size:p}=e.data;if(!u)return null;if(!E||(r=n.networkDetailAllowUrls,!uH(A6(u),r))||(a=n.networkDetailDenyUrls,uH(A6(u),a))){let e=A2(T);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:d,request:e,response:A2(p)}}let _=E[Sc],h=_?A3(_.request_headers,n.networkRequestHeaders):{},f=A3(function(e){let t=e.getAllResponseHeaders();return t?t.split(`\r `).reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}(E),n.networkResponseHeaders),[S,R]=n.networkCaptureBodies?AQ(l):[void 0],[A,O]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(e){return[void 0,"BODY_PARSE_ERROR"]}return[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return[void 0]}(E):[void 0],N=A5(h,T,S),I=A5(f,p,A);return{startTimestamp:i,endTimestamp:o,url:u,method:c,statusCode:d,request:R?A0(N,R):N,response:O?A0(I,O):I}}(e,t,n),a=A1("resource.xhr",r);AJ(n.replay,a)}catch(e){}}async function Oi(e){try{return Promise.all(Az(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(ud.performance.memory)]))}catch{return[]}}let Oo=ud.navigator;async function Ol({client:e,scope:t,replayId:n,event:r}){let a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);let s=await c9(e.getOptions(),r,a,t,e,ci());if(!s)return null;s.platform=s.platform||"javascript";let i=e.getSdkMetadata(),{name:o,version:l}=i&&i.sdk||{};return s.sdk={...s.sdk,name:o||"sentry.javascript.unknown",version:l||"0.0.0"},s}async function OE({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:s}){var i;let o;let l=function({recordingData:e,headers:t}){let n;let r=`${JSON.stringify(t)} `;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:E,errorIds:u,traceIds:c,initialTimestamp:d}=r,T=cl(),p=cs(),_=T&&T.getTransport(),h=T&&T.getDsn();if(!T||!_||!h||!s.sampled)return u0({});let f={type:"replay_event",replay_start_timestamp:d/1e3,timestamp:a/1e3,error_ids:u,trace_ids:c,urls:E,replay_id:t,segment_id:n,replay_type:s.sampled},S=await Ol({scope:p,client:T,replayId:t,event:f});if(!S)return T.recordDroppedEvent("event_processor","replay",f),u0({});delete S.sdkProcessingMetadata;let R=(i=T.getOptions().tunnel,c$(cZ(S,cJ(S),i,h),[[{type:"replay_event"},S],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{o=await _.send(R)}catch(t){let e=Error(SA);try{e.cause=t}catch{}throw e}if("number"==typeof o.statusCode&&(o.statusCode<200||o.statusCode>=300))throw new Ou(o.statusCode);let A=function(e,{statusCode:t,headers:n},r=Date.now()){let a={...e},s=n&&n["x-sentry-rate-limits"],i=n&&n["retry-after"];if(s)for(let e of s.trim().split(",")){let[t,n,,,s]=e.split(":",5),i=parseInt(t,10),o=(isNaN(i)?60:i)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!s||s.split(";").includes("custom"))&&(a[e]=r+o):a[e]=r+o;else a.all=r+o}else i?a.all=r+function(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(i,r):429===t&&(a.all=r+6e4);return a}({},o);if(function(e,t,n=Date.now()){return(e[t]||e.all||0)>n}(A,"replay"))throw new Oc(A);return o}class Ou extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Oc extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function Od(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await OE(e),!0}catch(n){var a,s;if(n instanceof Ou||n instanceof Oc)throw n;if(a="Replays",s={_retryCount:t.count},ci().setContext(a,s),r&&r(n),t.count>=3){let e=Error(`${SA} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{Su(async()=>{try{await Od(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let OT="__THROTTLED";class Op{constructor({options:e,recordingOptions:t}){Op.prototype.__init.call(this),Op.prototype.__init2.call(this),Op.prototype.__init3.call(this),Op.prototype.__init4.call(this),Op.prototype.__init5.call(this),Op.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){let r,a,s;let i=n.maxWait?Math.max(n.maxWait,t):0;function o(){return l(),r=e()}function l(){void 0!==a&&clearTimeout(a),void 0!==s&&clearTimeout(s),a=s=void 0}function E(){return a&&clearTimeout(a),a=Su(o,t),i&&void 0===s&&(s=Su(o,i)),r}return E.cancel=l,E.flush=function(){return void 0!==a||void 0!==s?o():r},E}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e,t,n){let r=new Map,a=e=>{let t=e-5;r.forEach((e,n)=>{n[...r.values()].reduce((e,t)=>e+t,0),i=!1;return(...t)=>{let n=Math.floor(Date.now()/1e3);if(a(n),s()>=300){let e=i;return i=!0,e?"__SKIPPED":OT}i=!1;let o=r.get(n)||0;return r.set(n,o+1),e(...t)}}((e,t)=>(function(e,t,n){return AW(e,t)?AV(e,t,n):Promise.resolve(null)})(this,e,t),0,0);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;a&&(this.clickDetector=new Ac(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session)return;!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode||this._isEnabled&&"buffer"===this.recordingMode)return;this._updateUserActivity();let e=AH({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)return;let e=AH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t;let n=this._canvas;this._stopRecording=Ar({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{if(!e.checkAndHandleExpiredSession())return;let a=r||!t;t=!0,e.clickDetector&&function(e,t){try{if(3!==t.type)return;let{source:n}=t.data;if(Au.has(n)&&e.registerMutation(t.timestamp),n===RM.Scroll&&e.registerScroll(t.timestamp),t.data.source===RM.MouseInteraction){let{type:n,id:r}=t.data,a=Ar.mirror.getNode(r);a instanceof HTMLElement&&n===RU.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!AY(e,n,a))return!0;if(!a)return!1;let t=e.session;if(a&&e.session&&0===e.session.segmentId&&AY(e,function(e){let t=e.getOptions();return{type:RP.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}(e),!1),"buffer"===e.recordingMode&&t&&e.eventBuffer){let n=e.eventBuffer.getEarliestTimestamp();n&&(t.started=n,e.getOptions().stickySession&&Aw(t))}return t&&t.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}),.../iPhone|iPad|iPod/i.test(Oo&&Oo.userAgent||"")||/Macintosh/i.test(Oo&&Oo.userAgent||"")&&Oo&&Oo.maxTouchPoints&&Oo.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler,...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1;try{A$(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,function(){if(AM())try{ud.sessionStorage.removeItem(SR)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording())}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording())}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&AG(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${ud.location.pathname}${ud.location.hash}${ud.location.search}`,t=`${ud.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===OT){let e=Ap({category:"replay.throttled"});this.addUpdate(()=>!AY(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||cD(),t=e&&cv(e),n=(t&&cI(t).data||{})[cu];if(!(!t||!n||!["route","custom"].includes(n)))return cI(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||(typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?function(){let e=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=A(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}},L=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},O=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=C[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=U(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},j=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},q=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&j(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},B=function(t){return 10+(t.filename?t.filename.length+1:0)},G=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(O(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();var H=function(){function t(t,n){this.c=L(),this.v=1,G.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),G.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=O(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=L();i.p(n.dictionary),j(t,2,i.d())}}(r,this.o),this.v=0),n&&j(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),J="undefined"!=typeof TextEncoder&&new TextEncoder,K="undefined"!=typeof TextDecoder&&new TextDecoder;try{K.decode(F,{stream:!0})}catch(t){}var N=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(P(t),this.d=n||!1)},t}();function P(n,r){if(J)return J.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),a=0,s=function(t){i[a++]=t},o=0;oi.length){var f=new t(a+8+(e-o<<1));f.set(i),i=f}var h=n.charCodeAt(o);h<128||r?s(h):h<2048?(s(192|h>>6),s(128|63&h)):h>55295&&h<57344?(s(240|(h=65536+(1047552&h)|1023&n.charCodeAt(++o))>>18),s(128|h>>12&63),s(128|h>>6&63),s(128|63&h)):(s(224|h>>12),s(128|h>>6&63),s(128|63&h))}return b(i,0,a)}function Q(t){return function(t,n){n||(n={});var r=S(),e=t.length;r.p(t);var i=O(t,n,B(n),8),a=i.length;return q(i,n),j(i,a-8,r.d()),j(i,a-4,e),i}(P(t))}const R=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n{this._deflatedData.push(t)},this.stream=new N(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},V={clear:()=>{R.clear()},addEvent:t=>R.addEvent(t),finish:()=>R.finish(),compress:t=>Q(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in V&&"function"==typeof V[n])try{const t=V[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(e)}():"");if(!t)return;let n=new Worker(t);return new AP(n)}catch(e){}}(t);if(e)return e}return new Ab}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=AH({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!AB(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{ud.document.addEventListener("visibilitychange",this._handleVisibilityChange),ud.addEventListener("blur",this._handleWindowBlur),ud.addEventListener("focus",this._handleWindowFocus),ud.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(function(e){var t,n;let r=cl();n=Ah(e),um("dom",n),uC("dom",Si),function(e){let t="history";um(t,e),uC(t,Sl)}(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Az(e,[n]),!1)))}),function(e){let t=cl();t&&t.on("beforeAddBreadcrumb",t=>(function(e,t){if(!e.isEnabled()||!AK(t))return;let n=!AK(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")?null:"console"===t.category?function(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||0===t.length)return Ap(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=cK(e,7);return JSON.stringify(t).length>5e3?(n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`):t}catch{}return e});return Ap({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(t):Ap(t);n&&Ai(e,n)})(e,t))}(e),function(e){let t=cl();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:i}=e.getOptions(),o={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,a;"xhr"===t.category&&(r=n)&&r.xhr&&(function(e,t){let{xhr:n,input:r}=t;if(!n)return;let a=AZ(r),s=n.getResponseHeader("content-length")?Aq(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return AZ(n)}catch{return}}(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n),Os(t,n,e)),"fetch"===t.category&&(a=n)&&a.response&&(function(e,t){let{input:n,response:r}=t,a=AZ(n?Ot(n):void 0),s=r?Aq(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==s&&(e.data.response_body_size=s)}(t,n),A8(t,n,e))}catch(e){}})(o,e,t))}catch{}}(e),t=Object.assign((t,n)=>!e.isEnabled()||e.isPaused()?t:"replay_event"===t.type?(delete t.breadcrumbs,t):!t.type||Aj(t)||AX(t)?e.checkAndHandleExpiredSession()?AX(t)?(e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:RP.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t):!t.type&&t.exception&&t.exception.values&&t.exception.values.length&&n.originalException&&n.originalException.__rrweb__&&!e.getOptions()._experiments.captureExceptions?null:(("buffer"===e.recordingMode&&t.message!==SA&&t.exception&&!t.type&&AU(e.getOptions().errorSampleRate)||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),t):(A$(),t):t,{id:"Replay"}),ci().addEventProcessor(t),r&&(r.on("beforeSendEvent",t=>{e.isEnabled()&&!t.type&&function(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].value;"string"==typeof n&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&Ai(e,Ap({category:"replay.hydrate-error",data:{url:function(){try{return ud.document.location.href}catch{return""}}()}}))}(e,t)}),r.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!Aj(t))return;let r=n&&n.statusCode;if(!(!r||r<200||r>=300)){if(Aj(t)){(function(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)})(e,t);return}(function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&Su(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})})(e,t)}}),r.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",(t,n)=>{let r=e.getSessionId();n&&n.includeReplay&&e.isEnabled()&&r&&t.contexts&&t.contexts.feedback&&(t.contexts.feedback.replay_id=r)}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(f6(e,n))}),r.push(function(e,t=!1){return Sn("lcp",e,Se,d,t)}(AR(AN,e)),function(e,t=!1){return Sn("cls",e,f7,u,t)}(AR(AI,e)),Sn("fid",AR(Am,e),f9,c),Sn("inp",AR(AC,e),St,p)),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{ud.document.removeEventListener("visibilitychange",this._handleVisibilityChange),ud.removeEventListener("blur",this._handleWindowBlur),ud.removeEventListener("focus",this._handleWindowFocus),ud.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}__init(){this._handleVisibilityChange=()=>{"visible"===ud.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let e=Ap({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{let e=Ap({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:a,altKey:s,key:i,target:o}=e;if(!o||"INPUT"===(t=o).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!i)return null;let l=n||a||s,E=1===i.length;if(!l&&E)return null;let u=uF(o,{maxStringLength:200})||"",c=Af(o,u);return Ap({category:"ui.keyDown",message:u,data:{...c.data,metaKey:n,shiftKey:r,ctrlKey:a,altKey:s,key:i}})}(t);n&&Ai(e,n)}(this,e)}}_doChangeToBackgroundTasks(e){!this.session||AF(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){this.session&&this.checkAndHandleExpiredSession()&&e&&this._createCustomBreadcrumb(e)}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:RP.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(AA).filter(Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(Az(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw Error("Session is too long, not sending replay");let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await Od({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=cl();e&&e.recordDroppedEvent(t instanceof Oc?"ratelimit_backoff":"send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e||!this.checkAndHandleExpiredSession()||!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=nthis._options.maxReplayDuration+5e3;if(r||a){r&&this._debouncedFlush();return}let s=this.eventBuffer;s&&0===this.session.segmentId&&s.hasCheckout;let i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&Aw(this.session)}__init6(){this._onMutationHandler=e=>{let t=e.length,n=this._options.mutationLimit,r=this._options.mutationBreadcrumbLimit,a=n&&t>n;if(t>r||a){let e=Ap({category:"replay.mutations",data:{count:t,limit:a}});this._createCustomBreadcrumb(e)}return!a||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function O_(e,t){return[...e,...t].join(",")}let Oh='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Of=["content-length","content-type","accept"],OS=!1;class OA{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:a=!0,useCompression:s=!0,workerUrl:i,_experiments:o={},maskAllText:l=!0,maskAllInputs:E=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:c=750,mutationLimit:d=1e4,slowClickTimeout:T=7e3,slowClickIgnoreSelectors:p=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:h=[],networkCaptureBodies:f=!0,networkRequestHeaders:S=[],networkResponseHeaders:R=[],mask:A=[],maskAttributes:O=["title","placeholder"],unmask:N=[],block:I=[],unblock:m=[],ignore:C=[],maskFn:L,beforeAddRecordingEvent:g,beforeErrorSampling:y,onError:b}={}){this.name=OA.id;let v=function({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:O_(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:O_(t,[]),blockSelector:O_(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not([src])"]),unblockSelector:O_(r,[]),ignoreSelector:O_(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:A,unmask:N,block:I,unblock:m,ignore:C});if(this._recordingOptions={maskAllInputs:E,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:s}){return!r||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?s:n.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?s.replace(/[\S]/g,"*"):s})({maskAttributes:O,maskAllText:l,privacyOptions:v,key:e,value:t,el:n}),...v,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,15e3),maxReplayDuration:Math.min(r,36e5),stickySession:a,useCompression:s,workerUrl:i,blockAllMedia:u,maskAllInputs:E,maskAllText:l,mutationBreadcrumbLimit:c,mutationLimit:d,slowClickTimeout:T,slowClickIgnoreSelectors:p,networkDetailAllowUrls:_,networkDetailDenyUrls:h,networkCaptureBodies:f,networkRequestHeaders:OO(S),networkResponseHeaders:OO(R),beforeAddRecordingEvent:g,beforeErrorSampling:y,onError:b,_experiments:o},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Oh}`:Oh),this._isInitialized&&dp())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return OS}set _isInitialized(e){OS=e}afterAllSetup(e){!dp()||this._replay||(this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}getRecordingMode(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=function(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...uK(e)},a=cV(n.replaysSessionSampleRate),s=cV(n.replaysOnErrorSampleRate);return null==a&&null==s&&uh(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(r.sessionSampleRate=a),null!=s&&(r.errorSampleRate=s),r}(this._initialOptions,e);this._replay=new Op({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function OO(e){return[...Of,...e.map(e=>e.toLowerCase())]}OA.__initStatic();function ON(e=0){return((uJ||performance.timeOrigin)+e)/1e3}var OI={};OI.createRoot=ES.createRoot,OI.hydrateRoot=ES.hydrateRoot;var Om,OC,OL,Og={exports:{}},Oy={},Ob={exports:{}},Ov={},OD={};function OP(){if(OL)return OD;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function n(n,r){this.__indent_cache=new t(n,r),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return OL=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf(` `);-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count)+this.__items.join(""),e},t.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t},t.prototype.get_indent_string=function(e,t){var n=this.__base_string;return e<0&&(e=0,n=""),t=(t||0)+e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t]},t.prototype.__ensure_cache=function(e){for(;e>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=Array(t+1).join(this.__indent_string)),e&&(n+=Array(e+1).join(" ")),this.__cache.push(n)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},n.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&(t[t.length-1]===` `&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join(` `);return e!==` `&&(n=n.replace(/[\n]/g,e)),n},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(e){for(var t=0;t1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;r>=0;){var a=this.__lines[r];if(a.is_empty())break;if(0!==a.item(0).indexOf(t)&&a.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},OD.Output=n,OD}var OM,OU={};function Ox(){return OM||(OM=1,OU.Token=function(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}),OU}var Ow,Ok={};function OG(){var e,t,n,r,a;return Ow||(Ow=1,e="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="(?:"+(r="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}")+"|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+(t="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc")+"])",Ok.identifier=RegExp(a+("(?:"+r+"|["+e)+t+n+"])*","g"),Ok.identifierStart=new RegExp(a),Ok.identifierMatch=RegExp("(?:"+r+"|["+e+t+n+"])+"),Ok.newline=/[\n\r\u2028\u2029]/,Ok.lineBreak=RegExp(`\r |`+Ok.newline.source),Ok.allLineBreaks=RegExp(Ok.lineBreak.source,"g")),Ok}var OF,OB={},OH={};function OY(){if(OF)return OH;function e(e,n){this.raw_options=t(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs"," "===this.indent_char),this.indent_with_tabs&&(this.indent_char=" ",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var r,a={};for(r in e=n(e))r!==t&&(a[r]=e[r]);if(t&&e[t])for(r in e[t])a[r]=e[t][r];return a}function n(e){var t,n={};for(t in e)n[t.replace(/-/g,"_")]=e[t];return n}return OF=1,e.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"==typeof n?null!==n&&"function"==typeof n.concat&&(r=n.concat()):"string"==typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},e.prototype._get_boolean=function(e,t){var n=this.raw_options[e];return void 0===n?!!t:!!n},e.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"==typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,` `).replace(/\\t/," ")),r},e.prototype._get_number=function(e,t){var n=this.raw_options[e];isNaN(t=parseInt(t,10))&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},e.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw Error("Invalid Option Value: The option '"+e+`' can only be one of the following values: `+t+` You passed in: '`+this.raw_options[e]+"'");return r[0]},e.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw Error("Invalid Option Value: The option '"+e+`' can contain only the following values: `+t+` You passed in: '`+this.raw_options[e]+"'");return r},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return -1===t.indexOf(e)})},OH.Options=e,OH.normalizeOpts=n,OH.mergeOpts=t,OH}function OV(){if(OW)return OB;OW=1;var e=OY().Options,t=["before-newline","after-newline","preserve-newline"];function n(n){e.call(this,n,"js");var r=this.raw_options.brace_style||null;"expand-strict"===r?this.raw_options.brace_style="expand":"collapse-preserve-inline"===r?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var s=0;s0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position=0&&e=0&&t=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},OK.InputScanner=t,OK}var Oz,OJ,OZ={},Oq={},OQ={},O0={};function O1(){if(OJ)return O0;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return OJ=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},O0.Pattern=e,O0}function O2(){if(O3)return OZ;O3=1;var e=O$().InputScanner,t=Ox().Token,n=function(){if(Oz)return Oq;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Oz=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position=0&&e/),erb:a.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:a.starting_with(/{%/).until_after(/%}/),django_value:a.starting_with(/{{/).until_after(/}}/),django_comment:a.starting_with(/{#/).until_after(/#}/),smarty:a.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:a.starting_with(/{\*/).until_after(/\*}/),smarty_literal:a.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new e,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},n.prototype.read_options=function(e){var n=this._create();for(var r in t)n._disabled[r]=-1===e.templating.indexOf(r);return n._update(),n},n.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},n.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var t=this._read_template();t;)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},n.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},n.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return e},O9.TemplatablePattern=n,O9}function Nt(){if(Nn)return OX;Nn=1;var e=O$().InputScanner,t=O2().Tokenizer,n=O2().TOKEN,r=O8().Directives,a=OG(),s=O1().Pattern,i=Ne().TemplatablePattern;function o(e,t){return -1!==t.indexOf(e)}var l,E={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},u=new r(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,T=/[^\d\.]/,p=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |",_=new RegExp(p=(p="\\?\\.(?!\\d) "+(p=p.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|")),h="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),f=RegExp("^(?:"+h.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]).join("|")+")$"),S=function(e,n){t.call(this,e,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var r=new s(this._input),o=new i(this._input).read_options(this._options);this.__patterns={template:o,identifier:o.starting_with(a.identifier).matching(a.identifierMatch),number:r.matching(c),punct:r.matching(_),comment:r.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:r.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:r.matching(//),include:r.starting_with(/#include/).until_after(a.lineBreak),shebang:r.starting_with(/#!/).until_after(a.lineBreak),xml:r.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:o.until(/['\\\n\r\u2028\u2029]/),double_quote:o.until(/["\\\n\r\u2028\u2029]/),template_text:o.until(/[`\\$]/),template_expression:o.until(/[`}\\]/)}};return S.prototype=new t,S.prototype._is_comment=function(e){return e.type===E.COMMENT||e.type===E.BLOCK_COMMENT||e.type===E.UNKNOWN},S.prototype._is_opening=function(e){return e.type===E.START_BLOCK||e.type===E.START_EXPR},S.prototype._is_closing=function(e,t){return(e.type===E.END_BLOCK||e.type===E.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},S.prototype._reset=function(){l=!1},S.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(E.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_non_javascript(r))||this._read_string(r))||this._read_pair(r,this._input.peek(1)))||this._read_word(e))||this._read_singles(r))||this._read_comment(r))||this._read_regexp(r,e))||this._read_xml(r,e))||this._read_punctuation())||this._create_token(E.UNKNOWN,this._input.next())},S.prototype._read_word=function(e){var t;return""!==(t=this.__patterns.identifier.read())?(t=t.replace(a.allLineBreaks,` `),!(e.type===E.DOT||e.type===E.RESERVED&&("set"===e.text||"get"===e.text))&&f.test(t)?("in"===t||"of"===t)&&(e.type===E.WORD||e.type===E.STRING)?this._create_token(E.OPERATOR,t):this._create_token(E.RESERVED,t):this._create_token(E.WORD,t)):""!==(t=this.__patterns.number.read())?this._create_token(E.WORD,t):void 0},S.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(E.START_EXPR,e):")"===e||"]"===e?t=this._create_token(E.END_EXPR,e):"{"===e?t=this._create_token(E.START_BLOCK,e):"}"===e?t=this._create_token(E.END_BLOCK,e):";"===e?t=this._create_token(E.SEMICOLON,e):"."===e&&T.test(this._input.peek(1))?t=this._create_token(E.DOT,e):","===e&&(t=this._create_token(E.COMMA,e)),t&&this._input.next(),t},S.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(E.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},S.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(E.EQUALS,e):"?."===e?this._create_token(E.DOT,e):this._create_token(E.OPERATOR,e)},S.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read())||(t=this.__patterns.include.read()))return this._create_token(E.UNKNOWN,t.trim()+` `);e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do n+=e=this._input.next();while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(E.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(a.newline);)t+=this._input.next();return l=!0,this._create_token(E.COMMENT,t)}}else if(l&&"-"===e&&(t=this.__patterns.html_comment_end.read()))return l=!1,this._create_token(E.COMMENT,t);return null},S.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=u.get_directives(n);r&&"start"===r.ignore&&(n+=u.readIgnored(this._input)),n=n.replace(a.allLineBreaks,` `),(t=this._create_token(E.BLOCK_COMMENT,n)).directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(E.COMMENT,n))}return t},S.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var n=this._input.next();return this.has_char_escapes=!1,"`"===t?n+=this._read_string_recursive("`",!0,"${"):n+=this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(n=function(t){for(var n="",r=0,a=new e(t),s=null;a.hasNext();)if((s=a.match(/([\s]|[^\\]|\\\\)+/g))&&(n+=s[0]),"\\"===a.peek()){if(a.next(),"x"===a.peek())s=a.match(/x([0-9A-Fa-f]{2})/g);else if("u"===a.peek())(s=a.match(/u([0-9A-Fa-f]{4})/g))||(s=a.match(/u\{([0-9A-Fa-f]+)\}/g));else{n+="\\",a.hasNext()&&(n+=a.next());continue}if(!s||(r=parseInt(s[1],16))>126&&r<=255&&0===s[0].indexOf("x"))return t;r>=0&&r<32||r>1114111?n+="\\"+s[0]:34===r||39===r||92===r?n+="\\"+String.fromCharCode(r):n+=String.fromCharCode(r)}return n}(n)),this._input.peek()===t&&(n+=this._input.next()),n=n.replace(a.allLineBreaks,` `),this._create_token(E.STRING,n)}return null},S.prototype._allow_regexp_or_xml=function(e){return e.type===E.RESERVED&&o(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===E.END_EXPR&&")"===e.text&&e.opened.previous.type===E.RESERVED&&o(e.opened.previous.text,["if","while","for"])||o(e.type,[E.COMMENT,E.START_EXPR,E.START_BLOCK,E.START,E.END_BLOCK,E.OPERATOR,E.EQUALS,E.EOF,E.SEMICOLON,E.COMMA])},S.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){for(var n=this._input.next(),r=!1,s=!1;this._input.hasNext()&&(r||s||this._input.peek()!==e)&&!this._input.testChar(a.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?s=!0:"]"===this._input.peek()&&(s=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(a.identifier)),this._create_token(E.STRING,n)}return null},S.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){for(var s=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=0===s.indexOf("{"),o=0;r;){var l=!!r[1],u=r[2];if(!(r[r.length-1]||"![CDATA["===u.slice(0,8))&&(u===s||i&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--o:++o),n+=r[0],o<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(a.allLineBreaks,` `),this._create_token(E.STRING,n)}}return null},S.prototype._read_string_recursive=function(e,t,n){var r,s;"'"===e?s=this.__patterns.single_quote:'"'===e?s=this.__patterns.double_quote:"`"===e?s=this.__patterns.template_text:"}"===e&&(s=this.__patterns.template_expression);for(var i=s.read(),o="";this._input.hasNext();){if((o=this._input.next())===e||!t&&a.newline.test(o)){this._input.back();break}"\\"===o&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&this._input.peek(1)===` `&&this._input.next(),o+=this._input.next()):n&&("${"===n&&"$"===o&&"{"===this._input.peek()&&(o+=this._input.next()),n===o&&("`"===e?o+=this._read_string_recursive("}",t,"`"):o+=this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(o+=this._input.next()))),o+=s.read(),i+=o}return i},OX.Tokenizer=S,OX.TOKEN=E,OX.positionable_operators=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" ").slice(),OX.line_starters=h.slice(),OX}var Nn,Nr,Na,Ns,Ni={exports:{}},No={},Nl={};function NE(){if(Ns)return Nl;Ns=1;var e=OY().Options;function t(t){e.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var r=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var a=0;a/),o=function(t,n){e.call(this,t,n),this._current_tag_name="";var s=new r(this._input).read_options(this._options),i=new a(this._input);if(this.__patterns={word:s.until(/[\n\r\t <]/),word_control_flow_close_excluded:s.until(/[\n\r\t <}]/),single_quote:s.until_after(/'/),double_quote:s.until_after(/"/),attribute:s.until(/[\n\r\t =>]|\/>/),element_name:s.until(/[\n\r\t >\/]/),angular_control_flow_start:i.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),handlebars_open:i.until(/[\n\r\t }]/),handlebars_raw_close:i.until(/}}/),comment:i.starting_with(//),cdata:i.starting_with(//),conditional_comment:i.starting_with(//),processing:i.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=i.matching(o).until_after(o)}};return o.prototype=new e,o.prototype._is_comment=function(e){return!1},o.prototype._is_opening=function(e){return e.type===s.TAG_OPEN||e.type===s.CONTROL_FLOW_OPEN},o.prototype._is_closing=function(e,t){return e.type===s.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])||e.type===s.CONTROL_FLOW_CLOSE&&"}"===e.text&&t.text.endsWith("{")},o.prototype._reset=function(){this._current_tag_name=""},o.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(s.EOF,""):n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n||this._read_open_handlebars(r,t))||this._read_attribute(r,e,t))||this._read_close(r,t))||this._read_control_flows(r,t))||this._read_raw_content(r,e,t))||this._read_content_word(r,t))||this._read_comment_or_cdata(r))||this._read_processing(r))||this._read_open(r,t))||this._create_token(s.UNKNOWN,this._input.next())},o.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;return"<"===e&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=i.get_directives(n))&&"start"===r.ignore&&(n+=i.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((t=this._create_token(s.COMMENT,n)).directives=r)),t},o.prototype._read_processing=function(e){var t=null,n=null;if("<"===e){var r=this._input.peek(1);("!"===r||"?"===r)&&(n=(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),n&&((t=this._create_token(s.COMMENT,n)).directives=null)}return t},o.prototype._read_open=function(e,t){var n=null,r=null;return t&&t.type!==s.CONTROL_FLOW_OPEN||"<"!==e||(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(s.TAG_OPEN,n)),r},o.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return(!t||t.type===s.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),r=this._create_token(s.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(s.TAG_OPEN,n))),r},o.prototype._read_control_flows=function(e,t){var n="",r=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return r;if("@"===e){if(""===(n=this.__patterns.angular_control_flow_start.read()))return r;for(var a=n.endsWith("(")?1:0,i=0;!(n.endsWith("{")&&a===i);){var o=this._input.next();if(null===o)break;"("===o?a++:")"===o&&i++,n+=o}r=this._create_token(s.CONTROL_FLOW_OPEN,n)}else"}"===e&&t&&t.type===s.CONTROL_FLOW_OPEN&&(n=this._input.next(),r=this._create_token(s.CONTROL_FLOW_CLOSE,n));return r},o.prototype._read_close=function(e,t){var n=null,r=null;return t&&t.type===s.TAG_OPEN&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),r=this._create_token(s.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(s.TAG_CLOSE,"}}"))),r},o.prototype._read_attribute=function(e,t,n){var r=null,a="";if(n&&"<"===n.text[0]){if("="===e)r=this._create_token(s.EQUALS,this._input.next());else if('"'===e||"'"===e){var i=this._input.next();'"'===e?i+=this.__patterns.double_quote.read():i+=this.__patterns.single_quote.read(),r=this._create_token(s.VALUE,i)}else(a=this.__patterns.attribute.read())&&(r=t.type===s.EQUALS?this._create_token(s.VALUE,a):this._create_token(s.ATTRIBUTE,a))}return r},o.prototype._is_content_unformatted=function(e){return -1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},o.prototype._read_raw_content=function(e,t,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===s.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var a=t.opened.text.substr(1).toLowerCase();if("script"===a||"style"===a){var i=this._read_comment_or_cdata(e);if(i)return i.type=s.TEXT,i;r=this._input.readUntil(RegExp("","ig"))}else this._is_content_unformatted(a)&&(r=this._input.readUntil(RegExp("","ig")))}return r?this._create_token(s.TEXT,r):null},o.prototype._read_content_word=function(e,t){var n="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(n=this.__patterns.unformatted_content_delimiter.read()),n||(n=t&&t.type===s.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),n)return this._create_token(s.TEXT,n)},NS.Tokenizer=o,NS.TOKEN=s,NS}!function(e){var t,n;(t=function(){if(m_)return Oy;m_=1;var e=function(){if(Na)return Ob.exports;Na=1;var e=function(){if(Nr)return Ov;Nr=1;var e=OP().Output,t=Ox().Token,n=OG(),r=OV().Options,a=Nt().Tokenizer,s=Nt().line_starters,i=Nt().positionable_operators,o=Nt().TOKEN;function l(e,t){return -1!==t.indexOf(e)}function E(e,t){return e&&e.type===o.RESERVED&&e.text===t}function u(e,t){return e&&e.type===o.RESERVED&&l(e.text,t)}var c=["case","return","do","if","throw","else","await","break","continue","async"],d=function(e){for(var t={},n=0;nr&&(r=e.line_indent_level)),{mode:n,parent:e,last_token:e?e.last_token:new t(o.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:r,alignment:0,line_indent_level:e?e.line_indent_level:r,start_line_index:this._output.get_line_number(),ternary_depth:0}},S.prototype._reset=function(t){var n=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,n),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(p.BlockStatement);var r=new a(t,this._options);return this._tokens=r.tokenize(),t},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._reset(this._source_text),t=this._options.eol;"auto"===this._options.eol&&(t=` `,e&&n.lineBreak.test(e||"")&&(t=e.match(n.lineBreak)[0]));for(var r=this._tokens.next();r;)this.handle_token(r),this._last_last_text=this._flags.last_token.text,this._flags.last_token=r,r=this._tokens.next();return this._output.get_code(t)},S.prototype.handle_token=function(e,t){e.type===o.START_EXPR?this.handle_start_expr(e):e.type===o.END_EXPR?this.handle_end_expr(e):e.type===o.START_BLOCK?this.handle_start_block(e):e.type===o.END_BLOCK?this.handle_end_block(e):e.type===o.WORD?this.handle_word(e):e.type===o.RESERVED?this.handle_word(e):e.type===o.SEMICOLON?this.handle_semicolon(e):e.type===o.STRING?this.handle_string(e):e.type===o.EQUALS?this.handle_equals(e):e.type===o.OPERATOR?this.handle_operator(e):e.type===o.COMMA?this.handle_comma(e):e.type===o.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===o.COMMENT?this.handle_comment(e,t):e.type===o.DOT?this.handle_dot(e):e.type===o.EOF?this.handle_eof(e):(e.type,o.UNKNOWN,this.handle_unknown(e,t))},S.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&h(this._flags.mode);if(e.comments_before)for(var a=e.comments_before.next();a;)this.handle_whitespace_and_comments(a,t),this.handle_token(a,t),a=e.comments_before.next();if(r)for(var s=0;s0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var i=1;i0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===p.Statement&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.start_of_object_property=function(){return this._flags.parent.mode===p.ObjectLiteral&&this._flags.mode===p.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||u(this._flags.last_token,["get","set"]))},S.prototype.start_of_statement=function(e){return!!(u(this._flags.last_token,["var","let","const"])&&e.type===o.WORD||E(this._flags.last_token,"do")||!(this._flags.parent.mode===p.ObjectLiteral&&this._flags.mode===p.Statement)&&u(this._flags.last_token,R)&&!e.newlines||E(this._flags.last_token,"else")&&!(E(e,"if")&&!e.comments_before)||this._flags.last_token.type===o.END_EXPR&&(this._previous_flags.mode===p.ForInitializer||this._previous_flags.mode===p.Conditional)||this._flags.last_token.type===o.WORD&&this._flags.mode===p.BlockStatement&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==o.WORD&&e.type!==o.RESERVED||this._flags.mode===p.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||u(this._flags.last_token,["get","set"])))&&(this.set_mode(p.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,u(e,["do","for","if","while"])),!0)},S.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=p.Expression;if("["===e.text){if(this._flags.last_token.type===o.WORD||")"===this._flags.last_token.text){u(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}t=p.ArrayLiteral,h(this._flags.mode)&&("["===this._flags.last_token.text||","===this._flags.last_token.text&&("]"===this._last_last_text||"}"===this._last_last_text))&&(this._options.keep_array_indentation||this.print_newline()),l(this._flags.last_token.type,[o.START_EXPR,o.END_EXPR,o.WORD,o.OPERATOR,o.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===o.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=p.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=p.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(l(this._flags.last_token.text,s)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===o.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);u(n,["async","function"])||"*"===n.text&&u(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===p.ObjectLiteral?("{"===n.text||","===n.text||"*"===n.text&&("{"===r.text||","===r.text))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===o.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(l(this._last_last_text,["function","yield"])||this._flags.mode===p.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===o.START_BLOCK?this.print_newline():(this._flags.last_token.type===o.END_EXPR||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.END_BLOCK||"."===this._flags.last_token.text||this._flags.last_token.type===o.COMMA)&&this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},S.prototype.handle_end_expr=function(e){for(;this._flags.mode===p.Statement;)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&h(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==o.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),_(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===p.Conditional&&(this._previous_flags.mode=p.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},S.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===o.END_EXPR?(this.set_mode(p.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(p.BlockStatement):n&&(l(n.text,[":",","])&&l(t.type,[o.STRING,o.WORD,o.RESERVED])||l(t.text,["get","set","..."])&&l(n.type,[o.WORD,o.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(n.text,[":",","])?this.set_mode(p.BlockStatement):this.set_mode(p.ObjectLiteral):this._flags.last_token.type===o.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(p.BlockStatement):l(this._flags.last_token.type,[o.EQUALS,o.START_EXPR,o.COMMA,o.OPERATOR])||u(this._flags.last_token,["return","throw","import","default"])?this.set_mode(p.ObjectLiteral):this.set_mode(p.BlockStatement),this._flags.last_token&&u(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&"}"===t.text,a=r&&"function"===this._flags.last_word&&this._flags.last_token.type===o.END_EXPR;if(this._options.brace_preserve_inline){var s=0,i=null;this._flags.inline_frame=!0;do if(s+=1,(i=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}while(i.type!==o.EOF&&!(i.type===o.END_BLOCK&&i.opened===e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==o.OPERATOR&&(a||this._flags.last_token.type===o.EQUALS||u(this._flags.last_token,c)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(h(this._previous_flags.mode)&&(this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.COMMA)&&((this._flags.last_token.type===o.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==o.OPERATOR&&this._flags.last_token.type!==o.START_EXPR&&(l(this._flags.last_token.type,[o.START_BLOCK,o.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},S.prototype.handle_end_block=function(e){for(this.handle_whitespace_and_comments(e);this._flags.mode===p.Statement;)this.restore_mode();var t=this._flags.last_token.type===o.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(h(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},S.prototype.handle_word=function(e){if(e.type===o.RESERVED&&(l(e.text,["set","get"])&&this._flags.mode!==p.ObjectLiteral?e.type=o.WORD:"import"===e.text&&l(this._tokens.peek().text,["(","."])?e.type=o.WORD:l(e.text,["as","from"])&&!this._flags.import_block?e.type=o.WORD:this._flags.mode===p.ObjectLiteral&&":"===this._tokens.peek().text&&(e.type=o.WORD)),this.start_of_statement(e)?u(this._flags.last_token,["var","let","const"])&&e.type===o.WORD&&(this._flags.declaration_statement=!0):e.newlines&&!f(this._flags.mode)&&(this._flags.last_token.type!==o.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text)&&this._flags.last_token.type!==o.EQUALS&&(this._options.preserve_newlines||!u(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(e),this.print_newline()):this.handle_whitespace_and_comments(e),this._flags.do_block&&!this._flags.do_while){if(E(e,"while")){this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,this._flags.do_while=!0;return}this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block){if(!this._flags.else_block&&E(e,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===p.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}}if(this._flags.in_case_statement&&u(e,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(e),this._flags.in_case=!0;return}if(this._flags.last_token.type!==o.COMMA&&this._flags.last_token.type!==o.START_EXPR&&this._flags.last_token.type!==o.EQUALS&&this._flags.last_token.type!==o.OPERATOR||this.start_of_object_property()||l(this._flags.last_token.text,["+","-"])&&":"===this._last_last_text&&this._flags.parent.mode===p.ObjectLiteral||this.allow_wrap_or_preserved_newline(e),E(e,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===o.OPERATOR))&&!this._output.just_added_blankline()&&!e.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD?u(this._flags.last_token,["get","set","new","export"])||u(this._flags.last_token,R)?this._output.space_before_token=!0:E(this._flags.last_token,"default")&&"export"===this._last_last_text?this._output.space_before_token=!0:"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===o.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(f(this._flags.mode)||h(this._flags.mode))||this.print_newline(),this.print_token(e),this._flags.last_word=e.text;return}var t="NONE";(this._flags.last_token.type===o.END_BLOCK?this._previous_flags.inline_frame?t="SPACE":u(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?t="NEWLINE":(t="SPACE",this._output.space_before_token=!0):t="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&this._flags.mode===p.BlockStatement?t="NEWLINE":this._flags.last_token.type===o.SEMICOLON&&f(this._flags.mode)?t="SPACE":this._flags.last_token.type===o.STRING?t="NEWLINE":this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||"*"===this._flags.last_token.text&&(l(this._last_last_text,["function","yield"])||this._flags.mode===p.ObjectLiteral&&l(this._last_last_text,["{",","]))?t="SPACE":this._flags.last_token.type===o.START_BLOCK?t=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===o.END_EXPR&&(this._output.space_before_token=!0,t="NEWLINE"),u(e,s)&&")"!==this._flags.last_token.text&&(t=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),u(e,["else","catch","finally"]))?this._flags.last_token.type===o.END_BLOCK&&this._previous_flags.mode===p.BlockStatement&&"expand"!==this._options.brace_style&&"end-expand"!==this._options.brace_style&&("none"!==this._options.brace_style||!e.newlines)||this._flags.inline_frame?(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):this.print_newline():"NEWLINE"===t?u(this._flags.last_token,c)?this._output.space_before_token=!0:"declare"===this._flags.last_token.text&&u(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==o.END_EXPR?this._flags.last_token.type===o.START_EXPR&&u(e,["var","let","const"])||":"===this._flags.last_token.text||(E(e,"if")&&E(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):u(e,s)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&h(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===t&&(this._output.space_before_token=!0),e.previous&&(e.previous.type===o.WORD||e.previous.type===o.RESERVED)&&(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===o.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&E(e,"from")&&(this._flags.import_block=!1))},S.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);for(var t=this._tokens.peek();this._flags.mode===p.Statement&&!(this._flags.if_block&&E(t,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},S.prototype.handle_string=function(e){e.text.startsWith("`")&&0===e.newlines&&""===e.whitespace_before&&(")"===e.previous.text||this._flags.last_token.type===o.WORD)||(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===o.RESERVED||this._flags.last_token.type===o.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR||this._flags.last_token.type===o.EQUALS||this._flags.last_token.type===o.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):e.text.startsWith("`")&&this._flags.last_token.type===o.END_EXPR&&("]"===e.previous.text||")"===e.previous.text)&&0===e.newlines?this._output.space_before_token=!0:this.print_newline())),this.print_token(e)},S.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},S.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(f(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===p.ObjectLiteral||this._flags.mode===p.Statement&&this._flags.parent.mode===p.ObjectLiteral?(this._flags.mode===p.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},S.prototype.handle_operator=function(e){var t="*"===e.text&&(u(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[o.START_BLOCK,o.COMMA,o.END_BLOCK,o.SEMICOLON])),n=l(e.text,["-","+"])&&(l(this._flags.last_token.type,[o.START_BLOCK,o.START_EXPR,o.EQUALS,o.OPERATOR])||l(this._flags.last_token.text,s)||","===this._flags.last_token.text);if(this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!t),"*"===e.text&&this._flags.last_token.type===o.DOT||"::"===e.text||l(e.text,["-","+"])&&this.start_of_object_property()){this.print_token(e);return}if(this._flags.last_token.type===o.OPERATOR&&l(this._options.operator_position,T)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case){this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==o.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var r=!0,a=!0,E=!1;if(":"===e.text?0===this._flags.ternary_depth?r=!1:(this._flags.ternary_depth-=1,E=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&l(e.text,i)){var _=":"===e.text,h=_&&E,S=_&&!E;switch(this._options.operator_position){case d.before_newline:this._output.space_before_token=!S,this.print_token(e),(!_||h)&&this.allow_wrap_or_preserved_newline(e),this._output.space_before_token=!0;return;case d.after_newline:this._output.space_before_token=!0,!_||h?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),this._output.space_before_token=!0;return;case d.preserve_newline:S||this.allow_wrap_or_preserved_newline(e),r=!(this._output.just_added_newline()||S),this._output.space_before_token=r,this.print_token(e),this._output.space_before_token=!0;return}}if(t){this.allow_wrap_or_preserved_newline(e),r=!1;var R=this._tokens.peek();a=R&&l(R.type,[o.WORD,o.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),r=this._flags.last_token.type===o.START_BLOCK,a=!1;else if(l(e.text,["--","++","!","~"])||n){if((this._flags.last_token.type===o.COMMA||this._flags.last_token.type===o.START_EXPR)&&this.allow_wrap_or_preserved_newline(e),r=!1,a=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var A=u(this._flags.last_token,c)&&e.newlines;A&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(A,!0)}";"===this._flags.last_token.text&&f(this._flags.mode)&&(r=!0),this._flags.last_token.type===o.RESERVED?r=!0:this._flags.last_token.type===o.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===o.OPERATOR&&(r=l(e.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(e.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(a=!0)),(this._flags.mode!==p.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==p.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||r,this.print_token(e),this._output.space_before_token=a},S.prototype.handle_block_comment=function(e,t){if(this._output.raw){this._output.add_raw_token(e),e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw);return}if(e.directives){this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(n.newline.test(e.text)||e.newlines)this.print_block_commment(e,t);else{this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0;return}},S.prototype.print_block_commment=function(e,t){var r,a=function(e){e=e.replace(n.allLineBreaks,` `);for(var t=[],r=e.indexOf(` `);-1!==r;)t.push(e.substring(0,r)),r=(e=e.substring(r+1)).indexOf(` `);return e.length&&t.push(e),t}(e.text),s=!1,i=!1,o=e.whitespace_before,l=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(a[0]),this.print_newline(!1,t),a.length>1){for(s=function(e,t){for(var n=0;n0&&this._indentLevel--},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,u=this._options.eol;"auto"===u&&(u=` `,e&&a.test(e||"")&&(u=e.match(a)[0]));var c=(e=e.replace(s,` `)).match(/^[\t ]*/)[0];this._output=new t(this._options,c),this._input=new n(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var d,T,p=0,_=!1,h=!1,f=!1,S=!1,R=!1,A=this._ch,O=!1;d=""!==this._input.read(o),T=A,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),A=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var N=this._input.read(l),I=r.get_directives(N);I&&"start"===I.ignore&&(N+=r.readIgnored(this._input)),this.print_string(N),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(E)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(d),this.print_string(this._ch);var m=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);m.match(/[ :]$/)&&(m=this.eatString(": ").replace(/\s+$/,""),this.print_string(m),this._output.space_before_token=!0),0===p&&-1!==m.indexOf(":")&&(h=!0,this.indent())}else if("@"===this._ch){if(this.preserveSingleSpace(d),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var C=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);C.match(/[ :]$/)&&(C=this.eatString(": ").replace(/\s+$/,""),this.print_string(C),this._output.space_before_token=!0),0===p&&-1!==C.indexOf(":")?(h=!0,this.indent()):C in this.NESTED_AT_RULE?(this._nestedLevel+=1,C in this.CONDITIONAL_GROUP_RULE&&(f=!0)):0!==p||h||(S=!0)}}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(d),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)h&&(h=!1,this.outdent()),S=!1,f?(f=!1,_=this._indentLevel>=this._nestedLevel):_=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&_&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===T?this._output.space_before_token=!1:","!==T&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===T&&this._output.trim(!0),h&&(this.outdent(),h=!1),this.print_string(this._ch),_=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var L=0;L"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||h||0!==p){if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(d),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),i.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var b='"'===T||"'"===T;this.preserveSingleSpace(b||d),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===` `&&O&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch)}else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&i.test(this._ch)&&(this._ch=""));return this._output.get_code(u)},No.Beautifier=u,No}().Beautifier,t=NE().Options;return Ni.exports=function(t,n){return new e(t,n).beautify()},Ni.exports.defaultOptions=function(){return new t},Ni.exports}(),n=function(){if(mp)return NT.exports;mp=1;var e=function(){if(mT)return Np;mT=1;var e=Nh().Options,t=OP().Output,n=NR().Tokenizer,r=NR().TOKEN,a=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,i=function(e,n){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,n)};i.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},i.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},i.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},i.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},i.prototype.print_preserved_newlines=function(e){var t=0;e.type!==r.TEXT&&e.previous.type!==r.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines0);return 0!==t},i.prototype.traverse_whitespace=function(e){return(!!e.whitespace_before||!!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},i.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},i.prototype.print_newline=function(e){this._output.add_new_line(e)},i.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},i.prototype.indent=function(){this.indent_level++},i.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},i.prototype.get_full_indent=function(e){return(e=this.indent_level+(e||0))<1?"":this._output.get_indent_string(e)};var o=function(e){for(var t=null,n=e.next;n.type!==r.EOF&&e.closed!==n;){if(n.type===r.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===r.EQUALS&&n.next.next&&n.next.next.type===r.VALUE&&(t=n.next.next.text);break}n=n.next}return t},l=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),(n=o(t)||n).search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function E(e,t){return -1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function c(e){this._printer=e,this._current_frame=null}function d(t,n,r,a){this._source_text=t||"",n=n||{},this._js_beautify=r,this._css_beautify=a,this._tag_stack=null;var s=new e(n,"html");this._options=s,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}c.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},c.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},c.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},c.prototype._get_frame=function(e,t){for(var n=this._current_frame;n&&-1===e.indexOf(n.tag);){if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},c.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},c.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t=` `,e&&a.test(e)&&(t=e.match(a)[0]));var o=(e=e.replace(s,` `)).match(/^[\t ]*/)[0],l={text:"",type:""},E=new T,u=new i(this._options,o),d=new n(e,this._options).tokenize();this._tag_stack=new c(u);for(var p=null,_=d.next();_.type!==r.EOF;)_.type===r.TAG_OPEN||_.type===r.COMMENT?E=p=this._handle_tag_open(u,_,E,l,d):_.type!==r.ATTRIBUTE&&_.type!==r.EQUALS&&_.type!==r.VALUE&&(_.type!==r.TEXT||E.tag_complete)?_.type===r.TAG_CLOSE?p=this._handle_tag_close(u,_,E):_.type===r.TEXT?p=this._handle_text(u,_,E):_.type===r.CONTROL_FLOW_OPEN?p=this._handle_control_flow_open(u,_):_.type===r.CONTROL_FLOW_CLOSE?p=this._handle_control_flow_close(u,_):u.add_raw_token(_):p=this._handle_inside_tag(u,_,E,l),l=p,_=d.next();return u._output.get_code(t)},d.prototype._handle_control_flow_open=function(e,t){var n={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),e.indent(),n},d.prototype._handle_control_flow_close=function(e,t){var n={text:t.text,type:t.type};return e.deindent(),t.newlines?e.print_preserved_newlines(t):e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),e.print_token(t),n},d.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),n.indent_content&&!(n.is_unformatted||n.is_content_unformatted)&&(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},d.prototype._handle_inside_tag=function(e,t,n,a){var s=n.has_wrapped_attrs,i={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===r.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===r.ATTRIBUTE?e.set_space_before_token(!0):(t.type===r.EQUALS||t.type===r.VALUE&&t.previous.type===r.EQUALS)&&e.set_space_before_token(!1),t.type===r.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),s=s||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(a.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),s=!0)),e.print_token(t),s=s||e.previous_token_wrapped(),n.has_wrapped_attrs=s),i},d.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},d.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var a,s=t.text,i=1,o="",l="";"javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?a=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?a=this._css_beautify:"html"===n.custom_beautifier_name&&(a=function(e,t){return new d(e,t,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?i=0:"separate"===this._options.indent_scripts&&(i=-e.indent_level);var E=e.get_full_indent(i);if(s=s.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===s[0]&&s.match(/^(|]]>)$/.exec(s);if(!u){e.add_raw_token(t);return}o=E+u[1]+` `,s=u[4],u[5]&&(l=E+u[5]),s=s.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf(` `))&&(u=u[3].match(/[ \t]+$/))&&(t.whitespace_before=u[0])}if(s){if(a){var c=function(){this.eol=` `};c.prototype=this._options.raw_options,s=a(E+s,new c)}else{var T=t.whitespace_before;T&&(s=s.replace(RegExp(` (`+T+")?","g"),` `)),s=E+s.replace(/\n/g,` `+E)}}o&&(s=s?o+s+` `+l:o+l),e.print_newline(!1),s&&(t.text=s,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},d.prototype._handle_tag_open=function(e,t,n,a,s){var i=this._get_tag_open_token(t);if((n.is_unformatted||n.is_content_unformatted)&&!n.is_empty_element&&t.type===r.TAG_OPEN&&!i.is_start_tag?(e.add_raw_token(t),i.start_tag_token=this._tag_stack.try_pop(i.tag_name)):(e.traverse_whitespace(t),this._set_tag_position(e,t,i,n,a),i.is_inline_element||e.set_wrap_point(),e.print_token(t)),i.is_start_tag&&this._is_wrap_attributes_force){var o,l=0;do(o=s.peek(l)).type===r.ATTRIBUTE&&(i.attr_count+=1),l+=1;while(o.type!==r.EOF&&o.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(i.alignment_size=t.text.length+1),i.tag_complete||i.is_unformatted||(e.alignment_size=i.alignment_size),i};var T=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var n,a=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(a=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(a)))}else this.tag_complete=!0};d.prototype._get_tag_open_token=function(e){var t=new T(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||E(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&E(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&E(t.tag_check,this._options.content_unformatted),t.is_inline_element=E(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(e,t,n,a,s){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=l(n.tag_check,t)))),E(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element)"{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,e.current_line_has_match(/{{#if/)||e.print_newline(!1)),"!--"===n.tag_name&&s.type===r.TAG_CLOSE&&a.is_end_tag&&-1===n.text.indexOf(` `)||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n));else if(n.is_end_tag){var i=!1;i=(i=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(a.is_inline_element||a.is_unformatted)&&!(s.type===r.TAG_CLOSE&&n.start_tag_token===a)&&"TK_CONTENT"!==s.type,(n.is_content_unformatted||n.is_unformatted)&&(i=!1),i&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),!(n.is_inline_element||n.is_unformatted)&&("TK_CONTENT"!==s.type||n.is_content_unformatted)&&e.print_newline(!1),this._calcluate_parent_multiline(e,n)},d.prototype._calcluate_parent_multiline=function(e,t){t.parent&&e._output.just_added_newline()&&!((t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element)&&(t.parent.multiline_content=!0)};var p=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],_=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(e){var t=null;if(!(e.is_empty_element||!e.is_start_tag||!e.parent)){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=(t=t||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==p.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==_.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?t=(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===e.tag_name||"tfoot"===e.tag_name?t=(t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===e.tag_name?t=(t=(t=t||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):("th"===e.tag_name||"td"===e.tag_name)&&(t=(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},Np.Beautifier=d,Np}().Beautifier,t=Nh().Options;return NT.exports=function(t,n,r,a){return new e(t,n,r,a).beautify()},NT.exports.defaultOptions=function(){return new t},NT.exports}();function r(r,a,s,i){return n(r,a,s=s||e,i=i||t)}return r.defaultOptions=n.defaultOptions,Oy.js=e,Oy.css=t,Oy.html=r,Oy}()).js_beautify=t.js,t.css_beautify=t.css,t.html_beautify=t.html,e.exports=((n=function(e,n){return t.js_beautify(e,n)}).js=t.js_beautify,n.css=t.css_beautify,n.html=t.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=t.css_beautify,n.html_beautify=t.html_beautify,n)}(Og);var NA=Og.exports,NO={exports:{}};NO.exports=function(e,t){var n,r,a,s,i,o,l,E,u,c,d,T=0,p=e.length,_="",h=!0,f=!1;function S(e){return" "===e||e===` `||" "===e||"\r"===e||"\f"===e}function R(e){return"'"===e||'"'===e}function A(e){return a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"||"-_*.:#[]".indexOf(e)>=0}function O(){var e;for(e=E;e>0;e-=1)_+=n.indent}function N(){_=d(_),h?_+=" {":(_+=` `,O(),_+="{"),s!==` `&&(_+=` `),E+=1}function I(){var e;E-=1,(_=d(_)).length>0&&f&&";"!==(e=_.charAt(_.length-1))&&"{"!==e&&(_+=";"),_+=` `,O(),_+="}",r.push(_),_=""}for(n=arguments.length>1?t:{},typeof n.indent>"u"&&(n.indent=" "),"string"==typeof n.openbrace&&(h="end-of-line"===n.openbrace),"boolean"==typeof n.autosemicolon&&(f=n.autosemicolon),d=String.prototype.trimRight?function(e){return e.trimRight()}:function(e){return e.replace(/\s+$/,"")},E=0,o=(l={Start:0,AtRule:1,Block:2,Selector:3,Ruleset:4,Property:5,Separator:6,Expression:7,URL:8}).Start,c=!1,r=[],e=e.replace(/\r\n/g,` `);T=128){o=l.Start,_+=a;continue}if(A(a)||"@"===a){if(0===(i=d(_)).length)r.length>0&&(_=` `);else if("}"===i.charAt(i.length-1)||";"===i.charAt(i.length-1))_=i+` `;else for(;!(" "!==(s=_.charAt(_.length-1))&&9!==s.charCodeAt(0));)_=_.substr(0,_.length-1);_+=a,o="@"===a?l.AtRule:l.Selector;continue}}if(o===l.AtRule){if(";"===a){_+=a,o=l.Start;continue}if("{"===a){i=d(_),N(),o="@font-face"===i?l.Ruleset:l.Block;continue}_+=a;continue}if(o===l.Block){if(A(a)){if(0===(i=d(_)).length)r.length>0&&(_=` `);else if("}"===i.charAt(i.length-1))_=i+` `;else for(;!(" "!==(s=_.charAt(_.length-1))&&9!==s.charCodeAt(0));)_=_.substr(0,_.length-1);O(),_+=a,o=l.Selector;continue}if("}"===a){I(),o=l.Start;continue}_+=a;continue}if(o===l.Selector){if("{"===a){N(),o=l.Ruleset;continue}if("}"===a){I(),o=l.Start;continue}_+=a;continue}if(o===l.Ruleset){if("}"===a){I(),o=l.Start,E>0&&(o=l.Block);continue}if(a===` `){_=d(_)+` `;continue}if(!S(a)){_=d(_)+` `,O(),_+=a,o=l.Property;continue}_+=a;continue}if(o===l.Property){if(":"===a){_=d(_)+": ",o=l.Expression,S(s)&&(o=l.Separator);continue}if("}"===a){I(),o=l.Start,E>0&&(o=l.Block);continue}_+=a;continue}if(o===l.Separator){if(!S(a)){_+=a,o=l.Expression;continue}R(s)&&(o=l.Expression);continue}if(o===l.Expression){if("}"===a){I(),o=l.Start,E>0&&(o=l.Block);continue}if(";"===a){_=d(_)+`; `,o=l.Ruleset;continue}_+=a,"("===a&&"l"===_.charAt(_.length-2)&&"r"===_.charAt(_.length-3)&&"u"===_.charAt(_.length-4)&&(o=l.URL);continue}if(o===l.URL&&")"===a&&_.charAt((_.length,!0))){_+=a,o=l.Expression;continue}_+=a}return _=r.join("")+_},NO.exports,NA.js_beautify;var NN={exports:{}};!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",a=0;a2&&void 0!==arguments[2]?arguments[2]:{},a=r.callback;"function"==typeof r&&(a=r,r={}),this.options=r;var s=this;function i(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,E=1,u=o+l;r.maxEditLength&&(u=Math.min(u,r.maxEditLength));var c=null!==(n=r.timeout)&&void 0!==n?n:1/0,d=Date.now()+c,T=[{oldPos:-1,lastComponent:void 0}],p=this.extractCommon(T[0],t,e,0);if(T[0].oldPos+1>=l&&p+1>=o)return i([{value:this.join(t),count:t.length}]);var _=-1/0,h=1/0;function f(){for(var n=Math.max(_,-E);n<=Math.min(h,E);n+=2){var r=void 0,a=T[n-1],u=T[n+1];a&&(T[n-1]=void 0);var c=!1;if(u){var d=u.oldPos-n;c=u&&0<=d&&d=l&&p+1>=o)return i(function(e,t,n,r,a){for(var s,i=[];t;)i.push(t),s=t.previousComponent,delete t.previousComponent,t=s;i.reverse();for(var o=0,l=i.length,E=0,u=0;oe.length?n:e}),c.value=e.join(T)}else c.value=e.join(n.slice(E,E+c.count));E+=c.count,c.added||(u+=c.count)}}var p=i[l-1];return l>1&&"string"==typeof p.value&&(p.added||p.removed)&&e.equals("",p.value)&&(i[l-2].value+=p.value,i.pop()),i}(s,r.lastComponent,t,e,s.useLongestToken));T[n]=r,r.oldPos+1>=l&&(h=Math.min(h,n-1)),p+1>=o&&(_=Math.max(_,n+1))}E++}if(a)!function e(){setTimeout(function(){if(E>u||Date.now()>d)return a();f()||e()},0)}();else for(;E<=u&&Date.now()<=d;){var S=f();if(S)return S}},addToPath:function(e,t,n,r){var a=e.lastComponent;return a&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}},extractCommon:function(e,t,n,r){for(var a=t.length,s=n.length,i=e.oldPos,o=i-r,l=0;o+1"u"?n:t}:r;return"string"==typeof e?e:JSON.stringify(NX(e,null,null,a),a," ")},Nj.equals=function(e,t){return NY.default.prototype.equals.call(Nj,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var NK={};Object.defineProperty(NK,"__esModule",{value:!0}),NK.diffArrays=function(e,t,n){return N$.diff(e,t,n)},NK.arrayDiff=void 0;var N$=new(function(e){return e.__esModule?e:{default:e}}(NL)).default;NK.arrayDiff=N$,N$.tokenize=function(e){return e.slice()},N$.join=N$.removeEmpty=function(e){return e};var Nz={},NJ={};Object.defineProperty(NJ,"__esModule",{value:!0}),NJ.parsePatch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=[],s=0;function i(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[s]);if(t){var r="---"===t[1]?"old":"new",a=t[2].split(" ",2),i=a[0].replace(/\\\\/g,"\\");/^".*"$/.test(i)&&(i=i.substr(1,i.length-2)),e[r+"FileName"]=i,e[r+"Header"]=(a[1]||"").trim(),s++}}for(;s"u"?1:+a[2],newStart:+a[3],newLines:typeof a[4]>"u"?1:+a[4],lines:[],linedelimiters:[]};0===i.oldLines&&(i.oldStart+=1),0===i.newLines&&(i.newStart+=1);for(var o=0,l=0;s2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,NJ.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw Error("applyPatch only works with a single input.");t=t[0]}for(var r,a,s=e.split(/\r\n|[\n\v\f\r\x85]/),i=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},E=0,u=n.fuzzFactor||0,c=0,d=0,T=0;T0?r[0]:" ",i=r.length>0?r.substr(1):r;if(" "===a||"-"===a){if(!l(t+1,s[t],a,i)&&++E>u)return!1;t++}}return!0}(p,f+h)){p.offset=d+=h;break}if(void 0===h)return!1;c=p.offset+p.oldStart+p.oldLines}for(var R=0,A=0;A0?m[0]:" ",L=m.length>0?m.substr(1):m,g=O.linedelimiters&&O.linedelimiters[I]||` `;if(" "===C)N++;else if("-"===C)s.splice(N,1),i.splice(N,1);else if("+"===C)s.splice(N,0,L),i.splice(N,0,g),N++;else if("\\"===C){var y=O.lines[I-1]?O.lines[I-1][0]:null;"+"===y?r=!0:"-"===y&&(a=!0)}}}if(r)for(;!s[s.length-1];)s.pop(),i.pop();else a&&(s.push(""),i.push(` `));for(var b=0;btypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return N5(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N5(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function N5(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n"u"&&(i.context=4);var o=(0,Nx.diffLines)(n,r,i);if(o){o.push({value:"",lines:[]});for(var l=[],E=0,u=0,c=[],d=1,T=1,p=0;p0?_(s.lines.slice(-i.context)):[],E-=c.length,u-=c.length)}(p=c).push.apply(p,N2(a.map(function(e){return(t.added?"+":"-")+e}))),t.added?T+=a.length:d+=a.length}else{if(E){if(a.length<=2*i.context&&e=o.length-2&&a.length<=i.context){var A=/\n$/.test(n),O=/\n$/.test(r),N=0==a.length&&c.length>R.oldLines;!A&&N&&n.length>0&&c.splice(R.oldLines,0,"\\ No newline at end of file"),(A||N)&&O||c.push("\\ No newline at end of file")}l.push(R),E=0,u=0,c=[]}}d+=a.length,T+=a.length}}(p);return{oldFileName:e,newFileName:t,oldHeader:a,newHeader:s,hunks:l}}function _(e){return e.map(function(e){return" "+e})}}function N4(e){if(Array.isArray(e))return e.map(N4).join(` `);var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),t.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader));for(var n=0;ne.length)return!1;for(var n=0;ntypeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ie(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n"):r.removed&&t.push(""),t.push(function(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return a.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return a.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return i.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return o.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return o.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return l.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return E.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return E.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return u.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return c.merge}}),Object.defineProperty(e,"reversePatch",{enumerable:!0,get:function(){return d.reversePatch}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return T.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return T.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return T.createPatch}}),Object.defineProperty(e,"formatPatch",{enumerable:!0,get:function(){return T.formatPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return p.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return _.convertChangesToXML}});var t=NL.__esModule?NL:{default:NL},n=Ng,r=Nb,a=Nx,s=Nk,i=NF,o=NH,l=NK,E=Nz,u=NJ,c=N0,d=Ip,T=N1,p=If,_=IS}(NC);var IR=b&&b.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),IA=b&&b.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),IO=b&&b.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&IR(t,e,n);return IA(t,e),t};Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.computeLineInformation=Nm.DiffMethod=Nm.DiffType=void 0;let IN=IO(NC);(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(mh||(Nm.DiffType=mh={})),function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson"}(mf||(Nm.DiffMethod=mf={}));let II=e=>""===e?[]:e.replace(/\n$/,"").split(` `),Im=(e,t,n=mf.CHARS)=>{let r=IN[n](e,t),a={left:[],right:[]};return r.forEach(({added:e,removed:t,value:n})=>{let r={};return e&&(r.type=mh.ADDED,r.value=n,a.right.push(r)),t&&(r.type=mh.REMOVED,r.value=n,a.left.push(r)),t||e||(r.type=mh.DEFAULT,r.value=n,a.right.push(r),a.left.push(r)),r}),a},IC=(e,t,n=!1,r=mf.CHARS,a=0,s=[])=>{let i=[];i="string"==typeof e&&"string"==typeof t?IN.diffLines(e.trimRight(),t.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):IN.diffJson(e,t);let o=a,l=a,E=[],u=0,c=[],d=[],T=(e,t,a,E,p)=>II(e).map((e,_)=>{let h={},f={};if(!(d.includes(`${t}-${_}`)||p&&0!==_)){if(a||E){let a=!0;if(E){l+=1,h.lineNumber=l,h.type=mh.REMOVED,h.value=e||" ";let s=i[t+1];if(s&&s.added){let i=II(s.value)[_];if(i){let{value:s,lineNumber:o,type:l}=T(i,t,!0,!1,!0)[0].right;if(d.push(`${t+1}-${_}`),f.lineNumber=o,h.value===s)a=!1,f.type=0,h.type=0,f.value=s;else if(f.type=l,n)f.value=s;else{let t=Im(e,s,r);f.value=t.right,h.value=t.left}}}}else o+=1,f.lineNumber=o,f.type=mh.ADDED,f.value=e;a&&!p&&(c.includes(u)||c.push(u))}else l+=1,o+=1,h.lineNumber=l,h.type=mh.DEFAULT,h.value=e,f.lineNumber=o,f.type=mh.DEFAULT,f.value=e;return(null!=s&&s.includes(`L-${h.lineNumber}`)||null!=s&&s.includes(`R-${f.lineNumber}`)&&!c.includes(u))&&c.push(u),p||(u+=1),{right:f,left:h}}}).filter(Boolean);return i.forEach(({added:e,removed:t,value:n},r)=>{E=[...E,...T(n,r,e,t)]}),{lineInformation:E,diffLines:c}};Nm.computeLineInformation=IC;var IL={},Ig=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?d[f]+" "+S:IG(S,/&\f/g,d[f])).trim())&&(l[h++]=R);return IJ(e,t,n,0===a?IP:o,l,E,u)}function I3(e,t,n,r){return IJ(e,t,n,IM,IH(e,0,r),IH(e,r+1,-1),r)}function I4(e,t){for(var n="",r=e.length,a=0;a-1&&!e.return)switch(e.type){case IM:e.return=function e(t,n){switch(45^IB(t,0)?(((n<<2^IB(t,0))<<2^IB(t,1))<<2^IB(t,2))<<2^IB(t,3):0){case 5103:return Iv+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Iv+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Iv+t+Ib+t+Iy+t+t;case 6828:case 4268:return Iv+t+Iy+t+t;case 6165:return Iv+t+Iy+"flex-"+t+t;case 5187:return Iv+t+IG(t,/(\w+).+(:[^]+)/,Iv+"box-$1$2"+Iy+"flex-$1$2")+t;case 5443:return Iv+t+Iy+"flex-item-"+IG(t,/flex-|-self/,"")+t;case 4675:return Iv+t+Iy+"flex-line-pack"+IG(t,/align-content|flex-|-self/,"")+t;case 5548:return Iv+t+Iy+IG(t,"shrink","negative")+t;case 5292:return Iv+t+Iy+IG(t,"basis","preferred-size")+t;case 6060:return Iv+"box-"+IG(t,"-grow","")+Iv+t+Iy+IG(t,"grow","positive")+t;case 4554:return Iv+IG(t,/([^-])(transform)/g,"$1"+Iv+"$2")+t;case 6187:return IG(IG(IG(t,/(zoom-|grab)/,Iv+"$1"),/(image-set)/,Iv+"$1"),t,"")+t;case 5495:case 3959:return IG(t,/(image-set\([^]*)/,Iv+"$1$`$1");case 4968:return IG(IG(t,/(.+:)(flex-)?(.*)/,Iv+"box-pack:$3"+Iy+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Iv+t+t;case 4095:case 3583:case 4068:case 2532:return IG(t,/(.+)-inline(.+)/,Iv+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(IY(t)-1-n>6)switch(IB(t,n+1)){case 109:if(45!==IB(t,n+4))break;case 102:return IG(t,/(.+:)(.+)-([^]+)/,"$1"+Iv+"$2-$3$1"+Ib+(108==IB(t,n+3)?"$3":"$2-$3"))+t;case 115:return~IF(t,"stretch")?e(IG(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==IB(t,n+1))break;case 6444:switch(IB(t,IY(t)-3-(~IF(t,"!important")&&10))){case 107:return IG(t,":",":"+Iv)+t;case 101:return IG(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Iv+(45===IB(t,14)?"inline-":"")+"box$3$1"+Iv+"$2$3$1"+Iy+"$2box$3")+t}break;case 5936:switch(IB(t,n+11)){case 114:return Iv+t+Iy+IG(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Iv+t+Iy+IG(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Iv+t+Iy+IG(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Iv+t+Iy+t+t}return t}(e.value,e.length);break;case IU:return I4([IZ(e,{value:IG(e.value,"@","@"+Iv)})],r);case IP:if(e.length){var a,s;return a=e.props,s=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return I4([IZ(e,{props:[IG(t,/:(read-\w+)/,":"+Ib+"$1")]})],r);case"::placeholder":return I4([IZ(e,{props:[IG(t,/:(plac\w+)/,":"+Iv+"input-$1")]}),IZ(e,{props:[IG(t,/:(plac\w+)/,":"+Ib+"$1")]}),IZ(e,{props:[IG(t,/:(plac\w+)/,Iy+"input-$1")]})],r)}return""},a.map(s).join("")}}}],ma=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,a=e.stylisPlugins||mr,s={},i=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n2||I0(I$)>3?"":" "}(h);break;case 92:C+=function(e,t){for(var n;--t&&Iq()&&!(I$<48||I$>102||I$>57&&I$<65||I$>70&&I$<97););return n=IK+(t<6&&32==IQ()&&32==Iq()),IH(Iz,e,n)}(IK-1,7);continue;case 47:switch(IQ()){case 42:case 47:IV(IJ(u=function(e,t){for(;Iq()&&e+I$!==57&&(e+I$!==84||47!==IQ()););return"/*"+IH(Iz,t,IK-1)+"*"+Iw(47===e?e:Iq())}(Iq(),IK),n,r,ID,Iw(I$),IH(u,2,-2),0),E);break;default:C+="/"}break;case 123*f:l[c++]=IY(C)*R;case 125*f:case 59:case 0:switch(A){case 0:case 125:S=0;case 59+d:-1==R&&(C=IG(C,/\f/g,"")),_>0&&IY(C)-T&&IV(_>32?I3(C+";",a,r,T-1):I3(IG(C," ","")+";",a,r,T-2),E);break;case 59:C+=";";default:if(IV(m=I5(C,n,r,c,d,s,l,O,N=[],I=[],T),i),123===A){if(0===d)e(C,n,m,m,N,i,T,l,I);else switch(99===p&&110===IB(C,3)?100:p){case 100:case 108:case 109:case 115:e(t,m,m,a&&IV(I5(t,m,m,0,0,s,l,O,s,N=[],T),I),s,I,T,l,a?N:I);break;default:e(C,m,m,m,[""],I,0,l,I)}}}c=d=_=0,f=R=1,O=C="",T=o;break;case 58:T=1+IY(C),_=h;default:if(f<1){if(123==A)--f;else if(125==A&&0==f++&&125==(I$=IK>0?IB(Iz,--IK):0,Ij--,10===I$&&(Ij=1,IW--),I$))continue}switch(C+=Iw(A),A*f){case 38:R=d>0?1:(C+="\f",-1);break;case 44:l[c++]=(IY(C)-1)*R,R=1;break;case 64:45===IQ()&&(C+=I2(Iq())),p=IQ(),d=T=IY(O=C+=function(e){for(;!I0(IQ());)Iq();return IH(Iz,e,IK)}(IK)),A++;break;case 45:45===h&&2==IY(C)&&(f=0)}}return i}("",null,null,null,[""],t=I1(t=e),0,[0],t),Iz="",n),d)};E=function(e,t,n,r){c=n,T(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ig({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:E};return p.sheet.hydrate(i),p},ms={animationIterationCount:1,aspectRatio: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,scale: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},mi=/[A-Z]|^ms/g,mo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ml=function(e){return 45===e.charCodeAt(1)},mE=function(e){return null!=e&&"boolean"!=typeof e},mu=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return ml(e)?e:e.replace(mi,"-$&").toLowerCase()}),mc=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(mo,function(e,t,n){return mS={name:t,styles:n,next:mS},t})}return 1===ms[e]||ml(e)||"number"!=typeof t||0===t?t:t+"px"};function md(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mS={name:n.name,styles:n.styles,next:mS},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mS={name:r.name,styles:r.styles,next:mS},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=4;++r,a-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(a)+l,styles:a,next:mS}}function mO(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var mN=function(e,t,n){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)},mI=function(e,t,n){mN(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next;while(void 0!==a)}};function mm(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function mC(e,t,n){var r=[],a=mO(e,r,n);return r.length<2?n:a+t(r)}var mL=function e(t){for(var n="",r=0;rt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n},mb=b&&b.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(IL,"__esModule",{value:!0});let mv=mb(mg);IL.default=(e,t=!1,n="")=>{let{variables:r={}}=e,a=my(e,["variables"]),s={light:Object.assign({diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},r.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},r.dark||{})},i=t?s.dark:s.light,{css:o,cx:l}=(0,mv.default)({key:"react-diff",nonce:n}),E=o({width:"100%",label:"content"}),u=o({[`.${E}`]:{width:"50%"},label:"split-view"}),c=o({width:"100%",background:i.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),d=o({color:i.codeFoldContentColor,label:"code-fold-content"}),T=o({color:i.diffViewerColor,label:"content-text"}),p=o({background:i.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${i.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${i.diffViewerTitleBorderColor}`},[`.${T}`]:{color:i.diffViewerTitleColor}}),_=o({color:i.gutterColor,label:"line-number"}),h=o({background:i.removedBackground,color:i.removedColor,pre:{color:i.removedColor},[`.${_}`]:{color:i.removedGutterColor},label:"diff-removed"}),f=o({background:i.addedBackground,color:i.addedColor,pre:{color:i.addedColor},[`.${_}`]:{color:i.addedGutterColor},label:"diff-added"}),S=o({background:i.changedBackground,[`.${_}`]:{color:i.gutterColor},label:"diff-changed"}),R=o({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),A=o({background:i.wordAddedBackground,label:"word-added"}),O=o({background:i.wordRemovedBackground,label:"word-removed"}),N=o({backgroundColor:i.codeFoldGutterBackground,label:"code-fold-gutter"}),I=o({backgroundColor:i.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),m=o({backgroundColor:i.emptyLineBackground,label:"empty-line"}),C=o({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${f}`]:{pre:{color:i.addedColor}},[`&.${h}`]:{pre:{color:i.removedColor}}}),L=o({background:i.highlightBackground,label:"highlighted-line",[`.${A}, .${O}`]:{backgroundColor:"initial"}}),g=o({label:"highlighted-gutter"}),y=o({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:i.gutterBackground,"&:hover":{cursor:"pointer",background:i.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${f}`]:{background:i.addedGutterBackground},[`&.${h}`]:{background:i.removedGutterBackground},[`&.${g}`]:{background:i.highlightGutterBackground,"&:hover":{background:i.highlightGutterBackground}}}),b=o({"&:hover":{background:i.gutterBackground,cursor:"initial"},label:"empty-gutter"}),v={diffContainer:c,diffRemoved:h,diffAdded:f,diffChanged:S,splitView:u,marker:C,highlightedGutter:g,highlightedLine:L,gutter:y,line:o({verticalAlign:"baseline",label:"line"}),wordDiff:R,wordAdded:A,wordRemoved:O,codeFoldGutter:N,codeFold:I,emptyGutter:b,emptyLine:m,lineNumber:_,contentText:T,content:E,codeFoldContent:d,titleBlock:p},D=Object.keys(a).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:o(a[t])}),{});return Object.keys(v).reduce((e,t)=>Object.assign(Object.assign({},e),{[t]:D[t]?l(v[t],D[t]):v[t]}),{})};var mD={};Object.defineProperty(mD,"__esModule",{value:!0}),mD.computeHiddenBlocks=void 0,mD.computeHiddenBlocks=function(e,t,n){let r=0,a,s={},i=[];return e.forEach((e,o)=>{let l=t.some(e=>e>=o-n&&e<=o+n);l||null!=a?l?a=void 0:(a.endLine=o,a.lines++,s[o]=a.index):(a={index:r,startLine:o,endLine:o,lines:1},i.push(a),s[o]=a.index,r++)}),{lineBlocks:s,blocks:i}};var mP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function mM(e,t){if(e.length!==t.length)return!1;for(var n,r,a=0;athis.state.expandedBlocks.length>0&&(this.setState({expandedBlocks:[]}),!0),this.onBlockExpand=e=>{let t=this.state.expandedBlocks.slice();t.push(e),this.setState({expandedBlocks:t})},this.computeStyles=u(E.default),this.onLineNumberClickProxy=e=>this.props.onLineNumberClick?t=>this.props.onLineNumberClick(e,t):()=>{},this.renderWordDiff=(e,t)=>e.map((e,n)=>(0,eI.jsx)("span",{className:(0,l.default)(this.styles.wordDiff,{[this.styles.wordAdded]:e.type===Nm.DiffType.ADDED,[this.styles.wordRemoved]:e.type===Nm.DiffType.REMOVED}),children:t?t(e.value):e.value},n)),this.renderLine=(e,t,n,r,a,s)=>{let i;let E=`${n}-${e}`,u=`${s}-${a}`,c=this.props.highlightLines.includes(E)||this.props.highlightLines.includes(u),d=t===Nm.DiffType.ADDED,T=t===Nm.DiffType.REMOVED,p=t===Nm.DiffType.CHANGED;return i=Array.isArray(r)?this.renderWordDiff(r,this.props.renderContent):this.props.renderContent?this.props.renderContent(r):r,(0,eI.jsxs)(o.Fragment,{children:[!this.props.hideLineNumbers&&(0,eI.jsx)("td",{onClick:e&&this.onLineNumberClickProxy(E),className:(0,l.default)(this.styles.gutter,{[this.styles.emptyGutter]:!e,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:T,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:c}),children:(0,eI.jsx)("pre",{className:this.styles.lineNumber,children:e})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,eI.jsx)("td",{onClick:a&&this.onLineNumberClickProxy(u),className:(0,l.default)(this.styles.gutter,{[this.styles.emptyGutter]:!a,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:T,[this.styles.diffChanged]:p,[this.styles.highlightedGutter]:c}),children:(0,eI.jsx)("pre",{className:this.styles.lineNumber,children:a})}),this.props.renderGutter?this.props.renderGutter({lineNumber:e,type:t,prefix:n,value:r,additionalLineNumber:a,additionalPrefix:s,styles:this.styles}):null,!this.props.hideMarkers&&(0,eI.jsx)("td",{className:(0,l.default)(this.styles.marker,{[this.styles.emptyLine]:!i,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:T,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:c}),children:(0,eI.jsxs)("pre",{children:[d&&"+",T&&"-"]})}),(0,eI.jsx)("td",{className:(0,l.default)(this.styles.content,{[this.styles.emptyLine]:!i,[this.styles.diffAdded]:d,[this.styles.diffRemoved]:T,[this.styles.diffChanged]:p,[this.styles.highlightedLine]:c}),children:(0,eI.jsx)("pre",{className:this.styles.contentText,children:i})})]})},this.renderSplitView=({left:e,right:t},r)=>(0,eI.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(e.lineNumber,e.type,n.LEFT,e.value),this.renderLine(t.lineNumber,t.type,n.RIGHT,t.value)]},r),this.renderInlineView=({left:e,right:t},r)=>{let a;return e.type===Nm.DiffType.REMOVED&&t.type===Nm.DiffType.ADDED?(0,eI.jsxs)(o.Fragment,{children:[(0,eI.jsx)("tr",{className:this.styles.line,children:this.renderLine(e.lineNumber,e.type,n.LEFT,e.value,null)}),(0,eI.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,t.type,n.RIGHT,t.value,t.lineNumber)})]},r):(e.type===Nm.DiffType.REMOVED&&(a=this.renderLine(e.lineNumber,e.type,n.LEFT,e.value,null)),e.type===Nm.DiffType.DEFAULT&&(a=this.renderLine(e.lineNumber,e.type,n.LEFT,e.value,t.lineNumber,n.RIGHT)),t.type===Nm.DiffType.ADDED&&(a=this.renderLine(null,t.type,n.RIGHT,t.value,t.lineNumber)),(0,eI.jsx)("tr",{className:this.styles.line,children:a},r))},this.onBlockClickProxy=e=>()=>this.onBlockExpand(e),this.renderSkippedLineIndicator=(e,t,n,r)=>{let{hideLineNumbers:a,splitView:s}=this.props,i=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(e,n,r):(0,eI.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",e," lines ..."]}),E=(0,eI.jsx)("td",{children:(0,eI.jsx)("a",{onClick:this.onBlockClickProxy(t),tabIndex:0,children:i})}),u=!s&&!a;return(0,eI.jsxs)("tr",{className:this.styles.codeFold,children:[!a&&(0,eI.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,eI.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,eI.jsx)("td",{className:(0,l.default)({[this.styles.codeFoldGutter]:u})}),u?(0,eI.jsxs)(o.Fragment,{children:[(0,eI.jsx)("td",{}),E]}):(0,eI.jsxs)(o.Fragment,{children:[E,this.props.renderGutter?(0,eI.jsx)("td",{}):null,(0,eI.jsx)("td",{})]}),(0,eI.jsx)("td",{}),(0,eI.jsx)("td",{})]},`${n}-${r}`)},this.renderDiff=()=>{let{oldValue:e,newValue:t,splitView:n,disableWordDiff:r,compareMethod:a,linesOffset:s}=this.props,{lineInformation:i,diffLines:l}=(0,Nm.computeLineInformation)(e,t,r,a,s,this.props.alwaysShowLines),E=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:u,blocks:c}=(0,mD.computeHiddenBlocks)(i,l,E);return i.map((e,t)=>{if(this.props.showDiffOnly){let n=u[t];if(void 0!==n){let r=c[n].endLine===t;if(!this.state.expandedBlocks.includes(n)&&r)return(0,eI.jsx)(o.Fragment,{children:this.renderSkippedLineIndicator(c[n].lines,n,e.left.lineNumber,e.right.lineNumber)},t);if(!this.state.expandedBlocks.includes(n))return null}}return n?this.renderSplitView(e,t):this.renderInlineView(e,t)})},this.render=()=>{let{oldValue:e,newValue:t,useDarkTheme:n,leftTitle:r,rightTitle:a,splitView:s,hideLineNumbers:i,hideMarkers:o,nonce:E}=this.props;if(this.props.compareMethod!==Nm.DiffMethod.JSON&&("string"!=typeof e||"string"!=typeof t))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,n,E);let u=this.renderDiff(),c=i?2:3,d=i?2:4;o&&(c-=1,d-=1);let T=this.props.renderGutter?1:0,p=(r||a)&&(0,eI.jsxs)("tr",{children:[(0,eI.jsx)("td",{colSpan:(s?c:d)+T,className:this.styles.titleBlock,children:(0,eI.jsx)("pre",{className:this.styles.contentText,children:r})}),s&&(0,eI.jsx)("td",{colSpan:c+T,className:this.styles.titleBlock,children:(0,eI.jsx)("pre",{className:this.styles.contentText,children:a})})]});return(0,eI.jsx)("table",{className:(0,l.default)(this.styles.diffContainer,{[this.styles.splitView]:s}),children:(0,eI.jsxs)("tbody",{children:[p,u]})})},this.state={expandedBlocks:[]}}}c.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:Nm.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},e.default=c}({})}}]);